Blender  V3.3
Macros | Functions
ocio_impl.cc File Reference
#include <cassert>
#include <iostream>
#include <math.h>
#include <sstream>
#include <string.h>
#include <OpenColorIO/OpenColorIO.h>
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_math_color.h"
#include "BLI_math_matrix.h"
#include "ocio_impl.h"

Go to the source code of this file.

Macros

#define OCIO_abort()
 

Functions

static void OCIO_reportError (const char *err)
 
static void OCIO_reportException (Exception &exception)
 
static bool to_scene_linear_matrix (ConstConfigRcPtr &config, const char *colorspace, float to_scene_linear[3][3])
 
static float compare_floats (float a, float b, float abs_diff, int ulp_diff)
 

Macro Definition Documentation

◆ OCIO_abort

#define OCIO_abort ( )

Definition at line 30 of file ocio_impl.cc.

Function Documentation

◆ compare_floats()

static float compare_floats ( float  a,
float  b,
float  abs_diff,
int  ulp_diff 
)
static

Definition at line 427 of file ocio_impl.cc.

References Freestyle::a, blender::math::abs(), usdtokens::b(), and fabsf.

◆ OCIO_reportError()

static void OCIO_reportError ( const char *  err)
static

Definition at line 40 of file ocio_impl.cc.

References err, and OCIO_abort.

Referenced by OCIO_reportException().

◆ OCIO_reportException()

static void OCIO_reportException ( Exception &  exception)
static

Definition at line 47 of file ocio_impl.cc.

References OCIO_reportError().

Referenced by to_scene_linear_matrix().

◆ to_scene_linear_matrix()

static bool to_scene_linear_matrix ( ConstConfigRcPtr &  config,
const char *  colorspace,
float  to_scene_linear[3][3] 
)
static

Definition at line 285 of file ocio_impl.cc.

References OCIO_reportException(), and unit_m3().