Encoder  4.4
VC-5 Sample Encoder
companding.h
Go to the documentation of this file.
1 
10 #ifndef _COMPANDING_H
11 #define _COMPANDING_H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 int32_t CompandedValue(int32_t value);
18 //PIXEL CompandedPixel(PIXEL value);
19 
20 uint32_t CompandingParameter();
21 
22 CODEC_ERROR ComputeCubicTable(int16_t cubic_table[], int cubic_table_length, int16_t maximum_value);
23 
24 // Invert the companding curve applied to a quantized coefficient magnitude (for debugging)
25 int32_t UncompandedValue(int32_t value);
27 CODEC_ERROR InvertCompanding(PIXEL *image, DIMENSION width, DIMENSION height, DIMENSION pitch);
28 
29 #endif
int32_t CompandedValue(int32_t value)
Apply the default companding curve to the specified value.
Definition: companding.c:34
int32_t UncompandedValue(int32_t value)
Invert the companding curve applied during encoding.
Definition: companding.c:180
uint_least16_t DIMENSION
Data type for image and frame dimensions.
Definition: types.h:24
PIXEL UncompandedPixel(PIXEL value)
Invert the companding curve applied to a pixel.
Definition: companding.c:240
int16_t PIXEL
Data type for pixels.
Definition: pixel.h:22
CODEC_ERROR InvertCompanding(PIXEL *image, DIMENSION width, DIMENSION height, DIMENSION pitch)
Invert the companding curve applied during encoding.
Definition: companding.c:303
uint32_t CompandingParameter()
Return the parameter that controls the companding curve.
Definition: companding.c:69
enum _codec_error CODEC_ERROR
Codec error codes.
CODEC_ERROR ComputeCubicTable(int16_t cubic_table[], int cubic_table_length, int16_t maximum_value)
Compute a table of values for the cubic companding curve.
Definition: companding.c:80