30#if !defined(_SPANDSP_IMAGE_TRANSLATE_H_)
31#define _SPANDSP_IMAGE_TRANSLATE_H_
45 IMAGE_TRANSLATE_FROM_MONO = 1,
46 IMAGE_TRANSLATE_FROM_GRAY_8 = 2,
47 IMAGE_TRANSLATE_FROM_GRAY_16 = 3,
48 IMAGE_TRANSLATE_FROM_COLOUR_8 = 4,
49 IMAGE_TRANSLATE_FROM_COLOUR_16 = 5
52#if defined(__cplusplus)
60SPAN_DECLARE(
int)
image_translate_row(image_translate_state_t *s, uint8_t buf[],
size_t len);
91 void *row_read_user_data);
103#if defined(__cplusplus)
int image_translate_get_output_length(image_translate_state_t *s)
Get the length of the image being produced by an image translation context.
Definition image_translate.c:352
int image_translate_row(image_translate_state_t *s, uint8_t buf[], size_t len)
Get the next row of a translated image.
Definition image_translate.c:228
int image_translate_get_output_width(image_translate_state_t *s)
Get the width of the image being produced by an image translation context.
Definition image_translate.c:346
int image_translate_release(image_translate_state_t *s)
Release the resources associated with an image translation context.
Definition image_translate.c:437
image_translate_state_t * image_translate_init(image_translate_state_t *s, int input_format, int input_width, int input_length, int output_width, t4_row_read_handler_t row_read_handler, void *row_read_user_data)
Initialise an image translation context for rescaling and squashing a gray scale or colour image to a...
Definition image_translate.c:358
int image_translate_free(image_translate_state_t *s)
Free the resources associated with an image translation context.
Definition image_translate.c:458
Definition private/image_translate.h:32
int(* t4_row_read_handler_t)(void *user_data, uint8_t buf[], size_t len)
Definition t4_tx.h:36