PlayerCc::StereoProxy Class Reference

the Stereo proxy provides access to the stereo device. More...

#include <playerc++.h>

Inheritance diagram for PlayerCc::StereoProxy:
Collaboration diagram for PlayerCc::StereoProxy:

List of all members.


Detailed Description

the Stereo proxy provides access to the stereo device.

Public Member Functions

 StereoProxy (PlayerClient *aPc, uint32_t aIndex=0)
 Constructor.
 ~StereoProxy ()
 Destructor.
void SaveLeftFrame (const std::string aPrefix, uint32_t aWidth=4)
 Save the left frame.
void SaveRightFrame (const std::string aPrefix, uint32_t aWidth=4)
 Save the right frame.
void SaveDisparityFrame (const std::string aPrefix, uint32_t aWidth=4)
 Save the disparity frame.
void DecompressLeft ()
 decompress the left image
void DecompressRight ()
 decompress the right image
void DecompressDisparity ()
 decompress the disparity image
uint32_t GetLeftDepth () const
 Left image color depth.
uint32_t GetRightDepth () const
 Right image color depth.
uint32_t GetDisparityDepth () const
 Disparity image color depth.
uint32_t GetLeftWidth () const
 Left image width (pixels)
uint32_t GetRightWidth () const
 Right image width (pixels)
uint32_t GetDisparityWidth () const
 Disparity image width (pixels)
uint32_t GetLeftHeight () const
 Left image height (pixels)
uint32_t GetRightHeight () const
 Right image height (pixels)
uint32_t GetDisparityHeight () const
 Disparity image height (pixels)
uint32_t GetLeftFormat () const
 Image format Possible values include.
uint32_t GetRightFormat () const
 Image format Possible values include.
uint32_t GetDisparityFormat () const
 Image format Possible values include.
uint32_t GetLeftImageSize () const
 Size of the left image (bytes)
uint32_t GetRightImageSize () const
 Size of the right image (bytes)
uint32_t GetDisparityImageSize () const
 Size of the disparity image (bytes)
void GetLeftImage (uint8_t *aImage) const
 Left image data This function copies the image data into the data buffer aImage.
void GetRightImage (uint8_t *aImage) const
 Right image data This function copies the image data into the data buffer aImage.
void GetDisparityImage (uint8_t *aImage) const
 Disparity image data This function copies the image data into the data buffer aImage.
uint32_t GetLeftCompression () const
 Get the left image's compression type Currently supported compression types are:
uint32_t GetRightCompression () const
 Get the right image's compression type Currently supported compression types are:
uint32_t GetDisparityCompression () const
 Get the disparity image's compression type Currently supported compression types are:
uint32_t GetCount () const
 return the point count
player_pointcloud3d_stereo_element_t GetPoint (uint32_t aIndex) const
 return a particular point value
player_pointcloud3d_stereo_element_t operator[] (uint32_t aIndex) const
 This operator provides an alternate way of access the point data.

Private Member Functions

void Subscribe (uint32_t aIndex)
void Unsubscribe ()
void SaveFrame (const std::string aPrefix, uint32_t aWidth, playerc_camera_t aDevice, uint8_t aIndex)
 Save a frame.
void Decompress (playerc_camera_t aDevice)
 Decompress an image.

Private Attributes

playerc_stereo_tmDevice
 libplayerc data structure
std::string mPrefix
 Default image prefix.
uint32_t mFrameNo [3]
 Frame counter for image saving methods.

Member Function Documentation

uint32_t PlayerCc::StereoProxy::GetDisparityCompression ( ) const [inline]

Get the disparity image's compression type Currently supported compression types are:

uint32_t PlayerCc::StereoProxy::GetDisparityFormat ( ) const [inline]
void PlayerCc::StereoProxy::GetDisparityImage ( uint8_t *  aImage) const [inline]

Disparity 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 GetDisparityImageSize().

uint32_t PlayerCc::StereoProxy::GetLeftCompression ( ) const [inline]

Get the left image's compression type Currently supported compression types are:

uint32_t PlayerCc::StereoProxy::GetLeftFormat ( ) const [inline]
void PlayerCc::StereoProxy::GetLeftImage ( uint8_t *  aImage) const [inline]

Left 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 GetLeftImageSize().

uint32_t PlayerCc::StereoProxy::GetRightCompression ( ) const [inline]

Get the right image's compression type Currently supported compression types are:

uint32_t PlayerCc::StereoProxy::GetRightFormat ( ) const [inline]
void PlayerCc::StereoProxy::GetRightImage ( uint8_t *  aImage) const [inline]

Right 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 GetRightImageSize().

player_pointcloud3d_stereo_element_t PlayerCc::StereoProxy::operator[] ( uint32_t  aIndex) const [inline]

This operator provides an alternate way of access the point data.

For example, StereoProxy[0] == StereoProxy.GetPoint(0)

void PlayerCc::StereoProxy::SaveDisparityFrame ( const std::string  aPrefix,
uint32_t  aWidth = 4 
) [inline]

Save the disparity frame.

  • aPrefix is the string prefix to name the image.
  • aWidth is the number of 0s to pad the image numbering with.
void PlayerCc::StereoProxy::SaveLeftFrame ( const std::string  aPrefix,
uint32_t  aWidth = 4 
) [inline]

Save the left frame.

  • aPrefix is the string prefix to name the image.
  • aWidth is the number of 0s to pad the image numbering with.
void PlayerCc::StereoProxy::SaveRightFrame ( const std::string  aPrefix,
uint32_t  aWidth = 4 
) [inline]

Save the right frame.

  • aPrefix is the string prefix to name the image.
  • aWidth is the number of 0s to pad the image numbering with.

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