#include <ImageIo.h>
Inherits cinder::ImageIo.
Inherited by cinder::gl::ImageSourceTexture, cinder::ImageSourceChannel, cinder::ImageSourceFileWic, cinder::ImageSourcePng, and cinder::ImageSourceSurface.
|
| typedef void(ImageSource::* | RowFunc )(ImageTargetRef, int32_t, const void *) |
| |
| enum | ColorModel { CM_RGB,
CM_GRAY,
CM_UNKNOWN
} |
| |
typedef enum
cinder::ImageIo::ColorModel | ColorModel |
| |
| enum | DataType { UINT8,
UINT16,
FLOAT32,
DATA_UNKNOWN
} |
| |
typedef enum
cinder::ImageIo::DataType | DataType |
| |
| enum | ChannelType {
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
} |
| |
typedef enum
cinder::ImageIo::ChannelType | ChannelType |
| |
| enum | ChannelOrder {
RGBA,
BGRA,
ARGB,
ABGR,
RGBX,
BGRX,
XRGB,
XBGR,
RGB,
BGR,
Y,
YA,
CUSTOM
} |
| |
typedef enum
cinder::ImageIo::ChannelOrder | ChannelOrder |
| |
|
| void | setPixelAspectRatio (float pixelAspectRatio) |
| |
| void | setPremultiplied (bool premult=true) |
| |
| void | setCustomPixelInc (int8_t customPixelInc) |
| | Allows declaration of a pixel increment different from what its ColorModel would imply. For example a non-planar Channel. More...
|
| |
| RowFunc | setupRowFunc (ImageTargetRef target) |
| |
| void | setupRowFuncRgbSource (ImageTargetRef target) |
| |
| void | setupRowFuncGraySource (ImageTargetRef target) |
| |
| template<typename SD , typename TD , ColorModel TCS> |
| RowFunc | setupRowFuncForTypesAndTargetColorModel (ImageTargetRef target) |
| |
| template<typename SD , typename TD > |
| RowFunc | setupRowFuncForTypes (ImageTargetRef target) |
| |
| template<typename SD > |
| RowFunc | setupRowFuncForSourceType (ImageTargetRef target) |
| |
| template<typename SD , typename TD , ImageIo::ColorModel TCM, bool ALPHA> |
| void | rowFuncSourceRgb (ImageTargetRef target, int32_t row, const void *data) |
| |
| template<typename SD , typename TD , ColorModel TCM, bool ALPHA> |
| 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) |
| |
| typedef void(ImageSource::* cinder::ImageSource::RowFunc)(ImageTargetRef, int32_t, const void *) |
| Enumerator |
|---|
| CM_RGB |
|
| CM_GRAY |
|
| CM_UNKNOWN |
|
| Enumerator |
|---|
| UINT8 |
|
| UINT16 |
|
| FLOAT32 |
|
| DATA_UNKNOWN |
|
| Enumerator |
|---|
| 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 |
|
| Enumerator |
|---|
| RGBA |
|
| BGRA |
|
| ARGB |
|
| ABGR |
|
| RGBX |
|
| BGRX |
|
| XRGB |
|
| XBGR |
|
| RGB |
|
| BGR |
|
| Y |
|
| YA |
|
| CUSTOM |
|
| cinder::ImageSource::ImageSource |
( |
| ) |
|
| virtual cinder::ImageSource::~ImageSource |
( |
| ) |
|
|
virtual |
| float cinder::ImageSource::getPixelAspectRatio |
( |
| ) |
const |
Returns the aspect ratio of individual pixels to accommodate non-square pixels.
| bool cinder::ImageSource::isPremultiplied |
( |
| ) |
const |
Returns whether the ImageSource's color data has been premultiplied by its alpha channel.
| void cinder::ImageSource::setPixelAspectRatio |
( |
float |
pixelAspectRatio | ) |
|
|
protected |
| void cinder::ImageSource::setPremultiplied |
( |
bool |
premult = true | ) |
|
|
protected |
| void cinder::ImageSource::setCustomPixelInc |
( |
int8_t |
customPixelInc | ) |
|
|
protected |
Allows declaration of a pixel increment different from what its ColorModel would imply. For example a non-planar Channel.
| void cinder::ImageSource::setupRowFuncRgbSource |
( |
ImageTargetRef |
target | ) |
|
|
protected |
| void cinder::ImageSource::setupRowFuncGraySource |
( |
ImageTargetRef |
target | ) |
|
|
protected |
template<typename SD , typename TD , ColorModel TCS>
template<typename SD , typename TD >
template<typename SD , typename TD , ImageIo::ColorModel TCM, bool ALPHA>
| void cinder::ImageSource::rowFuncSourceRgb |
( |
ImageTargetRef |
target, |
|
|
int32_t |
row, |
|
|
const void * |
data |
|
) |
| |
|
protected |
template<typename SD , typename TD , ImageIo::ColorModel TCM, bool ALPHA>
| void cinder::ImageSource::rowFuncSourceGray |
( |
ImageTargetRef |
target, |
|
|
int32_t |
row, |
|
|
const void * |
data |
|
) |
| |
|
protected |
template<typename SD , typename TD , ImageIo::ColorModel TCM>
template<typename SD , typename TD >
| int32_t cinder::ImageIo::getWidth |
( |
| ) |
const |
|
inherited |
| int32_t cinder::ImageIo::getHeight |
( |
| ) |
const |
|
inherited |
| ColorModel cinder::ImageIo::getColorModel |
( |
| ) |
const |
|
inherited |
| DataType cinder::ImageIo::getDataType |
( |
| ) |
const |
|
inherited |
| virtual bool cinder::ImageIo::hasAlpha |
( |
| ) |
const |
|
virtualinherited |
| void cinder::ImageIo::translateRgbColorModelToOffsets |
( |
ChannelOrder |
channelOrder, |
|
|
int8_t * |
red, |
|
|
int8_t * |
green, |
|
|
int8_t * |
blue, |
|
|
int8_t * |
alpha, |
|
|
int8_t * |
inc |
|
) |
| |
|
staticinherited |
| void cinder::ImageIo::translateGrayColorModelToOffsets |
( |
ChannelOrder |
channelOrder, |
|
|
int8_t * |
gray, |
|
|
int8_t * |
alpha, |
|
|
int8_t * |
inc |
|
) |
| |
|
staticinherited |
| bool cinder::ImageIo::channelOrderHasAlpha |
( |
ChannelOrder |
channelOrder | ) |
|
|
staticinherited |
| int8_t cinder::ImageIo::channelOrderNumChannels |
( |
ChannelOrder |
channelOrder | ) |
|
|
staticinherited |
| uint8_t cinder::ImageIo::dataTypeBytes |
( |
DataType |
dataType | ) |
|
|
staticinherited |
| vector< string > cinder::ImageIo::getLoadExtensions |
( |
| ) |
|
|
staticinherited |
Returns a vector of the extensions ImageIo supports for loading. Suitable for the extensions parameters of getOpenFilePath()
| vector< string > cinder::ImageIo::getWriteExtensions |
( |
| ) |
|
|
staticinherited |
Returns a vector of the extensions ImageIo supports for writing. Suitable for the extensions parameters of getSaveFilePath()
| void cinder::ImageIo::setSize |
( |
int32_t |
width, |
|
|
int32_t |
height |
|
) |
| |
|
protectedinherited |
| void cinder::ImageIo::setColorModel |
( |
ColorModel |
colorModel | ) |
|
|
protectedinherited |
| void cinder::ImageIo::setDataType |
( |
DataType |
aDataType | ) |
|
|
protectedinherited |
| void cinder::ImageIo::setChannelOrder |
( |
ChannelOrder |
aChannelOrder | ) |
|
|
protectedinherited |
| float cinder::ImageSource::mPixelAspectRatio |
|
protected |
| bool cinder::ImageSource::mIsPremultiplied |
|
protected |
| int8_t cinder::ImageSource::mCustomPixelInc |
|
protected |
| int8_t cinder::ImageSource::mRowFuncSourceRed |
|
protected |
| int8_t cinder::ImageSource::mRowFuncSourceGreen |
|
protected |
| int8_t cinder::ImageSource::mRowFuncSourceBlue |
|
protected |
| int8_t cinder::ImageSource::mRowFuncSourceAlpha |
|
protected |
| int8_t cinder::ImageSource::mRowFuncTargetRed |
|
protected |
| int8_t cinder::ImageSource::mRowFuncTargetGreen |
|
protected |
| int8_t cinder::ImageSource::mRowFuncTargetBlue |
|
protected |
| int8_t cinder::ImageSource::mRowFuncTargetAlpha |
|
protected |
| int8_t cinder::ImageSource::mRowFuncSourceGray |
|
protected |
| int8_t cinder::ImageSource::mRowFuncTargetGray |
|
protected |
| int8_t cinder::ImageSource::mRowFuncSourceInc |
|
protected |
| int8_t cinder::ImageSource::mRowFuncTargetInc |
|
protected |
| int32_t cinder::ImageIo::mWidth |
|
protectedinherited |
| int32_t cinder::ImageIo::mHeight |
|
protectedinherited |
The documentation for this class was generated from the following files: