Public Types |
enum | ColorModel |
typedef enum
cinder::ImageIo::ColorModel | ColorModel |
enum | DataType |
typedef enum
cinder::ImageIo::DataType | DataType |
enum | ChannelType |
typedef enum
cinder::ImageIo::ChannelType | ChannelType |
enum | ChannelOrder |
typedef enum
cinder::ImageIo::ChannelOrder | ChannelOrder |
typedef void(ImageSource::* | RowFunc )(ImageTargetRef, int32_t, const void *) |
Public Member Functions |
| ImageSourceCvMat (const cv::Mat &mat) |
void | load (ImageTargetRef target) |
float | getPixelAspectRatio () const |
bool | isPremultiplied () const |
int32_t | getWidth () const |
int32_t | getHeight () const |
ColorModel | getColorModel () const |
DataType | getDataType () const |
ChannelOrder | getChannelOrder () const |
virtual bool | hasAlpha () const |
Static Public Member Functions |
static void | translateRgbColorModelToOffsets (ChannelOrder channelOrder, int8_t *red, int8_t *green, int8_t *blue, int8_t *alpha, int8_t *inc) |
static void | translateGrayColorModelToOffsets (ChannelOrder channelOrder, int8_t *gray, int8_t *alpha, int8_t *inc) |
static bool | channelOrderHasAlpha (ChannelOrder channelOrder) |
static int8_t | channelOrderNumChannels (ChannelOrder channelOrder) |
static uint8_t | dataTypeBytes (DataType dataType) |
static std::vector< std::string > | getLoadExtensions () |
static std::vector< std::string > | getWriteExtensions () |
Public Attributes |
const uint8_t * | mData |
int32_t | mRowBytes |
| CM_RGB |
| CM_GRAY |
| CM_UNKNOWN |
| UINT8 |
| UINT16 |
| FLOAT32 |
| DATA_UNKNOWN |
| CHAN_RGB_R |
| CHAN_RGB_G |
| CHAN_RGB_B |
| CHAN_GRAY |
| CHAN_ALPHA |
| CHAN_MASK |
| CHAN_LAB_L |
| CHAN_LAB_A |
| CHAN_LAB_B |
| CHAN_YUV_Y |
| CHAN_YUV_U |
| CHAN_YUV_V |
| CHAN_CMYK_C |
| CHAN_CMYK_M |
| CHAN_CMYK_Y |
| CHAN_CMYK_K |
| CHAN_UNKNOWN |
| RGBA |
| BGRA |
| ARGB |
| ABGR |
| RGBX |
| BGRX |
| XRGB |
| XBGR |
| RGB |
| BGR |
| Y |
| YA |
| CUSTOM |
Protected Member Functions |
void | setPixelAspectRatio (float pixelAspectRatio) |
void | setPremultiplied (bool premult=true) |
RowFunc | setupRowFunc (ImageTargetRef target) |
void | setupRowFuncRgbSource (ImageTargetRef target) |
void | setupRowFuncGraySource (ImageTargetRef target) |
RowFunc | setupRowFuncForTypesAndTargetColorModel (ImageTargetRef target) |
RowFunc | setupRowFuncForTypes (ImageTargetRef target) |
RowFunc | setupRowFuncForSourceType (ImageTargetRef target) |
void | rowFuncSourceRgb (ImageTargetRef target, int32_t row, const void *data) |
void | rowFuncSourceGray (ImageTargetRef target, int32_t row, const void *data) |
void | setSize (int32_t width, int32_t height) |
void | setColorModel (ColorModel colorModel) |
void | setDataType (DataType aDataType) |
void | setChannelOrder (ChannelOrder aChannelOrder) |
Protected Attributes |
float | mPixelAspectRatio |
bool | mIsPremultiplied |
int8_t | mRowFuncSourceRed |
int8_t | mRowFuncSourceGreen |
int8_t | mRowFuncSourceBlue |
int8_t | mRowFuncSourceAlpha |
int8_t | mRowFuncTargetRed |
int8_t | mRowFuncTargetGreen |
int8_t | mRowFuncTargetBlue |
int8_t | mRowFuncTargetAlpha |
int8_t | mRowFuncSourceGray |
int8_t | mRowFuncTargetGray |
int8_t | mRowFuncSourceInc |
int8_t | mRowFuncTargetInc |
int32_t | mWidth |
int32_t | mHeight |
ColorModel | mColorModel |
DataType | mDataType |
ChannelOrder | mChannelOrder |