avcap::AVC_FormatManager Class Reference

#include <avcap/linux/AVC_FormatManager.h>

Inheritance diagram for avcap::AVC_FormatManager:

Inheritance graph
[legend]

Detailed Description

Implementation of the FormatManager for AV/C devices.

DV-Cams usually provide only a fixed resolution (PAL: 720x576, NTSC: 720x480) YUV-format and no choice of video standards. Additionally, this manager provides RGB.


Public Member Functions

 AVC_FormatManager (AVC_DeviceDescriptor *dd)
virtual ~AVC_FormatManager ()
int setResolution (int w, int h)
 Set the image with.
int getFramerate ()
 Get the current framerate. Setting the framerate is not possible.
void query ()


Constructor & Destructor Documentation

avcap::AVC_FormatManager::AVC_FormatManager ( AVC_DeviceDescriptor dd  ) 

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


Member Function Documentation

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

Set the image with.

For AV/C -devices the reolution is fixed and thus can't be realy modified.

Parameters:
w,: width
h,: height
Returns:
0, if the desired resolution matches the native resolution, -1 else

Reimplemented from avcap::FormatManager.

int avcap::AVC_FormatManager::getFramerate (  )  [inline, virtual]

Get the current framerate. Setting the framerate is not possible.

Returns:
25 for PAL, 30 for NTSC(this is a little bit inaccurate, since the proper NTSC-frame rate is 29.97 fps)

Reimplemented from avcap::FormatManager.

void avcap::AVC_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:32 2009 for avcap-0.1 by  doxygen 1.5.1