PlayerCc::CameraProxy Class Reference
[Proxies]
#include <playerc++.h>
Inherits PlayerCc::ClientProxy.
Detailed Description
TheCameraProxy
class can be used to get images from a camera device.
Public Member Functions | |
CameraProxy (PlayerClient *aPc, uint aIndex=0) | |
Constructor. | |
void | SaveFrame (const std::string aPrefix, uint aWidth=4) |
Save the frame. | |
void | Decompress () |
decompress the image | |
uint | GetDepth () const |
Image color depth. | |
uint | GetWidth () const |
Image dimensions (pixels). | |
uint | GetHeight () const |
Image dimensions (pixels). | |
uint | GetFormat () const |
Image format Possible values include
| |
uint | 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. | |
uint | GetCompression () const |
What is the compression type? Currently supported compression types are:
|
Member Function Documentation
void PlayerCc::CameraProxy::SaveFrame | ( | const std::string | aPrefix, | |
uint | aWidth = 4 | |||
) |
Save the frame.
- aPrefix is the string prefix to name the image.
- aWidth is the number of 0s to pad the image numbering with.
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().
References playerc_camera_t::image, and playerc_camera_t::image_count.
The documentation for this class was generated from the following file: