#include "tiffiop.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "uvcode.h"
Go to the source code of this file.
|
| double | LogL16toY (int p16) |
| |
| int | LogL16fromY (double Y, int em) |
| |
| void | XYZtoRGB24 (float xyz[3], uint8 rgb[3]) |
| |
| double | LogL10toY (int p10) |
| |
| int | LogL10fromY (double Y, int em) |
| |
| int | uv_encode (double u, double v, int em) |
| |
| int | uv_decode (double *up, double *vp, int c) |
| |
| void | LogLuv24toXYZ (uint32 p, float XYZ[3]) |
| |
| uint32 | LogLuv24fromXYZ (float XYZ[3], int em) |
| |
| void | LogLuv32toXYZ (uint32 p, float XYZ[3]) |
| |
| uint32 | LogLuv32fromXYZ (float XYZ[3], int em) |
| |
| int | TIFFInitSGILog (TIFF *tif, int scheme) |
| |
| #define DecoderState |
( |
|
tif | ) |
((LogLuvState*) (tif)->tif_data) |
| #define EncoderState |
( |
|
tif | ) |
((LogLuvState*) (tif)->tif_data) |
| #define exp2 |
( |
|
x | ) |
exp(M_LN2*(x)) |
Value: (int)(x) : \
(int)((x) + rand()*(1./RAND_MAX) - .5))
#define SGILOGENCODE_NODITHER
Definition at line 642 of file tif_luv.c.
| #define log2 |
( |
|
x | ) |
((1./M_LN2)*log(x)) |
| #define M_LN2 0.69314718055994530942 |
| #define M_PI 3.14159265358979323846 |
| #define MINRUN 4 /* minimum run length */ |
| #define PACK |
( |
|
s, |
|
|
|
b, |
|
|
|
f |
|
) |
| (((b)<<6)|((s)<<3)|(f)) |
| #define PACK |
( |
|
a, |
|
|
|
b |
|
) |
| (((a)<<3)|(b)) |
| #define SGILOGDATAFMT_UNKNOWN -1 |
| int LogL10fromY |
( |
double |
Y, |
|
|
int |
em |
|
) |
| |
| double LogL10toY |
( |
int |
p10 | ) |
|
| int LogL16fromY |
( |
double |
Y, |
|
|
int |
em |
|
) |
| |
| double LogL16toY |
( |
int |
p16 | ) |
|
| uint32 LogLuv24fromXYZ |
( |
float |
XYZ[3], |
|
|
int |
em |
|
) |
| |
| void LogLuv24toXYZ |
( |
uint32 |
p, |
|
|
float |
XYZ[3] |
|
) |
| |
| uint32 LogLuv32fromXYZ |
( |
float |
XYZ[3], |
|
|
int |
em |
|
) |
| |
| void LogLuv32toXYZ |
( |
uint32 |
p, |
|
|
float |
XYZ[3] |
|
) |
| |
| int TIFFInitSGILog |
( |
TIFF * |
tif, |
|
|
int |
scheme |
|
) |
| |
| int uv_decode |
( |
double * |
up, |
|
|
double * |
vp, |
|
|
int |
c |
|
) |
| |
| int uv_encode |
( |
double |
u, |
|
|
double |
v, |
|
|
int |
em |
|
) |
| |
| void XYZtoRGB24 |
( |
float |
xyz[3], |
|
|
uint8 |
rgb[3] |
|
) |
| |