VLC 4.0.0-dev
Loading...
Searching...
No Matches
preparser.c File Reference
Include dependency graph for preparser.c:

Data Structures

union  vlc_preparser_cbs
 
struct  vlc_preparser_t
 
struct  task
 

Functions

static struct taskTaskNew (vlc_preparser_t *preparser, void(*run)(void *), input_item_t *item, int options, const struct vlc_preparser_seek_arg *seek_arg, union vlc_preparser_cbs cbs, void *userdata)
 
static void TaskDelete (struct task *task)
 
static vlc_preparser_req_id PreparserGetNextTaskIdLocked (vlc_preparser_t *preparser, struct task *task)
 
static vlc_preparser_req_id PreparserAddTask (vlc_preparser_t *preparser, struct task *task)
 
static void PreparserRemoveTask (vlc_preparser_t *preparser, struct task *task)
 
static void NotifyPreparseEnded (struct task *task)
 
static void OnParserEnded (input_item_t *item, int status, void *task_)
 
static void OnParserSubtreeAdded (input_item_t *item, input_item_node_t *subtree, void *task_)
 
static void OnParserAttachmentsAdded (input_item_t *item, input_attachment_t *const *array, size_t count, void *task_)
 
static void OnArtFetchEnded (input_item_t *item, bool fetched, void *userdata)
 
static void Parse (struct task *task, vlc_tick_t deadline)
 
static int Fetch (struct task *task)
 
static void ParserRun (void *userdata)
 
static void on_thumbnailer_input_event (input_thread_t *input, const struct vlc_input_event *event, void *userdata)
 
static void ThumbnailerRun (void *userdata)
 
static void Interrupt (struct task *task)
 
vlc_preparser_tvlc_preparser_New (vlc_object_t *parent, const struct vlc_preparser_cfg *cfg)
 This function creates the preparser object and thread.
 
vlc_preparser_req_id vlc_preparser_Push (vlc_preparser_t *preparser, input_item_t *item, int type_options, const input_item_parser_cbs_t *cbs, void *cbs_userdata)
 This function enqueues the provided item to be preparsed or fetched.
 
vlc_preparser_req_id vlc_preparser_GenerateThumbnail (vlc_preparser_t *preparser, input_item_t *item, const struct vlc_preparser_seek_arg *seek_arg, const struct vlc_thumbnailer_cbs *cbs, void *cbs_userdata)
 This function enqueues the provided item for generating a thumbnail.
 
size_t vlc_preparser_Cancel (vlc_preparser_t *preparser, vlc_preparser_req_id id)
 This function cancel all preparsing requests for a given id.
 
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_Delete (vlc_preparser_t *preparser)
 This function destroys the preparser object and thread.
 

Variables

static const input_fetcher_callbacks_t input_fetcher_callbacks
 

Function Documentation

◆ Fetch()

◆ Interrupt()

static void Interrupt ( struct task task)
static

◆ NotifyPreparseEnded()

static void NotifyPreparseEnded ( struct task task)
static

◆ on_thumbnailer_input_event()

◆ OnArtFetchEnded()

static void OnArtFetchEnded ( input_item_t item,
bool  fetched,
void *  userdata 
)
static

◆ OnParserAttachmentsAdded()

static void OnParserAttachmentsAdded ( input_item_t item,
input_attachment_t *const *  array,
size_t  count,
void *  task_ 
)
static

◆ OnParserEnded()

static void OnParserEnded ( input_item_t item,
int  status,
void *  task_ 
)
static

◆ OnParserSubtreeAdded()

static void OnParserSubtreeAdded ( input_item_t item,
input_item_node_t subtree,
void *  task_ 
)
static

◆ Parse()

◆ ParserRun()

◆ PreparserAddTask()

◆ PreparserGetNextTaskIdLocked()

static vlc_preparser_req_id PreparserGetNextTaskIdLocked ( vlc_preparser_t preparser,
struct task task 
)
static

◆ PreparserRemoveTask()

static void PreparserRemoveTask ( vlc_preparser_t preparser,
struct task task 
)
static

◆ TaskDelete()

static void TaskDelete ( struct task task)
static

◆ TaskNew()

◆ ThumbnailerRun()

Variable Documentation

◆ input_fetcher_callbacks

const input_fetcher_callbacks_t input_fetcher_callbacks
static
Initial value:
= {
.on_art_fetch_ended = OnArtFetchEnded,
}
static void OnArtFetchEnded(input_item_t *item, bool fetched, void *userdata)
Definition preparser.c:197

Referenced by Fetch().