#include <mlt_image.h>
|
void | mlt_image_alloc_alpha (mlt_image self) |
| Allocate the alpha field based on the other properties of the Image. More...
|
|
void | mlt_image_alloc_data (mlt_image self) |
| Allocate the data field based on the other properties of the Image. More...
|
|
int | mlt_image_calculate_size (mlt_image self) |
| Calculate the number of bytes needed for the Image data. More...
|
|
void | mlt_image_close (mlt_image self) |
| Destroy an image object created by mlt_image_new(). More...
|
|
void | mlt_image_fill_black (mlt_image self) |
| Fill an image with black. More...
|
|
void | mlt_image_fill_opaque (mlt_image self) |
| Fill an image alpha channel with opaque if it exists. More...
|
|
mlt_image_format | mlt_image_format_id (const char *name) |
| Get the id of image format from short name. More...
|
|
const char * | mlt_image_format_name (mlt_image_format format) |
| Get the short name for an image format. More...
|
|
void | mlt_image_format_planes (mlt_image_format format, int width, int height, void *data, uint8_t *planes[4], int strides[4]) |
| Build a planes pointers of image mapping. More...
|
|
int | mlt_image_format_size (mlt_image_format format, int width, int height, int *bpp) |
| Get the number of bytes needed for an image. More...
|
|
void | mlt_image_get_values (mlt_image self, void **data, mlt_image_format *format, int *width, int *height) |
| Get the most common values for the image. More...
|
|
void | mlt_image_set_values (mlt_image self, void *data, mlt_image_format format, int width, int height) |
| Set the most common values for the image. More...
|
|
◆ mlt_image_alloc_alpha()
Allocate the alpha field based on the other properties of the Image.
If the alpha field is already set, and a destructor function exists, the data will be released. Else, the data pointer will be overwritten without being released.
After this function call, the release_data field will be set and can be used to release the data when necessary.
- Parameters
-
◆ mlt_image_alloc_data()
Allocate the data field based on the other properties of the Image.
If the data field is already set, and a destructor function exists, the data will be released. Else, the data pointer will be overwritten without being released.
After this function call, the release_data field will be set and can be used to release the data when necessary.
- Parameters
-
◆ mlt_image_calculate_size()
int mlt_image_calculate_size |
( |
mlt_image |
self | ) |
|
Calculate the number of bytes needed for the Image data.
- Parameters
-
- Returns
- the number of bytes
◆ mlt_image_close()
◆ mlt_image_fill_black()
Fill an image with black.
◆ mlt_image_fill_opaque()
Fill an image alpha channel with opaque if it exists.
◆ mlt_image_format_id()
Get the id of image format from short name.
- Parameters
-
name | the image format short name |
- Returns
- a image format
◆ mlt_image_format_name()
Get the short name for an image format.
- Parameters
-
- Returns
- a string
◆ mlt_image_format_planes()
void mlt_image_format_planes |
( |
mlt_image_format |
format, |
|
|
int |
width, |
|
|
int |
height, |
|
|
void * |
data, |
|
|
uint8_t * |
planes[4], |
|
|
int |
strides[4] |
|
) |
| |
Build a planes pointers of image mapping.
For proper and unified planar image processing, planes sizes and planes pointers should be provides to processing code.
- Parameters
-
| format | the image format |
| width | width of the image in pixels |
| height | height of the image in pixels |
[in] | data | pointer to allocated image |
[out] | planes | pointers to plane's pointers will be set |
[out] | strides | pointers to plane's strides will be set |
◆ mlt_image_format_size()
int mlt_image_format_size |
( |
mlt_image_format |
format, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int * |
bpp |
|
) |
| |
Get the number of bytes needed for an image.
- Parameters
-
| format | the image format |
| width | width of the image in pixels |
| height | height of the image in pixels |
[out] | bpp | the number of bytes per pixel (optional) |
- Returns
- the number of bytes
◆ mlt_image_get_values()
Get the most common values for the image.
- Parameters
-
| self | the Image object |
[out] | data | the buffer that contains the image data |
[out] | format | the image format |
[out] | width | the width of the image |
[out] | height | the height of the image |
◆ mlt_image_set_values()
Set the most common values for the image.
Less common values will be set to reasonable defaults.
- Parameters
-
self | the Image object |
data | the buffer that contains the image data |
format | the image format |
width | the width of the image |
height | the height of the image |
◆ alpha
◆ close
◆ colorspace
int mlt_image_s::colorspace |
◆ data
◆ format
◆ height
◆ planes
◆ release_alpha
◆ release_data
◆ strides
◆ width
The documentation for this struct was generated from the following files: