Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
FreenectDriver::ColorStream Class Reference

#include <ColorStream.hpp>

Inheritance diagram for FreenectDriver::ColorStream:
Inheritance graph
[legend]

Public Member Functions

 ColorStream (Freenect::FreenectDevice *pDevice)
 
OniStatus getProperty (int propertyId, void *data, int *pDataSize)
 
OniBool isPropertySupported (int propertyId)
 
OniStatus setProperty (int propertyId, const void *data, int dataSize)
 
- Public Member Functions inherited from FreenectDriver::VideoStream
void buildFrame (void *data, uint32_t timestamp)
 
OniBool isPropertySupported (int propertyId)
 
OniStatus start ()
 
void stop ()
 
 VideoStream (Freenect::FreenectDevice *device)
 
- Public Member Functions inherited from oni::driver::StreamBase
virtual OniStatus convertDepthToColorCoordinates (StreamBase *, int, int, OniDepthPixel, int *, int *)
 
virtual int getRequiredFrameSize ()
 
virtual OniStatus invoke (int, void *, int)
 
virtual OniBool isCommandSupported (int)
 
virtual void notifyAllProperties ()
 
virtual void setNewFrameCallback (NewFrameCallback handler, void *pCookie)
 
virtual void setPropertyChangedCallback (PropertyChangedCallback handler, void *pCookie)
 
virtual void setServices (StreamServices *pStreamServices)
 
 StreamBase ()
 
virtual ~StreamBase ()
 

Static Public Member Functions

static OniSensorInfo getSensorInfo ()
 

Static Public Attributes

static const float DIAGONAL_FOV = 73.9 * (M_PI / 180)
 
static const float HORIZONTAL_FOV = 62 * (M_PI / 180)
 
static const float VERTICAL_FOV = 48.6 * (M_PI / 180)
 

Private Types

typedef std::map< OniVideoMode, std::pair< freenect_video_format, freenect_resolution > > FreenectVideoModeMap
 

Private Member Functions

void populateFrame (void *data, OniFrame *frame) const
 
OniStatus setVideoMode (OniVideoMode requested_mode)
 

Static Private Member Functions

static FreenectVideoModeMap getSupportedVideoModes ()
 

Private Attributes

bool auto_exposure
 
bool auto_white_balance
 

Static Private Attributes

static const OniSensorType sensor_type = ONI_SENSOR_COLOR
 

Additional Inherited Members

- Protected Member Functions inherited from oni::driver::StreamBase
StreamServicesgetServices ()
 
void raiseNewFrame (OniFrame *pFrame)
 
void raisePropertyChanged (int propertyId, const void *data, int dataSize)
 
- Protected Attributes inherited from FreenectDriver::VideoStream
OniCropping cropping
 
Freenect::FreenectDevicedevice
 
bool mirroring
 
bool running
 
OniVideoMode video_mode
 
- Static Protected Attributes inherited from FreenectDriver::VideoStream
static const OniSensorType sensor_type
 

Detailed Description

Definition at line 12 of file ColorStream.hpp.

Member Typedef Documentation

Definition at line 21 of file ColorStream.hpp.

Constructor & Destructor Documentation

ColorStream::ColorStream ( Freenect::FreenectDevice pDevice)

Definition at line 7 of file ColorStream.cpp.

Member Function Documentation

OniStatus FreenectDriver::ColorStream::getProperty ( int  propertyId,
void *  data,
int *  pDataSize 
)
inlinevirtual

Reimplemented from FreenectDriver::VideoStream.

Definition at line 60 of file ColorStream.hpp.

static OniSensorInfo FreenectDriver::ColorStream::getSensorInfo ( )
inlinestatic

Definition at line 35 of file ColorStream.hpp.

ColorStream::FreenectVideoModeMap ColorStream::getSupportedVideoModes ( )
staticprivate

Definition at line 15 of file ColorStream.cpp.

OniBool FreenectDriver::ColorStream::isPropertySupported ( int  propertyId)
inlinevirtual

Reimplemented from oni::driver::StreamBase.

Definition at line 45 of file ColorStream.hpp.

void ColorStream::populateFrame ( void *  data,
OniFrame frame 
) const
privatevirtual

Implements FreenectDriver::VideoStream.

Definition at line 51 of file ColorStream.cpp.

OniStatus FreenectDriver::ColorStream::setProperty ( int  propertyId,
const void *  data,
int  dataSize 
)
inlinevirtual

Reimplemented from FreenectDriver::VideoStream.

Definition at line 112 of file ColorStream.hpp.

OniStatus ColorStream::setVideoMode ( OniVideoMode  requested_mode)
privatevirtual

Implements FreenectDriver::VideoStream.

Definition at line 31 of file ColorStream.cpp.

Member Data Documentation

bool FreenectDriver::ColorStream::auto_exposure
private

Definition at line 29 of file ColorStream.hpp.

bool FreenectDriver::ColorStream::auto_white_balance
private

Definition at line 28 of file ColorStream.hpp.

const float FreenectDriver::ColorStream::DIAGONAL_FOV = 73.9 * (M_PI / 180)
static

Definition at line 16 of file ColorStream.hpp.

const float FreenectDriver::ColorStream::HORIZONTAL_FOV = 62 * (M_PI / 180)
static

Definition at line 17 of file ColorStream.hpp.

const OniSensorType FreenectDriver::ColorStream::sensor_type = ONI_SENSOR_COLOR
staticprivate

Definition at line 22 of file ColorStream.hpp.

const float FreenectDriver::ColorStream::VERTICAL_FOV = 48.6 * (M_PI / 180)
static

Definition at line 18 of file ColorStream.hpp.


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


libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Thu Jun 6 2019 19:25:39