Ticket #1861: 1861.patch
File 1861.patch, 7.3 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/dvbrecorder.cpp
58 58 #include "iso639.h" 59 59 #include "atscstreamdata.h" 60 60 #include "cardutil.h" 61 #include "tv_rec.h" 61 62 62 63 // MythTV DVB includes 63 64 #include "dvbtypes.h" -
libs/libmythtv/dvbtypes.cpp
970 970 #undef LOC_WARN 971 971 #undef LOC_ERR 972 972 973 bool dvb_channel_t::Parse(974 fe_type_t type,975 QString frequency, QString inversion, QString symbolrate,976 QString fec, QString polarity, QString dvb_diseqc_type,977 QString diseqc_port, QString diseqc_pos, QString lnb_lof_switch,978 QString lnb_lof_hi, QString lnb_lof_lo, QString _sistandard,979 QString hp_code_rate, QString lp_code_rate, QString constellation,980 QString trans_mode, QString guard_interval, QString hierarchy,981 QString modulation, QString bandwidth, QString _input_id)982 {983 lock.lock();984 985 bool ok = false;986 if (FE_QPSK == type)987 ok = tuning.parseQPSK(988 frequency, inversion, symbolrate, fec, polarity,989 dvb_diseqc_type, diseqc_port, diseqc_pos,990 lnb_lof_switch, lnb_lof_hi, lnb_lof_lo);991 else if (FE_QAM == type)992 ok = tuning.parseQAM(993 frequency, inversion, symbolrate, fec, modulation);994 else if (FE_OFDM == type)995 ok = tuning.parseOFDM(996 frequency, inversion, bandwidth, hp_code_rate,997 lp_code_rate, constellation, trans_mode, guard_interval,998 hierarchy);999 else if (FE_ATSC == type)1000 ok = tuning.parseATSC(frequency, modulation);1001 #ifdef FE_GET_EXTENDED_INFO1002 else if (FE_DVB_S2 == type)1003 ok = tuning.parseDVBS2(1004 frequency, inversion, symbolrate, fec, polarity,1005 dvb_diseqc_type, diseqc_port, diseqc_pos,1006 lnb_lof_switch, lnb_lof_hi, lnb_lof_lo, modulation);1007 #endif1008 1009 sistandard = _sistandard;1010 input_id = _input_id.toInt();1011 1012 lock.unlock();1013 return ok;1014 }1015 1016 973 static QString mod2str(fe_modulation mod) 1017 974 { 1018 975 switch (mod) -
libs/libmythtv/scanwizardscanner.cpp
354 354 startChan["hierarchy"] = pane->hierarchy(); 355 355 356 356 #ifdef USING_DVB 357 dvb_channel_t chan_opts;358 nit_scan_parse_failed = ! chan_opts.tuning.parseOFDM(357 DVBTuning tuning; 358 nit_scan_parse_failed = !tuning.parseOFDM( 359 359 startChan["frequency"], startChan["inversion"], 360 360 startChan["bandwidth"], startChan["coderate_hp"], 361 361 startChan["coderate_lp"], startChan["constellation"], … … 380 380 #ifdef USING_DVB 381 381 if (!nit_scan_parse_failed) 382 382 { 383 dvb_channel_t chan_opts;384 nit_scan_parse_failed = ! chan_opts.tuning.parseQPSK(383 DVBTuning tuning; 384 nit_scan_parse_failed = !tuning.parseQPSK( 385 385 startChan["frequency"], startChan["inversion"], 386 386 startChan["symbolrate"], startChan["fec"], 387 387 startChan["polarity"], … … 403 403 startChan["modulation"] = pane->modulation(); 404 404 405 405 #ifdef USING_DVB 406 dvb_channel_t chan_opts;407 nit_scan_parse_failed = ! chan_opts.tuning.parseQAM(406 DVBTuning tuning; 407 nit_scan_parse_failed = !tuning.parseQAM( 408 408 startChan["frequency"], startChan["inversion"], 409 409 startChan["symbolrate"], startChan["fec"], 410 410 startChan["modulation"]); -
libs/libmythtv/dvbchannel.h
17 17 #include "channelbase.h" 18 18 #include "streamlisteners.h" 19 19 20 #include "dvbdiseqc.h" 20 #ifdef USING_DVB 21 #include "dvbtypes.h" 22 #else // if !USING_DVB 23 typedef int fe_type_t; 24 typedef int fe_modulation_t; 25 typedef int fe_code_rate_t; 26 typedef int DVBTuning; 27 typedef struct { QString name; fe_type_t type; } dvb_frontend_info; 28 #endif //!USING_DVB 21 29 22 30 class TVRec; 23 31 class DVBCam; 24 32 class DVBRecorder; 33 class DVBDiSEqC; 25 34 26 35 class DVBChannel : public ChannelBase 27 36 { -
libs/libmythtv/dvbtypes.h
39 39 #if (DVB_API_VERSION >= 3 && DVB_API_VERSION_MINOR >= 1) 40 40 # define USE_ATSC 41 41 #else 42 #warning DVB API version < 3.1, ATSC over DVB will not be supported. 42 #warning DVB API version < 3.1 43 #warning ATSC will not be supported using the Linux DVB drivers 43 44 # define FE_ATSC (FE_OFDM+1) 44 45 # define FE_CAN_8VSB 0x200000 45 46 # define FE_CAN_16VSB 0x400000 … … 411 412 #endif 412 413 }; 413 414 414 class dvb_channel_t415 {416 public:417 dvb_channel_t() :418 pmtpid(0), pmt(NULL),419 serviceID(0xffff), networkID(0xffff),420 providerID(0xffff), transportID(0xffff),421 sistandard(""), version(255) {;}422 ~dvb_channel_t()423 {424 if (pmt)425 delete pmt;426 }427 428 bool IsPMTSet() const429 {430 QMutexLocker locker(&lock);431 return pmt;432 }433 434 void SetPMT(uint pid, const ProgramMapTable *_pmt)435 {436 QMutexLocker locker(&lock);437 if (pmt)438 {439 pmtpid = 0;440 delete pmt;441 pmt = NULL;442 }443 if (_pmt)444 {445 pmtpid = pid;446 pmt = new ProgramMapTable(*_pmt);447 }448 }449 450 bool Parse(451 fe_type_t type,452 QString frequency, QString inversion, QString symbolrate,453 QString fec, QString polarity, QString dvb_diseqc_type,454 QString diseqc_port, QString diseqc_pos, QString lnb_lof_switch,455 QString lnb_lof_hi, QString lnb_lof_lo, QString _sistandard,456 QString hp_code_rate, QString lp_code_rate, QString constellation,457 QString transmission_mode, QString guard_interval, QString hierarchy,458 QString modulation, QString bandwidth, QString _input_id);459 460 DVBTuning tuning;461 462 uint pmtpid;463 ProgramMapTable *pmt;464 bool PMTSet;465 466 uint16_t serviceID; /// program number in PAT467 uint16_t networkID; /// network ID from PAT468 uint16_t providerID;469 uint16_t transportID;470 471 QString sistandard;472 int input_id;473 uint8_t version;474 private:475 mutable QMutex lock;476 };477 478 415 #endif // DVB_TYPES_H -
libs/libmythtv/eitscanner.h
16 16 class ChannelBase; 17 17 class DVBSIParser; 18 18 class EITHelper; 19 class dvb_channel_t;20 19 class ProgramMapTable; 21 20 22 21 class EITSource