|
VLC 4.0.0-dev
|
Go to the source code of this file.
Typedefs | |
| typedef enum libvlc_picture_type_t | libvlc_picture_type_t |
Enumerations | |
| enum | libvlc_picture_type_t { libvlc_picture_Argb , libvlc_picture_Png , libvlc_picture_Jpg , libvlc_picture_WebP , libvlc_picture_Rgba } |
Functions | |
| LIBVLC_API libvlc_picture_t * | libvlc_picture_retain (libvlc_picture_t *pic) |
| Increment the reference count of this picture. | |
| LIBVLC_API void | libvlc_picture_release (libvlc_picture_t *pic) |
| Decrement the reference count of this picture. | |
| LIBVLC_API int | libvlc_picture_save (const libvlc_picture_t *pic, const char *path) |
| Saves this picture to a file. | |
| LIBVLC_API const unsigned char * | libvlc_picture_get_buffer (const libvlc_picture_t *pic, size_t *size) |
| Returns the image internal buffer, including potential padding. | |
| LIBVLC_API libvlc_picture_type_t | libvlc_picture_type (const libvlc_picture_t *pic) |
| Returns the picture type. | |
| LIBVLC_API unsigned int | libvlc_picture_get_stride (const libvlc_picture_t *pic) |
| Returns the image stride, ie. | |
| LIBVLC_API unsigned int | libvlc_picture_get_width (const libvlc_picture_t *pic) |
| Returns the width of the image in pixels. | |
| LIBVLC_API unsigned int | libvlc_picture_get_height (const libvlc_picture_t *pic) |
| Returns the height of the image in pixels. | |
| LIBVLC_API libvlc_time_t | libvlc_picture_get_time (const libvlc_picture_t *pic) |
| Returns the time at which this picture was generated, in microseconds (us). | |
| LIBVLC_API size_t | libvlc_picture_list_count (const libvlc_picture_list_t *list) |
| Returns the number of pictures in the list. | |
| LIBVLC_API libvlc_picture_t * | libvlc_picture_list_at (const libvlc_picture_list_t *list, size_t index) |
| Returns the picture at the provided index. | |
| LIBVLC_API void | libvlc_picture_list_destroy (libvlc_picture_list_t *list) |
| Destroys a picture list and releases the pictures it contains. | |
| typedef enum libvlc_picture_type_t libvlc_picture_type_t |
| LIBVLC_API const unsigned char * libvlc_picture_get_buffer | ( | const libvlc_picture_t * | pic, |
| size_t * | size ) |
Returns the image internal buffer, including potential padding.
The libvlc_picture_t owns the returned buffer, which must not be modified nor freed.
| pic | A picture object |
| size | A pointer to a size_t that will hold the size of the buffer [required] |
References LIBVLC_API.
| LIBVLC_API unsigned int libvlc_picture_get_height | ( | const libvlc_picture_t * | pic | ) |
| LIBVLC_API unsigned int libvlc_picture_get_stride | ( | const libvlc_picture_t * | pic | ) |
Returns the image stride, ie.
the number of bytes per line. This can only be called on images of type libvlc_picture_Argb or libvlc_picture_Rgba
| pic | A picture object |
References LIBVLC_API.
| LIBVLC_API libvlc_time_t libvlc_picture_get_time | ( | const libvlc_picture_t * | pic | ) |
Returns the time at which this picture was generated, in microseconds (us).
| pic | A picture object |
| LIBVLC_API unsigned int libvlc_picture_get_width | ( | const libvlc_picture_t * | pic | ) |
| LIBVLC_API libvlc_picture_t * libvlc_picture_list_at | ( | const libvlc_picture_list_t * | list, |
| size_t | index ) |
Returns the picture at the provided index.
The returned picture is a weak reference of libvlc_picture_t* owned by the list. It must not be released and remains valid only as long as the list is alive.
If the index is out of bound, the result is undefined.
References LIBVLC_API, and list.
| LIBVLC_API size_t libvlc_picture_list_count | ( | const libvlc_picture_list_t * | list | ) |
Returns the number of pictures in the list.
References LIBVLC_API, and list.
| LIBVLC_API void libvlc_picture_list_destroy | ( | libvlc_picture_list_t * | list | ) |
Destroys a picture list and releases the pictures it contains.
| list | The list to destroy |
Calling this function with a NULL list is safe and will return immediately
References LIBVLC_API, and list.
| LIBVLC_API void libvlc_picture_release | ( | libvlc_picture_t * | pic | ) |
Decrement the reference count of this picture.
When the reference count reaches 0, the picture will be released. The picture must not be accessed after calling this function.
| pic | A picture object |
References LIBVLC_API.
| LIBVLC_API libvlc_picture_t * libvlc_picture_retain | ( | libvlc_picture_t * | pic | ) |
Increment the reference count of this picture.
| pic | A picture object |
References LIBVLC_API.
| LIBVLC_API int libvlc_picture_save | ( | const libvlc_picture_t * | pic, |
| const char * | path ) |
Saves this picture to a file.
The image format is the same as the one returned by libvlc_picture_type
| pic | A picture object |
| path | The path to the generated file |
References LIBVLC_API.
| LIBVLC_API libvlc_picture_type_t libvlc_picture_type | ( | const libvlc_picture_t * | pic | ) |
Returns the picture type.
| pic | A picture object |
References LIBVLC_API.