avcap::QT_FormatManager Class Reference

#include <avcap/osx/QT_FormatManager.h>

Inheritance diagram for avcap::QT_FormatManager:

Inheritance graph
[legend]

Detailed Description

Implementation of the FormatManager for the QuickTime-implementation of CaptureDevice.

This FormatManager supports at most one format, so setting the format is not realy neccessary.


Public Member Functions

 QT_FormatManager (QT_DeviceDescriptor *dd)
virtual ~QT_FormatManager ()
int setFormat (Format *fmt)
 Set the format to capture.
int setFormat (uint32_t fourcc)
 Set the format to capture.
FormatgetFormat ()
 Get the current format.
int setResolution (int w, int h)
 Set the image with and height.
int getWidth ()
 Returns the image with.
int getHeight ()
 Returns the image height.
size_t getImageSize ()
 The number of bytes that an image of the current size requires to be stored in memory, including padding.
int setFramerate (int fps)
 Set the framerate.
int getFramerate ()
 Get the current framerate.
void query ()


Constructor & Destructor Documentation

avcap::QT_FormatManager::QT_FormatManager ( QT_DeviceDescriptor dd  ) 

virtual avcap::QT_FormatManager::~QT_FormatManager (  )  [virtual]


Member Function Documentation

int avcap::QT_FormatManager::setFormat ( Format fmt  )  [virtual]

Set the format to capture.

Parameters:
fmt The new format.
Returns:
0, if successful, -1 else

Reimplemented from avcap::FormatManager.

int avcap::QT_FormatManager::setFormat ( uint32_t  fourcc  )  [virtual]

Set the format to capture.

Parameters:
fourcc The four character code of the new format.
Returns:
0, if successful, -1 else

Reimplemented from avcap::FormatManager.

Format* avcap::QT_FormatManager::getFormat (  )  [virtual]

Get the current format.

Returns:
The format.

Reimplemented from avcap::FormatManager.

int avcap::QT_FormatManager::setResolution ( int  w,
int  h 
) [virtual]

Set the image with and height.

Parameters:
w : width
h : height
Returns:
0, if successful, -1 else

Reimplemented from avcap::FormatManager.

int avcap::QT_FormatManager::getWidth (  )  [virtual]

Returns the image with.

Returns:
width

Reimplemented from avcap::FormatManager.

int avcap::QT_FormatManager::getHeight (  )  [virtual]

Returns the image height.

Returns:
height

Reimplemented from avcap::FormatManager.

size_t avcap::QT_FormatManager::getImageSize (  )  [virtual]

The number of bytes that an image of the current size requires to be stored in memory, including padding.

Returns:
size

Reimplemented from avcap::FormatManager.

int avcap::QT_FormatManager::setFramerate ( int  fps  )  [virtual]

Set the framerate.

The default implementation returns -1

Parameters:
fps : the number of frames per second.
Returns:
0 if successful, -1 on failure

Reimplemented from avcap::FormatManager.

int avcap::QT_FormatManager::getFramerate (  )  [virtual]

Get the current framerate.

The default implementation returns -1 /*!

Returns:
the frames per second

Reimplemented from avcap::FormatManager.

void avcap::QT_FormatManager::query (  )  [virtual]

Called during initialisation by the CaptureDevice to query for the objects that the implementation of this class manages.

Implements avcap::FormatManager.


The documentation for this class was generated from the following file:
Generated on Mon Nov 30 11:10:33 2009 for avcap-0.1 by  doxygen 1.5.1