include/avcap/osx/QT_DeviceDescriptor.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2005, 2008 Nico Pranke <Nico.Pranke@googlemail.com>, Robin Luedtke <RobinLu@gmx.de>
00003  *
00004  * This file is part of avcap.
00005  *
00006  * avcap is free software: you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation, either version 3 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * avcap is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with avcap.  If not, see <http://www.gnu.org/licenses/>.
00018  */
00019 
00020 /* avcap is free for non-commercial use.
00021  * To use it in commercial endeavors, please contact Nico Pranke <Nico.Pranke@googlemail.com>.
00022  */
00023 
00024 
00025 #ifndef QT_DEVICEDESCRIPTOR_H_
00026 #define QT_DEVICEDESCRIPTOR_H_
00027 
00028 #include <iostream>
00029 #include <string>
00030 
00031 #include "DeviceDescriptor.h"
00032 #include <QuickTime/QuickTime.h>
00033 
00034 namespace avcap
00035 {
00036 class CaptureDevice;
00037 class QT_Device;
00038 
00040 
00041         class QT_DeviceDescriptor : public DeviceDescriptor
00042         {
00043         public:
00044 
00045         private:
00046                 SeqGrabComponent mGrabber;
00047                 SGChannel                mChannel;
00048                 VideoDigitizerComponent mDigitizer;
00049                 DigitizerInfo                   mDigiInfo;
00050 
00051                 int                              mDeviceID;
00052                 int                              mInputID;
00053                 bool                     mValid;
00054 
00055                 std::string              mName;
00056                 std::string              mDriver;
00057                 QT_Device*               mDevice;
00058 
00059         public:
00060                 QT_DeviceDescriptor(int device, int input, const std::string& dev_name, const std::string& driver_name,
00061                         SeqGrabComponent current_grabber, SGChannel current_channel);
00062 
00063                 QT_DeviceDescriptor();
00064 
00065                 virtual ~QT_DeviceDescriptor();
00066 
00067                 virtual CaptureDevice* getDevice();
00068 
00069                 virtual int open();
00070 
00071                 virtual int close();
00072 
00073                 virtual const std::string& getName() const;
00074 
00075                 virtual const std::string& getDriver() const;
00076 
00077                 bool isVideoCaptureDev() const;
00078 
00079                 virtual inline const DEV_HANDLE_T getHandle() const
00080                         { return 0; }
00081 
00083 
00084                 inline SeqGrabComponent getGrabber(void)
00085                         { return mGrabber; }
00086 
00088 
00089                 inline SGChannel getChannel(void)
00090                         { return mChannel; }
00091 
00093 
00094                 inline VideoDigitizerComponent getDigitizer(void)
00095                         { return mDigitizer; }
00096 
00097         private:
00098                 bool queryCapabilities(SeqGrabComponent current_grabber, SGChannel current_channel);
00099 
00100         };
00101 }
00102 
00103 #endif // QT_DEVICEDESCRIPTOR_H_

Generated on Mon Nov 30 11:10:30 2009 for avcap-0.1 by  doxygen 1.5.1