#include <hdhrrecorder.h>

Definition at line 20 of file hdhrrecorder.h.
Public Member Functions | |
| HDHRRecorder (TVRec *rec, HDHRChannel *channel) | |
| ~HDHRRecorder () | |
| void | SetOptionsFromProfile (RecordingProfile *profile, const QString &videodev, const QString &audiodev, const QString &vbidev) |
| Sets basic recorder options. | |
| bool | Open (void) |
| Open devices needed by recorder. | |
| bool | StartData (void) |
| Configure device to send video. | |
| void | Close (void) |
| void | StartRecording (void) |
| StartRecording() starts the recording process, and does not exit until the recording is complete. | |
| void | SetStreamData (MPEGStreamData *) |
| MPEGStreamData * | GetStreamData (void) |
| ATSCStreamData * | GetATSCStreamData (void) |
| void | HandlePAT (const ProgramAssociationTable *) |
| void | HandleCAT (const ConditionalAccessTable *) |
| void | HandlePMT (uint pid, const ProgramMapTable *) |
| void | HandleEncryptionStatus (uint, bool) |
| void | HandleSingleProgramPAT (ProgramAssociationTable *pat) |
| void | HandleSingleProgramPMT (ProgramMapTable *pmt) |
| void | HandleSTT (const SystemTimeTable *) |
| void | HandleMGT (const MasterGuideTable *) |
| Processes Master Guide Table, by enabling the scanning of all PIDs listed. | |
| void | HandleVCT (uint, const VirtualChannelTable *) |
| void | HandleTDT (const TimeDateTable *) |
| void | HandleNIT (const NetworkInformationTable *) |
| void | HandleSDT (uint, const ServiceDescriptionTable *) |
Private Member Functions | |
| bool | AdjustFilters (void) |
| bool | AdjustEITPIDs (void) |
| Adjusts EIT PID monitoring to monitor the right number of EIT PIDs. | |
| void | ProcessTSData (const unsigned char *buffer, int len) |
| bool | ProcessTSPacket (const TSPacket &tspacket) |
| void | TeardownAll (void) |
Private Attributes | |
| HDHRChannel * | _channel |
| struct hdhomerun_video_sock_t * | _video_socket |
| MPEGStreamData * | _stream_data |
| ProgramAssociationTable * | _input_pat |
| ProgramMapTable * | _input_pmt |
| bool | _reset_pid_filters |
| uint_vec_t | _eit_pids |
| QMutex | _pid_lock |
| HDHRRecorder::HDHRRecorder | ( | TVRec * | rec, | |
| HDHRChannel * | channel | |||
| ) |
Definition at line 38 of file hdhrrecorder.cpp.
| HDHRRecorder::~HDHRRecorder | ( | ) |
Definition at line 47 of file hdhrrecorder.cpp.
| void HDHRRecorder::SetOptionsFromProfile | ( | RecordingProfile * | profile, | |
| const QString & | videodev, | |||
| const QString & | audiodev, | |||
| const QString & | vbidev | |||
| ) | [virtual] |
Sets basic recorder options.
SetOptionsFromProfile is used to tell the recorder about the recording profile as well as the devices to use.
Implements RecorderBase.
Definition at line 75 of file hdhrrecorder.cpp.
| bool HDHRRecorder::Open | ( | void | ) | [virtual] |
Open devices needed by recorder.
This is usually called by StartRecording().
Implements RecorderBase.
Definition at line 94 of file hdhrrecorder.cpp.
Referenced by StartRecording(), and TVRec::TuningRestartRecorder().
| bool HDHRRecorder::StartData | ( | void | ) |
Configure device to send video.
Definition at line 127 of file hdhrrecorder.cpp.
Referenced by StartRecording(), and TVRec::TuningRestartRecorder().
| void HDHRRecorder::Close | ( | void | ) |
Definition at line 134 of file hdhrrecorder.cpp.
Referenced by TVRec::HandleTuning(), StartRecording(), TeardownAll(), and TVRec::TuningRestartRecorder().
| void HDHRRecorder::StartRecording | ( | void | ) | [virtual] |
StartRecording() starts the recording process, and does not exit until the recording is complete.
Implements RecorderBase.
Definition at line 333 of file hdhrrecorder.cpp.
| void HDHRRecorder::SetStreamData | ( | MPEGStreamData * | data | ) | [virtual] |
| MPEGStreamData* HDHRRecorder::GetStreamData | ( | void | ) | [inline, virtual] |
Reimplemented from DTVRecorder.
Definition at line 42 of file hdhrrecorder.h.
Referenced by AdjustEITPIDs(), and ProcessTSPacket().
| ATSCStreamData * HDHRRecorder::GetATSCStreamData | ( | void | ) |
Definition at line 192 of file hdhrrecorder.cpp.
| void HDHRRecorder::HandlePAT | ( | const ProgramAssociationTable * | _pat | ) | [virtual] |
| void HDHRRecorder::HandleCAT | ( | const ConditionalAccessTable * | ) | [inline, virtual] |
| void HDHRRecorder::HandlePMT | ( | uint | pid, | |
| const ProgramMapTable * | _pmt | |||
| ) | [virtual] |
| void HDHRRecorder::HandleSingleProgramPAT | ( | ProgramAssociationTable * | pat | ) | [virtual] |
| void HDHRRecorder::HandleSingleProgramPMT | ( | ProgramMapTable * | pmt | ) | [virtual] |
| void HDHRRecorder::HandleSTT | ( | const SystemTimeTable * | ) | [inline, virtual] |
| HDHRRecorder::HandleMGT | ( | const MasterGuideTable * | ) | [inline, virtual] |
Processes Master Guide Table, by enabling the scanning of all PIDs listed.
Implements ATSCMainStreamListener.
Definition at line 57 of file hdhrrecorder.h.
| void HDHRRecorder::HandleVCT | ( | uint | , | |
| const VirtualChannelTable * | ||||
| ) | [inline, virtual] |
| void HDHRRecorder::HandleTDT | ( | const TimeDateTable * | ) | [inline, virtual] |
| void HDHRRecorder::HandleNIT | ( | const NetworkInformationTable * | ) | [inline, virtual] |
| void HDHRRecorder::HandleSDT | ( | uint | , | |
| const ServiceDescriptionTable * | ||||
| ) | [inline, virtual] |
| bool HDHRRecorder::AdjustFilters | ( | void | ) | [private] |
| bool HDHRRecorder::AdjustEITPIDs | ( | void | ) | [private] |
Adjusts EIT PID monitoring to monitor the right number of EIT PIDs.
Definition at line 478 of file hdhrrecorder.cpp.
Referenced by AdjustFilters().
| void HDHRRecorder::ProcessTSData | ( | const unsigned char * | buffer, | |
| int | len | |||
| ) | [private] |
Referenced by StartRecording().
Definition at line 283 of file hdhrrecorder.cpp.
| void HDHRRecorder::TeardownAll | ( | void | ) | [private] |
HDHRChannel* HDHRRecorder::_channel [private] |
Definition at line 74 of file hdhrrecorder.h.
Referenced by AdjustFilters(), StartData(), and StartRecording().
struct hdhomerun_video_sock_t* HDHRRecorder::_video_socket [read, private] |
Definition at line 75 of file hdhrrecorder.h.
Referenced by Close(), Open(), StartData(), and StartRecording().
MPEGStreamData* HDHRRecorder::_stream_data [private] |
Definition at line 76 of file hdhrrecorder.h.
Referenced by AdjustFilters(), GetATSCStreamData(), GetStreamData(), HandlePAT(), HandlePMT(), ProcessTSPacket(), SetStreamData(), StartRecording(), and TeardownAll().
ProgramAssociationTable* HDHRRecorder::_input_pat [private] |
Definition at line 78 of file hdhrrecorder.h.
Referenced by AdjustFilters(), HandlePAT(), and TeardownAll().
ProgramMapTable* HDHRRecorder::_input_pmt [private] |
Definition at line 79 of file hdhrrecorder.h.
Referenced by AdjustFilters(), HandlePMT(), and TeardownAll().
bool HDHRRecorder::_reset_pid_filters [private] |
Definition at line 80 of file hdhrrecorder.h.
Referenced by HandlePAT(), HandlePMT(), and StartRecording().
uint_vec_t HDHRRecorder::_eit_pids [private] |
Definition at line 81 of file hdhrrecorder.h.
Referenced by AdjustEITPIDs(), AdjustFilters(), and StartRecording().
QMutex HDHRRecorder::_pid_lock [mutable, private] |
Definition at line 82 of file hdhrrecorder.h.
Referenced by AdjustEITPIDs(), AdjustFilters(), HandlePAT(), HandlePMT(), and StartRecording().
1.5.5