|
VLC 4.0.0-dev
|
Data Structures | |
| union | vlc_preparser_cbs_internal |
| struct | preparser_sys |
| struct | task_thumbnail_output |
| struct | vlc_preparser_req_owner |
Functions | |
| static struct vlc_preparser_req_owner * | preparser_req_get_owner (struct vlc_preparser_req *req) |
| static input_item_t * | preparser_req_GetItem (struct vlc_preparser_req *req) |
| static void | PreparserRequestDelete (struct vlc_preparser_req *req) |
| static void | preparser_req_Release (struct vlc_preparser_req *req) |
| static struct vlc_preparser_req * | PreparserRequestNew (struct preparser_sys *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 | PreparserAddTask (struct preparser_sys *preparser, struct vlc_preparser_req *req) |
| static void | PreparserRemoveTask (struct preparser_sys *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) |
| static vlc_preparser_req * | preparser_Push (void *opaque, input_item_t *item, int type_options, const struct vlc_preparser_cbs *cbs, void *cbs_userdata) |
| static vlc_preparser_req * | preparser_GenerateThumbnail (void *opaque, input_item_t *item, const struct vlc_thumbnailer_arg *thumb_arg, const struct vlc_thumbnailer_cbs *cbs, void *cbs_userdata) |
| 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. | |
| static vlc_preparser_req * | preparser_GenerateThumbnailToFiles (void *opaque, 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) |
| static size_t | preparser_Cancel (void *opaque, vlc_preparser_req *req) |
| static void | preparser_SetTimeout (void *opaque, vlc_tick_t timeout) |
| static void | preparser_Delete (void *opaque) |
| void * | vlc_preparser_internal_New (vlc_preparser_t *owner, vlc_object_t *parent, const struct vlc_preparser_cfg *cfg) |
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 preparser_GenerateThumbnailToFiles(), vlc_preparser_CheckThumbnailerFormat(), and vlc_preparser_GetBestThumbnailerFormat().
|
static |
References preparser_sys::fetcher, input_fetcher_callbacks, input_fetcher_Push(), vlc_preparser_req_owner::item, vlc_preparser_req_owner::options, vlc_preparser_req_owner::preparser, preparser_req_get_owner(), vlc_preparser_req_owner::req, VLC_ENOENT, and VLC_PREPARSER_TYPE_FETCHMETA_ALL.
Referenced by ParserRun(), and preparser_Push().
|
static |
|
static |
References vlc_preparser_req_owner::cbs, input_item_SetPreparsed(), vlc_preparser_req_owner::interrupted, vlc_preparser_req_owner::item, vlc_preparser_cbs::on_ended, vlc_preparser_cbs_internal::parser, vlc_preparser_req_owner::preparse_status, preparser_req_get_owner(), vlc_preparser_req_owner::req, vlc_preparser_req_owner::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_owner::pic, picture_Hold(), vlc_preparser_req_owner::preparse_ended, vlc_preparser_req_owner::preparse_status, preparser_req_get_owner(), vlc_preparser_req_owner::req, vlc_input_event::state, vlc_input_event::thumbnail, vlc_input_event::type, vlc_input_event_state::value, vlc_sem_post(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by ThumbnailerRun().
|
static |
References vlc_preparser_req_owner::item, NotifyPreparseEnded(), vlc_preparser_req_Release(), and VLC_UNUSED.
|
static |
References vlc_preparser_req_owner::cbs, count, vlc_preparser_req_owner::interrupted, vlc_preparser_req_owner::item, vlc_preparser_cbs::on_attachments_added, vlc_preparser_cbs_internal::parser, preparser_req_get_owner(), vlc_preparser_req_owner::req, vlc_preparser_req_owner::userdata, and VLC_UNUSED.
Referenced by Parse().
|
static |
|
static |
References vlc_preparser_req_owner::cbs, vlc_preparser_req_owner::interrupted, vlc_preparser_req_owner::item, vlc_preparser_cbs::on_subtree_added, vlc_preparser_cbs_internal::parser, preparser_req_get_owner(), vlc_preparser_req_owner::req, vlc_preparser_req_owner::userdata, and VLC_UNUSED.
Referenced by Parse().
|
static |
References input_item_parser_cfg::cbs, vlc_preparser_req_owner::cbs, input_item_Parse(), input_item_parser_id_Release(), vlc_preparser_req_owner::item, OnParserAttachmentsAdded(), OnParserEnded(), OnParserSubtreeAdded(), vlc_preparser_req_owner::options, preparser_sys::owner, vlc_preparser_req_owner::preparse_ended, vlc_preparser_req_owner::preparse_status, vlc_preparser_req_owner::preparser, preparser_req_get_owner(), vlc_preparser_req_owner::req, 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_owner::interrupted, NotifyPreparseEnded(), vlc_preparser_req_owner::options, Parse(), vlc_preparser_req_owner::preparse_status, vlc_preparser_req_owner::preparser, preparser_req_get_owner(), PreparserRemoveTask(), vlc_preparser_req_owner::req, preparser_sys::timeout, 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 preparser_Push().
|
static |
References vlc_preparser_req_owner::cbs, count, Interrupt(), preparser_sys::lock, vlc_preparser_req_owner::node, vlc_thumbnailer_to_files_cbs::on_ended, vlc_thumbnailer_cbs::on_ended, vlc_preparser_cbs::on_ended, vlc_preparser_req_owner::options, vlc_preparser_cbs_internal::parser, preparser_sys::parser, vlc_preparser_req_owner::preparse_status, vlc_preparser_req_owner::preparser, preparser_req_get_owner(), vlc_preparser_req_owner::req, vlc_preparser_req_owner::runnable, preparser_sys::submitted_tasks, vlc_preparser_cbs_internal::thumbnailer, preparser_sys::thumbnailer, vlc_preparser_cbs_internal::thumbnailer_to_files, preparser_sys::thumbnailer_to_files, vlc_preparser_req_owner::userdata, vlc_executor_Cancel(), vlc_list_foreach, vlc_list_remove(), vlc_mutex_lock(), vlc_mutex_unlock(), vlc_preparser_req_Release(), VLC_PREPARSER_TYPE_FETCHMETA_ALL, VLC_PREPARSER_TYPE_PARSE, VLC_PREPARSER_TYPE_THUMBNAIL, and VLC_PREPARSER_TYPE_THUMBNAIL_TO_FILES.
Referenced by preparser_Delete(), and vlc_preparser_internal_New().
|
static |
|
static |
References vlc_thumbnailer_cbs::on_ended, vlc_preparser_req_owner::preparser, preparser_req_get_owner(), PreparserAddTask(), PreparserRequestNew(), PreparserRequestRetain(), vlc_preparser_req_owner::req, vlc_preparser_req_owner::runnable, vlc_preparser_cbs_internal::thumbnailer, preparser_sys::thumbnailer, ThumbnailerRun(), vlc_executor_Submit(), and VLC_PREPARSER_TYPE_THUMBNAIL.
Referenced by vlc_preparser_internal_New().
|
static |
References CheckThumbnailerFormat(), vlc_thumbnailer_output::creat_mode, task_thumbnail_output::creat_mode, vlc_thumbnailer_output::crop, task_thumbnail_output::crop, vlc_thumbnailer_output::file_path, task_thumbnail_output::file_path, vlc_thumbnailer_output::format, task_thumbnail_output::fourcc, vlc_thumbnailer_output::height, task_thumbnail_output::height, msg_Err, vlc_thumbnailer_to_files_cbs::on_ended, vlc_preparser_req_owner::output_count, vlc_preparser_req_owner::outputs, preparser_sys::owner, preparser_req_get_owner(), PreparserAddTask(), PreparserRequestDelete(), PreparserRequestNew(), PreparserRequestRetain(), vlc_preparser_req_owner::req, vlc_preparser_req_owner::runnable, strdup(), preparser_sys::thumbnailer, vlc_preparser_cbs_internal::thumbnailer_to_files, ThumbnailerRun(), unlikely, vlc_alloc(), VLC_CODEC_UNKNOWN, vlc_executor_Submit(), VLC_PREPARSER_TYPE_THUMBNAIL_TO_FILES, vlc_thumbnailer_output::width, and task_thumbnail_output::width.
Referenced by vlc_preparser_internal_New().
|
static |
References Fetch(), preparser_sys::fetcher, vlc_preparser_cbs::on_ended, vlc_preparser_cbs_internal::parser, preparser_sys::parser, ParserRun(), vlc_preparser_req_owner::preparser, preparser_req_get_owner(), PreparserAddTask(), PreparserRequestNew(), PreparserRequestRetain(), vlc_preparser_req_owner::req, vlc_preparser_req_owner::runnable, vlc_executor_Submit(), VLC_PREPARSER_TYPE_FETCHMETA_ALL, VLC_PREPARSER_TYPE_PARSE, VLC_PREPARSER_TYPE_THUMBNAIL, VLC_PREPARSER_TYPE_THUMBNAIL_TO_FILES, and VLC_SUCCESS.
Referenced by vlc_preparser_internal_New().
|
static |
References container_of, and vlc_preparser_req_owner::req.
Referenced by Fetch(), Interrupt(), NotifyPreparseEnded(), on_thumbnailer_input_event(), OnParserAttachmentsAdded(), OnParserEnded(), OnParserSubtreeAdded(), Parse(), ParserRun(), preparser_Cancel(), preparser_GenerateThumbnail(), preparser_GenerateThumbnailToFiles(), preparser_Push(), preparser_req_GetItem(), preparser_req_Release(), PreparserAddTask(), PreparserRemoveTask(), PreparserRequestDelete(), PreparserRequestRetain(), ThumbnailerRun(), and ThumbnailerToFilesRun().
|
static |
References vlc_preparser_req_owner::item, preparser_req_get_owner(), and vlc_preparser_req_owner::req.
Referenced by PreparserRequestNew().
|
static |
References preparser_req_get_owner(), PreparserRequestDelete(), vlc_preparser_req_owner::rc, vlc_preparser_req_owner::req, and vlc_atomic_rc_dec().
Referenced by PreparserRequestNew().
|
static |
References preparser_sys::timeout.
Referenced by vlc_preparser_internal_New().
|
static |
References preparser_sys::lock, vlc_preparser_req_owner::node, vlc_preparser_req_owner::preparser, preparser_req_get_owner(), vlc_preparser_req_owner::req, preparser_sys::submitted_tasks, vlc_list_append(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by preparser_GenerateThumbnail(), preparser_GenerateThumbnailToFiles(), and preparser_Push().
|
static |
|
static |
References task_thumbnail_output::file_path, vlc_preparser_req_owner::i11e_ctx, input_item_Release(), vlc_preparser_req_owner::item, vlc_preparser_req_owner::output_count, vlc_preparser_req_owner::outputs, preparser_req_get_owner(), vlc_preparser_req_owner::req, and vlc_interrupt_destroy().
Referenced by preparser_GenerateThumbnailToFiles(), and preparser_req_Release().
|
static |
References vlc_preparser_req_owner::cbs, vlc_preparser_req_operations::get_item, vlc_preparser_req_owner::i11e_ctx, input_item_Hold(), vlc_preparser_req_owner::interrupted, vlc_preparser_req_owner::item, vlc_preparser_req::ops, vlc_preparser_req_owner::options, vlc_preparser_req_owner::output_count, vlc_preparser_req_owner::outputs, vlc_preparser_req_owner::pic, vlc_preparser_req_owner::preparse_ended, vlc_preparser_req_owner::preparse_status, vlc_preparser_req_owner::preparser, preparser_req_GetItem(), preparser_req_Release(), vlc_preparser_req_owner::rc, vlc_preparser_req_owner::req, vlc_runnable::run, vlc_preparser_req_owner::runnable, vlc_thumbnailer_arg::seek, vlc_preparser_req_owner::thumb_arg, vlc_thumbnailer_arg::seek::type, vlc_runnable::userdata, vlc_preparser_req_owner::userdata, vlc_atomic_rc_init(), VLC_EGENERIC, vlc_interrupt_create(), VLC_PREPARSER_TYPE_THUMBNAIL_TO_FILES, and vlc_sem_init().
Referenced by preparser_GenerateThumbnail(), preparser_GenerateThumbnailToFiles(), and preparser_Push().
|
static |
References preparser_req_get_owner(), vlc_preparser_req_owner::rc, vlc_preparser_req_owner::req, and vlc_atomic_rc_inc().
Referenced by preparser_GenerateThumbnail(), preparser_GenerateThumbnailToFiles(), and preparser_Push().
|
static |
References vlc_input_thread_cfg::cbs, vlc_preparser_req_owner::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_owner::interrupted, vlc_preparser_req_owner::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_owner::options, preparser_sys::owner, vlc_preparser_req_owner::pic, picture_Release(), vlc_thumbnailer_arg::seek::pos, vlc_preparser_req_owner::preparse_ended, vlc_preparser_req_owner::preparse_status, vlc_preparser_req_owner::preparser, preparser_req_get_owner(), PreparserRemoveTask(), vlc_preparser_req_owner::req, vlc_runnable::run, vlc_preparser_req_owner::runnable, vlc_thumbnailer_arg::seek, vlc_thumbnailer_arg::seek::speed, vlc_preparser_req_owner::thumb_arg, vlc_preparser_cbs_internal::thumbnailer, vlc_preparser_cbs_internal::thumbnailer_to_files, preparser_sys::thumbnailer_to_files, ThumbnailerToFilesRun(), vlc_thumbnailer_arg::seek::time, preparser_sys::timeout, vlc_thumbnailer_arg::seek::type, vlc_input_thread_cfg::type, vlc_preparser_req_owner::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_0, VLC_TICK_INVALID, and vlc_tick_now().
Referenced by preparser_GenerateThumbnail(), and preparser_GenerateThumbnailToFiles().
|
static |
References block_Release, vlc_preparser_req_owner::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_owner::i11e_ctx, vlc_thumbnailer_to_files_cbs::on_ended, vlc_preparser_req_owner::output_count, vlc_preparser_req_owner::outputs, preparser_sys::owner, vlc_preparser_req_owner::pic, picture_Export(), picture_Release(), vlc_preparser_req_owner::preparse_status, vlc_preparser_req_owner::preparser, preparser_req_get_owner(), PreparserRemoveTask(), vlc_preparser_req_owner::req, vlc_preparser_cbs_internal::thumbnailer_to_files, vlc_preparser_req_owner::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().
| void * vlc_preparser_internal_New | ( | vlc_preparser_t * | owner, |
| vlc_object_t * | parent, | ||
| const struct vlc_preparser_cfg * | cfg | ||
| ) |
References preparser_sys::fetcher, input_fetcher_Delete(), input_fetcher_New(), preparser_sys::lock, vlc_preparser_cfg::max_parser_threads, vlc_preparser_cfg::max_thumbnailer_threads, vlc_preparser_t::ops, preparser_sys::owner, preparser_sys::parent, preparser_sys::parser, preparser_Cancel(), preparser_Delete(), preparser_GenerateThumbnail(), preparser_GenerateThumbnailToFiles(), preparser_Push(), preparser_SetTimeout(), vlc_preparser_operations::push, preparser_sys::submitted_tasks, preparser_sys::thumbnailer, preparser_sys::thumbnailer_to_files, vlc_preparser_cfg::timeout, preparser_sys::timeout, vlc_preparser_cfg::types, unlikely, vlc_executor_Delete(), vlc_executor_New(), vlc_list_init(), vlc_mutex_init(), VLC_PREPARSER_TYPE_FETCHMETA_ALL, VLC_PREPARSER_TYPE_PARSE, VLC_PREPARSER_TYPE_THUMBNAIL, and VLC_PREPARSER_TYPE_THUMBNAIL_TO_FILES.
Referenced by vlc_preparser_New().
|
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().