TuttleOFX  1
tuttle::host::InputBufferWrapper Class Reference

#include <InputBufferWrapper.hpp>

Collaboration diagram for tuttle::host::InputBufferWrapper:

Public Types

enum  EMode { eModeBuffer, eModeCallback }
enum  EPixelComponent { ePixelComponentRGBA, ePixelComponentRGB, ePixelComponentAlpha }
enum  EBitDepth { eBitDepthUByte, eBitDepthUShort, eBitDepthFloat }
enum  EImageOrientation { eImageOrientationFromTopToBottom, eImageOrientationFromBottomToTop }
enum  EField { eFieldBoth, eFieldLower, eFieldUpper }
typedef void * CustomDataPtr
typedef void(* CallbackInputImagePtr )(OfxTime time, CustomDataPtr outputCustomData, void **rawdata, int *width, int *height, int *rowSizeBytes)
typedef void(* CallbackDestroyCustomDataPtr )(CustomDataPtr outputCustomData)

Public Member Functions

 InputBufferWrapper (INode &node)
 InputBufferWrapper ()
 ~InputBufferWrapper ()
INodegetNode ()
void setMode (const EMode mode)
void setBuffer (void *rawBuffer)
void set2DArrayBuffer (unsigned char *rawBuffer, int height, int width)
void set3DArrayBuffer (unsigned char *rawBuffer, int height, int width, int nbComponents)
void set2DArrayBuffer (unsigned short *rawBuffer, int height, int width)
void set3DArrayBuffer (unsigned short *rawBuffer, int height, int width, int nbComponents)
void set2DArrayBuffer (float *rawBuffer, int height, int width)
void set3DArrayBuffer (float *rawBuffer, int height, int width, int nbComponents)
void setSize (const int width, const int height)
void setComponents (const EPixelComponent components)
void setBitDepth (const EBitDepth bitDepth)
void setRowDistanceSize (const int rowDistanceBytes)
void setOrientation (const EImageOrientation orientation)
void setRawImageBuffer (void *rawBuffer, const int width, const int height, const EPixelComponent components, const EBitDepth bitDepth, const int rowDistanceBytes=0, const EImageOrientation orientation=eImageOrientationFromBottomToTop)
void setRawImageBuffer (unsigned char *rawBuffer, const int width, const int height, const EPixelComponent components, const int rowDistanceBytes=0, const EImageOrientation orientation=eImageOrientationFromBottomToTop)
void setRawImageBuffer (unsigned short *rawBuffer, const int width, const int height, const EPixelComponent components, const int rowDistanceBytes=0, const EImageOrientation orientation=eImageOrientationFromBottomToTop)
void setRawImageBuffer (float *rawBuffer, const int width, const int height, const EPixelComponent components, const int rowDistanceBytes=0, const EImageOrientation orientation=eImageOrientationFromBottomToTop)
void setCallback (CallbackInputImagePtr callback, CustomDataPtr customData=NULL, CallbackDestroyCustomDataPtr destroyCustomData=NULL)

Private Member Functions

void set2DArrayBuffer (void *rawBuffer, const int width, const int height)
void set3DArrayBuffer (void *rawBuffer, const int width, const int height, const int nbComponents)

Private Attributes

INode_node

Detailed Description

Definition at line 15 of file InputBufferWrapper.hpp.


Member Typedef Documentation

Definition at line 49 of file InputBufferWrapper.hpp.

typedef void(* tuttle::host::InputBufferWrapper::CallbackInputImagePtr)(OfxTime time, CustomDataPtr outputCustomData, void **rawdata, int *width, int *height, int *rowSizeBytes)

Definition at line 48 of file InputBufferWrapper.hpp.


Member Enumeration Documentation

Enumerator:
eBitDepthUByte 
eBitDepthUShort 
eBitDepthFloat 

Definition at line 29 of file InputBufferWrapper.hpp.

Enumerator:
eFieldBoth 
eFieldLower 
eFieldUpper 

Definition at line 40 of file InputBufferWrapper.hpp.

Enumerator:
eImageOrientationFromTopToBottom 
eImageOrientationFromBottomToTop 

Definition at line 35 of file InputBufferWrapper.hpp.

Enumerator:
eModeBuffer 
eModeCallback 

Definition at line 18 of file InputBufferWrapper.hpp.

Enumerator:
ePixelComponentRGBA 
ePixelComponentRGB 
ePixelComponentAlpha 

Definition at line 23 of file InputBufferWrapper.hpp.


Constructor & Destructor Documentation

tuttle::host::InputBufferWrapper::InputBufferWrapper ( INode node) [inline]

Definition at line 55 of file InputBufferWrapper.hpp.

tuttle::host::InputBufferWrapper::InputBufferWrapper ( ) [inline]

Definition at line 58 of file InputBufferWrapper.hpp.

tuttle::host::InputBufferWrapper::~InputBufferWrapper ( ) [inline]

Definition at line 61 of file InputBufferWrapper.hpp.


Member Function Documentation

INode& tuttle::host::InputBufferWrapper::getNode ( ) [inline]

Definition at line 64 of file InputBufferWrapper.hpp.

References _node.

void tuttle::host::InputBufferWrapper::set2DArrayBuffer ( void *  rawBuffer,
const int  width,
const int  height 
) [private]

Definition at line 35 of file InputBufferWrapper.cpp.

References tuttle::ofx::imageEffect::ePixelComponentAlpha.

Referenced by set2DArrayBuffer().

void tuttle::host::InputBufferWrapper::set2DArrayBuffer ( unsigned char *  rawBuffer,
int  height,
int  width 
) [inline]

Definition at line 73 of file InputBufferWrapper.hpp.

References eBitDepthUByte, set2DArrayBuffer(), and setBitDepth().

Here is the call graph for this function:

void tuttle::host::InputBufferWrapper::set2DArrayBuffer ( unsigned short *  rawBuffer,
int  height,
int  width 
) [inline]

Definition at line 84 of file InputBufferWrapper.hpp.

References eBitDepthUShort, set2DArrayBuffer(), and setBitDepth().

Here is the call graph for this function:

void tuttle::host::InputBufferWrapper::set2DArrayBuffer ( float *  rawBuffer,
int  height,
int  width 
) [inline]

Definition at line 95 of file InputBufferWrapper.hpp.

References eBitDepthUShort, set2DArrayBuffer(), and setBitDepth().

Here is the call graph for this function:

void tuttle::host::InputBufferWrapper::set3DArrayBuffer ( void *  rawBuffer,
const int  width,
const int  height,
const int  nbComponents 
) [private]
void tuttle::host::InputBufferWrapper::set3DArrayBuffer ( unsigned char *  rawBuffer,
int  height,
int  width,
int  nbComponents 
) [inline]

Definition at line 78 of file InputBufferWrapper.hpp.

References eBitDepthUByte, set3DArrayBuffer(), and setBitDepth().

Here is the call graph for this function:

void tuttle::host::InputBufferWrapper::set3DArrayBuffer ( unsigned short *  rawBuffer,
int  height,
int  width,
int  nbComponents 
) [inline]

Definition at line 89 of file InputBufferWrapper.hpp.

References eBitDepthUShort, set3DArrayBuffer(), and setBitDepth().

Here is the call graph for this function:

void tuttle::host::InputBufferWrapper::set3DArrayBuffer ( float *  rawBuffer,
int  height,
int  width,
int  nbComponents 
) [inline]

Definition at line 100 of file InputBufferWrapper.hpp.

References eBitDepthUShort, set3DArrayBuffer(), and setBitDepth().

Here is the call graph for this function:

void tuttle::host::InputBufferWrapper::setBitDepth ( const EBitDepth  bitDepth)
void tuttle::host::InputBufferWrapper::setBuffer ( void *  rawBuffer)

Definition at line 28 of file InputBufferWrapper.cpp.

void tuttle::host::InputBufferWrapper::setCallback ( CallbackInputImagePtr  callback,
CustomDataPtr  customData = NULL,
CallbackDestroyCustomDataPtr  destroyCustomData = NULL 
)

Definition at line 144 of file InputBufferWrapper.cpp.

void tuttle::host::InputBufferWrapper::setComponents ( const EPixelComponent  components)
void tuttle::host::InputBufferWrapper::setMode ( const EMode  mode)

Definition at line 19 of file InputBufferWrapper.cpp.

void tuttle::host::InputBufferWrapper::setOrientation ( const EImageOrientation  orientation)
void tuttle::host::InputBufferWrapper::setRawImageBuffer ( void *  rawBuffer,
const int  width,
const int  height,
const EPixelComponent  components,
const EBitDepth  bitDepth,
const int  rowDistanceBytes = 0,
const EImageOrientation  orientation = eImageOrientationFromBottomToTop 
)

Definition at line 105 of file InputBufferWrapper.cpp.

Referenced by setRawImageBuffer().

void tuttle::host::InputBufferWrapper::setRawImageBuffer ( unsigned char *  rawBuffer,
const int  width,
const int  height,
const EPixelComponent  components,
const int  rowDistanceBytes = 0,
const EImageOrientation  orientation = eImageOrientationFromBottomToTop 
) [inline]

Definition at line 120 of file InputBufferWrapper.hpp.

References eBitDepthUByte, and setRawImageBuffer().

Here is the call graph for this function:

void tuttle::host::InputBufferWrapper::setRawImageBuffer ( unsigned short *  rawBuffer,
const int  width,
const int  height,
const EPixelComponent  components,
const int  rowDistanceBytes = 0,
const EImageOrientation  orientation = eImageOrientationFromBottomToTop 
) [inline]

Definition at line 135 of file InputBufferWrapper.hpp.

References eBitDepthUShort, and setRawImageBuffer().

Here is the call graph for this function:

void tuttle::host::InputBufferWrapper::setRawImageBuffer ( float *  rawBuffer,
const int  width,
const int  height,
const EPixelComponent  components,
const int  rowDistanceBytes = 0,
const EImageOrientation  orientation = eImageOrientationFromBottomToTop 
) [inline]

Definition at line 150 of file InputBufferWrapper.hpp.

References eBitDepthFloat, and setRawImageBuffer().

Here is the call graph for this function:

void tuttle::host::InputBufferWrapper::setRowDistanceSize ( const int  rowDistanceBytes)

Definition at line 91 of file InputBufferWrapper.cpp.

void tuttle::host::InputBufferWrapper::setSize ( const int  width,
const int  height 
)

Definition at line 66 of file InputBufferWrapper.cpp.


Field Documentation

Definition at line 52 of file InputBufferWrapper.hpp.

Referenced by getNode().


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