|
VLC
4.0.0-dev
|
Go to the source code of this file.
Typedefs | |
| typedef struct libvlc_picture_t | libvlc_picture_t |
| 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 } |
Functions | |
| LIBVLC_API void | libvlc_picture_retain (libvlc_picture_t *pic) |
| Increment the reference count of this picture. More... | |
| LIBVLC_API void | libvlc_picture_release (libvlc_picture_t *pic) |
| Decrement the reference count of this picture. More... | |
| LIBVLC_API int | libvlc_picture_save (const libvlc_picture_t *pic, const char *path) |
| Saves this picture to a file. More... | |
| 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. More... | |
| LIBVLC_API libvlc_picture_type_t | libvlc_picture_type (const libvlc_picture_t *pic) |
| Returns the picture type. More... | |
| LIBVLC_API unsigned int | libvlc_picture_get_stride (const libvlc_picture_t *pic) |
| Returns the image stride, ie. More... | |
| LIBVLC_API unsigned int | libvlc_picture_get_width (const libvlc_picture_t *pic) |
| Returns the width of the image in pixels. More... | |
| LIBVLC_API unsigned int | libvlc_picture_get_height (const libvlc_picture_t *pic) |
| Returns the height of the image in pixels. More... | |
| LIBVLC_API libvlc_time_t | libvlc_picture_get_time (const libvlc_picture_t *pic) |
| Returns the time at which this picture was generated, in milliseconds. More... | |
| typedef struct libvlc_picture_t libvlc_picture_t |
| 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] |
| LIBVLC_API unsigned int libvlc_picture_get_height | ( | const libvlc_picture_t * | pic | ) |
Returns the height of the image in pixels.
| pic | A picture object |
| 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
| pic | A picture object |
| LIBVLC_API libvlc_time_t libvlc_picture_get_time | ( | const libvlc_picture_t * | pic | ) |
Returns the time at which this picture was generated, in milliseconds.
| pic | A picture object |
| LIBVLC_API unsigned int libvlc_picture_get_width | ( | const libvlc_picture_t * | pic | ) |
Returns the width of the image in pixels.
| pic | A picture object |
| 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 |
| LIBVLC_API void libvlc_picture_retain | ( | libvlc_picture_t * | pic | ) |
Increment the reference count of this picture.
| pic | A picture object |
| 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 |
| LIBVLC_API libvlc_picture_type_t libvlc_picture_type | ( | const libvlc_picture_t * | pic | ) |
1.8.13