VLC 4.0.0-dev
Loading...
Searching...
No Matches
input_internal.h
Go to the documentation of this file.
1/*****************************************************************************
2 * input_internal.h: Internal input structures
3 *****************************************************************************
4 * Copyright (C) 1998-2006 VLC authors and VideoLAN
5 *
6 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
22
23#ifndef LIBVLC_INPUT_INTERNAL_H
24#define LIBVLC_INPUT_INTERNAL_H 1
25
26#include <vlc_demux.h>
27#include <vlc_input.h>
28#include <vlc_mouse.h>
29#include "input_interface.h"
30#include "../misc/interrupt.h"
31#include "./source.h"
32
33struct input_stats;
34
35/*****************************************************************************
36 * input defines/constants.
37 *****************************************************************************/
38
39/**
40 * Main structure representing an input thread. This structure is mostly
41 * private. The only public fields are read-only and constant.
42 */
47
48/*****************************************************************************
49 * Input events and variables
50 *****************************************************************************/
51
57
58/**
59 * Input state
60 *
61 * This enum is used by the variable "state"
62 */
72
73/**
74 * Input events
75 *
76 * You can catch input event by adding a callback on the variable "intf-event".
77 * This variable is an integer that will hold a input_event_type_e value.
78 */
80{
81 /* "state" has changed */
83 /* b_dead is true */
85
86 /* "rate" has changed */
88
89 /* "capabilities" has changed */
91
92 /* At least one of "position", "time" "length" has changed */
94
95 /* The output PTS changed */
97
98 /* A title has been added or removed or selected.
99 * It implies that the chapter has changed (no chapter event is sent) */
101 /* A chapter has been added or removed or selected. */
103
104 /* A program ("program") has been added or removed or selected,
105 * or "program-scrambled" has changed.*/
107 /* A ES has been added or removed or selected */
109
110 /* "record" has changed */
112
113 /* input_item_t media has changed */
115 /* input_item_t info has changed */
117 /* input_item_t epg has changed */
119
120 /* Input statistics have been updated */
122 /* At least one of "signal-quality" or "signal-strength" has changed */
124
125 /* "bookmark" has changed */
127
128 /* cache" has changed */
130
131 /* A vout_thread_t object has been created/deleted by *the input* */
133
134 /* (pre-)parsing events */
136
137 /* vbi_page has changed */
139 /* vbi_transparent has changed */
141
142 /* subs_fps has changed */
144
145 /* Thumbnail generation */
147
148 /* Attachments */
150
151 /* The demux is not able to navigate */
153
154 /* Mouse event */
157
158#define VLC_INPUT_CAPABILITIES_SEEKABLE (1<<0)
159#define VLC_INPUT_CAPABILITIES_PAUSEABLE (1<<1)
160#define VLC_INPUT_CAPABILITIES_CHANGE_RATE (1<<2)
161#define VLC_INPUT_CAPABILITIES_REWINDABLE (1<<3)
162
164{
166 /* Only valid for PAUSE_S and PLAYING_S states */
168};
169
177
188
190{
191 enum {
195 union
196 {
197 struct
198 {
200 size_t count;
203 };
204};
205
211
226
228 enum {
235 /**
236 * ES track id: only valid from the event callback, unless the id is held
237 * by the user with vlc_es_Hold(). */
239 /**
240 * Title of ES track, can be updated after the VLC_INPUT_ES_UPDATED event.
241 */
242 const char *title;
243 /**
244 * ES track information, can be updated after the VLC_INPUT_ES_UPDATED event.
245 */
247 /**
248 * Only valid with VLC_INPUT_ES_SELECTED, true if the track was selected by
249 * the user.
250 */
251 bool forced;
252
254};
255
260
271
277
283
285{
287
288 union {
289 /* INPUT_EVENT_STATE */
291 /* INPUT_EVENT_RATE */
292 float rate;
293 /* INPUT_EVENT_CAPABILITIES */
294 int capabilities; /**< cf. VLC_INPUT_CAPABILITIES_* bitwise flags */
295 /* INPUT_EVENT_TIMES */
297 /* INPUT_EVENT_OUTPUT_CLOCK */
299 /* INPUT_EVENT_TITLE */
301 /* INPUT_EVENT_CHAPTER */
303 /* INPUT_EVENT_PROGRAM */
305 /* INPUT_EVENT_ES */
307 /* INPUT_EVENT_RECORD */
308 bool record;
309 /* INPUT_EVENT_STATISTICS */
310 const struct input_stats_t *stats;
311 /* INPUT_EVENT_SIGNAL */
313 /* INPUT_EVENT_CACHE */
314 float cache;
315 /* INPUT_EVENT_VOUT */
317 /* INPUT_EVENT_SUBITEMS */
319 /* INPUT_EVENT_VBI_PAGE */
320 unsigned vbi_page;
321 /* INPUT_EVENT_VBI_TRANSPARENCY */
323 /* INPUT_EVENT_SUBS_FPS */
324 float subs_fps;
325 /* INPUT_EVENT_THUMBNAIL_READY */
327 /* INPUT_EVENT_ATTACHMENTS */
329 /* INPUT_EVENT_NAV_FAILED */
331 /* INPUT_EVENT_MOUSE */
333 };
334};
335
337{
338 void (*on_event)(input_thread_t *input, const struct vlc_input_event *event,
339 void *userdata);
340};
341
361/**
362 * Create a new input_thread_t.
363 *
364 * You need to call input_Start on it when you are done
365 * adding callback on the variables/events you want to monitor.
366 *
367 * \param p_parent a vlc_object
368 * \param p_item an input item
369 * \param cfg pointer to a configuration struct, mandatory
370 * \return a pointer to the spawned input thread
371 */
373 const struct vlc_input_thread_cfg *cfg ) VLC_USED;
374#define input_Create(a,b,c) input_Create(VLC_OBJECT(a),b,c)
375
377
378void input_Stop( input_thread_t * );
379
381
382void input_SetTime( input_thread_t *, vlc_tick_t i_time, bool b_fast );
383
384void input_SetPosition( input_thread_t *, double f_position, bool b_fast );
385
386/**
387 * Set the delay of an ES identifier
388 */
390 vlc_tick_t delay);
391
392/**
393 * Get the input item for an input thread
394 *
395 * You have to keep a reference to the input or to the input_item_t until
396 * you do not need it anymore.
397 */
399
400/*****************************************************************************
401 * Private input fields
402 *****************************************************************************/
403
404#define INPUT_CONTROL_FIFO_SIZE 100
405
406typedef union
407{
411 struct {
415 struct {
418 } time;
419 struct {
420 bool b_fast_seek;
421 double f_val;
422 } pos;
423 struct
424 {
425 enum es_format_category_e cat;
427 } cat_delay;
428 struct
429 {
430 enum es_format_category_e cat;
431 char *str_ids;
432 } cat_ids;
433 struct
434 {
435 vlc_es_id_t *id;
436 vlc_tick_t delay;
437 } es_delay;
438 struct {
439 vlc_es_id_t *id;
440 unsigned page;
441 } vbi_page;
442 struct {
443 vlc_es_id_t *id;
445 } vbi_transparency;
446 struct {
447 bool enabled;
448 char *dir_path;
449 } record_state;
451
457
458/** Private input fields */
460{
462
464 void *cbs_data;
465
467 bool hw_dec;
469
470 /* Current state */
475 float rate;
476
477 /* Playtime configuration and state */
478 vlc_tick_t i_start; /* :start-time,0 by default */
479 vlc_tick_t i_stop; /* :stop-time, 0 if none */
480
481 /* Delays */
484
485 /* Output */
486 bool b_out_pace_control; /* XXX Move it ot es_sout ? */
487 sout_stream_t *p_sout; /* Idem ? */
493
494
497
498 /* Input attachment */
501
502 /* Main input properties */
503
504 /* Input item */
506
507 /* Main source */
509 /* Slave sources (subs, and others) */
510 size_t i_slave;
513
514 /* Resources */
516
517 /* Stats counters */
519
520 /* Buffer of pending actions */
523 size_t i_control;
525
529
531{
532 return container_of(input, input_thread_private_t, input);
533}
534
535/***************************************************************************
536 * Internal control helpers
537 ***************************************************************************/
539{
541
543
545
547
549
553
557
559
560 INPUT_CONTROL_NAV_ACTIVATE, // NOTE: INPUT_CONTROL_NAV_* values must be
561 INPUT_CONTROL_NAV_UP, // contiguous and in the same order as
562 INPUT_CONTROL_NAV_DOWN, // INPUT_NAV_* and DEMUX_NAV_*.
567
569 INPUT_CONTROL_SET_ES_LIST, // select a list of ES atomically
573
574 INPUT_CONTROL_SET_VIEWPOINT, // new absolute viewpoint
575 INPUT_CONTROL_SET_INITIAL_VIEWPOINT, // set initial viewpoint (generally from video)
576 INPUT_CONTROL_UPDATE_VIEWPOINT, // update viewpoint relative to current
577
580
583
585
587
589
592};
593
594/* Internal helpers */
595
597
598/* XXX for string value you have to allocate it before calling
599 * input_ControlPushHelper
600 */
601static inline int input_ControlPushHelper( input_thread_t *p_input, int i_type, vlc_value_t *val )
602{
603 if( val != NULL )
604 {
605 input_control_param_t param = { .val = *val };
606 return input_ControlPush( p_input, i_type, &param );
607 }
608 else
609 {
610 return input_ControlPush( p_input, i_type, NULL );
611 }
612}
613
614static inline int input_ControlPushEsHelper( input_thread_t *p_input, int i_type,
615 vlc_es_id_t *id )
616{
619 return input_ControlPush( p_input, i_type, &(input_control_param_t) {
620 .id = vlc_es_id_Hold( id ),
621 } );
622}
623
624/**
625 * Set the program id
626 *
627 * cf. ES_OUT_SET_GROUP
628 * This function can be called before start or while started.
629 * This function is not thread-safe, the caller should handle the locking.
630 */
631void input_SetProgramId(input_thread_t *input, int group_id);
632
633/**
634 * Set the default delay applied to the given category.
635 *
636 * Set the default delay for the given \p es_format_category_e synchronously
637 * if the input is not running yet, otherwise push a control to signal to the
638 * input which delay should be updated.
639 *
640 * @param input Any input to change the delay for.
641 * @param cat The ES category to apply the delay to.
642 * @param delay The delay to apply to the category, a positive delay shifting
643 * the track to the future.
644 * @return VLC_SUCCESS when the delay has been applied, or signal an error
645 * otherwise.
646 *
647 * @note This function can be called before start or while running.
648 * @note This function is not thread-safe, the caller should handle the locking.
649 */
651 vlc_tick_t delay);
652
653/**
654 * Set the list of string ids to enable for a category
655 *
656 * cf. ES_OUT_SET_ES_CAT_IDS
657 * This function can be called before start or while started.
658 * This function is not thread-safe, the caller should handle the locking.
659 */
661 const char *str_ids);
662
664
665int input_GetAttachments(input_thread_t *input, input_attachment_t ***attachments);
666
668
670
671/**
672 * Calculates the duration of the item in an input thread.
673 *
674 * This function determines the duration of a track item based on the start and
675 * stop times stored in the input thread's private data. If the stop time is not
676 * set (i.e., equals zero), the function considers the given `duration` as the
677 * stop time and calculates the effective duration based on the start time.
678 * Otherwise, it calculates the duration using the set start and stop times.
679 *
680 * @param input Pointer to the input_thread_t object.
681 * @param duration The initial duration value, used if the stop time is not set.
682 *
683 * @return The calculated duration based on the start and stop times.
684 */
686
687/* Bound pts_delay */
688#define INPUT_PTS_DELAY_MAX VLC_TICK_FROM_SEC(60)
689
690/**********************************************************************
691 * Item metadata
692 **********************************************************************/
693/* input_ExtractAttachmentAndCacheArt:
694 * Be careful: p_item lock will be taken! */
696
697/***************************************************************************
698 * Internal prototypes
699 ***************************************************************************/
700
701/* var.c */
702
704
705/* Subtitles */
706int subtitles_Detect( input_thread_t *, char *, const char *, input_item_slave_t ***, int * );
707int subtitles_Filter( const char *);
708
709/* meta.c */
711 const vlc_meta_t *p_meta );
712
713/* stats.c */
714typedef struct input_rate_t
715{
717 uintmax_t updates;
718 uintmax_t value;
719 struct
720 {
721 uintmax_t value;
725
729 atomic_uintmax_t demux_corrupted;
730 atomic_uintmax_t demux_discontinuity;
731 atomic_uintmax_t decoded_audio;
732 atomic_uintmax_t decoded_video;
733 atomic_uintmax_t played_abuffers;
734 atomic_uintmax_t lost_abuffers;
735 atomic_uintmax_t displayed_pictures;
736 atomic_uintmax_t late_pictures;
737 atomic_uintmax_t lost_pictures;
738};
739
740struct input_stats *input_stats_Create(void);
741void input_stats_Destroy(struct input_stats *);
742void input_rate_Add(input_rate_t *, uintmax_t);
744
745#endif
struct vlc_param ** list
Definition core.c:402
vlc_es_id_t * vlc_es_id_Hold(vlc_es_id_t *id)
Increase the ES track id reference count.
Definition es_out.c:4657
#define VLC_USED
Definition fourcc_gen.c:32
vlc_vout_order
vout or spu_channel order
Definition vlc_vout.h:70
const char name[16]
Definition httpd.c:1298
int i_type
Definition httpd.c:1299
bool input_CanPaceControl(input_thread_t *input)
Definition input.c:3497
input_type
Definition input_internal.h:52
@ INPUT_TYPE_PLAYBACK
Definition input_internal.h:53
@ INPUT_TYPE_THUMBNAILING
Definition input_internal.h:55
@ INPUT_TYPE_PREPARSING
Definition input_internal.h:54
void input_ConfigVarInit(input_thread_t *)
Definition var.c:39
void input_rate_Add(input_rate_t *, uintmax_t)
Update a counter element with new values.
Definition stats.c:121
bool input_Stopped(input_thread_t *)
Definition input.c:443
void input_SetPosition(input_thread_t *, double f_position, bool b_fast)
Definition input.c:188
int subtitles_Detect(input_thread_t *, char *, const char *, input_item_slave_t ***, int *)
Detect subtitle files.
Definition subtitles.c:220
void input_stats_Destroy(struct input_stats *)
Definition stats.c:74
void input_SetEsCatIds(input_thread_t *, enum es_format_category_e cat, const char *str_ids)
Set the list of string ids to enable for a category.
Definition input.c:1855
input_event_type_e
Input events.
Definition input_internal.h:80
@ INPUT_EVENT_THUMBNAIL_READY
Definition input_internal.h:146
@ INPUT_EVENT_SUBITEMS
Definition input_internal.h:135
@ INPUT_EVENT_CHAPTER
Definition input_internal.h:102
@ INPUT_EVENT_ITEM_EPG
Definition input_internal.h:118
@ INPUT_EVENT_OUTPUT_CLOCK
Definition input_internal.h:96
@ INPUT_EVENT_SIGNAL
Definition input_internal.h:123
@ INPUT_EVENT_ITEM_META
Definition input_internal.h:114
@ INPUT_EVENT_RATE
Definition input_internal.h:87
@ INPUT_EVENT_TITLE
Definition input_internal.h:100
@ INPUT_EVENT_DEAD
Definition input_internal.h:84
@ INPUT_EVENT_ES
Definition input_internal.h:108
@ INPUT_EVENT_RECORD
Definition input_internal.h:111
@ INPUT_EVENT_ATTACHMENTS
Definition input_internal.h:149
@ INPUT_EVENT_CAPABILITIES
Definition input_internal.h:90
@ INPUT_EVENT_STATISTICS
Definition input_internal.h:121
@ INPUT_EVENT_ITEM_INFO
Definition input_internal.h:116
@ INPUT_EVENT_BOOKMARK
Definition input_internal.h:126
@ INPUT_EVENT_PROGRAM
Definition input_internal.h:106
@ INPUT_EVENT_TIMES
Definition input_internal.h:93
@ INPUT_EVENT_STATE
Definition input_internal.h:82
@ INPUT_EVENT_VOUT
Definition input_internal.h:132
@ INPUT_EVENT_SUBS_FPS
Definition input_internal.h:143
@ INPUT_EVENT_NAV_FAILED
Definition input_internal.h:152
@ INPUT_EVENT_VBI_PAGE
Definition input_internal.h:138
@ INPUT_EVENT_CACHE
Definition input_internal.h:129
@ INPUT_EVENT_VBI_TRANSPARENCY
Definition input_internal.h:140
@ INPUT_EVENT_MOUSE
Definition input_internal.h:155
input_state_e
Input state.
Definition input_internal.h:64
@ PAUSE_S
Definition input_internal.h:68
@ PLAYING_S
Definition input_internal.h:67
@ END_S
Definition input_internal.h:69
@ OPENING_S
Definition input_internal.h:66
@ INIT_S
Definition input_internal.h:65
@ ERROR_S
Definition input_internal.h:70
int subtitles_Filter(const char *)
Definition subtitles.c:145
input_item_t * input_GetItem(input_thread_t *)
Get the input item for an input thread.
Definition input.c:203
static int input_ControlPushEsHelper(input_thread_t *p_input, int i_type, vlc_es_id_t *id)
Definition input_internal.h:614
void input_ExtractAttachmentAndCacheArt(input_thread_t *, const char *name)
Definition meta.c:254
input_attachment_t * input_GetAttachment(input_thread_t *input, const char *name)
Definition input.c:3478
void input_SetEsIdDelay(input_thread_t *input, vlc_es_id_t *es_id, vlc_tick_t delay)
Set the delay of an ES identifier.
int input_GetAttachments(input_thread_t *input, input_attachment_t ***attachments)
Definition input.c:3450
void input_SetProgramId(input_thread_t *input, int group_id)
Set the program id.
Definition input.c:1838
void input_Stop(input_thread_t *)
Request a running input thread to stop and die.
Definition input.c:148
int input_Start(input_thread_t *)
Start a input_thread_t created by input_Create.
Definition input.c:124
static int input_ControlPushHelper(input_thread_t *p_input, int i_type, vlc_value_t *val)
Definition input_internal.h:601
input_control_e
Definition input_internal.h:539
@ INPUT_CONTROL_SET_ES_DELAY
Definition input_internal.h:579
@ INPUT_CONTROL_SET_TITLE_NEXT
Definition input_internal.h:551
@ INPUT_CONTROL_RESTART_ES
Definition input_internal.h:571
@ INPUT_CONTROL_SET_TITLE
Definition input_internal.h:550
@ INPUT_CONTROL_NAV_MENU
Definition input_internal.h:566
@ INPUT_CONTROL_SET_STATE
Definition input_internal.h:540
@ INPUT_CONTROL_NAV_LEFT
Definition input_internal.h:563
@ INPUT_CONTROL_SET_VBI_PAGE
Definition input_internal.h:590
@ INPUT_CONTROL_SET_FRAME_NEXT
Definition input_internal.h:586
@ INPUT_CONTROL_SET_RATE
Definition input_internal.h:542
@ INPUT_CONTROL_SET_ES_LIST
Definition input_internal.h:569
@ INPUT_CONTROL_SET_VBI_TRANSPARENCY
Definition input_internal.h:591
@ INPUT_CONTROL_NAV_DOWN
Definition input_internal.h:562
@ INPUT_CONTROL_SET_BOOKMARK
Definition input_internal.h:558
@ INPUT_CONTROL_SET_TIME
Definition input_internal.h:546
@ INPUT_CONTROL_NAV_ACTIVATE
Definition input_internal.h:560
@ INPUT_CONTROL_SET_RECORD_STATE
Definition input_internal.h:584
@ INPUT_CONTROL_UNSET_ES
Definition input_internal.h:570
@ INPUT_CONTROL_SET_INITIAL_VIEWPOINT
Definition input_internal.h:575
@ INPUT_CONTROL_SET_ES_CAT_IDS
Definition input_internal.h:572
@ INPUT_CONTROL_UPDATE_VIEWPOINT
Definition input_internal.h:576
@ INPUT_CONTROL_SET_SEEKPOINT_NEXT
Definition input_internal.h:555
@ INPUT_CONTROL_NAV_UP
Definition input_internal.h:561
@ INPUT_CONTROL_SET_ES
Definition input_internal.h:568
@ INPUT_CONTROL_SET_VIEWPOINT
Definition input_internal.h:574
@ INPUT_CONTROL_ADD_SLAVE
Definition input_internal.h:581
@ INPUT_CONTROL_NAV_RIGHT
Definition input_internal.h:564
@ INPUT_CONTROL_SET_PROGRAM
Definition input_internal.h:548
@ INPUT_CONTROL_SET_CATEGORY_DELAY
Definition input_internal.h:578
@ INPUT_CONTROL_SET_SUBS_FPS
Definition input_internal.h:582
@ INPUT_CONTROL_NAV_POPUP
Definition input_internal.h:565
@ INPUT_CONTROL_SET_RENDERER
Definition input_internal.h:588
@ INPUT_CONTROL_SET_POSITION
Definition input_internal.h:544
@ INPUT_CONTROL_SET_SEEKPOINT
Definition input_internal.h:554
@ INPUT_CONTROL_SET_SEEKPOINT_PREV
Definition input_internal.h:556
@ INPUT_CONTROL_SET_TITLE_PREV
Definition input_internal.h:552
int input_ControlPush(input_thread_t *, int, const input_control_param_t *)
Definition input.c:1526
vlc_tick_t input_GetItemDuration(input_thread_t *input, vlc_tick_t duration)
Calculates the duration of the item in an input thread.
Definition input.c:3503
struct input_stats * input_stats_Create(void)
Definition stats.c:54
#define INPUT_CONTROL_FIFO_SIZE
Definition input_internal.h:404
void vlc_audio_replay_gain_MergeFromMeta(audio_replay_gain_t *p_dst, const vlc_meta_t *p_meta)
Definition meta.c:324
void input_Close(input_thread_t *)
Close an input.
Definition input.c:171
void input_stats_Compute(struct input_stats *, input_stats_t *)
Definition stats.c:79
void input_SetTime(input_thread_t *, vlc_tick_t i_time, bool b_fast)
Definition input.c:179
int input_SetEsCatDelay(input_thread_t *input, enum es_format_category_e cat, vlc_tick_t delay)
Set the default delay applied to the given category.
Definition input.c:1845
static input_thread_private_t * input_priv(input_thread_t *input)
Definition input_internal.h:530
#define input_Create(a, b, c)
Definition input_internal.h:374
Definition vlc_es.h:57
Definition vlc_es.h:633
Definition vlc_input.h:169
Definition input_internal.h:453
int i_type
Definition input_internal.h:454
input_control_param_t param
Definition input_internal.h:455
Definition vlc_input_item.h:204
Definition vlc_input_item.h:196
Describes an input and is used to spawn input_thread_t objects.
Definition vlc_input_item.h:98
Definition input_internal.h:715
struct input_rate_t::@56 samples[2]
vlc_mutex_t lock
Definition input_internal.h:716
uintmax_t value
Definition input_internal.h:718
uintmax_t updates
Definition input_internal.h:717
vlc_tick_t date
Definition input_internal.h:722
Definition resource.c:58
Definition source.h:35
Definition vlc_input_item.h:529
Definition input_internal.h:726
atomic_uintmax_t lost_abuffers
Definition input_internal.h:734
atomic_uintmax_t demux_corrupted
Definition input_internal.h:729
atomic_uintmax_t lost_pictures
Definition input_internal.h:737
atomic_uintmax_t late_pictures
Definition input_internal.h:736
atomic_uintmax_t played_abuffers
Definition input_internal.h:733
atomic_uintmax_t displayed_pictures
Definition input_internal.h:735
atomic_uintmax_t decoded_video
Definition input_internal.h:732
input_rate_t input_bitrate
Definition input_internal.h:727
atomic_uintmax_t demux_discontinuity
Definition input_internal.h:730
input_rate_t demux_bitrate
Definition input_internal.h:728
atomic_uintmax_t decoded_audio
Definition input_internal.h:731
Private input fields.
Definition input_internal.h:460
int i_seekpoint_offset
Definition input_internal.h:496
sout_stream_t * p_sout
Definition input_internal.h:487
bool viewpoint_changed
Definition input_internal.h:491
struct vlc_input_es_out * p_es_out_display
Definition input_internal.h:489
int i_state
Definition input_internal.h:471
input_source_t ** slave
Definition input_internal.h:511
const struct vlc_input_thread_callbacks * cbs
Definition input_internal.h:463
struct input_stats * stats
Definition input_internal.h:518
size_t i_control
Definition input_internal.h:523
float rate
Definition input_internal.h:475
bool preparse_subitems
Definition input_internal.h:468
input_attachment_t ** attachment
Definition input_internal.h:500
int i_attachment
Definition input_internal.h:499
bool b_out_pace_control
Definition input_internal.h:486
enum input_type type
Definition input_internal.h:466
vlc_tick_t i_start
Definition input_internal.h:478
vlc_renderer_item_t * p_renderer
Definition input_internal.h:492
vlc_tick_t i_stop
Definition input_internal.h:479
input_control_t control[100]
Definition input_internal.h:524
vlc_interrupt_t interrupt
Definition input_internal.h:527
float slave_subs_rate
Definition input_internal.h:512
input_item_t * p_item
Definition input_internal.h:505
void * cbs_data
Definition input_internal.h:464
size_t i_slave
Definition input_internal.h:510
bool is_running
Definition input_internal.h:472
bool hw_dec
Definition input_internal.h:467
bool b_low_delay
Definition input_internal.h:482
bool b_recording
Definition input_internal.h:474
int i_title_offset
Definition input_internal.h:495
vlc_cond_t wait_control
Definition input_internal.h:522
vlc_mutex_t lock_control
Definition input_internal.h:521
vlc_tick_t i_jitter_max
Definition input_internal.h:483
vlc_viewpoint_t viewpoint
Definition input_internal.h:490
input_resource_t * p_resource
Definition input_internal.h:515
struct vlc_input_es_out * p_es_out
Definition input_internal.h:488
input_source_t * master
Definition input_internal.h:508
bool is_stopped
Definition input_internal.h:473
struct input_thread_t input
Definition input_internal.h:461
vlc_thread_t thread
Definition input_internal.h:526
Main structure representing an input thread.
Definition input_internal.h:44
struct vlc_object_t obj
Definition input_internal.h:45
Definition vlc_input.h:103
Video picture.
Definition vlc_picture.h:130
Definition vlc_sout.h:274
Condition variable.
Definition vlc_threads.h:270
Opaque structure representing an ES (Elementary Stream) track.
Definition es_out.c:104
Definition es_out.h:116
Definition input_internal.h:273
size_t count
Definition input_internal.h:275
input_attachment_t *const * array
Definition input_internal.h:274
Definition input_internal.h:207
int seekpoint
Definition input_internal.h:209
int title
Definition input_internal.h:208
Definition input_internal.h:227
enum vlc_vout_order vout_order
Definition input_internal.h:253
enum vlc_input_event_es::@41 action
bool forced
Only valid with VLC_INPUT_ES_SELECTED, true if the track was selected by the user.
Definition input_internal.h:251
const char * title
Title of ES track, can be updated after the VLC_INPUT_ES_UPDATED event.
Definition input_internal.h:242
const es_format_t * fmt
ES track information, can be updated after the VLC_INPUT_ES_UPDATED event.
Definition input_internal.h:246
@ VLC_INPUT_ES_SELECTED
Definition input_internal.h:232
@ VLC_INPUT_ES_UPDATED
Definition input_internal.h:231
@ VLC_INPUT_ES_DELETED
Definition input_internal.h:230
@ VLC_INPUT_ES_ADDED
Definition input_internal.h:229
@ VLC_INPUT_ES_UNSELECTED
Definition input_internal.h:233
vlc_es_id_t * id
ES track id: only valid from the event callback, unless the id is held by the user with vlc_es_Hold()...
Definition input_internal.h:238
Definition input_internal.h:279
vlc_mouse_t oldmouse
Definition input_internal.h:280
vlc_mouse_t newmouse
Definition input_internal.h:281
Definition input_internal.h:179
vlc_es_id_t * id
Definition input_internal.h:180
vlc_tick_t system_ts
Definition input_internal.h:182
unsigned frame_rate
Definition input_internal.h:185
double rate
Definition input_internal.h:184
vlc_tick_t ts
Definition input_internal.h:183
unsigned frame_rate_base
Definition input_internal.h:186
bool master
Definition input_internal.h:181
Definition input_internal.h:212
bool scrambled
Definition input_internal.h:223
const char * title
Definition input_internal.h:222
@ VLC_INPUT_PROGRAM_UPDATED
Definition input_internal.h:216
@ VLC_INPUT_PROGRAM_SCRAMBLED
Definition input_internal.h:218
@ VLC_INPUT_PROGRAM_SELECTED
Definition input_internal.h:217
@ VLC_INPUT_PROGRAM_DELETED
Definition input_internal.h:215
@ VLC_INPUT_PROGRAM_ADDED
Definition input_internal.h:214
int id
Definition input_internal.h:220
enum vlc_input_event_program::@38 action
Definition input_internal.h:256
float quality
Definition input_internal.h:257
float strength
Definition input_internal.h:258
Definition input_internal.h:164
vlc_tick_t date
Definition input_internal.h:167
input_state_e value
Definition input_internal.h:165
Definition input_internal.h:171
vlc_tick_t time
Definition input_internal.h:173
double position
Definition input_internal.h:172
vlc_tick_t normal_time
Definition input_internal.h:174
vlc_tick_t length
Definition input_internal.h:175
Definition input_internal.h:190
size_t selected_idx
Definition input_internal.h:202
size_t count
Definition input_internal.h:200
enum vlc_input_event_title::@34 action
struct vlc_input_event_title::@35::@37 list
@ VLC_INPUT_TITLE_NEW_LIST
Definition input_internal.h:192
@ VLC_INPUT_TITLE_SELECTED
Definition input_internal.h:193
input_title_t *const * array
Definition input_internal.h:199
Definition input_internal.h:262
enum vlc_input_event_vout::@42 action
vlc_es_id_t * id
Definition input_internal.h:269
enum vlc_vout_order order
Definition input_internal.h:268
@ VLC_INPUT_EVENT_VOUT_STOPPED
Definition input_internal.h:265
@ VLC_INPUT_EVENT_VOUT_STARTED
Definition input_internal.h:264
vout_thread_t * vout
Definition input_internal.h:267
Definition input_internal.h:285
struct vlc_input_event_state state
Definition input_internal.h:290
unsigned vbi_page
Definition input_internal.h:320
float cache
Definition input_internal.h:314
struct vlc_input_event_program program
Definition input_internal.h:304
int nav_type
Definition input_internal.h:330
struct vlc_input_event_signal signal
Definition input_internal.h:312
const struct input_stats_t * stats
Definition input_internal.h:310
struct vlc_input_event_chapter chapter
Definition input_internal.h:302
struct vlc_input_event_output_clock output_clock
Definition input_internal.h:298
struct vlc_input_event_title title
Definition input_internal.h:300
bool record
Definition input_internal.h:308
float rate
Definition input_internal.h:292
struct vlc_input_event_vout vout
Definition input_internal.h:316
struct vlc_input_event_es es
Definition input_internal.h:306
float subs_fps
Definition input_internal.h:324
struct vlc_input_event_times times
Definition input_internal.h:296
input_item_node_t * subitems
Definition input_internal.h:318
int capabilities
cf.
Definition input_internal.h:294
input_event_type_e type
Definition input_internal.h:286
picture_t * thumbnail
Definition input_internal.h:326
struct vlc_input_event_mouse mouse_data
Definition input_internal.h:332
bool vbi_transparent
Definition input_internal.h:322
struct vlc_input_event_attachments attachments
Definition input_internal.h:328
Definition input_internal.h:337
void(* on_event)(input_thread_t *input, const struct vlc_input_event *event, void *userdata)
Definition input_internal.h:338
Definition input_internal.h:343
enum input_type type
Definition input_internal.h:344
bool subitems
Definition input_internal.h:357
bool interact
Definition input_internal.h:359
struct vlc_input_thread_cfg::@46 preparsing
vlc_renderer_item_t * renderer
Definition input_internal.h:352
void * cbs_data
Definition input_internal.h:354
enum vlc_input_thread_cfg::@45 hw_dec
@ INPUT_CFG_HW_DEC_DEFAULT
Definition input_internal.h:347
@ INPUT_CFG_HW_DEC_ENABLED
Definition input_internal.h:349
@ INPUT_CFG_HW_DEC_DISABLED
Definition input_internal.h:348
const struct vlc_input_thread_callbacks * cbs
Definition input_internal.h:353
input_resource_t * resource
Definition input_internal.h:351
Definition interrupt.h:33
Definition meta.c:46
Mouse state.
Definition vlc_mouse.h:46
Mutex.
Definition vlc_threads.h:143
VLC object common members.
Definition vlc_objects.h:53
Definition renderer_discovery.c:36
Thread handle.
Definition vlc_threads.h:108
Viewpoints.
Definition vlc_viewpoint.h:41
Video output thread descriptor.
Definition vlc_vout.h:54
Definition input_internal.h:407
char * dir_path
Definition input_internal.h:448
double f_val
Definition input_internal.h:421
unsigned page
Definition input_internal.h:440
char * str_ids
Definition input_internal.h:431
vlc_es_id_t * id
Definition input_internal.h:410
vlc_es_id_t ** ids
Definition input_internal.h:413
bool b_fast_seek
Definition input_internal.h:416
vlc_tick_t i_val
Definition input_internal.h:417
bool enabled
Definition input_internal.h:444
enum es_format_category_e cat
Definition input_internal.h:412
vlc_tick_t delay
Definition input_internal.h:426
vlc_viewpoint_t viewpoint
Definition input_internal.h:409
vlc_value_t val
Definition input_internal.h:408
VLC value structure.
Definition vlc_variables.h:122
#define container_of(ptr, type, member)
Definition vlc_common.h:1067
Demultiplexer modules interface.
es_format_category_e
ES Categories.
Definition vlc_es.h:616
Input thread interface.
int64_t vlc_tick_t
High precision date or time interval.
Definition vlc_tick.h:48