ml::QTVideoCapture Class Reference

QTKit Video Capture encapsulation. More...

#include <macVideoCapture.h>

Inheritance diagram for ml::QTVideoCapture:

ml::VCVideoCaptureInterface

List of all members.

Public Member Functions

 QTVideoCapture ()
 C-tor.
virtual ~QTVideoCapture ()
 D-tor.
virtual std::string getHumanReadableName ()
 Get driver name suitable for display.
virtual std::map< std::string,
std::string > 
inputDevices ()
 key: unique identifier that is persistent on one computer across device connections and disconnections (UTF8) val: localized human-readable name for the device (UTF8)
virtual std::string defaultInputDevice ()
 Get unique identifier of default video input device (UTF8).
virtual bool isInputDeviceAvailable (const std::string &inputDevice)
 Is the video input device with the given unique identifier available? (UTF8).
virtual std::map< std::string,
std::string > 
getVideoFormatsSupport (const std::string &inputDevice)
 Get video formats supported by the given device (unique identifier) (UTF8) key: unique identifier of the format (UTF8) val: localized human-readable name of the format (UTF8).
virtual std::string defaultVideoFormat (const std::string &inputDevice)
 Get unique identifier of default video format supported by the given device (unique identifier) (UTF8).
virtual std::list
< VCVideoFrameSize
getVideoFrameSizesSupport (const std::string &inputDevice)
 Get list of video frame sizes supported by the given device (unique identifier) (UTF8).
virtual bool startCapture (const std::string &inputDevice, const std::string &inputFormat, const VCVideoFrameSize &size=VCVideoFrameSize(), int frameRate=0)
 Starts video stream capture using the video input device & format with the given unique identifiers (UTF8).
virtual void stopCapture ()
 Stops video stream capture.
virtual bool isCapturing ()
 Returns capture run state.
virtual bool getVideoFrameProperties (VCVideoFrameProps &props)
 Obtain image properties of current video frame.
virtual bool getVideoFrameAsMLImage (TSubImg< MLuint8 > *subImg)
 Obtain image of current video frame.

Public Attributes

public VC_EXTENDER: virtual unsigned int define2DGLTextureFromVideoFrame()


Detailed Description

QTKit Video Capture encapsulation.

Definition at line 33 of file macVideoCapture.h.


Constructor & Destructor Documentation

ml::QTVideoCapture::QTVideoCapture (  ) 

C-tor.

virtual ml::QTVideoCapture::~QTVideoCapture (  )  [virtual]

D-tor.


Member Function Documentation

virtual std::string ml::QTVideoCapture::defaultInputDevice (  )  [virtual]

Get unique identifier of default video input device (UTF8).

Implements ml::VCVideoCaptureInterface.

virtual std::string ml::QTVideoCapture::defaultVideoFormat ( const std::string &  inputDevice  )  [virtual]

Get unique identifier of default video format supported by the given device (unique identifier) (UTF8).

Implements ml::VCVideoCaptureInterface.

virtual std::string ml::QTVideoCapture::getHumanReadableName (  )  [inline, virtual]

Get driver name suitable for display.

Implements ml::VCVideoCaptureInterface.

Definition at line 45 of file macVideoCapture.h.

virtual std::map<std::string, std::string> ml::QTVideoCapture::getVideoFormatsSupport ( const std::string &  inputDevice  )  [virtual]

Get video formats supported by the given device (unique identifier) (UTF8) key: unique identifier of the format (UTF8) val: localized human-readable name of the format (UTF8).

Implements ml::VCVideoCaptureInterface.

virtual bool ml::QTVideoCapture::getVideoFrameAsMLImage ( TSubImg< MLuint8 > *  subImg  )  [virtual]

Obtain image of current video frame.

Reimplemented from ml::VCVideoCaptureInterface.

virtual bool ml::QTVideoCapture::getVideoFrameProperties ( VCVideoFrameProps props  )  [virtual]

Obtain image properties of current video frame.

Implements ml::VCVideoCaptureInterface.

virtual std::list<VCVideoFrameSize> ml::QTVideoCapture::getVideoFrameSizesSupport ( const std::string &  inputDevice  )  [virtual]

Get list of video frame sizes supported by the given device (unique identifier) (UTF8).

Implements ml::VCVideoCaptureInterface.

virtual std::map<std::string, std::string> ml::QTVideoCapture::inputDevices (  )  [virtual]

key: unique identifier that is persistent on one computer across device connections and disconnections (UTF8) val: localized human-readable name for the device (UTF8)

Implements ml::VCVideoCaptureInterface.

virtual bool ml::QTVideoCapture::isCapturing (  )  [virtual]

Returns capture run state.

Implements ml::VCVideoCaptureInterface.

virtual bool ml::QTVideoCapture::isInputDeviceAvailable ( const std::string &  inputDevice  )  [virtual]

Is the video input device with the given unique identifier available? (UTF8).

Implements ml::VCVideoCaptureInterface.

virtual bool ml::QTVideoCapture::startCapture ( const std::string &  inputDevice,
const std::string &  inputFormat,
const VCVideoFrameSize size = VCVideoFrameSize(),
int  frameRate = 0 
) [virtual]

Starts video stream capture using the video input device & format with the given unique identifiers (UTF8).

If no video frame size and/or frame rate are provided, use the native resolution and/or frame rate of the video camera

Implements ml::VCVideoCaptureInterface.

virtual void ml::QTVideoCapture::stopCapture (  )  [virtual]

Stops video stream capture.

Implements ml::VCVideoCaptureInterface.


Member Data Documentation

Reimplemented from ml::VCVideoCaptureInterface.

Definition at line 87 of file macVideoCapture.h.


The documentation for this class was generated from the following file:

Generated on Sat Sep 3 18:39:51 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8