Camstream: CamStream API documentation

Main Page Class Hierarchy Compound List File List Compound Members File Members

# VideoDeviceTuner.h

Go to the documentation of this file.

    00001 #ifndef VIDEODEVICETUNER_HPP
    00002 #define VIDEODEVICETUNER_HPP
    00003
    00004 #ifdef HAVE_CONFIG_H
    00005 #include <config.h>
    00006 #endif
    00007
    00008 #include <qobject.h>
    00009
    00010 class CVideoDevice;
    00011
    00012 class CVideoDeviceTuner: public QObject
    00013 {
    00014    Q_OBJECT
    00015 private:
    00016    CVideoDevice *pVideo;
    00017    int Tuner;
    00018
    00019    QString Name;
    00020    int Flags, Norm;
    00021    float FreqLow, FreqHigh;
    00022    float FreqStep;
    00023    ulong ufreq;
    00024
    00025 public:
    00026    enum {
    00027      PAL,
    00028      NTSC,
    00029      SECAM,
    00030      PAL_NC,
    00031      PAL_M,
    00032      PAL_N,
    00033      NTSC_JAPAN,
    00034      MAX,
    00035    } TunerNorms;
    00036
    00037    CVideoDeviceTuner(CVideoDevice *_video, int _tuner);
    00038
    00039    const QString GetName();
    00040
    00041    float GetLowestFrequency() const;
    00042    float GetHighestFrequency() const;
    00043    float GetFrequency() const;
    00044    bool SetFrequency(float freq);
    00045
    00046    bool HasNorm() const;
    00047    void SetNorm(int norm);
    00048    int GetNorm() const;
    00049 };
    00050
    00051 #endif