VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_thumbnailer_cbs Struct Reference

Preparser thumbnailer callbacks. More...

#include <vlc_preparser.h>

Data Fields

void(* on_ended )(input_item_t *item, int status, picture_t *thumbnail, void *data)
 Event received on thumbnailing completion or error.
 

Detailed Description

Preparser thumbnailer callbacks.

Used by vlc_preparser_GenerateThumbnail()

Field Documentation

◆ on_ended

void(* vlc_thumbnailer_cbs::on_ended) (input_item_t *item, int status, picture_t *thumbnail, void *data)

Event received on thumbnailing completion or error.

This callback will always be called, provided vlc_preparser_GenerateThumbnail() returned a valid request, and provided the request is not cancelled before its completion.

Note
This callback is mandatory if calling vlc_preparser_GenerateThumbnail()

In case of failure, timeout or cancellation, p_thumbnail will be NULL. The picture, if any, is owned by the thumbnailer, and must be acquired by using picture_Hold to use it pass the callback's scope.

Parameters
itemitem used for the thumbnailer
statusVLC_SUCCESS in case of success, VLC_ETIMEOUT in case of timeout, -EINTR if cancelled, an error otherwise
thumbnailThe generated thumbnail, or NULL in case of failure or timeout
dataopaque pointer passed by vlc_preparser_GenerateThumbnail()

The documentation for this struct was generated from the following file: