ofxDepthStream
Data Structures | Typedefs | Functions
depth Namespace Reference

contains all classes and functions of the DepthStream library. More...

Data Structures

class  Buffer
 Manages a reference to a Frame instance. More...
 
class  CamInterface
 The Whole purpose of this wrapper is to "hide" all OpenNI related stuff and replace it with placeholder code for the purpose of development. More...
 
class  Compressor
 Compressed a package (frame) of data using zlib compression. More...
 
class  Formatter
 
class  Frame
 A read-only wrapper around a data block of a specified size. More...
 
class  Inflater
 Inflates ("decompresses") a package ("frame") of data compressed using zlib doCompression. More...
 
class  Playback
 
class  Receiver
 Network stream receiver class. More...
 
class  Recorder
 
class  SimpleFrameListener
 
class  Transmitter
 Network stream transmitter class. More...
 
class  VideoStream
 

Typedefs

typedef std::shared_ptr< VideoStreamVideoStreamRef
 
typedef std::shared_ptr< CompressorCompressorRef
 
typedef std::shared_ptr< FrameFrameRef
 
typedef std::shared_ptr< InflaterInflaterRef
 
typedef std::shared_ptr< ReceiverReceiverRef
 
typedef std::shared_ptr< TransmitterTransmitterRef
 

Functions

FrameRef compress (const void *data, size_t size)
 
FrameRef compress (Frame &instance)
 
FrameRef compress (FrameRef ref)
 
FrameRef inflate (const void *data, size_t size)
 
FrameRef inflate (Frame &instance)
 
FrameRef inflate (FrameRef ref)
 
FrameRef convert_32bit_to_8bit (size_t targetSize, const void *data)
 
FrameRef convert_16bit_to_8bit (size_t targetSize, const void *data)
 
FrameRef convertTo8bitGrayscaleData (size_t texSize, const void *data)
 
FrameRef convertTo8bitGrayscaleData (int texWidth, int texHeight, const void *data)
 
FrameRef convertTo8bitGrayscaleData (int texWidth, int texHeight, FrameRef ref)
 
std::function< FrameRef(const void *, size_t)> grayscale8bitConverter (int texWidth, int texHeight)
 Generates converter lambda for specified width/height. More...
 
void emptyBuffer (Buffer &buf, Frame::InputFunc func)
 
void emptyAndInflateBuffer (Buffer &buf, Frame::InputFunc func)
 
int wasKeyboardHit ()
 
void Sleep (int millisecs)
 

Detailed Description

contains all classes and functions of the DepthStream library.

The DepthStream library provides tool for streaming (transmitteing and receiving) compressed image-data of a network.

Typedef Documentation

◆ CompressorRef

typedef std::shared_ptr<Compressor> depth::CompressorRef

◆ FrameRef

typedef std::shared_ptr<Frame> depth::FrameRef

◆ InflaterRef

typedef std::shared_ptr<Inflater> depth::InflaterRef

◆ ReceiverRef

typedef std::shared_ptr<Receiver> depth::ReceiverRef

◆ TransmitterRef

typedef std::shared_ptr<Transmitter> depth::TransmitterRef

◆ VideoStreamRef

typedef std::shared_ptr<VideoStream> depth::VideoStreamRef

Function Documentation

◆ compress() [1/3]

FrameRef depth::compress ( const void *  data,
size_t  size 
)

Referenced by compress().

◆ compress() [2/3]

FrameRef depth::compress ( Frame instance)

◆ compress() [3/3]

FrameRef depth::compress ( FrameRef  ref)

◆ convert_16bit_to_8bit()

FrameRef depth::convert_16bit_to_8bit ( size_t  targetSize,
const void *  data 
)

◆ convert_32bit_to_8bit()

FrameRef depth::convert_32bit_to_8bit ( size_t  targetSize,
const void *  data 
)

◆ convertTo8bitGrayscaleData() [1/3]

FrameRef depth::convertTo8bitGrayscaleData ( size_t  texSize,
const void *  data 
)

◆ convertTo8bitGrayscaleData() [2/3]

FrameRef depth::convertTo8bitGrayscaleData ( int  texWidth,
int  texHeight,
const void *  data 
)

◆ convertTo8bitGrayscaleData() [3/3]

FrameRef depth::convertTo8bitGrayscaleData ( int  texWidth,
int  texHeight,
FrameRef  ref 
)

◆ emptyAndInflateBuffer()

void depth::emptyAndInflateBuffer ( Buffer buf,
Frame::InputFunc  func 
)

◆ emptyBuffer()

void depth::emptyBuffer ( Buffer buf,
Frame::InputFunc  func 
)

Referenced by emptyAndInflateBuffer().

◆ grayscale8bitConverter()

std::function<FrameRef(const void*, size_t)> depth::grayscale8bitConverter ( int  texWidth,
int  texHeight 
)

Generates converter lambda for specified width/height.

◆ inflate() [1/3]

FrameRef depth::inflate ( const void *  data,
size_t  size 
)

◆ inflate() [2/3]

FrameRef depth::inflate ( Frame instance)

◆ inflate() [3/3]

FrameRef depth::inflate ( FrameRef  ref)

◆ Sleep()

void depth::Sleep ( int  millisecs)

◆ wasKeyboardHit()

int depth::wasKeyboardHit ( )