Go to the documentation of this file.
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)
91 void *row_read_user_data);
103 #if defined(__cplusplus)
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
Definition: private/image_translate.h:31
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_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 ima_adpcm_encode(ima_adpcm_state_t *s, uint8_t ima_data[], const int16_t amp[], int len)
Definition: ima_adpcm.c:425
int image_translate_free(image_translate_state_t *s)
Free the resources associated with an image translation context.
Definition: image_translate.c:458
int(* t4_row_read_handler_t)(void *user_data, uint8_t buf[], size_t len)
Definition: t4_tx.h:36
int image_translate_release(image_translate_state_t *s)
Release the resources associated with an image translation context.
Definition: image_translate.c:437
int image_translate_release(image_translate_state_t *s)
Release the resources associated with an image translation context.
Definition: image_translate.c:437
int ima_adpcm_release(ima_adpcm_state_t *s)
Definition: ima_adpcm.c:296
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
@ IMA_ADPCM_IMA4
Definition: ima_adpcm.h:48
int image_translate_free(image_translate_state_t *s)
Free the resources associated with an image translation context.
Definition: image_translate.c:458
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
@ IMA_ADPCM_DVI4
Definition: ima_adpcm.h:50
Definition: private/ima_adpcm.h:38
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_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
@ IMA_ADPCM_VDVI
Definition: ima_adpcm.h:52
ima_adpcm_state_t * ima_adpcm_init(ima_adpcm_state_t *s, int variant, int chunk_size)
Definition: ima_adpcm.c:279
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 ima_adpcm_decode(ima_adpcm_state_t *s, int16_t amp[], const uint8_t ima_data[], int ima_bytes)
Definition: ima_adpcm.c:309