- PlayerCc
- CameraProxy
The CameraProxy
class can be used to get images from a camera device.
More...
#include <playerc++.h>
Public Member Functions | |
CameraProxy (PlayerClient *aPc, uint32_t aIndex=0) | |
Constructor. | |
void | SaveFrame (const std::string aPrefix, uint32_t aWidth=4) |
Save the frame. | |
void | Decompress () |
decompress the image | |
uint32_t | GetDepth () const |
Image color depth. | |
uint32_t | GetWidth () const |
Image dimensions (pixels) | |
uint32_t | GetHeight () const |
Image dimensions (pixels) | |
uint32_t | GetFormat () const |
Image format Possible values include. | |
uint32_t | GetImageSize () const |
Size of the image (bytes) | |
void | GetImage (uint8_t *aImage) const |
Image data This function copies the image data into the data buffer aImage. | |
uint32_t | GetCompression () const |
What is the compression type? Currently supported compression types are: | |
Private Member Functions | |
virtual void | Subscribe (uint32_t aIndex) |
virtual void | Unsubscribe () |
Private Attributes | |
playerc_camera_t * | mDevice |
std::string | mPrefix |
int | mFrameNo |
The CameraProxy
class can be used to get images from a camera device.
uint32_t PlayerCc::CameraProxy::GetCompression | ( | ) | const [inline] |
What is the compression type? Currently supported compression types are:
uint32_t PlayerCc::CameraProxy::GetFormat | ( | ) | const [inline] |
Image format Possible values include.
void PlayerCc::CameraProxy::GetImage | ( | uint8_t * | aImage | ) | const [inline] |
Image data This function copies the image data into the data buffer aImage.
The buffer should be allocated according to the width, height, and depth of the image. The size can be found by calling GetImageSize().
void PlayerCc::CameraProxy::SaveFrame | ( | const std::string | aPrefix, |
uint32_t | aWidth = 4 |
||
) |
Save the frame.