This is a specialization of DTVRecorder used to handle DVB and ATSC streams from a firewire input. More...
#include <firewirerecorder.h>
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 | |
| FirewireChannel * | channel |
| bool | isopen |
| vector< unsigned char > | buffer |
Friends | |
| class | MPEGStreamData |
| class | TSPacketProcessor |
This is a specialization of DTVRecorder used to handle DVB and ATSC streams from a firewire input.
Definition at line 24 of file firewirerecorder.h.
| 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] |
| 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.
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.
| timeout | number of milliseconds to wait defaults to 100. |
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.
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.
friend class MPEGStreamData [friend] |
Definition at line 28 of file firewirerecorder.h.
friend class TSPacketProcessor [friend] |
Definition at line 29 of file firewirerecorder.h.
FirewireChannel* FirewireRecorder::channel [private] |
Definition at line 61 of file firewirerecorder.h.
Referenced by Close(), Open(), StartStreaming(), and StopStreaming().
bool FirewireRecorder::isopen [private] |
Definition at line 62 of file firewirerecorder.h.
vector<unsigned char> FirewireRecorder::buffer [private] |
Definition at line 63 of file firewirerecorder.h.
Referenced by AddData().
1.6.3