CameraUvc Class Reference

Inheritance diagram for CameraUvc:

Inheritance graph
[legend]
Collaboration diagram for CameraUvc:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 11 of file cameraUVC.h.


Public Member Functions

 CameraUvc (ConfigFile *cf, int section)
 ~CameraUvc ()
int Setup ()
 Initialize the driver.
int Shutdown ()
 Finalize the driver.
int ProcessMessage (QueuePointer &resp_queue, player_msghdr *hdr, void *data)
 Message handler.

Private Member Functions

virtual void Main ()
 Main method for driver thread.

Private Attributes

UvcInterfaceui
player_camera_data_t data

Member Function Documentation

int CameraUvc::Setup (  )  [virtual]

Initialize the driver.

This function is called with the first client subscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

Definition at line 130 of file cameraUVC.cc.

References UvcInterface::Open(), PLAYER_ERROR, Driver::SetError(), and ui.

Here is the call graph for this function:

int CameraUvc::Shutdown (  )  [virtual]

Finalize the driver.

This function is called with the last client unsubscribes; it MUST be implemented by the driver.

Returns:
Returns 0 on success.

Implements Driver.

Definition at line 151 of file cameraUVC.cc.

References UvcInterface::Close(), Driver::StopThread(), and ui.

Here is the call graph for this function:

int CameraUvc::ProcessMessage ( QueuePointer resp_queue,
player_msghdr hdr,
void *  data 
) [virtual]

Message handler.

This function is called once for each message in the incoming queue. Reimplement it to provide message handling. Return 0 if you handled the message and -1 otherwise

Parameters:
resp_queue The queue to which any response should go.
hdr The message header
data The message body

Reimplemented from Driver.

Definition at line 198 of file cameraUVC.cc.

void CameraUvc::Main (  )  [private, virtual]

Main method for driver thread.

drivers have their own thread of execution, created using StartThread(); this is the entry point for the driver thread, and must be overloaded by all threaded drivers.

Reimplemented from Driver.

Definition at line 165 of file cameraUVC.cc.

References player_camera_data::bpp, player_camera_data::compression, UvcInterface::CopyFrame(), data, Driver::device_addr, player_camera_data::fdiv, player_camera_data::format, UvcInterface::GetFrameSize(), UvcInterface::GetHeight(), UvcInterface::GetWidth(), player_camera_data::height, player_camera_data::image, player_camera_data::image_count, PLAYER_CAMERA_COMPRESS_JPEG, PLAYER_CAMERA_DATA_STATE, PLAYER_CAMERA_FORMAT_RGB888, PLAYER_MSGTYPE_DATA, Driver::ProcessMessages(), Driver::Publish(), UvcInterface::Read(), ui, and player_camera_data::width.

Here is the call graph for this function:


The documentation for this class was generated from the following files:

Last updated 12 September 2005 21:38:45