|
VLC 4.0.0-dev
|
Data Structures | |
| union | vlc_preparser_cbs_internal |
| struct | vlc_preparser_t |
| struct | task_thumbnail_output |
| struct | vlc_preparser_req |
Functions | |
| static struct vlc_preparser_req * | PreparserRequestNew (vlc_preparser_t *preparser, void(*run)(void *), input_item_t *item, int options, const struct vlc_thumbnailer_arg *thumb_arg, union vlc_preparser_cbs_internal cbs, void *userdata) |
| static void | PreparserRequestDelete (struct vlc_preparser_req *req) |
| static void | PreparserAddTask (vlc_preparser_t *preparser, struct vlc_preparser_req *req) |
| static void | PreparserRemoveTask (vlc_preparser_t *preparser, struct vlc_preparser_req *req) |
| static void | NotifyPreparseEnded (struct vlc_preparser_req *req) |
| static void | OnParserEnded (input_item_t *item, int status, void *req_) |
| static void | OnParserSubtreeAdded (input_item_t *item, input_item_node_t *subtree, void *req_) |
| static void | OnParserAttachmentsAdded (input_item_t *item, input_attachment_t *const *array, size_t count, void *req_) |
| static void | OnArtFetchEnded (input_item_t *item, bool fetched, void *userdata) |
| static void | Parse (struct vlc_preparser_req *req, vlc_tick_t deadline) |
| static int | Fetch (struct vlc_preparser_req *req) |
| static void | ParserRun (void *userdata) |
| static bool | on_thumbnailer_input_event (input_thread_t *input, const struct vlc_input_event *event, void *userdata) |
| static int | WriteToFile (const block_t *block, const char *path, unsigned mode) |
| static void | ThumbnailerToFilesRun (void *userdata) |
| static void | ThumbnailerRun (void *userdata) |
| static void | Interrupt (struct vlc_preparser_req *req) |
| static struct vlc_preparser_req * | PreparserRequestRetain (struct vlc_preparser_req *req) |
| vlc_preparser_t * | vlc_preparser_New (vlc_object_t *parent, const struct vlc_preparser_cfg *cfg) |
| This function creates the preparser object and thread. | |
| vlc_preparser_req * | vlc_preparser_Push (vlc_preparser_t *preparser, input_item_t *item, int type_options, const struct vlc_preparser_cbs *cbs, void *cbs_userdata) |
| This function enqueues the provided item to be preparsed or fetched. | |
| vlc_preparser_req * | vlc_preparser_GenerateThumbnail (vlc_preparser_t *preparser, input_item_t *item, const struct vlc_thumbnailer_arg *thumb_arg, const struct vlc_thumbnailer_cbs *cbs, void *cbs_userdata) |
| This function enqueues the provided item for generating a thumbnail. | |
| static int | CheckThumbnailerFormat (enum vlc_thumbnailer_format format, enum vlc_thumbnailer_format *out_format, const char **out_ext, vlc_fourcc_t *out_fourcc) |
| int | vlc_preparser_GetBestThumbnailerFormat (enum vlc_thumbnailer_format *format, const char **out_ext) |
| Get the best possible format. | |
| int | vlc_preparser_CheckThumbnailerFormat (enum vlc_thumbnailer_format format) |
| Check if the format is handled by VLC. | |
| vlc_preparser_req * | vlc_preparser_GenerateThumbnailToFiles (vlc_preparser_t *preparser, input_item_t *item, const struct vlc_thumbnailer_arg *thumb_arg, const struct vlc_thumbnailer_output *outputs, size_t output_count, const struct vlc_thumbnailer_to_files_cbs *cbs, void *cbs_userdata) |
| This function generates a thumbnail to one or several files. | |
| size_t | vlc_preparser_Cancel (vlc_preparser_t *preparser, vlc_preparser_req *req) |
| This function cancels ongoing or queued preparsing/thumbnail generation for a given request handle. | |
| input_item_t * | vlc_preparser_req_GetItem (vlc_preparser_req *req) |
| Fetch the input item associated with the request. | |
| void | vlc_preparser_SetTimeout (vlc_preparser_t *preparser, vlc_tick_t timeout) |
| Do not use, libVLC only fonction, will be removed soon. | |
| void | vlc_preparser_req_Release (vlc_preparser_req *req) |
| Release a preparser request handle. | |
| void | vlc_preparser_Delete (vlc_preparser_t *preparser) |
| This function destroys the preparser object and thread. | |
Variables | |
| static const input_fetcher_callbacks_t | input_fetcher_callbacks |
|
static |
References ARRAY_SIZE, module_exists(), VLC_CODEC_JPEG, VLC_CODEC_PNG, VLC_CODEC_WEBP, VLC_ENOENT, VLC_THUMBNAILER_FORMAT_JPEG, VLC_THUMBNAILER_FORMAT_PNG, and VLC_THUMBNAILER_FORMAT_WEBP.
Referenced by vlc_preparser_CheckThumbnailerFormat(), vlc_preparser_GenerateThumbnailToFiles(), and vlc_preparser_GetBestThumbnailerFormat().
|
static |
|
static |
References vlc_preparser_req::i11e_ctx, vlc_preparser_req::interrupted, vlc_preparser_req::preparse_ended, vlc_interrupt_kill(), and vlc_sem_post().
Referenced by vlc_preparser_Cancel().
|
static |
References vlc_preparser_req::cbs, input_item_SetPreparsed(), vlc_preparser_req::interrupted, vlc_preparser_req::item, vlc_preparser_cbs::on_ended, vlc_preparser_cbs_internal::parser, vlc_preparser_req::preparse_status, vlc_preparser_req::userdata, and VLC_SUCCESS.
Referenced by OnArtFetchEnded(), and ParserRun().
|
static |
References END_S, ERROR_S, INPUT_EVENT_STATE, INPUT_EVENT_THUMBNAIL_READY, vlc_preparser_req::pic, picture_Hold(), vlc_preparser_req::preparse_ended, vlc_preparser_req::preparse_status, vlc_input_event::state, vlc_input_event::thumbnail, vlc_input_event::type, vlc_preparser_req::userdata, vlc_input_event_state::value, vlc_sem_post(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by ThumbnailerRun().
|
static |
|
static |
|
static |
References vlc_preparser_req::preparse_ended, vlc_preparser_req::preparse_status, vlc_sem_post(), and VLC_UNUSED.
Referenced by Parse().
|
static |
|
static |
References input_item_parser_cfg::cbs, vlc_preparser_req::cbs, input_item_Parse(), input_item_parser_id_Release(), vlc_preparser_req::item, OnParserAttachmentsAdded(), OnParserEnded(), OnParserSubtreeAdded(), vlc_preparser_req::options, vlc_preparser_t::owner, vlc_preparser_req::preparse_ended, vlc_preparser_req::preparse_status, vlc_preparser_req::preparser, VLC_EGENERIC, VLC_ETIMEOUT, VLC_PREPARSER_OPTION_INTERACT, VLC_PREPARSER_OPTION_SUBITEMS, vlc_sem_timedwait(), vlc_sem_wait(), and VLC_TICK_INVALID.
Referenced by ParserRun().
|
static |
References Fetch(), vlc_preparser_req::interrupted, NotifyPreparseEnded(), vlc_preparser_req::options, Parse(), vlc_preparser_req::preparse_status, vlc_preparser_req::preparser, PreparserRemoveTask(), vlc_preparser_t::timeout, vlc_preparser_req::userdata, VLC_ETIMEOUT, vlc_preparser_req_Release(), VLC_PREPARSER_TYPE_PARSE, VLC_SUCCESS, vlc_thread_set_name(), VLC_TICK_INVALID, and vlc_tick_now().
Referenced by vlc_preparser_Push().
|
static |
|
static |
References vlc_preparser_t::lock, vlc_preparser_req::node, vlc_list_remove(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by ParserRun(), ThumbnailerRun(), and ThumbnailerToFilesRun().
|
static |
|
static |
References vlc_preparser_req::cbs, vlc_preparser_req::i11e_ctx, input_item_Hold(), vlc_preparser_req::interrupted, vlc_preparser_req::item, vlc_preparser_req::options, vlc_preparser_req::output_count, vlc_preparser_req::outputs, vlc_preparser_req::pic, vlc_preparser_req::preparse_ended, vlc_preparser_req::preparse_status, vlc_preparser_req::preparser, vlc_preparser_req::rc, vlc_runnable::run, vlc_preparser_req::runnable, vlc_thumbnailer_arg::seek, vlc_preparser_req::thumb_arg, vlc_thumbnailer_arg::seek::type, vlc_runnable::userdata, vlc_preparser_req::userdata, vlc_atomic_rc_init(), VLC_EGENERIC, vlc_interrupt_create(), VLC_PREPARSER_TYPE_THUMBNAIL_TO_FILES, and vlc_sem_init().
Referenced by vlc_preparser_GenerateThumbnail(), vlc_preparser_GenerateThumbnailToFiles(), and vlc_preparser_Push().
|
static |
References vlc_preparser_req::rc, and vlc_atomic_rc_inc().
Referenced by vlc_preparser_GenerateThumbnail(), vlc_preparser_GenerateThumbnailToFiles(), and vlc_preparser_Push().
|
static |
References vlc_input_thread_cfg::cbs, vlc_preparser_req::cbs, vlc_thumbnailer_arg::hw_dec, vlc_input_thread_cfg::INPUT_CFG_HW_DEC_DISABLED, vlc_input_thread_cfg::INPUT_CFG_HW_DEC_ENABLED, input_Close(), input_Create, input_SetPosition(), input_SetTime(), input_Start(), input_Stop(), INPUT_TYPE_THUMBNAILING, vlc_preparser_req::interrupted, vlc_preparser_req::item, vlc_thumbnailer_to_files_cbs::on_ended, vlc_thumbnailer_cbs::on_ended, vlc_input_thread_callbacks::on_event, on_thumbnailer_input_event(), vlc_preparser_req::options, vlc_preparser_t::owner, vlc_preparser_req::pic, picture_Release(), vlc_thumbnailer_arg::seek::pos, vlc_preparser_req::preparse_ended, vlc_preparser_req::preparse_status, vlc_preparser_req::preparser, PreparserRemoveTask(), vlc_runnable::run, vlc_preparser_req::runnable, vlc_thumbnailer_arg::seek, vlc_thumbnailer_arg::seek::speed, vlc_preparser_req::thumb_arg, vlc_preparser_cbs_internal::thumbnailer, vlc_preparser_cbs_internal::thumbnailer_to_files, vlc_preparser_t::thumbnailer_to_files, ThumbnailerToFilesRun(), vlc_thumbnailer_arg::seek::time, vlc_preparser_t::timeout, vlc_thumbnailer_arg::seek::type, vlc_input_thread_cfg::type, vlc_preparser_req::userdata, vlc_assert_unreachable, VLC_ETIMEOUT, vlc_executor_Submit(), vlc_preparser_req_Release(), VLC_PREPARSER_TYPE_THUMBNAIL, VLC_PREPARSER_TYPE_THUMBNAIL_TO_FILES, vlc_sem_timedwait(), vlc_sem_wait(), VLC_SUCCESS, vlc_thread_set_name(), VLC_TICK_INVALID, and vlc_tick_now().
Referenced by vlc_preparser_GenerateThumbnail(), and vlc_preparser_GenerateThumbnailToFiles().
|
static |
References block_Release, vlc_preparser_req::cbs, task_thumbnail_output::creat_mode, task_thumbnail_output::crop, task_thumbnail_output::file_path, task_thumbnail_output::fourcc, task_thumbnail_output::height, vlc_preparser_req::i11e_ctx, vlc_thumbnailer_to_files_cbs::on_ended, vlc_preparser_req::output_count, vlc_preparser_req::outputs, vlc_preparser_t::owner, vlc_preparser_req::pic, picture_Export(), picture_Release(), vlc_preparser_req::preparse_status, vlc_preparser_req::preparser, PreparserRemoveTask(), vlc_preparser_cbs_internal::thumbnailer_to_files, vlc_preparser_req::userdata, vlc_alloc(), VLC_CODEC_UNKNOWN, vlc_interrupt_set(), vlc_preparser_req_Release(), VLC_SUCCESS, vlc_thread_set_name(), task_thumbnail_output::width, and WriteToFile().
Referenced by ThumbnailerRun().
|
static |
References vlc_frame_t::i_buffer, vlc_frame_t::p_buffer, vlc_open(), and vlc_write_i11e().
Referenced by ThumbnailerToFilesRun().
|
static |
Referenced by Fetch().