FirewireRecorder Class Reference

This is a specialization of DTVRecorder used to handle DVB and ATSC streams from a firewire input. More...

#include <firewirerecorder.h>

Inheritance diagram for FirewireRecorder:
DTVRecorder TSDataListener RecorderBase MPEGStreamListener MPEGSingleProgramStreamListener DVBMainStreamListener ATSCMainStreamListener TSPacketListener TSPacketListenerAV

List of all members.

Public Member Functions

 FirewireRecorder (TVRec *rec, FirewireChannel *chan)
virtual ~FirewireRecorder ()
bool Open (void)
void Close (void)
void StartStreaming (void)
void StopStreaming (void)
void run (void)
 run() starts the recording process, and does not exit until the recording is complete.
bool PauseAndWait (int timeout=100)
 If request_pause is true, sets pause and blocks up to timeout milliseconds or until unpaused, whichever is sooner.
void AddData (const unsigned char *data, uint dataSize)
 Callback function to add MPEG2 TS data.
bool ProcessTSPacket (const TSPacket &tspacket)
void SetOptionsFromProfile (RecordingProfile *profile, const QString &videodev, const QString &audiodev, const QString &vbidev)
 Sets basic recorder options.
void SetStreamData (void)

Protected Member Functions

 FirewireRecorder (TVRec *rec)

Private Attributes

FirewireChannelchannel
bool isopen
vector< unsigned char > buffer

Friends

class MPEGStreamData
class TSPacketProcessor

Detailed Description

This is a specialization of DTVRecorder used to handle DVB and ATSC streams from a firewire input.

See also:
DTVRecorder

Definition at line 24 of file firewirerecorder.h.


Constructor & Destructor Documentation

FirewireRecorder::FirewireRecorder ( TVRec rec,
FirewireChannel chan 
)

Definition at line 17 of file firewirerecorder.cpp.

FirewireRecorder::~FirewireRecorder (  )  [virtual]

Definition at line 23 of file firewirerecorder.cpp.

FirewireRecorder::FirewireRecorder ( TVRec rec  )  [protected]

Member Function Documentation

bool FirewireRecorder::Open ( void   ) 

Definition at line 28 of file firewirerecorder.cpp.

Referenced by run().

void FirewireRecorder::Close ( void   ) 

Definition at line 38 of file firewirerecorder.cpp.

Referenced by ~FirewireRecorder().

void FirewireRecorder::StartStreaming ( void   ) 

Definition at line 47 of file firewirerecorder.cpp.

Referenced by PauseAndWait(), and run().

void FirewireRecorder::StopStreaming ( void   ) 

Definition at line 52 of file firewirerecorder.cpp.

Referenced by PauseAndWait(), and run().

void FirewireRecorder::run ( void   )  [virtual]

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

See also:
StopRecording()

Implements RecorderBase.

Definition at line 57 of file firewirerecorder.cpp.

bool FirewireRecorder::PauseAndWait ( int  timeout = 100  )  [virtual]

If request_pause is true, sets pause and blocks up to timeout milliseconds or until unpaused, whichever is sooner.

This is the where we actually do the pausing. For most recorders that need to do something special on pause, this is the method to overide.

Parameters:
timeout number of milliseconds to wait defaults to 100.
Returns:
true if recorder is paused.

Reimplemented from RecorderBase.

Definition at line 191 of file firewirerecorder.cpp.

Referenced by run().

void FirewireRecorder::AddData ( const unsigned char *  data,
uint  dataSize 
) [virtual]

Callback function to add MPEG2 TS data.

Implements TSDataListener.

Definition at line 102 of file firewirerecorder.cpp.

bool FirewireRecorder::ProcessTSPacket ( const TSPacket tspacket  )  [virtual]

Reimplemented from DTVRecorder.

Definition at line 144 of file firewirerecorder.cpp.

Referenced by AddData().

void FirewireRecorder::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.

Reimplemented from DTVRecorder.

Definition at line 179 of file firewirerecorder.cpp.

void FirewireRecorder::SetStreamData ( void   )  [virtual]

Reimplemented from DTVRecorder.

Definition at line 220 of file firewirerecorder.cpp.


Friends And Related Function Documentation

friend class MPEGStreamData [friend]

Definition at line 28 of file firewirerecorder.h.

friend class TSPacketProcessor [friend]

Definition at line 29 of file firewirerecorder.h.


Member Data Documentation

Definition at line 61 of file firewirerecorder.h.

Referenced by Close(), Open(), StartStreaming(), and StopStreaming().

Definition at line 62 of file firewirerecorder.h.

Referenced by Close(), and Open().

vector<unsigned char> FirewireRecorder::buffer [private]

Definition at line 63 of file firewirerecorder.h.

Referenced by AddData().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:03 2012 for MythTV by  doxygen 1.6.3