Blender  V3.3
Functions | Variables
ocio_capi.cc File Reference
#include "MEM_guardedalloc.h"
#include "ocio_impl.h"

Go to the source code of this file.

Functions

void OCIO_init ()
 
void OCIO_exit ()
 
OCIO_ConstConfigRcPtr * OCIO_getCurrentConfig ()
 
OCIO_ConstConfigRcPtr * OCIO_configCreateFallback ()
 
void OCIO_setCurrentConfig (const OCIO_ConstConfigRcPtr *config)
 
OCIO_ConstConfigRcPtr * OCIO_configCreateFromEnv ()
 
OCIO_ConstConfigRcPtr * OCIO_configCreateFromFile (const char *filename)
 
void OCIO_configRelease (OCIO_ConstConfigRcPtr *config)
 
int OCIO_configGetNumColorSpaces (OCIO_ConstConfigRcPtr *config)
 
const char * OCIO_configGetColorSpaceNameByIndex (OCIO_ConstConfigRcPtr *config, int index)
 
OCIO_ConstColorSpaceRcPtr * OCIO_configGetColorSpace (OCIO_ConstConfigRcPtr *config, const char *name)
 
int OCIO_configGetIndexForColorSpace (OCIO_ConstConfigRcPtr *config, const char *name)
 
const char * OCIO_configGetDefaultDisplay (OCIO_ConstConfigRcPtr *config)
 
int OCIO_configGetNumDisplays (OCIO_ConstConfigRcPtr *config)
 
const char * OCIO_configGetDisplay (OCIO_ConstConfigRcPtr *config, int index)
 
const char * OCIO_configGetDefaultView (OCIO_ConstConfigRcPtr *config, const char *display)
 
int OCIO_configGetNumViews (OCIO_ConstConfigRcPtr *config, const char *display)
 
const char * OCIO_configGetView (OCIO_ConstConfigRcPtr *config, const char *display, int index)
 
const char * OCIO_configGetDisplayColorSpaceName (OCIO_ConstConfigRcPtr *config, const char *display, const char *view)
 
void OCIO_configGetDefaultLumaCoefs (OCIO_ConstConfigRcPtr *config, float *rgb)
 
void OCIO_configGetXYZtoSceneLinear (OCIO_ConstConfigRcPtr *config, float xyz_to_scene_linear[3][3])
 
int OCIO_configGetNumLooks (OCIO_ConstConfigRcPtr *config)
 
const char * OCIO_configGetLookNameByIndex (OCIO_ConstConfigRcPtr *config, int index)
 
OCIO_ConstLookRcPtr * OCIO_configGetLook (OCIO_ConstConfigRcPtr *config, const char *name)
 
const char * OCIO_lookGetProcessSpace (OCIO_ConstLookRcPtr *look)
 
void OCIO_lookRelease (OCIO_ConstLookRcPtr *look)
 
int OCIO_colorSpaceIsInvertible (OCIO_ConstColorSpaceRcPtr *cs)
 
int OCIO_colorSpaceIsData (OCIO_ConstColorSpaceRcPtr *cs)
 
void OCIO_colorSpaceIsBuiltin (OCIO_ConstConfigRcPtr *config, OCIO_ConstColorSpaceRcPtr *cs, bool *is_scene_linear, bool *is_srgb)
 
void OCIO_colorSpaceRelease (OCIO_ConstColorSpaceRcPtr *cs)
 
OCIO_ConstProcessorRcPtr * OCIO_configGetProcessorWithNames (OCIO_ConstConfigRcPtr *config, const char *srcName, const char *dstName)
 
void OCIO_processorRelease (OCIO_ConstProcessorRcPtr *processor)
 
OCIO_ConstCPUProcessorRcPtr * OCIO_processorGetCPUProcessor (OCIO_ConstProcessorRcPtr *processor)
 
void OCIO_cpuProcessorApply (OCIO_ConstCPUProcessorRcPtr *cpu_processor, OCIO_PackedImageDesc *img)
 
void OCIO_cpuProcessorApply_predivide (OCIO_ConstCPUProcessorRcPtr *cpu_processor, OCIO_PackedImageDesc *img)
 
void OCIO_cpuProcessorApplyRGB (OCIO_ConstCPUProcessorRcPtr *cpu_processor, float *pixel)
 
void OCIO_cpuProcessorApplyRGBA (OCIO_ConstCPUProcessorRcPtr *cpu_processor, float *pixel)
 
void OCIO_cpuProcessorApplyRGBA_predivide (OCIO_ConstCPUProcessorRcPtr *processor, float *pixel)
 
void OCIO_cpuProcessorRelease (OCIO_ConstCPUProcessorRcPtr *cpu_processor)
 
const char * OCIO_colorSpaceGetName (OCIO_ConstColorSpaceRcPtr *cs)
 
const char * OCIO_colorSpaceGetDescription (OCIO_ConstColorSpaceRcPtr *cs)
 
const char * OCIO_colorSpaceGetFamily (OCIO_ConstColorSpaceRcPtr *cs)
 
int OCIO_colorSpaceGetNumAliases (OCIO_ConstColorSpaceRcPtr *cs)
 
const char * OCIO_colorSpaceGetAlias (OCIO_ConstColorSpaceRcPtr *cs, const int index)
 
OCIO_ConstProcessorRcPtr * OCIO_createDisplayProcessor (OCIO_ConstConfigRcPtr *config, const char *input, const char *view, const char *display, const char *look, const float scale, const float exponent, const bool inverse)
 
OCIO_PackedImageDesc * OCIO_createOCIO_PackedImageDesc (float *data, long width, long height, long numChannels, long chanStrideBytes, long xStrideBytes, long yStrideBytes)
 
void OCIO_PackedImageDescRelease (OCIO_PackedImageDesc *id)
 
bool OCIO_supportGPUShader ()
 
bool OCIO_gpuDisplayShaderBind (OCIO_ConstConfigRcPtr *config, const char *input, const char *view, const char *display, const char *look, OCIO_CurveMappingSettings *curve_mapping_settings, const float scale, const float exponent, const float dither, const bool use_predivide, const bool use_overlay)
 
void OCIO_gpuDisplayShaderUnbind ()
 
void OCIO_gpuCacheFree ()
 
const char * OCIO_getVersionString ()
 
int OCIO_getVersionHex ()
 

Variables

static IOCIOImplimpl = NULL
 

Function Documentation

◆ OCIO_colorSpaceGetAlias()

const char* OCIO_colorSpaceGetAlias ( OCIO_ConstColorSpaceRcPtr *  cs,
const int  index 
)

Definition at line 242 of file ocio_capi.cc.

References IOCIOImpl::colorSpaceGetAlias(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_colorSpaceGetDescription()

const char* OCIO_colorSpaceGetDescription ( OCIO_ConstColorSpaceRcPtr *  cs)

Definition at line 227 of file ocio_capi.cc.

References IOCIOImpl::colorSpaceGetDescription(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_colorSpaceGetFamily()

const char* OCIO_colorSpaceGetFamily ( OCIO_ConstColorSpaceRcPtr *  cs)

Definition at line 232 of file ocio_capi.cc.

References IOCIOImpl::colorSpaceGetFamily(), and impl.

◆ OCIO_colorSpaceGetName()

const char* OCIO_colorSpaceGetName ( OCIO_ConstColorSpaceRcPtr *  cs)

Definition at line 222 of file ocio_capi.cc.

References IOCIOImpl::colorSpaceGetName(), and impl.

Referenced by colormanage_role_color_space_name_get().

◆ OCIO_colorSpaceGetNumAliases()

int OCIO_colorSpaceGetNumAliases ( OCIO_ConstColorSpaceRcPtr *  cs)

Definition at line 237 of file ocio_capi.cc.

References IOCIOImpl::colorSpaceGetNumAliases(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_colorSpaceIsBuiltin()

void OCIO_colorSpaceIsBuiltin ( OCIO_ConstConfigRcPtr *  config,
OCIO_ConstColorSpaceRcPtr *  cs,
bool is_scene_linear,
bool is_srgb 
)

Definition at line 161 of file ocio_capi.cc.

References IOCIOImpl::colorSpaceIsBuiltin(), and impl.

Referenced by colormanage_ensure_srgb_scene_linear_info().

◆ OCIO_colorSpaceIsData()

int OCIO_colorSpaceIsData ( OCIO_ConstColorSpaceRcPtr *  cs)

Definition at line 156 of file ocio_capi.cc.

References IOCIOImpl::colorSpaceIsData(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_colorSpaceIsInvertible()

int OCIO_colorSpaceIsInvertible ( OCIO_ConstColorSpaceRcPtr *  cs)

Definition at line 151 of file ocio_capi.cc.

References IOCIOImpl::colorSpaceIsInvertible(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_colorSpaceRelease()

void OCIO_colorSpaceRelease ( OCIO_ConstColorSpaceRcPtr *  cs)

◆ OCIO_configCreateFallback()

OCIO_ConstConfigRcPtr* OCIO_configCreateFallback ( void  )

Definition at line 30 of file ocio_capi.cc.

References IOCIOImpl::getCurrentConfig(), and impl.

Referenced by colormanagement_init().

◆ OCIO_configCreateFromEnv()

OCIO_ConstConfigRcPtr* OCIO_configCreateFromEnv ( void  )

Definition at line 43 of file ocio_capi.cc.

References IOCIOImpl::configCreateFromEnv(), and impl.

Referenced by colormanagement_init().

◆ OCIO_configCreateFromFile()

OCIO_ConstConfigRcPtr* OCIO_configCreateFromFile ( const char *  filename)

Definition at line 48 of file ocio_capi.cc.

References IOCIOImpl::configCreateFromFile(), and impl.

Referenced by colormanagement_init().

◆ OCIO_configGetColorSpace()

OCIO_ConstColorSpaceRcPtr* OCIO_configGetColorSpace ( OCIO_ConstConfigRcPtr *  config,
const char *  name 
)

◆ OCIO_configGetColorSpaceNameByIndex()

const char* OCIO_configGetColorSpaceNameByIndex ( OCIO_ConstConfigRcPtr *  config,
int  index 
)

Definition at line 63 of file ocio_capi.cc.

References IOCIOImpl::configGetColorSpaceNameByIndex(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configGetDefaultDisplay()

const char* OCIO_configGetDefaultDisplay ( OCIO_ConstConfigRcPtr *  config)

Definition at line 79 of file ocio_capi.cc.

References IOCIOImpl::configGetDefaultDisplay(), and impl.

Referenced by colormanage_display_get_default_name().

◆ OCIO_configGetDefaultLumaCoefs()

void OCIO_configGetDefaultLumaCoefs ( OCIO_ConstConfigRcPtr *  config,
float rgb 
)

Definition at line 116 of file ocio_capi.cc.

References IOCIOImpl::configGetDefaultLumaCoefs(), impl, and usdtokens::rgb().

Referenced by colormanage_load_config().

◆ OCIO_configGetDefaultView()

const char* OCIO_configGetDefaultView ( OCIO_ConstConfigRcPtr *  config,
const char *  display 
)

Definition at line 94 of file ocio_capi.cc.

References IOCIOImpl::configGetDefaultView(), and impl.

Referenced by colormanage_view_get_default_name().

◆ OCIO_configGetDisplay()

const char* OCIO_configGetDisplay ( OCIO_ConstConfigRcPtr *  config,
int  index 
)

Definition at line 89 of file ocio_capi.cc.

References IOCIOImpl::configGetDisplay(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configGetDisplayColorSpaceName()

const char* OCIO_configGetDisplayColorSpaceName ( OCIO_ConstConfigRcPtr *  config,
const char *  display,
const char *  view 
)

Definition at line 109 of file ocio_capi.cc.

References IOCIOImpl::configGetDisplayColorSpaceName(), impl, and view.

Referenced by get_display_colorspace_name().

◆ OCIO_configGetIndexForColorSpace()

int OCIO_configGetIndexForColorSpace ( OCIO_ConstConfigRcPtr *  config,
const char *  name 
)

Definition at line 74 of file ocio_capi.cc.

References IOCIOImpl::configGetIndexForColorSpace(), and impl.

◆ OCIO_configGetLook()

OCIO_ConstLookRcPtr* OCIO_configGetLook ( OCIO_ConstConfigRcPtr *  config,
const char *  name 
)

Definition at line 136 of file ocio_capi.cc.

References IOCIOImpl::configGetLook(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configGetLookNameByIndex()

const char* OCIO_configGetLookNameByIndex ( OCIO_ConstConfigRcPtr *  config,
int  index 
)

Definition at line 131 of file ocio_capi.cc.

References IOCIOImpl::configGetLookNameByIndex(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configGetNumColorSpaces()

int OCIO_configGetNumColorSpaces ( OCIO_ConstConfigRcPtr *  config)

Definition at line 58 of file ocio_capi.cc.

References IOCIOImpl::configGetNumColorSpaces(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configGetNumDisplays()

int OCIO_configGetNumDisplays ( OCIO_ConstConfigRcPtr *  config)

Definition at line 84 of file ocio_capi.cc.

References IOCIOImpl::configGetNumDisplays(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configGetNumLooks()

int OCIO_configGetNumLooks ( OCIO_ConstConfigRcPtr *  config)

Definition at line 126 of file ocio_capi.cc.

References IOCIOImpl::configGetNumLooks(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configGetNumViews()

int OCIO_configGetNumViews ( OCIO_ConstConfigRcPtr *  config,
const char *  display 
)

Definition at line 99 of file ocio_capi.cc.

References IOCIOImpl::configGetNumViews(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configGetProcessorWithNames()

OCIO_ConstProcessorRcPtr* OCIO_configGetProcessorWithNames ( OCIO_ConstConfigRcPtr *  config,
const char *  srcName,
const char *  dstName 
)

◆ OCIO_configGetView()

const char* OCIO_configGetView ( OCIO_ConstConfigRcPtr *  config,
const char *  display,
int  index 
)

Definition at line 104 of file ocio_capi.cc.

References IOCIOImpl::configGetView(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configGetXYZtoSceneLinear()

void OCIO_configGetXYZtoSceneLinear ( OCIO_ConstConfigRcPtr *  config,
float  xyz_to_scene_linear[3][3] 
)

Definition at line 121 of file ocio_capi.cc.

References IOCIOImpl::configGetXYZtoSceneLinear(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configRelease()

void OCIO_configRelease ( OCIO_ConstConfigRcPtr *  config)

◆ OCIO_cpuProcessorApply()

void OCIO_cpuProcessorApply ( OCIO_ConstCPUProcessorRcPtr *  cpu_processor,
OCIO_PackedImageDesc *  img 
)

◆ OCIO_cpuProcessorApply_predivide()

void OCIO_cpuProcessorApply_predivide ( OCIO_ConstCPUProcessorRcPtr *  cpu_processor,
OCIO_PackedImageDesc *  img 
)

◆ OCIO_cpuProcessorApplyRGB()

void OCIO_cpuProcessorApplyRGB ( OCIO_ConstCPUProcessorRcPtr *  cpu_processor,
float pixel 
)

◆ OCIO_cpuProcessorApplyRGBA()

void OCIO_cpuProcessorApplyRGBA ( OCIO_ConstCPUProcessorRcPtr *  cpu_processor,
float pixel 
)

◆ OCIO_cpuProcessorApplyRGBA_predivide()

void OCIO_cpuProcessorApplyRGBA_predivide ( OCIO_ConstCPUProcessorRcPtr *  processor,
float pixel 
)

◆ OCIO_cpuProcessorRelease()

void OCIO_cpuProcessorRelease ( OCIO_ConstCPUProcessorRcPtr *  cpu_processor)

◆ OCIO_createDisplayProcessor()

OCIO_ConstProcessorRcPtr* OCIO_createDisplayProcessor ( OCIO_ConstConfigRcPtr *  config,
const char *  input,
const char *  view,
const char *  display,
const char *  look,
const float  scale,
const float  exponent,
const bool  inverse 
)

◆ OCIO_createOCIO_PackedImageDesc()

OCIO_PackedImageDesc* OCIO_createOCIO_PackedImageDesc ( float data,
long  width,
long  height,
long  numChannels,
long  chanStrideBytes,
long  xStrideBytes,
long  yStrideBytes 
)

◆ OCIO_exit()

void OCIO_exit ( void  )

Definition at line 19 of file ocio_capi.cc.

References impl, and NULL.

Referenced by colormanage_free_config().

◆ OCIO_getCurrentConfig()

OCIO_ConstConfigRcPtr* OCIO_getCurrentConfig ( void  )

◆ OCIO_getVersionHex()

int OCIO_getVersionHex ( void  )

Definition at line 322 of file ocio_capi.cc.

References IOCIOImpl::getVersionHex(), and impl.

Referenced by make_ocio_info().

◆ OCIO_getVersionString()

const char* OCIO_getVersionString ( void  )

Definition at line 317 of file ocio_capi.cc.

References IOCIOImpl::getVersionString(), and impl.

◆ OCIO_gpuCacheFree()

void OCIO_gpuCacheFree ( void  )

Definition at line 312 of file ocio_capi.cc.

References IOCIOImpl::gpuCacheFree(), and impl.

Referenced by colormanagement_exit().

◆ OCIO_gpuDisplayShaderBind()

bool OCIO_gpuDisplayShaderBind ( OCIO_ConstConfigRcPtr *  config,
const char *  input,
const char *  view,
const char *  display,
const char *  look,
OCIO_CurveMappingSettings curve_mapping_settings,
const float  scale,
const float  exponent,
const float  dither,
const bool  use_predivide,
const bool  use_overlay 
)

◆ OCIO_gpuDisplayShaderUnbind()

void OCIO_gpuDisplayShaderUnbind ( void  )

Definition at line 307 of file ocio_capi.cc.

References IOCIOImpl::gpuDisplayShaderUnbind(), and impl.

Referenced by IMB_colormanagement_finish_glsl_draw().

◆ OCIO_init()

void OCIO_init ( void  )

Definition at line 10 of file ocio_capi.cc.

References impl.

Referenced by colormanagement_init().

◆ OCIO_lookGetProcessSpace()

const char* OCIO_lookGetProcessSpace ( OCIO_ConstLookRcPtr *  look)

Definition at line 141 of file ocio_capi.cc.

References impl, and IOCIOImpl::lookGetProcessSpace().

Referenced by colormanage_load_config().

◆ OCIO_lookRelease()

void OCIO_lookRelease ( OCIO_ConstLookRcPtr *  look)

Definition at line 146 of file ocio_capi.cc.

References impl, and IOCIOImpl::lookRelease().

Referenced by colormanage_load_config().

◆ OCIO_PackedImageDescRelease()

void OCIO_PackedImageDescRelease ( OCIO_PackedImageDesc *  id)

◆ OCIO_processorGetCPUProcessor()

OCIO_ConstCPUProcessorRcPtr* OCIO_processorGetCPUProcessor ( OCIO_ConstProcessorRcPtr *  processor)

◆ OCIO_processorRelease()

void OCIO_processorRelease ( OCIO_ConstProcessorRcPtr *  processor)

◆ OCIO_setCurrentConfig()

void OCIO_setCurrentConfig ( const OCIO_ConstConfigRcPtr *  config)

Definition at line 38 of file ocio_capi.cc.

References impl, and IOCIOImpl::setCurrentConfig().

Referenced by colormanagement_init().

◆ OCIO_supportGPUShader()

bool OCIO_supportGPUShader ( void  )

Definition at line 277 of file ocio_capi.cc.

References impl, and IOCIOImpl::supportGPUShader().

Referenced by IMB_colormanagement_support_glsl_draw().

Variable Documentation

◆ impl

IOCIOImpl* impl = NULL
static

Definition at line 8 of file ocio_capi.cc.

Referenced by blender::GVArrayCommon::GVArrayCommon(), OCIO_colorSpaceGetAlias(), OCIO_colorSpaceGetDescription(), OCIO_colorSpaceGetFamily(), OCIO_colorSpaceGetName(), OCIO_colorSpaceGetNumAliases(), OCIO_colorSpaceIsBuiltin(), OCIO_colorSpaceIsData(), OCIO_colorSpaceIsInvertible(), OCIO_colorSpaceRelease(), OCIO_configCreateFallback(), OCIO_configCreateFromEnv(), OCIO_configCreateFromFile(), OCIO_configGetColorSpace(), OCIO_configGetColorSpaceNameByIndex(), OCIO_configGetDefaultDisplay(), OCIO_configGetDefaultLumaCoefs(), OCIO_configGetDefaultView(), OCIO_configGetDisplay(), OCIO_configGetDisplayColorSpaceName(), OCIO_configGetIndexForColorSpace(), OCIO_configGetLook(), OCIO_configGetLookNameByIndex(), OCIO_configGetNumColorSpaces(), OCIO_configGetNumDisplays(), OCIO_configGetNumLooks(), OCIO_configGetNumViews(), OCIO_configGetProcessorWithNames(), OCIO_configGetView(), OCIO_configGetXYZtoSceneLinear(), OCIO_configRelease(), OCIO_cpuProcessorApply(), OCIO_cpuProcessorApply_predivide(), OCIO_cpuProcessorApplyRGB(), OCIO_cpuProcessorApplyRGBA(), OCIO_cpuProcessorApplyRGBA_predivide(), OCIO_cpuProcessorRelease(), OCIO_createDisplayProcessor(), OCIO_createOCIO_PackedImageDesc(), OCIO_exit(), OCIO_getCurrentConfig(), OCIO_getVersionHex(), OCIO_getVersionString(), OCIO_gpuCacheFree(), OCIO_gpuDisplayShaderBind(), OCIO_gpuDisplayShaderUnbind(), OCIO_init(), OCIO_lookGetProcessSpace(), OCIO_lookRelease(), OCIO_PackedImageDescRelease(), OCIO_processorGetCPUProcessor(), OCIO_processorRelease(), OCIO_setCurrentConfig(), OCIO_supportGPUShader(), and blender::VArrayCommon< T >::VArrayCommon().