#include <avcap/osx/QT_FormatManager.h>
Inheritance diagram for avcap::QT_FormatManager:
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. | |
Format * | getFormat () |
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 () |
avcap::QT_FormatManager::QT_FormatManager | ( | QT_DeviceDescriptor * | dd | ) |
virtual avcap::QT_FormatManager::~QT_FormatManager | ( | ) | [virtual] |
int avcap::QT_FormatManager::setFormat | ( | Format * | fmt | ) | [virtual] |
Set the format to capture.
fmt | The new format. |
Reimplemented from avcap::FormatManager.
int avcap::QT_FormatManager::setFormat | ( | uint32_t | fourcc | ) | [virtual] |
Set the format to capture.
fourcc | The four character code of the new format. |
Reimplemented from avcap::FormatManager.
Format* avcap::QT_FormatManager::getFormat | ( | ) | [virtual] |
int avcap::QT_FormatManager::setResolution | ( | int | w, | |
int | h | |||
) | [virtual] |
Set the image with and height.
w | : width | |
h | : height |
Reimplemented from avcap::FormatManager.
int avcap::QT_FormatManager::getWidth | ( | ) | [virtual] |
int avcap::QT_FormatManager::getHeight | ( | ) | [virtual] |
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.
Reimplemented from avcap::FormatManager.
int avcap::QT_FormatManager::setFramerate | ( | int | fps | ) | [virtual] |
Set the framerate.
The default implementation returns -1
fps | : the number of frames per second. |
Reimplemented from avcap::FormatManager.
int avcap::QT_FormatManager::getFramerate | ( | ) | [virtual] |
Get the current framerate.
The default implementation returns -1 /*!
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.