Blender V4.3
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_ConstCPUProcessorRcPtrOCIO_processorGetCPUProcessor (OCIO_ConstProcessorRcPtr *processor)
 
bool OCIO_cpuProcessorIsNoOp (OCIO_ConstCPUProcessorRcPtr *cpu_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 float temperature, const float tint, const bool use_white_balance, 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 float temperature, const float tint, const bool use_predivide, const bool use_overlay, const bool use_hdr, const bool use_white_balance)
 
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 248 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 233 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 238 of file ocio_capi.cc.

References IOCIOImpl::colorSpaceGetFamily(), and impl.

◆ OCIO_colorSpaceGetName()

const char * OCIO_colorSpaceGetName ( OCIO_ConstColorSpaceRcPtr * cs)

Definition at line 228 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 243 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 162 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 157 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 152 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 31 of file ocio_capi.cc.

References IOCIOImpl::getCurrentConfig(), and impl.

Referenced by colormanagement_init().

◆ OCIO_configCreateFromEnv()

OCIO_ConstConfigRcPtr * OCIO_configCreateFromEnv ( void )

Definition at line 44 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 49 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 64 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 80 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 117 of file ocio_capi.cc.

References IOCIOImpl::configGetDefaultLumaCoefs(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configGetDefaultView()

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

Definition at line 95 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 90 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 110 of file ocio_capi.cc.

References IOCIOImpl::configGetDisplayColorSpaceName(), and impl.

Referenced by get_display_colorspace_name().

◆ OCIO_configGetIndexForColorSpace()

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

Definition at line 75 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 137 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 132 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 59 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 85 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 127 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 100 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 105 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 122 of file ocio_capi.cc.

References IOCIOImpl::configGetXYZtoSceneLinear(), and impl.

Referenced by colormanage_load_config().

◆ OCIO_configRelease()

◆ 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()

◆ OCIO_cpuProcessorApplyRGBA()

void OCIO_cpuProcessorApplyRGBA ( OCIO_ConstCPUProcessorRcPtr * cpu_processor,
float * pixel )

◆ OCIO_cpuProcessorApplyRGBA_predivide()

void OCIO_cpuProcessorApplyRGBA_predivide ( OCIO_ConstCPUProcessorRcPtr * processor,
float * pixel )

◆ OCIO_cpuProcessorIsNoOp()

bool OCIO_cpuProcessorIsNoOp ( OCIO_ConstCPUProcessorRcPtr * cpu_processor)

Definition at line 192 of file ocio_capi.cc.

References IOCIOImpl::cpuProcessorIsNoOp(), and impl.

Referenced by IMB_colormanagement_processor_is_noop().

◆ 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 float temperature,
const float tint,
const bool use_white_balance,
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 20 of file ocio_capi.cc.

References impl, and NULL.

Referenced by colormanagement_exit().

◆ OCIO_getCurrentConfig()

◆ OCIO_getVersionHex()

int OCIO_getVersionHex ( void )

Definition at line 348 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 343 of file ocio_capi.cc.

References IOCIOImpl::getVersionString(), and impl.

◆ OCIO_gpuCacheFree()

void OCIO_gpuCacheFree ( void )

Definition at line 338 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 float temperature,
const float tint,
const bool use_predivide,
const bool use_overlay,
const bool use_hdr,
const bool use_white_balance )

◆ OCIO_gpuDisplayShaderUnbind()

void OCIO_gpuDisplayShaderUnbind ( void )

Definition at line 333 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 11 of file ocio_capi.cc.

References impl.

Referenced by colormanagement_init().

◆ OCIO_lookGetProcessSpace()

const char * OCIO_lookGetProcessSpace ( OCIO_ConstLookRcPtr * look)

Definition at line 142 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 147 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_processorRelease()

◆ OCIO_setCurrentConfig()

void OCIO_setCurrentConfig ( const OCIO_ConstConfigRcPtr * config)

Definition at line 39 of file ocio_capi.cc.

References impl, and IOCIOImpl::setCurrentConfig().

Referenced by colormanagement_init().

◆ OCIO_supportGPUShader()

bool OCIO_supportGPUShader ( void )

Definition at line 295 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 9 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_cpuProcessorIsNoOp(), 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().