14 #ifndef CONVERT_SRGB_H 15 #define CONVERT_SRGB_H 24 extern EXPCL_PANDA_PNMIMAGE
const unsigned char to_srgb8_table[256];
25 extern EXPCL_PANDA_PNMIMAGE
const unsigned char to_linear_uchar_table[256];
26 extern EXPCL_PANDA_PNMIMAGE
const float to_linear_float_table[256];
47 xel &into, xelval &into_alpha);
52 xel &into, xelval &into_alpha);
56 #if defined(__SSE2__) || defined(__i386__) || defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64) 57 EXPCL_PANDA_PNMIMAGE
unsigned char encode_sRGB_uchar_sse2(
float val);
58 EXPCL_PANDA_PNMIMAGE
void encode_sRGB_uchar_sse2(
const LColorf &from,
60 EXPCL_PANDA_PNMIMAGE
void encode_sRGB_uchar_sse2(
const LColorf &from,
61 xel &into, xelval &into_alpha);
64 EXPCL_PANDA_PNMIMAGE
bool has_sse2_sRGB_encode();
67 #define encode_sRGB_uchar_sse2 encode_sRGB_uchar 68 #define has_sse2_sRGB_encode() (false) EXPCL_PANDA_PNMIMAGE unsigned char decode_sRGB_uchar(unsigned char val)
Decodes the sRGB-encoded unsigned char value to a linearized unsigned char value.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
BEGIN_PUBLISH EXPCL_PANDA_PNMIMAGE float decode_sRGB_float(unsigned char val)
Decodes the sRGB-encoded unsigned char value to a linearized float in the range 0-1.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
EXPCL_PANDA_PNMIMAGE unsigned char encode_sRGB_uchar(unsigned char val)
Encodes the linearized unsigned char value to an sRGB-encoded unsigned char value.
EXPCL_PANDA_PNMIMAGE float encode_sRGB_float(unsigned char val)
Encodes the linearized unsigned char value to an sRGB-encoded floating- point value in ther range 0-1...