HDHRRecorder Class Reference

#include <hdhrrecorder.h>

Inheritance diagram for HDHRRecorder:

DTVRecorder DVBMainStreamListener ATSCMainStreamListener MPEGStreamListener MPEGSingleProgramStreamListener RecorderBase

List of all members.


Detailed Description

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 *)
MPEGStreamDataGetStreamData (void)
ATSCStreamDataGetATSCStreamData (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

Constructor & Destructor Documentation

HDHRRecorder::HDHRRecorder ( TVRec rec,
HDHRChannel channel 
)

Definition at line 38 of file hdhrrecorder.cpp.

HDHRRecorder::~HDHRRecorder (  ) 

Definition at line 47 of file hdhrrecorder.cpp.


Member Function Documentation

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().

Returns:
true if device was successfully opened.

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   ) 

void HDHRRecorder::StartRecording ( void   )  [virtual]

StartRecording() starts the recording process, and does not exit until the recording is complete.

See also:
StopRecording()

Implements RecorderBase.

Definition at line 333 of file hdhrrecorder.cpp.

void HDHRRecorder::SetStreamData ( MPEGStreamData data  )  [virtual]

Reimplemented from DTVRecorder.

Definition at line 164 of file hdhrrecorder.cpp.

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]

Implements MPEGStreamListener.

Definition at line 197 of file hdhrrecorder.cpp.

void HDHRRecorder::HandleCAT ( const ConditionalAccessTable  )  [inline, virtual]

Implements MPEGStreamListener.

Definition at line 47 of file hdhrrecorder.h.

void HDHRRecorder::HandlePMT ( uint  pid,
const ProgramMapTable _pmt 
) [virtual]

Implements MPEGStreamListener.

Definition at line 227 of file hdhrrecorder.cpp.

void HDHRRecorder::HandleEncryptionStatus ( uint  ,
bool   
) [inline, virtual]

Implements MPEGStreamListener.

Definition at line 49 of file hdhrrecorder.h.

void HDHRRecorder::HandleSingleProgramPAT ( ProgramAssociationTable pat  )  [virtual]

Implements MPEGSingleProgramStreamListener.

Definition at line 242 of file hdhrrecorder.cpp.

void HDHRRecorder::HandleSingleProgramPMT ( ProgramMapTable pmt  )  [virtual]

Implements MPEGSingleProgramStreamListener.

Definition at line 252 of file hdhrrecorder.cpp.

void HDHRRecorder::HandleSTT ( const SystemTimeTable  )  [inline, virtual]

Implements ATSCMainStreamListener.

Definition at line 56 of file hdhrrecorder.h.

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]

Implements ATSCMainStreamListener.

Definition at line 58 of file hdhrrecorder.h.

void HDHRRecorder::HandleTDT ( const TimeDateTable  )  [inline, virtual]

Implements DVBMainStreamListener.

Definition at line 61 of file hdhrrecorder.h.

void HDHRRecorder::HandleNIT ( const NetworkInformationTable  )  [inline, virtual]

Implements DVBMainStreamListener.

Definition at line 62 of file hdhrrecorder.h.

void HDHRRecorder::HandleSDT ( uint  ,
const ServiceDescriptionTable  
) [inline, virtual]

Implements DVBMainStreamListener.

Definition at line 63 of file hdhrrecorder.h.

bool HDHRRecorder::AdjustFilters ( void   )  [private]

Definition at line 404 of file hdhrrecorder.cpp.

Referenced by StartRecording().

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().

bool HDHRRecorder::ProcessTSPacket ( const TSPacket tspacket  )  [private]

Definition at line 283 of file hdhrrecorder.cpp.

void HDHRRecorder::TeardownAll ( void   )  [private]

Definition at line 52 of file hdhrrecorder.cpp.

Referenced by ~HDHRRecorder().


Member Data Documentation

Definition at line 74 of file hdhrrecorder.h.

Referenced by AdjustFilters(), StartData(), and StartRecording().

Definition at line 75 of file hdhrrecorder.h.

Referenced by Close(), Open(), StartData(), and StartRecording().

Definition at line 78 of file hdhrrecorder.h.

Referenced by AdjustFilters(), HandlePAT(), and TeardownAll().

Definition at line 79 of file hdhrrecorder.h.

Referenced by AdjustFilters(), HandlePMT(), and TeardownAll().

Definition at line 80 of file hdhrrecorder.h.

Referenced by HandlePAT(), HandlePMT(), and StartRecording().

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().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:03 2010 for MythTV by  doxygen 1.5.5