00001 #ifndef VIDEODEVICEINPUT_HPP
00002 #define VIDEODEVICEINPUT_HPP
00003
00004 #include <qobject.h>
00005 #include <qvector.h>
00006
00007 #include "VideoDeviceTuner.h"
00008
00009 class CVideoDevice;
00010
00011 class CVideoDeviceInput: public QObject
00012 {
00013 Q_OBJECT
00014 private:
00015 CVideoDevice *pVideo;
00016 int Channel;
00017 QVector <CVideoDeviceTuner>Tuners;
00018 int CurrentTuner;
00019
00020 QString Name;
00021 int Type;
00022
00023 int flags, Norm;
00024
00025 public:
00026 enum {
00027 Unknown,
00028 TV,
00029 Camera
00030 } InputTypes;
00031 enum {
00032 PAL,
00033 NTSC,
00034 SECAM,
00035 PAL_NC,
00036 PAL_M,
00037 PAL_N,
00038 NTSC_JAPAN,
00039 MAX,
00040 } TunerNorms;
00041
00042 CVideoDeviceInput(CVideoDevice *video, int channel);
00043
00044 int GetNumber() const;
00045 QString GetName() const;
00046 bool HasAudio() const;
00047 int GetType() const;
00048
00049 int GetTuners() const;
00050 int GetCurrentTuner() const;
00051 CVideoDeviceTuner *GetTuner(int number) const;
00052 bool SelectTuner(int number);
00053 void SetNorm(int norm);
00054
00055 bool Select();
00056 };
00057
00058
00059 #endif