#ifndef QT_DEVICEDESCRIPTOR_H_
#define QT_DEVICEDESCRIPTOR_H_
#include <iostream>
#include <string>
#include "DeviceDescriptor.h"
#include <QuickTime/QuickTime.h>
namespace avcap
{
class CaptureDevice;
class QT_Device;
class QT_DeviceDescriptor : public DeviceDescriptor
{
public:
private:
SeqGrabComponent mGrabber;
SGChannel mChannel;
VideoDigitizerComponent mDigitizer;
DigitizerInfo mDigiInfo;
int mDeviceID;
int mInputID;
bool mValid;
std::string mName;
std::string mDriver;
QT_Device* mDevice;
public:
QT_DeviceDescriptor(int device, int input, const std::string& dev_name, const std::string& driver_name,
SeqGrabComponent current_grabber, SGChannel current_channel);
QT_DeviceDescriptor();
virtual ~QT_DeviceDescriptor();
virtual CaptureDevice* getDevice();
virtual int open();
virtual int close();
virtual const std::string& getName() const;
virtual const std::string& getDriver() const;
bool isVideoCaptureDev() const;
virtual inline const DEV_HANDLE_T getHandle() const
{ return 0; }
inline SeqGrabComponent getGrabber(void)
{ return mGrabber; }
inline SGChannel getChannel(void)
{ return mChannel; }
inline VideoDigitizerComponent getDigitizer(void)
{ return mDigitizer; }
private:
bool queryCapabilities(SeqGrabComponent current_grabber, SGChannel current_channel);
};
}
#endif