#include <avcap/linux/V4L1_FormatManager.h>
Inheritance diagram for avcap::V4L1_FormatManager:
This CaptureManager starts an own thread to capture data. The access to the internal buffer-list is synchronized, so release()
can be called from any thread at any time.
Public Member Functions | |
V4L1_FormatManager (V4L1_DeviceDescriptor *dd) | |
virtual | ~V4L1_FormatManager () |
int | setFormat (Format *fmt) |
Set the format to capture. | |
int | setFormat (unsigned int fourcc) |
Format * | getFormat () |
Get the current format. | |
int | setResolution (int w, int h) |
Set the image with and height. | |
int | setBytesPerLine (int bpl) |
Set the number of used bytes per scanline, if possible. | |
int | getWidth () |
Returns the image with. | |
int | getHeight () |
Returns the image height. | |
int | getBytesPerLine () |
Returns the bytes per line. | |
int | flush () |
Flushes the format, i.e. the driver is advised to apply the current format settings. | |
size_t | getImageSize () |
The number of bytes that an image of the current size requires to be stored in memory, including padding. | |
const VideoStandard * | getVideoStandard () |
Get the currently used video standard. | |
int | setVideoStandard (const VideoStandard *std) |
Set the video standard to use. | |
int | setFramerate (int fps) |
Setting the frame-rate is currently only possible for some philips-cams. | |
int | getFramerate () |
Get the current framerate. | |
__u16 | getPalette () |
void | query () |
Data Structures | |
struct | fmtdesc |
avcap::V4L1_FormatManager::V4L1_FormatManager | ( | V4L1_DeviceDescriptor * | dd | ) |
virtual avcap::V4L1_FormatManager::~V4L1_FormatManager | ( | ) | [virtual] |
int avcap::V4L1_FormatManager::setFormat | ( | Format * | fmt | ) | [virtual] |
Set the format to capture.
fmt | The new format. |
Reimplemented from avcap::FormatManager.
int avcap::V4L1_FormatManager::setFormat | ( | unsigned int | fourcc | ) |
Format* avcap::V4L1_FormatManager::getFormat | ( | ) | [virtual] |
int avcap::V4L1_FormatManager::setResolution | ( | int | w, | |
int | h | |||
) | [virtual] |
Set the image with and height.
w | : width | |
h | : height |
Reimplemented from avcap::FormatManager.
int avcap::V4L1_FormatManager::setBytesPerLine | ( | int | bpl | ) | [virtual] |
Set the number of used bytes per scanline, if possible.
bpl |
Reimplemented from avcap::FormatManager.
int avcap::V4L1_FormatManager::getWidth | ( | ) | [virtual] |
int avcap::V4L1_FormatManager::getHeight | ( | ) | [virtual] |
int avcap::V4L1_FormatManager::getBytesPerLine | ( | ) | [virtual] |
int avcap::V4L1_FormatManager::flush | ( | ) | [virtual] |
Flushes the format, i.e. the driver is advised to apply the current format settings.
Reimplemented from avcap::FormatManager.
size_t avcap::V4L1_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.
const VideoStandard* avcap::V4L1_FormatManager::getVideoStandard | ( | ) | [virtual] |
Get the currently used video standard.
The default implementation returns 0
Reimplemented from avcap::FormatManager.
int avcap::V4L1_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.
int avcap::V4L1_FormatManager::setFramerate | ( | int | fps | ) | [virtual] |
Setting the frame-rate is currently only possible for some philips-cams.
Reimplemented from avcap::FormatManager.
int avcap::V4L1_FormatManager::getFramerate | ( | ) | [virtual] |
Get the current framerate.
The default implementation returns -1 /*!
Reimplemented from avcap::FormatManager.
__u16 avcap::V4L1_FormatManager::getPalette | ( | ) |
void avcap::V4L1_FormatManager::query | ( | ) | [virtual] |
Called during initialisation by the CaptureDevice to query for the objects that the implementation of this class manages.
Implements avcap::FormatManager.