Functions | |
void | extend_channel (unsigned char **input_channel, coeff_t **output_channel, int input_width, int input_height, int output_width, int output_height) |
void | extract_channel (coeff_t **input_channel, unsigned char **output_channel, int input_width, int input_height, int output_width, int output_height) |
void extend_channel | ( | unsigned char ** | input_channel, | |
coeff_t ** | output_channel, | |||
int | input_width, | |||
int | input_height, | |||
int | output_width, | |||
int | output_height | |||
) |
Channel extension
This function extends input_channel using mirroring operation. The result is stored in the output_channel. Note that the output_channel must be greater than or equal to the input_channel in both width and height. Minimal channel size allowed is 1x1 pixels. Boundary pixels are duplicated.
input_channel | Input channel | |
output_channel | Output channel | |
input_width | Input channel width | |
input_height | Input channel height | |
output_width | Output channel width | |
output_height | Output channel height |
VOID
References ABS.
Referenced by eps_encode_grayscale_block(), and eps_encode_truecolor_block().
void extract_channel | ( | coeff_t ** | input_channel, | |
unsigned char ** | output_channel, | |||
int | input_width, | |||
int | input_height, | |||
int | output_width, | |||
int | output_height | |||
) |
Channel extraction
This function extracts a block of pixels from the input_channel and stores it in the output_channel. Note that the output_channel size must be less than or equal to the input_channel in both width and height. Minimal channel size allowed is 1x1 pixels.
input_channel | Input channel | |
output_channel | Output channel | |
input_width | Input channel width | |
input_height | Input channel height | |
output_width | Output channel width | |
output_height | Output channel height |
VOID
References CLIP.
Referenced by eps_decode_grayscale_block(), and eps_decode_truecolor_block().