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

Preparser thumbnailer to file callbacks. More...

#include <vlc_preparser.h>

Data Fields

void(* on_ended )(vlc_preparser_reqvlc_preparser_req *req, int status, const bool *result_array, size_t result_count, void *data)
 Event received on thumbnailing completion or error.

Detailed Description

Preparser thumbnailer to file callbacks.

Used by vlc_preparser_req_NewThumbnailToFiles()

Field Documentation

◆ on_ended

void(* vlc_thumbnailer_to_files_cbs::on_ended) (vlc_preparser_reqvlc_preparser_req *req, int status, const bool *result_array, size_t result_count, void *data)

Event received on thumbnailing completion or error.

This callback is invoked exactly once for each request successfully submitted with vlc_preparser_Submit().

Note
This callback is mandatory if calling vlc_preparser_req_NewThumbnailToFiles()

In case of failure, timeout or cancellation, result_array will be NULL and result_count will be 0.

Parameters
reqrequest handle returned by vlc_preparser_req_NewThumbnailToFiles()
statusVLC_SUCCESS in case of success, VLC_ETIMEOUT in case of timeout, -EINTR if cancelled, an error otherwise. A success mean that an image was generated but it is still possible that the export failed, check result_array to assure export were successful.
result_arrayarray of results, if result_array[i] is true, the outputs[i] from vlc_preparser_req_NewThumbnailToFiles() succeeded. NULL if the status is not VLC_SUCCESS.
result_countsize of the array, same than the output_count arg from vlc_preparser_req_NewThumbnailToFiles(), or 0 if the status is not VLC_SUCCESS
dataopaque pointer passed by vlc_preparser_req_NewThumbnailToFiles()

Referenced by preparser_Cancel(), preparser_req_NewThumbnailToFiles(), ThumbnailerRun(), and ThumbnailerToFilesRun().


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