Blender V2.61 - r43446
Defines | Functions | Variables

math_color_inline.c File Reference

#include "BLI_math_color.h"
#include "BLI_utildefines.h"

Go to the source code of this file.

Defines

#define BLI_MATH_COLOR_INLINE_H

Functions

MINLINE void srgb_to_linearrgb_v3_v3 (float linear[3], const float srgb[3])
MINLINE void linearrgb_to_srgb_v3_v3 (float srgb[3], const float linear[3])
MINLINE void srgb_to_linearrgb_v4 (float linear[4], const float srgb[4])
MINLINE void linearrgb_to_srgb_v4 (float srgb[4], const float linear[4])
MINLINE void srgb_to_linearrgb_predivide_v4 (float linear[4], const float srgb[4])
MINLINE void linearrgb_to_srgb_predivide_v4 (float srgb[4], const float linear[4])
MINLINE unsigned short to_srgb_table_lookup (const float f)
MINLINE void linearrgb_to_srgb_ushort4 (unsigned short srgb[4], const float linear[4])
MINLINE void linearrgb_to_srgb_ushort4_predivide (unsigned short srgb[4], const float linear[4])
MINLINE void srgb_to_linearrgb_uchar4 (float linear[4], const unsigned char srgb[4])
MINLINE void srgb_to_linearrgb_uchar4_predivide (float linear[4], const unsigned char srgb[4])

Variables

float BLI_color_from_srgb_table [256]
unsigned short BLI_color_to_srgb_table [0x10000]

Detailed Description

Definition in file math_color_inline.c.


Define Documentation

#define BLI_MATH_COLOR_INLINE_H

Definition at line 35 of file math_color_inline.c.


Function Documentation

MINLINE void linearrgb_to_srgb_predivide_v4 ( float  srgb[4],
const float  linear[4] 
)
MINLINE void linearrgb_to_srgb_ushort4 ( unsigned short  srgb[4],
const float  linear[4] 
)
MINLINE void linearrgb_to_srgb_ushort4_predivide ( unsigned short  srgb[4],
const float  linear[4] 
)
MINLINE void linearrgb_to_srgb_v3_v3 ( float  srgb[3],
const float  linear[3] 
)
MINLINE void linearrgb_to_srgb_v4 ( float  srgb[4],
const float  linear[4] 
)
MINLINE void srgb_to_linearrgb_predivide_v4 ( float  linear[4],
const float  srgb[4] 
)
MINLINE void srgb_to_linearrgb_uchar4 ( float  linear[4],
const unsigned char  srgb[4] 
)
MINLINE void srgb_to_linearrgb_uchar4_predivide ( float  linear[4],
const unsigned char  srgb[4] 
)

Definition at line 164 of file math_color_inline.c.

References i, linearrgb_to_srgb(), and srgb_to_linearrgb_uchar4().

Referenced by IMB_buffer_float_from_byte().

MINLINE void srgb_to_linearrgb_v3_v3 ( float  linear[3],
const float  srgb[3] 
)
MINLINE void srgb_to_linearrgb_v4 ( float  linear[4],
const float  srgb[4] 
)
MINLINE unsigned short to_srgb_table_lookup ( const float  f)

Variable Documentation

Definition at line 504 of file math_color.c.

Referenced by BLI_init_srgb_conversion(), and srgb_to_linearrgb_uchar4().

unsigned short BLI_color_to_srgb_table[0x10000]

Definition at line 505 of file math_color.c.

Referenced by BLI_init_srgb_conversion(), and to_srgb_table_lookup().