/* * channeldesc.cpp * * Copyright (C) 2003-2006 Christophe Thommeret * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include #include "channeldesc.h" AudioPid::AudioPid() { pid=ac3=0; lang=""; } AudioPid::AudioPid( unsigned short apid ) { pid = apid; ac3=0; lang=""; } AudioPid::~AudioPid() { } ChannelDesc::ChannelDesc() { fta=sid=ttpid=vpid=pmtpid=type=0; vType=0; num=0; name=provider=category=""; completed = 0; tp.freq=tp.sr=0; tp.pol='v'; maxapid=MAXAPID; for ( int i=0; ifreq*1000; int f2 = trans->freq*1000; if ( fabs(f1-f2) < 2000 ) return true; return false; } bool Transponder::operator==( const Transponder &t ) { if ( this->bandwidth==t.bandwidth && this->source==t.source && this->coderateH==t.coderateH && this->coderateL==t.coderateL && this->freq==t.freq && this->guard==t.guard && this->hierarchy==t.hierarchy && this->inversion==t.inversion && this->modulation==t.modulation && this->pol==t.pol && this->sr==t.sr && this->transmission==t.transmission ) return true; return false; } bool Transponder::operator!=( const Transponder &t ) { if ( this->bandwidth!=t.bandwidth || this->source!=t.source || this->coderateH!=t.coderateH || this->coderateL!=t.coderateL || this->freq!=t.freq || this->guard!=t.guard || this->hierarchy!=t.hierarchy || this->inversion!=t.inversion || this->modulation!=t.modulation || this->pol!=t.pol || this->sr!=t.sr || this->transmission!=t.transmission ) return true; return false; } Transponder::~Transponder() { }