HDK
|
#include <OpenColorIO.h>
Public Member Functions | |
PackedImageDesc (void *data, long width, long height, long numChannels) | |
PackedImageDesc (void *data, long width, long height, long numChannels, BitDepth bitDepth, ptrdiff_t chanStrideBytes, ptrdiff_t xStrideBytes, ptrdiff_t yStrideBytes) | |
PackedImageDesc (void *data, long width, long height, ChannelOrdering chanOrder) | |
PackedImageDesc (void *data, long width, long height, ChannelOrdering chanOrder, BitDepth bitDepth, ptrdiff_t chanStrideBytes, ptrdiff_t xStrideBytes, ptrdiff_t yStrideBytes) | |
virtual | ~PackedImageDesc () |
ChannelOrdering | getChannelOrder () const |
Get the channel ordering of all the pixels. More... | |
BitDepth | getBitDepth () const override |
Get the bit-depth. More... | |
void * | getData () const |
Get a pointer to the first color channel of the first pixel. More... | |
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 |
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... | |
long | getNumChannels () const |
ptrdiff_t | getChanStrideBytes () const |
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 a pointer to packed image data (such as rgbrgbrgb or rgbargbargba) starting at the first color channel of the first pixel to process (which does not need to be the first pixel of the image). The number of channels must be greater than or equal to 3. If a 4th channel is specified, it is assumed to be alpha information. Channels > 4 will be ignored.
Definition at line 2970 of file OpenColorIO.h.
OCIO_NAMESPACE::PackedImageDesc::PackedImageDesc | ( | void * | data, |
long | width, | ||
long | height, | ||
long | numChannels | ||
) |
OCIO_NAMESPACE::PackedImageDesc::PackedImageDesc | ( | void * | data, |
long | width, | ||
long | height, | ||
long | numChannels, | ||
BitDepth | bitDepth, | ||
ptrdiff_t | chanStrideBytes, | ||
ptrdiff_t | xStrideBytes, | ||
ptrdiff_t | yStrideBytes | ||
) |
OCIO_NAMESPACE::PackedImageDesc::PackedImageDesc | ( | void * | data, |
long | width, | ||
long | height, | ||
ChannelOrdering | chanOrder | ||
) |
OCIO_NAMESPACE::PackedImageDesc::PackedImageDesc | ( | void * | data, |
long | width, | ||
long | height, | ||
ChannelOrdering | chanOrder, | ||
BitDepth | bitDepth, | ||
ptrdiff_t | chanStrideBytes, | ||
ptrdiff_t | xStrideBytes, | ||
ptrdiff_t | yStrideBytes | ||
) |
|
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.
ChannelOrdering OCIO_NAMESPACE::PackedImageDesc::getChannelOrder | ( | ) | const |
Get the channel ordering of all the pixels.
ptrdiff_t OCIO_NAMESPACE::PackedImageDesc::getChanStrideBytes | ( | ) | const |
void* OCIO_NAMESPACE::PackedImageDesc::getData | ( | ) | const |
Get a pointer to the first color channel of the first pixel.
|
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.
long OCIO_NAMESPACE::PackedImageDesc::getNumChannels | ( | ) | const |
|
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.