MythTV  master
asirecorder.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 /*
3  * Copyright (C) Daniel Kristjansson 2010
4  *
5  * Copyright notice is in asirecorder.cpp of the MythTV project.
6  */
7 
8 #ifndef _ASI_RECORDER_H_
9 #define _ASI_RECORDER_H_
10 
11 // MythTV includes
12 #include "dtvrecorder.h"
13 
14 class ASIStreamHandler;
15 class RecordingProfile;
16 class ASIChannel;
17 class QString;
18 class TVRec;
19 
55 class ASIRecorder : public DTVRecorder
56 {
57  public:
58  ASIRecorder(TVRec *rec, ASIChannel *channel);
59 
61  const QString &videodev,
62  const QString &audiodev,
63  const QString &vbidev) override; // RecorderBase
64 
65  void run(void) override; // RecorderBase
66 
67  bool Open(void);
68  bool IsOpen(void) const;
69  void Close(void);
70  void StartNewFile(void) override; // RecorderBase
71 
72  private:
75 };
76 
77 #endif // _ASI_RECORDER_H_
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:28
void SetOptionsFromProfile(RecordingProfile *profile, const QString &videodev, const QString &audiodev, const QString &vbidev) override
Sets basic recorder options.
Definition: asirecorder.cpp:57
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
Definition: asirecorder.cpp:83
bool Open(void)
ASIRecorder(TVRec *rec, ASIChannel *channel)
Definition: asirecorder.cpp:36
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:150
ASIChannel * m_channel
Definition: asirecorder.h:73
bool IsOpen(void) const
void Close(void)
This is a specialization of DTVRecorder used to handle streams from ASI drivers.
Definition: asirecorder.h:55
ASIStreamHandler * m_stream_handler
Definition: asirecorder.h:74
void StartNewFile(void) override
Definition: asirecorder.cpp:69