#include <avcap/windows/DS_FormatManager.h>
Inheritance diagram for avcap::DS_FormatManager:
A capture device that still uses a VFW (Video for Windows) driver can select the available formats only by using the VFW driver-supplied dialog box. But GUI-related stuff is out of the scope of this library.
Public Member Functions | |
DS_FormatManager (DS_DeviceDescriptor *dd) | |
virtual | ~DS_FormatManager () |
virtual int | setFormat (Format *fmt) |
Set the format to capture. | |
virtual Format * | getFormat () |
Get the current format. | |
virtual int | setResolution (int w, int h) |
Set the image with and height. | |
virtual int | getWidth () |
Returns the image with. | |
virtual int | getHeight () |
Returns the image height. | |
virtual int | getBytesPerLine () |
Returns the bytes per line. | |
virtual int | setFramerate (int fps) |
Set the framerate. | |
virtual int | getFramerate () |
Get the current framerate. | |
virtual int | flush () |
Flushes the format, i.e. the driver is advised to apply the current format settings. | |
virtual size_t | getImageSize () |
The number of bytes that an image of the current size requires to be stored in memory, including padding. | |
virtual const VideoStandard * | getVideoStandard () |
Get the currently used video standard. | |
virtual int | setVideoStandard (const VideoStandard *std) |
Set the video standard to use. | |
virtual void | query () |
avcap::DS_FormatManager::DS_FormatManager | ( | DS_DeviceDescriptor * | dd | ) |
virtual avcap::DS_FormatManager::~DS_FormatManager | ( | ) | [virtual] |
virtual int avcap::DS_FormatManager::setFormat | ( | Format * | fmt | ) | [virtual] |
Set the format to capture.
fmt | The new format. |
Reimplemented from avcap::FormatManager.
virtual Format* avcap::DS_FormatManager::getFormat | ( | ) | [virtual] |
virtual int avcap::DS_FormatManager::setResolution | ( | int | w, | |
int | h | |||
) | [virtual] |
Set the image with and height.
w | : width | |
h | : height |
Reimplemented from avcap::FormatManager.
virtual int avcap::DS_FormatManager::getWidth | ( | ) | [virtual] |
virtual int avcap::DS_FormatManager::getHeight | ( | ) | [virtual] |
virtual int avcap::DS_FormatManager::getBytesPerLine | ( | ) | [virtual] |
virtual int avcap::DS_FormatManager::setFramerate | ( | int | fps | ) | [virtual] |
Set the framerate.
The default implementation returns -1
fps | : the number of frames per second. |
Reimplemented from avcap::FormatManager.
virtual int avcap::DS_FormatManager::getFramerate | ( | ) | [virtual] |
Get the current framerate.
The default implementation returns -1 /*!
Reimplemented from avcap::FormatManager.
virtual int avcap::DS_FormatManager::flush | ( | ) | [virtual] |
Flushes the format, i.e. the driver is advised to apply the current format settings.
Reimplemented from avcap::FormatManager.
virtual size_t avcap::DS_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.
virtual const VideoStandard* avcap::DS_FormatManager::getVideoStandard | ( | ) | [virtual] |
Get the currently used video standard.
The default implementation returns 0
Reimplemented from avcap::FormatManager.
virtual int avcap::DS_FormatManager::setVideoStandard | ( | const VideoStandard * | std | ) | [virtual] |
Set the video standard to use.
Attention: not all video standards can be set in conjunction with each connector and format. The default implementation returns -1
std | The new video standard. |
Reimplemented from avcap::FormatManager.
virtual void avcap::DS_FormatManager::query | ( | ) | [virtual] |
Called during initialisation by the CaptureDevice to query for the objects that the implementation of this class manages.
Implements avcap::FormatManager.