|
MythTV
0.26-pre
|
Encapsulates data about MPEG stream and emits events for each table. More...
#include <mpegstreamdata.h>
Encapsulates data about MPEG stream and emits events for each table.
Definition at line 91 of file mpegstreamdata.h.
| MPEGStreamData::MPEGStreamData | ( | int | desiredProgram, |
| bool | cacheTables | ||
| ) |
Initializes MPEGStreamData.
This adds the PID of the PAT table to "_pids_listening"
| desiredProgram | If you want rewritten PAT and PMTs, for a desired program set this to a value > -1 |
| cacheTables | If true PAT and PMT tables will be cached |
Definition at line 65 of file mpegstreamdata.cpp.
| MPEGStreamData::~MPEGStreamData | ( | ) | [virtual] |
Definition at line 94 of file mpegstreamdata.cpp.
| void MPEGStreamData::SetCaching | ( | bool | cacheTables | ) | [inline] |
Definition at line 97 of file mpegstreamdata.h.
Referenced by TVRec::SetupDTVSignalMonitor().
| void MPEGStreamData::SetListeningDisabled | ( | bool | lt | ) | [inline] |
Definition at line 98 of file mpegstreamdata.h.
Referenced by ASIRecorder::ASIRecorder().
| virtual void MPEGStreamData::Reset | ( | void | ) | [inline, virtual] |
Reimplemented in ATSCStreamData, DVBStreamData, and ScanStreamData.
Definition at line 100 of file mpegstreamdata.h.
Referenced by MpegRecorder::PauseAndWait(), IPTVRecorder::PauseAndWait(), MpegRecorder::Reset(), Reset(), ASIRecorder::run(), SetDesiredProgram(), TVRec::SetupDTVSignalMonitor(), and ~MPEGStreamData().
| void MPEGStreamData::Reset | ( | int | desiredProgram | ) | [virtual] |
Reimplemented in ATSCStreamData.
Definition at line 172 of file mpegstreamdata.cpp.
| double MPEGStreamData::TimeOffset | ( | void | ) | const |
Current Offset from computer time to DVB time in seconds.
Definition at line 878 of file mpegstreamdata.cpp.
| void MPEGStreamData::SetEITHelper | ( | EITHelper * | eit_helper | ) | [virtual] |
Implements EITSource.
Definition at line 160 of file mpegstreamdata.cpp.
| void MPEGStreamData::SetEITRate | ( | float | rate | ) | [virtual] |
Implements EITSource.
Definition at line 166 of file mpegstreamdata.cpp.
| virtual bool MPEGStreamData::HasEITPIDChanges | ( | const uint_vec_t & | ) | const [inline, virtual] |
Reimplemented in DVBStreamData, ATSCStreamData, and ScanStreamData.
Definition at line 109 of file mpegstreamdata.h.
Referenced by StreamHandler::UpdateListeningForEIT().
| virtual bool MPEGStreamData::GetEITPIDChanges | ( | const uint_vec_t & | , |
| uint_vec_t & | , | ||
| uint_vec_t & | |||
| ) | const [inline, virtual] |
Reimplemented in DVBStreamData, ATSCStreamData, and ScanStreamData.
Definition at line 111 of file mpegstreamdata.h.
Referenced by StreamHandler::UpdateListeningForEIT().
| void MPEGStreamData::SetIgnoreCRC | ( | bool | haveCRCbug | ) | [inline] |
Definition at line 117 of file mpegstreamdata.h.
Referenced by apply_broken_dvb_driver_crc_hack().
| bool MPEGStreamData::IsRedundant | ( | uint | pid, |
| const PSIPTable & | psip | ||
| ) | const [virtual] |
Returns true if table already seen.
Reimplemented in DVBStreamData, ATSCStreamData, and ScanStreamData.
Definition at line 689 of file mpegstreamdata.cpp.
Referenced by HandleTables(), HandleTSTables(), ATSCStreamData::IsRedundant(), and DVBStreamData::IsRedundant().
| bool MPEGStreamData::HandleTables | ( | uint | pid, |
| const PSIPTable & | psip | ||
| ) | [virtual] |
Assembles PSIP packets and processes them.
Reimplemented in DVBStreamData, ATSCStreamData, and ScanStreamData.
Definition at line 722 of file mpegstreamdata.cpp.
Referenced by ATSCStreamData::HandleTables(), DVBStreamData::HandleTables(), HandleTSTables(), and ASIRecorder::run().
| void MPEGStreamData::HandleTSTables | ( | const TSPacket * | tspacket | ) | [virtual] |
Assembles PSIP packets and processes them.
Definition at line 917 of file mpegstreamdata.cpp.
Referenced by IPTVRecorder::ProcessTSPacket(), FirewireRecorder::ProcessTSPacket(), and ProcessTSPacket().
| bool MPEGStreamData::ProcessTSPacket | ( | const TSPacket & | tspacket | ) | [virtual] |
Definition at line 1044 of file mpegstreamdata.cpp.
Referenced by ProcessData().
| int MPEGStreamData::ProcessData | ( | const unsigned char * | buffer, |
| int | len | ||
| ) | [virtual] |
Definition at line 1004 of file mpegstreamdata.cpp.
Referenced by IPTVSignalMonitor::AddData(), FirewireSignalMonitor::AddData(), pid_printer(), and MpegRecorder::run().
| void MPEGStreamData::HandleAdaptationFieldControl | ( | const TSPacket * | tspacket | ) | [inline] |
Definition at line 458 of file mpegstreamdata.h.
Referenced by IPTVRecorder::ProcessTSPacket(), and FirewireRecorder::ProcessTSPacket().
| virtual void MPEGStreamData::AddListeningPID | ( | uint | pid, |
| PIDPriority | priority = kPIDPriorityNormal |
||
| ) | [inline, virtual] |
Definition at line 126 of file mpegstreamdata.h.
Referenced by AddEncryptionTestPID(), ApplyCachedPids(), ATSCStreamData::ATSCStreamData(), CreatePATSingleProgram(), CreatePMTSingleProgram(), DVBStreamData::DVBStreamData(), DTVSignalMonitor::HandleMGT(), DTVRecorder::HandlePAT(), DTVSignalMonitor::HandlePAT(), ChannelScanSM::HandlePAT(), PrintMPEGStreamListener::HandlePAT(), MPEGStreamData(), pid_printer(), PrintMPEGStreamListener::PrintMPEGStreamListener(), ProcessCAT(), ScanStreamData::Reset(), DVBStreamData::Reset(), ATSCStreamData::Reset(), Reset(), DVBRecorder::run(), ASIRecorder::run(), IPTVSignalMonitor::RunTableMonitor(), DTVSignalMonitor::SetDVBService(), StreamHandler::UpdateListeningForEIT(), DTVSignalMonitor::UpdateListeningForEIT(), and DVBSignalMonitor::UpdateValues().
| virtual void MPEGStreamData::AddNotListeningPID | ( | uint | pid | ) | [inline, virtual] |
Definition at line 129 of file mpegstreamdata.h.
| virtual void MPEGStreamData::AddWritingPID | ( | uint | pid, |
| PIDPriority | priority = kPIDPriorityHigh |
||
| ) | [inline, virtual] |
Definition at line 131 of file mpegstreamdata.h.
Referenced by CreatePMTSingleProgram(), PrintMPEGStreamListener::HandlePMT(), and pid_printer().
| virtual void MPEGStreamData::AddAudioPID | ( | uint | pid, |
| PIDPriority | priority = kPIDPriorityHigh |
||
| ) | [inline, virtual] |
Definition at line 134 of file mpegstreamdata.h.
Referenced by CreatePMTSingleProgram().
| virtual void MPEGStreamData::RemoveListeningPID | ( | uint | pid | ) | [inline, virtual] |
Definition at line 138 of file mpegstreamdata.h.
Referenced by RemoveEncryptionTestPIDs(), StreamHandler::UpdateListeningForEIT(), and DTVSignalMonitor::UpdateListeningForEIT().
| virtual void MPEGStreamData::RemoveNotListeningPID | ( | uint | pid | ) | [inline, virtual] |
Definition at line 139 of file mpegstreamdata.h.
| virtual void MPEGStreamData::RemoveWritingPID | ( | uint | pid | ) | [inline, virtual] |
Definition at line 141 of file mpegstreamdata.h.
| virtual void MPEGStreamData::RemoveAudioPID | ( | uint | pid | ) | [inline, virtual] |
Definition at line 142 of file mpegstreamdata.h.
| bool MPEGStreamData::IsListeningPID | ( | uint | pid | ) | const [virtual] |
Definition at line 1109 of file mpegstreamdata.cpp.
Referenced by DTVRecorder::HandlePAT(), IPTVRecorder::ProcessTSPacket(), and ProcessTSPacket().
| bool MPEGStreamData::IsNotListeningPID | ( | uint | pid | ) | const [virtual] |
Definition at line 1117 of file mpegstreamdata.cpp.
Referenced by IsListeningPID().
| bool MPEGStreamData::IsWritingPID | ( | uint | pid | ) | const [virtual] |
Definition at line 1123 of file mpegstreamdata.cpp.
Referenced by IPTVRecorder::ProcessTSPacket(), and ProcessTSPacket().
| bool MPEGStreamData::IsVideoPID | ( | uint | pid | ) | const [inline] |
Definition at line 147 of file mpegstreamdata.h.
Referenced by ProcessTSPacket().
| bool MPEGStreamData::IsAudioPID | ( | uint | pid | ) | const [virtual] |
Definition at line 1129 of file mpegstreamdata.cpp.
Referenced by IPTVRecorder::ProcessTSPacket(), and ProcessTSPacket().
| const pid_map_t& MPEGStreamData::ListeningPIDs | ( | void | ) | const [inline] |
Definition at line 151 of file mpegstreamdata.h.
| const pid_map_t& MPEGStreamData::AudioPIDs | ( | void | ) | const [inline] |
Definition at line 153 of file mpegstreamdata.h.
| const pid_map_t& MPEGStreamData::WritingPIDs | ( | void | ) | const [inline] |
Definition at line 155 of file mpegstreamdata.h.
| uint MPEGStreamData::GetPIDs | ( | pid_map_t & | pids | ) | const |
Definition at line 1135 of file mpegstreamdata.cpp.
| PIDPriority MPEGStreamData::GetPIDPriority | ( | uint | pid | ) | const |
Definition at line 1157 of file mpegstreamdata.cpp.
| void MPEGStreamData::SetVersionPAT | ( | uint | tsid, |
| int | version, | ||
| uint | last_section | ||
| ) | [inline] |
Definition at line 164 of file mpegstreamdata.h.
Referenced by FirewireSignalMonitor::HandlePAT(), DTVSignalMonitor::HandlePAT(), and HandleTables().
| int MPEGStreamData::VersionPAT | ( | uint | tsid | ) | const [inline] |
Definition at line 171 of file mpegstreamdata.h.
Referenced by IsRedundant().
| void MPEGStreamData::SetVersionCAT | ( | uint | tsid, |
| int | version, | ||
| uint | last_section | ||
| ) | [inline] |
Definition at line 179 of file mpegstreamdata.h.
Referenced by HandleTables().
| int MPEGStreamData::VersionCAT | ( | uint | tsid | ) | const [inline] |
Definition at line 186 of file mpegstreamdata.h.
Referenced by IsRedundant().
| void MPEGStreamData::SetVersionPMT | ( | uint | program_num, |
| int | version, | ||
| uint | last_section | ||
| ) | [inline] |
Definition at line 194 of file mpegstreamdata.h.
Referenced by FirewireSignalMonitor::HandlePMT(), and HandleTables().
| int MPEGStreamData::VersionPMT | ( | uint | prog_num | ) | const [inline] |
Definition at line 201 of file mpegstreamdata.h.
Referenced by IsRedundant().
| void MPEGStreamData::SetPATSectionSeen | ( | uint | tsid, |
| uint | section | ||
| ) |
Definition at line 1193 of file mpegstreamdata.cpp.
Referenced by HandleTables().
| bool MPEGStreamData::PATSectionSeen | ( | uint | tsid, |
| uint | section | ||
| ) | const |
Definition at line 1204 of file mpegstreamdata.cpp.
Referenced by IsRedundant().
| bool MPEGStreamData::HasAllPATSections | ( | uint | tsid | ) | const |
Definition at line 1212 of file mpegstreamdata.cpp.
| void MPEGStreamData::SetCATSectionSeen | ( | uint | tsid, |
| uint | section | ||
| ) |
Definition at line 1223 of file mpegstreamdata.cpp.
Referenced by HandleTables().
| bool MPEGStreamData::CATSectionSeen | ( | uint | tsid, |
| uint | section | ||
| ) | const |
Definition at line 1234 of file mpegstreamdata.cpp.
Referenced by IsRedundant().
| bool MPEGStreamData::HasAllCATSections | ( | uint | tsid | ) | const |
Definition at line 1242 of file mpegstreamdata.cpp.
| void MPEGStreamData::SetPMTSectionSeen | ( | uint | prog_num, |
| uint | section | ||
| ) |
Definition at line 1253 of file mpegstreamdata.cpp.
Referenced by HandleTables().
| bool MPEGStreamData::PMTSectionSeen | ( | uint | prog_num, |
| uint | section | ||
| ) | const |
Definition at line 1264 of file mpegstreamdata.cpp.
Referenced by IsRedundant().
| bool MPEGStreamData::HasAllPMTSections | ( | uint | prog_num | ) | const |
Definition at line 1272 of file mpegstreamdata.cpp.
| bool MPEGStreamData::HasProgram | ( | uint | progNum | ) | const |
Definition at line 1283 of file mpegstreamdata.cpp.
Referenced by ATSCStreamData::HasChannel(), and TVRec::TuningOnSameMultiplex().
| bool MPEGStreamData::HasCachedAllPAT | ( | uint | tsid | ) | const |
Definition at line 1292 of file mpegstreamdata.cpp.
Referenced by HasCachedAllPMTs(), and ChannelScanSM::UpdateChannelInfo().
| bool MPEGStreamData::HasCachedAnyPAT | ( | uint | tsid | ) | const |
Definition at line 1311 of file mpegstreamdata.cpp.
Referenced by ChannelScanSM::HasTimedOut().
| bool MPEGStreamData::HasCachedAnyPAT | ( | void | ) | const |
Definition at line 1322 of file mpegstreamdata.cpp.
| bool MPEGStreamData::HasCachedAllCAT | ( | uint | tsid | ) | const |
Definition at line 1328 of file mpegstreamdata.cpp.
| bool MPEGStreamData::HasCachedAnyCAT | ( | uint | tsid | ) | const |
Definition at line 1347 of file mpegstreamdata.cpp.
| bool MPEGStreamData::HasCachedAnyCAT | ( | void | ) | const |
Definition at line 1358 of file mpegstreamdata.cpp.
| bool MPEGStreamData::HasCachedAllPMT | ( | uint | program_num | ) | const |
Definition at line 1364 of file mpegstreamdata.cpp.
Referenced by HasCachedAllPMTs().
| bool MPEGStreamData::HasCachedAnyPMT | ( | uint | program_num | ) | const |
Definition at line 1383 of file mpegstreamdata.cpp.
| bool MPEGStreamData::HasCachedAllPMTs | ( | void | ) | const |
Definition at line 1394 of file mpegstreamdata.cpp.
Referenced by ChannelScanSM::UpdateChannelInfo().
| bool MPEGStreamData::HasCachedAnyPMTs | ( | void | ) | const |
Definition at line 1416 of file mpegstreamdata.cpp.
Referenced by ChannelScanSM::HasTimedOut().
| const pat_ptr_t MPEGStreamData::GetCachedPAT | ( | uint | tsid, |
| uint | section_num | ||
| ) | const |
Definition at line 1422 of file mpegstreamdata.cpp.
Referenced by GetCachedPATs().
| pat_vec_t MPEGStreamData::GetCachedPATs | ( | uint | tsid | ) | const |
Definition at line 1436 of file mpegstreamdata.cpp.
Referenced by ChannelScanSM::UpdateChannelInfo().
| pat_vec_t MPEGStreamData::GetCachedPATs | ( | void | ) | const |
Definition at line 1451 of file mpegstreamdata.cpp.
Referenced by SetDesiredProgram().
| pat_map_t MPEGStreamData::GetCachedPATMap | ( | void | ) | const |
| const cat_ptr_t MPEGStreamData::GetCachedCAT | ( | uint | tsid, |
| uint | section_num | ||
| ) | const |
Definition at line 1467 of file mpegstreamdata.cpp.
Referenced by GetCachedCATs().
| cat_vec_t MPEGStreamData::GetCachedCATs | ( | uint | tsid | ) | const |
Definition at line 1481 of file mpegstreamdata.cpp.
| cat_vec_t MPEGStreamData::GetCachedCATs | ( | void | ) | const |
Definition at line 1496 of file mpegstreamdata.cpp.
| cat_map_t MPEGStreamData::GetCachedCATMap | ( | void | ) | const |
| const pmt_ptr_t MPEGStreamData::GetCachedPMT | ( | uint | program_num, |
| uint | section_num | ||
| ) | const |
Definition at line 1512 of file mpegstreamdata.cpp.
Referenced by HasProgram().
| pmt_vec_t MPEGStreamData::GetCachedPMTs | ( | void | ) | const |
Definition at line 1526 of file mpegstreamdata.cpp.
Referenced by SetDesiredProgram(), and ChannelScanSM::UpdateChannelInfo().
| pmt_map_t MPEGStreamData::GetCachedPMTMap | ( | void | ) | const |
Definition at line 1542 of file mpegstreamdata.cpp.
| void MPEGStreamData::ReturnCachedTable | ( | const PSIPTable * | psip | ) | const [virtual] |
Definition at line 1558 of file mpegstreamdata.cpp.
Referenced by GetPidsToCache(), HasProgram(), ReturnCachedCATTables(), ATSCStreamData::ReturnCachedCVCTTables(), ReturnCachedPATTables(), ReturnCachedPMTTables(), DVBStreamData::ReturnCachedSDTTables(), ATSCStreamData::ReturnCachedTVCTTables(), ATSCStreamData::SetDesiredChannel(), and DVBStreamData::SetDesiredService().
| void MPEGStreamData::ReturnCachedPATTables | ( | pat_vec_t & | pats | ) | const [virtual] |
Definition at line 1575 of file mpegstreamdata.cpp.
Referenced by ReturnCachedPATTables(), SetDesiredProgram(), and ChannelScanSM::UpdateChannelInfo().
| void MPEGStreamData::ReturnCachedPATTables | ( | pat_map_t & | pats | ) | const [virtual] |
Definition at line 1582 of file mpegstreamdata.cpp.
| void MPEGStreamData::ReturnCachedCATTables | ( | cat_vec_t & | cats | ) | const [virtual] |
Definition at line 1589 of file mpegstreamdata.cpp.
Referenced by ReturnCachedCATTables().
| void MPEGStreamData::ReturnCachedCATTables | ( | cat_map_t & | cats | ) | const [virtual] |
Definition at line 1596 of file mpegstreamdata.cpp.
| void MPEGStreamData::ReturnCachedPMTTables | ( | pmt_vec_t & | pmts | ) | const [virtual] |
Definition at line 1603 of file mpegstreamdata.cpp.
Referenced by ReturnCachedPMTTables(), SetDesiredProgram(), and ChannelScanSM::UpdateChannelInfo().
| void MPEGStreamData::ReturnCachedPMTTables | ( | pmt_map_t & | pmts | ) | const [virtual] |
Definition at line 1610 of file mpegstreamdata.cpp.
| void MPEGStreamData::AddEncryptionTestPID | ( | uint | pnum, |
| uint | pid, | ||
| bool | isvideo | ||
| ) |
Definition at line 1817 of file mpegstreamdata.cpp.
Referenced by TestDecryption().
Definition at line 1835 of file mpegstreamdata.cpp.
Referenced by ProcessEncryptedPacket().
| bool MPEGStreamData::IsEncryptionTestPID | ( | uint | pid | ) | const |
Definition at line 1879 of file mpegstreamdata.cpp.
Referenced by ProcessTSPacket().
| void MPEGStreamData::TestDecryption | ( | const ProgramMapTable * | pmt | ) |
Definition at line 1889 of file mpegstreamdata.cpp.
Referenced by DTVSignalMonitor::HandlePMT(), and ChannelScanSM::TestNextProgramEncryption().
Definition at line 1915 of file mpegstreamdata.cpp.
Referenced by Reset().
| bool MPEGStreamData::IsProgramDecrypted | ( | uint | pnum | ) | const |
Definition at line 1924 of file mpegstreamdata.cpp.
| bool MPEGStreamData::IsProgramEncrypted | ( | uint | pnum | ) | const |
Definition at line 1930 of file mpegstreamdata.cpp.
Definition at line 1709 of file mpegstreamdata.cpp.
Referenced by ChannelScanSM::ChannelScanSM(), pid_printer(), DTVRecorder::SetStreamData(), and DTVSignalMonitor::SetStreamData().
Definition at line 1721 of file mpegstreamdata.cpp.
Referenced by DTVSignalMonitor::SetStreamData().
| void MPEGStreamData::UpdatePAT | ( | const ProgramAssociationTable * | ) |
| void MPEGStreamData::UpdateCAT | ( | const ConditionalAccessTable * | ) |
| void MPEGStreamData::UpdatePMT | ( | uint | program_num, |
| const ProgramMapTable * | |||
| ) |
Definition at line 1736 of file mpegstreamdata.cpp.
Referenced by pid_printer(), HDHRRecorder::run(), CetonRecorder::run(), DVBRecorder::run(), MpegRecorder::run(), and ASIRecorder::run().
Definition at line 1748 of file mpegstreamdata.cpp.
Referenced by HDHRRecorder::run(), CetonRecorder::run(), DVBRecorder::run(), MpegRecorder::run(), and ASIRecorder::run().
Definition at line 1790 of file mpegstreamdata.cpp.
Referenced by IPTVRecorder::SetStreamData(), MpegRecorder::SetStreamData(), DTVRecorder::SetStreamData(), and FirewireRecorder::SetStreamData().
Definition at line 1802 of file mpegstreamdata.cpp.
Definition at line 1763 of file mpegstreamdata.cpp.
Referenced by HDHRRecorder::run(), CetonRecorder::run(), DVBRecorder::run(), MpegRecorder::run(), and ASIRecorder::run().
Definition at line 1775 of file mpegstreamdata.cpp.
Referenced by HDHRRecorder::run(), CetonRecorder::run(), DVBRecorder::run(), MpegRecorder::run(), and ASIRecorder::run().
Definition at line 110 of file mpegstreamdata.cpp.
Referenced by ATSCStreamData::SetDesiredChannel(), DVBStreamData::SetDesiredService(), DTVSignalMonitor::SetProgramNumber(), MpegRecorder::SetStreamData(), DTVRecorder::SetStreamData(), FirewireRecorder::SetStreamData(), and TVRec::TuningFrequency().
| void MPEGStreamData::SetPATSingleProgram | ( | ProgramAssociationTable * | pat | ) | [inline] |
Definition at line 434 of file mpegstreamdata.h.
Referenced by CreatePATSingleProgram(), Reset(), and ~MPEGStreamData().
| void MPEGStreamData::SetPMTSingleProgram | ( | ProgramMapTable * | pmt | ) | [inline] |
Definition at line 441 of file mpegstreamdata.h.
Referenced by CreatePMTSingleProgram(), Reset(), and ~MPEGStreamData().
| void MPEGStreamData::SetVideoStreamsRequired | ( | uint | num | ) | [inline] |
Definition at line 294 of file mpegstreamdata.h.
Referenced by SetRecordingType(), and TVRec::SetupDTVSignalMonitor().
| uint MPEGStreamData::GetVideoStreamsRequired | ( | ) | const [inline] |
Definition at line 296 of file mpegstreamdata.h.
| void MPEGStreamData::SetAudioStreamsRequired | ( | uint | num | ) | [inline] |
Definition at line 298 of file mpegstreamdata.h.
Referenced by SetRecordingType().
| uint MPEGStreamData::GetAudioStreamsRequired | ( | ) | const [inline] |
Definition at line 300 of file mpegstreamdata.h.
| void MPEGStreamData::SetRecordingType | ( | const QString & | recording_type | ) |
Definition at line 143 of file mpegstreamdata.cpp.
Referenced by MpegRecorder::run(), TVRec::SetupDTVSignalMonitor(), and TVRec::TuningNewRecorder().
| int MPEGStreamData::DesiredProgram | ( | void | ) | const [inline] |
Definition at line 305 of file mpegstreamdata.h.
Referenced by DTVRecorder::HandlePAT(), DTVRecorder::HandlePMT(), MpegRecorder::PauseAndWait(), IPTVRecorder::PauseAndWait(), MpegRecorder::Reset(), DTVRecorder::SetStreamData(), and FirewireRecorder::SetStreamData().
| uint MPEGStreamData::VideoPIDSingleProgram | ( | void | ) | const [inline] |
Definition at line 306 of file mpegstreamdata.h.
Referenced by IPTVRecorder::ProcessTSPacket().
| QString MPEGStreamData::GetRecordingType | ( | void | ) | const |
Definition at line 153 of file mpegstreamdata.cpp.
| const ProgramAssociationTable* MPEGStreamData::PATSingleProgram | ( | void | ) | const [inline] |
Definition at line 309 of file mpegstreamdata.h.
Referenced by CreatePMTSingleProgram(), HandleTSTables(), ProcessPAT(), MpegRecorder::RestartEncoding(), HDHRRecorder::run(), CetonRecorder::run(), DVBRecorder::run(), MpegRecorder::run(), and ASIRecorder::run().
| const ProgramMapTable* MPEGStreamData::PMTSingleProgram | ( | void | ) | const [inline] |
Definition at line 311 of file mpegstreamdata.h.
Referenced by HandleTSTables(), ProcessPMT(), IPTVRecorder::ProcessTSPacket(), MpegRecorder::RestartEncoding(), HDHRRecorder::run(), CetonRecorder::run(), DVBRecorder::run(), MpegRecorder::run(), and ASIRecorder::run().
| ProgramAssociationTable* MPEGStreamData::PATSingleProgram | ( | void | ) | [inline] |
Definition at line 314 of file mpegstreamdata.h.
| ProgramMapTable* MPEGStreamData::PMTSingleProgram | ( | void | ) | [inline] |
Definition at line 316 of file mpegstreamdata.h.
| int MPEGStreamData::VersionPATSingleProgram | ( | void | ) | const [inline] |
Definition at line 448 of file mpegstreamdata.h.
| int MPEGStreamData::VersionPMTSingleProgram | ( | void | ) | const [inline] |
Definition at line 453 of file mpegstreamdata.h.
| bool MPEGStreamData::CreatePATSingleProgram | ( | const ProgramAssociationTable & | pat | ) |
Definition at line 399 of file mpegstreamdata.cpp.
Referenced by ProcessPAT().
| bool MPEGStreamData::CreatePMTSingleProgram | ( | const ProgramMapTable & | pmt | ) |
Definition at line 507 of file mpegstreamdata.cpp.
Referenced by ProcessPMT().
| PSIPTable * MPEGStreamData::AssemblePSIP | ( | const TSPacket * | tspacket, |
| bool & | moreTablePackets | ||
| ) | [protected] |
PSIP packet assembler.
This is not a general purpose TS->PSIP packet converter, it is only designed to work with MPEG tables which comply with certain restrictions that simplify the conversion.
DVB TSPackets may contain multiple segments of the PSI stream. (see ISO 13818-1 section 2.4.3.3, particularly the definition of payload_unit_start_indicator, which indicates there is at least one segment start, but not limited to only one segment start.)
PSI stuffing bytes are 0xFF and will complete the remaining portion of the TSPacket. (Section 2.4.4)
| moreTablePackets | returns true if we need more packets |
Definition at line 260 of file mpegstreamdata.cpp.
Referenced by HandleTSTables().
| bool MPEGStreamData::AssemblePSIP | ( | PSIPTable & | psip, |
| TSPacket * | tspacket | ||
| ) | [protected] |
| void MPEGStreamData::SavePartialPSIP | ( | uint | pid, |
| PSIPTable * | packet | ||
| ) | [protected] |
Definition at line 1179 of file mpegstreamdata.cpp.
Referenced by AssemblePSIP().
| PSIPTable* MPEGStreamData::GetPartialPSIP | ( | uint | pid | ) | [inline, protected] |
Definition at line 331 of file mpegstreamdata.h.
Referenced by AssemblePSIP().
| void MPEGStreamData::ClearPartialPSIP | ( | uint | pid | ) | [inline, protected] |
Definition at line 333 of file mpegstreamdata.h.
| void MPEGStreamData::DeletePartialPSIP | ( | uint | pid | ) | [protected] |
Definition at line 228 of file mpegstreamdata.cpp.
Referenced by AssemblePSIP(), and Reset().
| void MPEGStreamData::ProcessPAT | ( | const ProgramAssociationTable * | pat | ) | [protected] |
Definition at line 791 of file mpegstreamdata.cpp.
Referenced by HandleTables(), and SetDesiredProgram().
| void MPEGStreamData::ProcessCAT | ( | const ConditionalAccessTable * | cat | ) | [protected] |
Definition at line 843 of file mpegstreamdata.cpp.
Referenced by HandleTables().
| void MPEGStreamData::ProcessPMT | ( | const ProgramMapTable * | pmt | ) | [protected] |
Definition at line 861 of file mpegstreamdata.cpp.
Referenced by HandleTables(), and SetDesiredProgram().
| void MPEGStreamData::ProcessEncryptedPacket | ( | const TSPacket & | tspacket | ) | [protected] |
counts en/decrypted packets to decide if a stream is en/decrypted
Definition at line 1949 of file mpegstreamdata.cpp.
Referenced by ProcessTSPacket().
| int MPEGStreamData::ResyncStream | ( | const unsigned char * | buffer, |
| int | curr_pos, | ||
| int | len | ||
| ) | [static, protected] |
Definition at line 1089 of file mpegstreamdata.cpp.
Referenced by ProcessData().
| void MPEGStreamData::UpdateTimeOffset | ( | uint64_t | si_utc_time | ) | [protected] |
Definition at line 892 of file mpegstreamdata.cpp.
Referenced by ATSCStreamData::HandleTables(), and DVBStreamData::HandleTables().
| void MPEGStreamData::IncrementRefCnt | ( | const PSIPTable * | psip | ) | const [protected] |
Definition at line 1617 of file mpegstreamdata.cpp.
Referenced by GetCachedCAT(), GetCachedCATs(), ATSCStreamData::GetCachedCVCT(), ATSCStreamData::GetCachedCVCTs(), ATSCStreamData::GetCachedMGT(), DVBStreamData::GetCachedNIT(), GetCachedPAT(), GetCachedPATs(), GetCachedPMT(), GetCachedPMTMap(), GetCachedPMTs(), DVBStreamData::GetCachedSDT(), DVBStreamData::GetCachedSDTs(), ATSCStreamData::GetCachedTVCT(), and ATSCStreamData::GetCachedTVCTs().
| bool MPEGStreamData::DeleteCachedTable | ( | PSIPTable * | psip | ) | const [protected, virtual] |
Reimplemented in DVBStreamData, ATSCStreamData, and ScanStreamData.
Definition at line 1623 of file mpegstreamdata.cpp.
Referenced by CacheCAT(), CachePAT(), CachePMT(), Reset(), and ReturnCachedTable().
| void MPEGStreamData::CachePAT | ( | const ProgramAssociationTable * | pat | ) | [protected] |
Definition at line 1667 of file mpegstreamdata.cpp.
Referenced by HandleTables().
| void MPEGStreamData::CacheCAT | ( | const ConditionalAccessTable * | pat | ) | [protected] |
Definition at line 1681 of file mpegstreamdata.cpp.
Referenced by HandleTables().
| void MPEGStreamData::CachePMT | ( | const ProgramMapTable * | pmt | ) | [protected] |
Definition at line 1695 of file mpegstreamdata.cpp.
Referenced by HandleTables().
QString MPEGStreamData::_sistandard [protected] |
Definition at line 353 of file mpegstreamdata.h.
Referenced by CreatePMTSingleProgram(), and TestDecryption().
bool MPEGStreamData::_have_CRC_bug [protected] |
Definition at line 355 of file mpegstreamdata.h.
Referenced by AssemblePSIP(), and HandleTSTables().
int MPEGStreamData::_local_utc_offset [protected] |
Definition at line 357 of file mpegstreamdata.h.
Referenced by MPEGStreamData().
QMutex MPEGStreamData::_si_time_lock [mutable, protected] |
Definition at line 359 of file mpegstreamdata.h.
Referenced by TimeOffset(), and UpdateTimeOffset().
uint MPEGStreamData::_si_time_offset_cnt [protected] |
Definition at line 360 of file mpegstreamdata.h.
Referenced by TimeOffset(), and UpdateTimeOffset().
uint MPEGStreamData::_si_time_offset_indx [protected] |
Definition at line 361 of file mpegstreamdata.h.
Referenced by UpdateTimeOffset().
double MPEGStreamData::_si_time_offsets[16] [protected] |
Definition at line 362 of file mpegstreamdata.h.
Referenced by MPEGStreamData(), TimeOffset(), and UpdateTimeOffset().
EITHelper* MPEGStreamData::_eit_helper [protected] |
Definition at line 365 of file mpegstreamdata.h.
Referenced by ATSCStreamData::HandleTables(), DVBStreamData::HandleTables(), and SetEITHelper().
float MPEGStreamData::_eit_rate [protected] |
Definition at line 366 of file mpegstreamdata.h.
Referenced by ATSCStreamData::GetEITPIDChanges(), DVBStreamData::GetEITPIDChanges(), ATSCStreamData::HasEITPIDChanges(), DVBStreamData::HasEITPIDChanges(), and SetEITRate().
pid_map_t MPEGStreamData::_pids_listening [protected] |
Definition at line 369 of file mpegstreamdata.h.
Referenced by GetPIDPriority(), GetPIDs(), IsListeningPID(), ScanStreamData::Reset(), Reset(), and ScanStreamData::ScanStreamData().
pid_map_t MPEGStreamData::_pids_notlistening [protected] |
Definition at line 370 of file mpegstreamdata.h.
Referenced by GetPIDPriority(), IsNotListeningPID(), and Reset().
pid_map_t MPEGStreamData::_pids_writing [protected] |
Definition at line 371 of file mpegstreamdata.h.
Referenced by GetPIDPriority(), GetPIDs(), IsWritingPID(), and Reset().
pid_map_t MPEGStreamData::_pids_audio [protected] |
Definition at line 372 of file mpegstreamdata.h.
Referenced by CreatePMTSingleProgram(), GetPIDPriority(), GetPIDs(), IsAudioPID(), and Reset().
bool MPEGStreamData::_listening_disabled [protected] |
Definition at line 373 of file mpegstreamdata.h.
Referenced by IsListeningPID().
QMutex MPEGStreamData::_encryption_lock [mutable, protected] |
Definition at line 376 of file mpegstreamdata.h.
Referenced by AddEncryptionTestPID(), IsEncryptionTestPID(), IsProgramDecrypted(), IsProgramEncrypted(), ProcessEncryptedPacket(), RemoveEncryptionTestPIDs(), ResetDecryptionMonitoringState(), and TestDecryption().
QMap<uint, CryptInfo> MPEGStreamData::_encryption_pid_to_info [protected] |
Definition at line 377 of file mpegstreamdata.h.
Referenced by AddEncryptionTestPID(), IsEncryptionTestPID(), ProcessEncryptedPacket(), RemoveEncryptionTestPIDs(), and ResetDecryptionMonitoringState().
QMap<uint, uint_vec_t> MPEGStreamData::_encryption_pnum_to_pids [protected] |
Definition at line 378 of file mpegstreamdata.h.
Referenced by AddEncryptionTestPID(), ProcessEncryptedPacket(), RemoveEncryptionTestPIDs(), and ResetDecryptionMonitoringState().
QMap<uint, uint_vec_t> MPEGStreamData::_encryption_pid_to_pnums [protected] |
Definition at line 379 of file mpegstreamdata.h.
Referenced by AddEncryptionTestPID(), ProcessEncryptedPacket(), RemoveEncryptionTestPIDs(), and ResetDecryptionMonitoringState().
QMap<uint, CryptStatus> MPEGStreamData::_encryption_pnum_to_status [protected] |
Definition at line 380 of file mpegstreamdata.h.
Referenced by AddEncryptionTestPID(), IsProgramDecrypted(), IsProgramEncrypted(), and ProcessEncryptedPacket().
QMutex MPEGStreamData::_listener_lock [mutable, protected] |
Definition at line 383 of file mpegstreamdata.h.
Referenced by ATSCStreamData::AddATSC81EITListener(), ATSCStreamData::AddATSCAuxListener(), ATSCStreamData::AddATSCEITListener(), ATSCStreamData::AddATSCMainListener(), AddAVListener(), DVBStreamData::AddDVBEITListener(), DVBStreamData::AddDVBMainListener(), DVBStreamData::AddDVBOtherListener(), AddMPEGListener(), AddMPEGSPListener(), ATSCStreamData::AddSCTEMainListener(), AddWritingListener(), ATSCStreamData::GetATSCMajorMinor(), ATSCStreamData::GetEITPIDChanges(), DVBStreamData::GetEITPIDChanges(), ATSCStreamData::HandleTables(), DVBStreamData::HandleTables(), HandleTables(), HandleTSTables(), DVBStreamData::HasAnyEIT(), ATSCStreamData::HasATSCMajorMinorMap(), DVBStreamData::HasEIT(), ATSCStreamData::HasEITPIDChanges(), DVBStreamData::HasEITPIDChanges(), ProcessCAT(), ATSCStreamData::ProcessCVCT(), ProcessEncryptedPacket(), ATSCStreamData::ProcessMGT(), ProcessPAT(), ProcessPMT(), DVBStreamData::ProcessSDT(), ATSCStreamData::ProcessTVCT(), ATSCStreamData::RemoveATSC81EITListener(), ATSCStreamData::RemoveATSCAuxListener(), ATSCStreamData::RemoveATSCEITListener(), ATSCStreamData::RemoveATSCMainListener(), RemoveAVListener(), DVBStreamData::RemoveDVBEITListener(), DVBStreamData::RemoveDVBMainListener(), DVBStreamData::RemoveDVBOtherListener(), RemoveMPEGListener(), RemoveMPEGSPListener(), ATSCStreamData::RemoveSCTEMainListener(), RemoveWritingListener(), DVBStreamData::SetDishNetEIT(), SetEITHelper(), SetEITRate(), ScanStreamData::SetFreesatAdditionalSI(), ATSCStreamData::~ATSCStreamData(), DVBStreamData::~DVBStreamData(), and ~MPEGStreamData().
mpeg_listener_vec_t MPEGStreamData::_mpeg_listeners [protected] |
Definition at line 384 of file mpegstreamdata.h.
Referenced by AddMPEGListener(), HandleTables(), ProcessCAT(), ProcessEncryptedPacket(), ProcessPAT(), ProcessPMT(), RemoveMPEGListener(), and ~MPEGStreamData().
Definition at line 385 of file mpegstreamdata.h.
Referenced by AddMPEGSPListener(), HandleTSTables(), ProcessPAT(), ProcessPMT(), RemoveMPEGSPListener(), and ~MPEGStreamData().
Definition at line 386 of file mpegstreamdata.h.
Referenced by AddWritingListener(), ProcessTSPacket(), and RemoveWritingListener().
ts_av_listener_vec_t MPEGStreamData::_ts_av_listeners [protected] |
Definition at line 387 of file mpegstreamdata.h.
Referenced by AddAVListener(), ProcessTSPacket(), and RemoveAVListener().
QMap<uint, int> MPEGStreamData::_pat_version [protected] |
Definition at line 390 of file mpegstreamdata.h.
Referenced by Reset().
QMap<uint, int> MPEGStreamData::_cat_version [protected] |
Definition at line 391 of file mpegstreamdata.h.
QMap<uint, int> MPEGStreamData::_pmt_version [protected] |
Definition at line 392 of file mpegstreamdata.h.
Referenced by Reset().
sections_map_t MPEGStreamData::_pat_section_seen [protected] |
Definition at line 394 of file mpegstreamdata.h.
Referenced by HasAllPATSections(), PATSectionSeen(), Reset(), and SetPATSectionSeen().
sections_map_t MPEGStreamData::_cat_section_seen [protected] |
Definition at line 395 of file mpegstreamdata.h.
Referenced by CATSectionSeen(), HasAllCATSections(), and SetCATSectionSeen().
sections_map_t MPEGStreamData::_pmt_section_seen [protected] |
Definition at line 396 of file mpegstreamdata.h.
Referenced by HasAllPMTSections(), PMTSectionSeen(), Reset(), and SetPMTSectionSeen().
Definition at line 399 of file mpegstreamdata.h.
Referenced by DeletePartialPSIP(), Reset(), and SavePartialPSIP().
bool MPEGStreamData::_cache_tables [protected] |
Definition at line 402 of file mpegstreamdata.h.
Referenced by ATSCStreamData::HandleTables(), DVBStreamData::HandleTables(), and HandleTables().
QMutex MPEGStreamData::_cache_lock [mutable, protected] |
Definition at line 403 of file mpegstreamdata.h.
Referenced by CacheCAT(), ATSCStreamData::CacheCVCT(), ATSCStreamData::CacheMGT(), DVBStreamData::CacheNIT(), CachePAT(), CachePMT(), DVBStreamData::CacheSDT(), ATSCStreamData::CacheTVCT(), ATSCStreamData::DeleteCachedTable(), DVBStreamData::DeleteCachedTable(), DeleteCachedTable(), GetCachedCAT(), GetCachedCATs(), ATSCStreamData::GetCachedCVCT(), ATSCStreamData::GetCachedCVCTs(), ATSCStreamData::GetCachedMGT(), DVBStreamData::GetCachedNIT(), GetCachedPAT(), GetCachedPATs(), GetCachedPMT(), GetCachedPMTMap(), GetCachedPMTs(), DVBStreamData::GetCachedSDT(), DVBStreamData::GetCachedSDTs(), ATSCStreamData::GetCachedTVCT(), ATSCStreamData::GetCachedTVCTs(), ScanStreamData::GetSIStandard(), HasCachedAllCAT(), ATSCStreamData::HasCachedAllCVCTs(), DVBStreamData::HasCachedAllNIT(), HasCachedAllPAT(), HasCachedAllPMT(), HasCachedAllPMTs(), DVBStreamData::HasCachedAllSDT(), DVBStreamData::HasCachedAllSDTs(), ATSCStreamData::HasCachedAllTVCTs(), HasCachedAnyCAT(), ATSCStreamData::HasCachedAnyCVCTs(), DVBStreamData::HasCachedAnyNIT(), HasCachedAnyPAT(), HasCachedAnyPMT(), HasCachedAnyPMTs(), DVBStreamData::HasCachedAnySDT(), DVBStreamData::HasCachedAnySDTs(), ATSCStreamData::HasCachedAnyTVCTs(), ATSCStreamData::HasCachedCVCT(), DVBStreamData::HasCachedSDT(), ATSCStreamData::HasCachedTVCT(), IncrementRefCnt(), DVBStreamData::Reset(), ATSCStreamData::Reset(), Reset(), and ReturnCachedTable().
pat_cache_t MPEGStreamData::_cached_pats [mutable, protected] |
Definition at line 404 of file mpegstreamdata.h.
Referenced by CachePAT(), DeleteCachedTable(), GetCachedPAT(), GetCachedPATs(), HasCachedAllPAT(), HasCachedAllPMTs(), HasCachedAnyPAT(), and Reset().
cat_cache_t MPEGStreamData::_cached_cats [mutable, protected] |
Definition at line 405 of file mpegstreamdata.h.
Referenced by CacheCAT(), DeleteCachedTable(), GetCachedCAT(), GetCachedCATs(), HasCachedAllCAT(), HasCachedAnyCAT(), and Reset().
pmt_cache_t MPEGStreamData::_cached_pmts [mutable, protected] |
Definition at line 406 of file mpegstreamdata.h.
Referenced by CachePMT(), DeleteCachedTable(), GetCachedPMT(), GetCachedPMTMap(), GetCachedPMTs(), ScanStreamData::GetSIStandard(), HasCachedAllPMT(), HasCachedAnyPMT(), HasCachedAnyPMTs(), and Reset().
psip_refcnt_map_t MPEGStreamData::_cached_ref_cnt [mutable, protected] |
Definition at line 407 of file mpegstreamdata.h.
Referenced by ATSCStreamData::DeleteCachedTable(), DVBStreamData::DeleteCachedTable(), DeleteCachedTable(), IncrementRefCnt(), and ReturnCachedTable().
psip_refcnt_map_t MPEGStreamData::_cached_slated_for_deletion [mutable, protected] |
Definition at line 408 of file mpegstreamdata.h.
Referenced by ATSCStreamData::DeleteCachedTable(), DVBStreamData::DeleteCachedTable(), DeleteCachedTable(), ReturnCachedTable(), and ~MPEGStreamData().
int MPEGStreamData::_desired_program [protected] |
Definition at line 411 of file mpegstreamdata.h.
Referenced by CreatePATSingleProgram(), ProcessPAT(), ProcessPMT(), Reset(), SetDesiredProgram(), and DVBStreamData::~DVBStreamData().
QString MPEGStreamData::_recording_type [protected] |
Definition at line 412 of file mpegstreamdata.h.
Referenced by CreatePMTSingleProgram(), GetRecordingType(), Reset(), and SetRecordingType().
bool MPEGStreamData::_strip_pmt_descriptors [protected] |
Definition at line 413 of file mpegstreamdata.h.
Referenced by CreatePMTSingleProgram(), and Reset().
bool MPEGStreamData::_normalize_stream_type [protected] |
Definition at line 414 of file mpegstreamdata.h.
Referenced by Reset().
uint MPEGStreamData::_pid_video_single_program [protected] |
Definition at line 415 of file mpegstreamdata.h.
Referenced by CreatePMTSingleProgram(), GetPIDPriority(), GetPIDs(), and Reset().
uint MPEGStreamData::_pid_pmt_single_program [protected] |
Definition at line 416 of file mpegstreamdata.h.
Referenced by CreatePATSingleProgram(), CreatePMTSingleProgram(), HandleTSTables(), and Reset().
uint MPEGStreamData::_pmt_single_program_num_video [protected] |
Definition at line 417 of file mpegstreamdata.h.
Referenced by CreatePMTSingleProgram().
uint MPEGStreamData::_pmt_single_program_num_audio [protected] |
Definition at line 418 of file mpegstreamdata.h.
Referenced by CreatePMTSingleProgram().
Definition at line 419 of file mpegstreamdata.h.
ProgramMapTable* MPEGStreamData::_pmt_single_program [protected] |
Definition at line 420 of file mpegstreamdata.h.
bool MPEGStreamData::_invalid_pat_seen [private] |
Definition at line 424 of file mpegstreamdata.h.
Referenced by ProcessPAT(), and Reset().
bool MPEGStreamData::_invalid_pat_warning [private] |
Definition at line 425 of file mpegstreamdata.h.
Referenced by ProcessPAT().
MythTimer MPEGStreamData::_invalid_pat_timer [private] |
Definition at line 426 of file mpegstreamdata.h.
Referenced by ProcessPAT().
const unsigned char MPEGStreamData::bit_sel [static, protected] |
{
0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80,
}
Definition at line 429 of file mpegstreamdata.h.
Referenced by DVBStreamData::BATSectionSeen(), CATSectionSeen(), DVBStreamData::CITSectionSeen(), ATSCStreamData::EITSectionSeen(), DVBStreamData::EITSectionSeen(), DVBStreamData::NIToSectionSeen(), DVBStreamData::NITSectionSeen(), PATSectionSeen(), PMTSectionSeen(), DVBStreamData::SDToSectionSeen(), DVBStreamData::SDTSectionSeen(), DVBStreamData::SetBATSectionSeen(), SetCATSectionSeen(), DVBStreamData::SetCITSectionSeen(), ATSCStreamData::SetEITSectionSeen(), DVBStreamData::SetEITSectionSeen(), DVBStreamData::SetNIToSectionSeen(), DVBStreamData::SetNITSectionSeen(), SetPATSectionSeen(), SetPMTSectionSeen(), DVBStreamData::SetSDToSectionSeen(), and DVBStreamData::SetSDTSectionSeen().
1.7.6.1