MLT 7.20.0
mlt_image.h
Go to the documentation of this file.
1
23#ifndef MLT_IMAGE_H
24#define MLT_IMAGE_H
25
26#include "mlt_types.h"
27
32#define MLT_IMAGE_MAX_PLANES 4
33
35{
37 int width;
38 int height;
42 void *data;
44 void *alpha;
47};
48
50extern void mlt_image_close(mlt_image self);
52 mlt_image self, void *data, mlt_image_format format, int width, int height);
54 mlt_image self, void **data, mlt_image_format *format, int *width, int *height);
59extern void mlt_image_fill_checkerboard(mlt_image self, double sample_aspect_ratio);
60extern void mlt_image_fill_white(mlt_image self, int full_range);
62extern const char *mlt_image_format_name(mlt_image_format format);
63extern mlt_image_format mlt_image_format_id(const char *name);
64extern int mlt_image_rgba_opaque(uint8_t *image, int width, int height);
65
66// Deprecated functions
67extern int mlt_image_format_size(mlt_image_format format, int width, int height, int *bpp);
69 mlt_image_format format, int width, int height, void *data, uint8_t *planes[4], int strides[4]);
70
71#endif
void mlt_image_alloc_alpha(mlt_image self)
void mlt_image_close(mlt_image self)
void mlt_image_fill_opaque(mlt_image self)
void mlt_image_format_planes(mlt_image_format format, int width, int height, void *data, uint8_t *planes[4], int strides[4])
mlt_image_format mlt_image_format_id(const char *name)
const char * mlt_image_format_name(mlt_image_format format)
void mlt_image_fill_checkerboard(mlt_image self, double sample_aspect_ratio)
void mlt_image_fill_white(mlt_image self, int full_range)
#define MLT_IMAGE_MAX_PLANES
Image class.
Definition mlt_image.h:32
void mlt_image_fill_black(mlt_image self)
void mlt_image_get_values(mlt_image self, void **data, mlt_image_format *format, int *width, int *height)
int mlt_image_rgba_opaque(uint8_t *image, int width, int height)
mlt_image mlt_image_new()
Allocate a new Image object.
Definition mlt_image.c:35
void mlt_image_alloc_data(mlt_image self)
int mlt_image_calculate_size(mlt_image self)
int mlt_image_format_size(mlt_image_format format, int width, int height, int *bpp)
void mlt_image_set_values(mlt_image self, void *data, mlt_image_format format, int width, int height)
Provides forward definitions of all public types.
void(* mlt_destructor)(void *)
pointer to destructor function
Definition mlt_types.h:235
mlt_image_format
The set of supported image formats.
Definition mlt_types.h:44
Definition mlt_image.h:35
mlt_destructor release_alpha
Definition mlt_image.h:45
void * data
Definition mlt_image.h:42
int colorspace
Definition mlt_image.h:39
int height
Definition mlt_image.h:38
uint8_t * planes[MLT_IMAGE_MAX_PLANES]
Definition mlt_image.h:40
mlt_destructor release_data
Definition mlt_image.h:43
mlt_image_format format
Definition mlt_image.h:36
int width
Definition mlt_image.h:37
void * alpha
Definition mlt_image.h:44
int strides[MLT_IMAGE_MAX_PLANES]
Definition mlt_image.h:41
mlt_destructor close
Definition mlt_image.h:46