HDK
|
#include <OpenColorIO.h>
Public Member Functions | |
PlanarImageDesc (void *rData, void *gData, void *bData, void *aData, long width, long height) | |
PlanarImageDesc (void *rData, void *gData, void *bData, void *aData, long width, long height, BitDepth bitDepth, ptrdiff_t xStrideBytes, ptrdiff_t yStrideBytes) | |
virtual | ~PlanarImageDesc () |
void * | getRData () const override |
Get a pointer to the red channel of the first pixel. More... | |
void * | getGData () const override |
Get a pointer to the green channel of the first pixel. More... | |
void * | getBData () const override |
Get a pointer to the blue channel of the first pixel. More... | |
void * | getAData () const override |
BitDepth | getBitDepth () const override |
Get the bit-depth. More... | |
long | getWidth () const override |
Get the width to process (where x position starts at 0 and ends at width-1). More... | |
long | getHeight () const override |
Get the height to process (where y position starts at 0 and ends at height-1). More... | |
ptrdiff_t | getXStrideBytes () const override |
Get the step in bytes to find the same color channel of the next pixel. More... | |
ptrdiff_t | getYStrideBytes () const override |
bool | isRGBAPacked () const override |
bool | isFloat () const override |
Is the image buffer 32-bit float? More... | |
![]() | |
ImageDesc () | |
virtual | ~ImageDesc () |
All the constructors expect pointers to the specified image planes (i.e. rrrr gggg bbbb) starting at the first color channel of the first pixel to process (which need not be the first pixel of the image). Pass NULL for aData if no alpha exists (r/g/bData must not be NULL).
Definition at line 3057 of file OpenColorIO.h.
OCIO_NAMESPACE::PlanarImageDesc::PlanarImageDesc | ( | void * | rData, |
void * | gData, | ||
void * | bData, | ||
void * | aData, | ||
long | width, | ||
long | height | ||
) |
OCIO_NAMESPACE::PlanarImageDesc::PlanarImageDesc | ( | void * | rData, |
void * | gData, | ||
void * | bData, | ||
void * | aData, | ||
long | width, | ||
long | height, | ||
BitDepth | bitDepth, | ||
ptrdiff_t | xStrideBytes, | ||
ptrdiff_t | yStrideBytes | ||
) |
Note that although PlanarImageDesc is powerful enough to also describe all PackedImageDesc scenarios, it is recommended to use a PackedImageDesc where possible since that allows for additional optimizations.
|
virtual |
|
overridevirtual |
Get a pointer to the alpha channel of the first pixel or null as alpha channel is optional.
Implements OCIO_NAMESPACE::ImageDesc.
|
overridevirtual |
Get a pointer to the blue channel of the first pixel.
Implements OCIO_NAMESPACE::ImageDesc.
|
overridevirtual |
Get the bit-depth.
Implements OCIO_NAMESPACE::ImageDesc.
|
overridevirtual |
Get a pointer to the green channel of the first pixel.
Implements OCIO_NAMESPACE::ImageDesc.
|
overridevirtual |
Get the height to process (where y position starts at 0 and ends at height-1).
Implements OCIO_NAMESPACE::ImageDesc.
|
overridevirtual |
Get a pointer to the red channel of the first pixel.
Implements OCIO_NAMESPACE::ImageDesc.
|
overridevirtual |
Get the width to process (where x position starts at 0 and ends at width-1).
Implements OCIO_NAMESPACE::ImageDesc.
|
overridevirtual |
Get the step in bytes to find the same color channel of the next pixel.
Implements OCIO_NAMESPACE::ImageDesc.
|
overridevirtual |
Get the step in bytes to find the same color channel of the pixel at the same position in the next line.
Implements OCIO_NAMESPACE::ImageDesc.
|
overridevirtual |
Is the image buffer 32-bit float?
Implements OCIO_NAMESPACE::ImageDesc.
|
overridevirtual |
Is the image buffer in packed mode with the 4 color channels? ("Packed" here means that XStrideBytes is 4x the bytes per channel, so it is more specific than simply any PackedImageDesc.)
Implements OCIO_NAMESPACE::ImageDesc.