00001 // -*- Mode: c++ -*- 00002 00003 #ifndef _IMPORT_RECORDER_H_ 00004 #define _IMPORT_RECORDER_H_ 00005 00006 #include <QMutex> 00007 00008 #include "dtvrecorder.h" 00009 #include "tspacket.h" 00010 #include "mpegstreamdata.h" 00011 #include "DeviceReadBuffer.h" 00012 00013 struct AVFormatContext; 00014 struct AVPacket; 00015 00022 class ImportRecorder : public DTVRecorder 00023 { 00024 public: 00025 ImportRecorder(TVRec*); 00026 ~ImportRecorder(); 00027 00028 // RecorderBase 00029 void SetOptionsFromProfile(RecordingProfile *profile, 00030 const QString &videodev, 00031 const QString &audiodev, 00032 const QString &vbidev); 00033 00034 void run(void); 00035 00036 bool Open(void); 00037 void Close(void); 00038 00039 void SetStreamData(void) {} 00040 00041 private: 00042 int _import_fd; 00043 }; 00044 00045 #endif // _IMPORT_RECORDER_H_
1.6.3