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 "input_interface.h"
29#include "../misc/interrupt.h"
30#include "./source.h"
31
32struct input_stats;
33
34/*****************************************************************************
35 * input defines/constants.
36 *****************************************************************************/
37
38/**
39 * Main structure representing an input thread. This structure is mostly
40 * private. The only public fields are read-only and constant.
41 */
46
47/*****************************************************************************
48 * Input events and variables
49 *****************************************************************************/
50
56
57/**
58 * Input state
59 *
60 * This enum is used by the variable "state"
61 */
71
72/**
73 * Input events
74 *
75 * You can catch input event by adding a callback on the variable "intf-event".
76 * This variable is an integer that will hold a input_event_type_e value.
77 */
79{
80 /* "state" has changed */
82 /* b_dead is true */
84
85 /* "rate" has changed */
87
88 /* "capabilities" has changed */
90
91 /* At least one of "position", "time" "length" has changed */
93
94 /* The output PTS changed */
96
97 /* A title has been added or removed or selected.
98 * It implies that the chapter has changed (no chapter event is sent) */
100 /* A chapter has been added or removed or selected. */
102
103 /* A program ("program") has been added or removed or selected,
104 * or "program-scrambled" has changed.*/
106 /* A ES has been added or removed or selected */
108
109 /* "record" has changed */
111
112 /* input_item_t media has changed */
114 /* input_item_t info has changed */
116 /* input_item_t epg has changed */
118
119 /* Input statistics have been updated */
121 /* At least one of "signal-quality" or "signal-strength" has changed */
123
124 /* "bookmark" has changed */
126
127 /* cache" has changed */
129
130 /* A vout_thread_t object has been created/deleted by *the input* */
132
133 /* (pre-)parsing events */
135
136 /* vbi_page has changed */
138 /* vbi_transparent has changed */
140
141 /* subs_fps has changed */
143
144 /* Thumbnail generation */
146
147 /* Attachments */
149
150 /* The demux is not able to navigate */
153
154#define VLC_INPUT_CAPABILITIES_SEEKABLE (1<<0)
155#define VLC_INPUT_CAPABILITIES_PAUSEABLE (1<<1)
156#define VLC_INPUT_CAPABILITIES_CHANGE_RATE (1<<2)
157#define VLC_INPUT_CAPABILITIES_REWINDABLE (1<<3)
158
160{
162 /* Only valid for PAUSE_S and PLAYING_S states */
164};
165
173
184
186{
187 enum {
191 union
192 {
193 struct
194 {
196 size_t count;
199 };
200};
201
207
222
224 enum {
231 /**
232 * ES track id: only valid from the event callback, unless the id is held
233 * by the user with vlc_es_Hold(). */
235 /**
236 * Title of ES track, can be updated after the VLC_INPUT_ES_UPDATED event.
237 */
238 const char *title;
239 /**
240 * ES track information, can be updated after the VLC_INPUT_ES_UPDATED event.
241 */
243 /**
244 * Only valid with VLC_INPUT_ES_SELECTED, true if the track was selected by
245 * the user.
246 */
247 bool forced;
248
250};
251
256
267
273
275{
277
278 union {
279 /* INPUT_EVENT_STATE */
281 /* INPUT_EVENT_RATE */
282 float rate;
283 /* INPUT_EVENT_CAPABILITIES */
284 int capabilities; /**< cf. VLC_INPUT_CAPABILITIES_* bitwise flags */
285 /* INPUT_EVENT_TIMES */
287 /* INPUT_EVENT_OUTPUT_CLOCK */
289 /* INPUT_EVENT_TITLE */
291 /* INPUT_EVENT_CHAPTER */
293 /* INPUT_EVENT_PROGRAM */
295 /* INPUT_EVENT_ES */
297 /* INPUT_EVENT_RECORD */
298 bool record;
299 /* INPUT_EVENT_STATISTICS */
300 const struct input_stats_t *stats;
301 /* INPUT_EVENT_SIGNAL */
303 /* INPUT_EVENT_CACHE */
304 float cache;
305 /* INPUT_EVENT_VOUT */
307 /* INPUT_EVENT_SUBITEMS */
309 /* INPUT_EVENT_VBI_PAGE */
310 unsigned vbi_page;
311 /* INPUT_EVENT_VBI_TRANSPARENCY */
313 /* INPUT_EVENT_SUBS_FPS */
314 float subs_fps;
315 /* INPUT_EVENT_THUMBNAIL_READY */
317 /* INPUT_EVENT_ATTACHMENTS */
319 /* INPUT_EVENT_NAV_FAILED */
321 };
322};
323
325{
326 void (*on_event)(input_thread_t *input, const struct vlc_input_event *event,
327 void *userdata);
328};
329
343/**
344 * Create a new input_thread_t.
345 *
346 * You need to call input_Start on it when you are done
347 * adding callback on the variables/events you want to monitor.
348 *
349 * \param p_parent a vlc_object
350 * \param p_item an input item
351 * \param cfg pointer to a configuration struct, mandatory
352 * \return a pointer to the spawned input thread
353 */
355 const struct vlc_input_thread_cfg *cfg ) VLC_USED;
356#define input_Create(a,b,c) input_Create(VLC_OBJECT(a),b,c)
357
359
360void input_Stop( input_thread_t * );
361
363
364void input_SetTime( input_thread_t *, vlc_tick_t i_time, bool b_fast );
365
366void input_SetPosition( input_thread_t *, double f_position, bool b_fast );
367
368/**
369 * Set the delay of an ES identifier
370 */
372 vlc_tick_t delay);
373
374/**
375 * Get the input item for an input thread
376 *
377 * You have to keep a reference to the input or to the input_item_t until
378 * you do not need it anymore.
379 */
381
382/*****************************************************************************
383 * Private input fields
384 *****************************************************************************/
385
386#define INPUT_CONTROL_FIFO_SIZE 100
387
388typedef union
389{
393 struct {
397 struct {
400 } time;
401 struct {
402 bool b_fast_seek;
403 double f_val;
404 } pos;
405 struct
406 {
407 enum es_format_category_e cat;
409 } cat_delay;
410 struct
411 {
412 enum es_format_category_e cat;
413 char *str_ids;
414 } cat_ids;
415 struct
416 {
417 vlc_es_id_t *id;
418 vlc_tick_t delay;
419 } es_delay;
420 struct {
421 vlc_es_id_t *id;
422 unsigned page;
423 } vbi_page;
424 struct {
425 vlc_es_id_t *id;
427 } vbi_transparency;
428 struct {
429 bool enabled;
430 char *dir_path;
431 } record_state;
433
439
440/** Private input fields */
442{
444
446 void *cbs_data;
447
450
451 /* Current state */
456 float rate;
457
458 /* Playtime configuration and state */
459 vlc_tick_t i_start; /* :start-time,0 by default */
460 vlc_tick_t i_stop; /* :stop-time, 0 if none */
461
462 /* Delays */
465
466 /* Output */
467 bool b_out_pace_control; /* XXX Move it ot es_sout ? */
468 sout_stream_t *p_sout; /* Idem ? */
474
475
478
479 /* Input attachment */
482
483 /* Main input properties */
484
485 /* Input item */
487
488 /* Main source */
490 /* Slave sources (subs, and others) */
491 size_t i_slave;
494
495 /* Resources */
497
498 /* Stats counters */
500
501 /* Buffer of pending actions */
504 size_t i_control;
506
510
512{
513 return container_of(input, input_thread_private_t, input);
514}
515
516/***************************************************************************
517 * Internal control helpers
518 ***************************************************************************/
520{
522
524
526
528
530
534
538
540
541 INPUT_CONTROL_NAV_ACTIVATE, // NOTE: INPUT_CONTROL_NAV_* values must be
542 INPUT_CONTROL_NAV_UP, // contiguous and in the same order as
543 INPUT_CONTROL_NAV_DOWN, // INPUT_NAV_* and DEMUX_NAV_*.
548
550 INPUT_CONTROL_SET_ES_LIST, // select a list of ES atomically
554
555 INPUT_CONTROL_SET_VIEWPOINT, // new absolute viewpoint
556 INPUT_CONTROL_SET_INITIAL_VIEWPOINT, // set initial viewpoint (generally from video)
557 INPUT_CONTROL_UPDATE_VIEWPOINT, // update viewpoint relative to current
558
561
564
566
568
570
573};
574
575/* Internal helpers */
576
578
579/* XXX for string value you have to allocate it before calling
580 * input_ControlPushHelper
581 */
582static inline int input_ControlPushHelper( input_thread_t *p_input, int i_type, vlc_value_t *val )
583{
584 if( val != NULL )
585 {
586 input_control_param_t param = { .val = *val };
587 return input_ControlPush( p_input, i_type, &param );
588 }
589 else
590 {
591 return input_ControlPush( p_input, i_type, NULL );
592 }
593}
594
595static inline int input_ControlPushEsHelper( input_thread_t *p_input, int i_type,
596 vlc_es_id_t *id )
597{
600 return input_ControlPush( p_input, i_type, &(input_control_param_t) {
601 .id = vlc_es_id_Hold( id ),
602 } );
603}
604
605/**
606 * Set the program id
607 *
608 * cf. ES_OUT_SET_GROUP
609 * This function can be called before start or while started.
610 * This function is not thread-safe, the caller should handle the locking.
611 */
612void input_SetProgramId(input_thread_t *input, int group_id);
613
614/**
615 * Set the default delay applied to the given category.
616 *
617 * Set the default delay for the given \p es_format_category_e synchronously
618 * if the input is not running yet, otherwise push a control to signal to the
619 * input which delay should be updated.
620 *
621 * @param input Any input to change the delay for.
622 * @param cat The ES category to apply the delay to.
623 * @param delay The delay to apply to the category, a positive delay shifting
624 * the track to the future.
625 * @return VLC_SUCCESS when the delay has been applied, or signal an error
626 * otherwise.
627 *
628 * @note This function can be called before start or while running.
629 * @note This function is not thread-safe, the caller should handle the locking.
630 */
632 vlc_tick_t delay);
633
634/**
635 * Set the list of string ids to enable for a category
636 *
637 * cf. ES_OUT_SET_ES_CAT_IDS
638 * This function can be called before start or while started.
639 * This function is not thread-safe, the caller should handle the locking.
640 */
642 const char *str_ids);
643
645
646int input_GetAttachments(input_thread_t *input, input_attachment_t ***attachments);
647
649
651
652/**
653 * Calculates the duration of the item in an input thread.
654 *
655 * This function determines the duration of a track item based on the start and
656 * stop times stored in the input thread's private data. If the stop time is not
657 * set (i.e., equals zero), the function considers the given `duration` as the
658 * stop time and calculates the effective duration based on the start time.
659 * Otherwise, it calculates the duration using the set start and stop times.
660 *
661 * @param input Pointer to the input_thread_t object.
662 * @param duration The initial duration value, used if the stop time is not set.
663 *
664 * @return The calculated duration based on the start and stop times.
665 */
667
668/* Bound pts_delay */
669#define INPUT_PTS_DELAY_MAX VLC_TICK_FROM_SEC(60)
670
671/**********************************************************************
672 * Item metadata
673 **********************************************************************/
674/* input_ExtractAttachmentAndCacheArt:
675 * Be careful: p_item lock will be taken! */
677
678/***************************************************************************
679 * Internal prototypes
680 ***************************************************************************/
681
682/* var.c */
683
685
686/* Subtitles */
687int subtitles_Detect( input_thread_t *, char *, const char *, input_item_slave_t ***, int * );
688int subtitles_Filter( const char *);
689
690/* meta.c */
692 const vlc_meta_t *p_meta );
693
694/* stats.c */
695typedef struct input_rate_t
696{
698 uintmax_t updates;
699 uintmax_t value;
700 struct
701 {
702 uintmax_t value;
706
710 atomic_uintmax_t demux_corrupted;
711 atomic_uintmax_t demux_discontinuity;
712 atomic_uintmax_t decoded_audio;
713 atomic_uintmax_t decoded_video;
714 atomic_uintmax_t played_abuffers;
715 atomic_uintmax_t lost_abuffers;
716 atomic_uintmax_t displayed_pictures;
717 atomic_uintmax_t late_pictures;
718 atomic_uintmax_t lost_pictures;
719};
720
721struct input_stats *input_stats_Create(void);
722void input_stats_Destroy(struct input_stats *);
723void input_rate_Add(input_rate_t *, uintmax_t);
725
726#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:4615
#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:3469
input_type
Definition input_internal.h:51
@ INPUT_TYPE_PLAYBACK
Definition input_internal.h:52
@ INPUT_TYPE_THUMBNAILING
Definition input_internal.h:54
@ INPUT_TYPE_PREPARSING
Definition input_internal.h:53
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:428
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:1835
input_event_type_e
Input events.
Definition input_internal.h:79
@ INPUT_EVENT_THUMBNAIL_READY
Definition input_internal.h:145
@ INPUT_EVENT_SUBITEMS
Definition input_internal.h:134
@ INPUT_EVENT_CHAPTER
Definition input_internal.h:101
@ INPUT_EVENT_ITEM_EPG
Definition input_internal.h:117
@ INPUT_EVENT_OUTPUT_CLOCK
Definition input_internal.h:95
@ INPUT_EVENT_SIGNAL
Definition input_internal.h:122
@ INPUT_EVENT_ITEM_META
Definition input_internal.h:113
@ INPUT_EVENT_RATE
Definition input_internal.h:86
@ INPUT_EVENT_TITLE
Definition input_internal.h:99
@ INPUT_EVENT_DEAD
Definition input_internal.h:83
@ INPUT_EVENT_ES
Definition input_internal.h:107
@ INPUT_EVENT_RECORD
Definition input_internal.h:110
@ INPUT_EVENT_ATTACHMENTS
Definition input_internal.h:148
@ INPUT_EVENT_CAPABILITIES
Definition input_internal.h:89
@ INPUT_EVENT_STATISTICS
Definition input_internal.h:120
@ INPUT_EVENT_ITEM_INFO
Definition input_internal.h:115
@ INPUT_EVENT_BOOKMARK
Definition input_internal.h:125
@ INPUT_EVENT_PROGRAM
Definition input_internal.h:105
@ INPUT_EVENT_TIMES
Definition input_internal.h:92
@ INPUT_EVENT_STATE
Definition input_internal.h:81
@ INPUT_EVENT_VOUT
Definition input_internal.h:131
@ INPUT_EVENT_SUBS_FPS
Definition input_internal.h:142
@ INPUT_EVENT_NAV_FAILED
Definition input_internal.h:151
@ INPUT_EVENT_VBI_PAGE
Definition input_internal.h:137
@ INPUT_EVENT_CACHE
Definition input_internal.h:128
@ INPUT_EVENT_VBI_TRANSPARENCY
Definition input_internal.h:139
input_state_e
Input state.
Definition input_internal.h:63
@ PAUSE_S
Definition input_internal.h:67
@ PLAYING_S
Definition input_internal.h:66
@ END_S
Definition input_internal.h:68
@ OPENING_S
Definition input_internal.h:65
@ INIT_S
Definition input_internal.h:64
@ ERROR_S
Definition input_internal.h:69
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:595
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:3450
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:3422
void input_SetProgramId(input_thread_t *input, int group_id)
Set the program id.
Definition input.c:1818
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:582
input_control_e
Definition input_internal.h:520
@ INPUT_CONTROL_SET_ES_DELAY
Definition input_internal.h:560
@ INPUT_CONTROL_SET_TITLE_NEXT
Definition input_internal.h:532
@ INPUT_CONTROL_RESTART_ES
Definition input_internal.h:552
@ INPUT_CONTROL_SET_TITLE
Definition input_internal.h:531
@ INPUT_CONTROL_NAV_MENU
Definition input_internal.h:547
@ INPUT_CONTROL_SET_STATE
Definition input_internal.h:521
@ INPUT_CONTROL_NAV_LEFT
Definition input_internal.h:544
@ INPUT_CONTROL_SET_VBI_PAGE
Definition input_internal.h:571
@ INPUT_CONTROL_SET_FRAME_NEXT
Definition input_internal.h:567
@ INPUT_CONTROL_SET_RATE
Definition input_internal.h:523
@ INPUT_CONTROL_SET_ES_LIST
Definition input_internal.h:550
@ INPUT_CONTROL_SET_VBI_TRANSPARENCY
Definition input_internal.h:572
@ INPUT_CONTROL_NAV_DOWN
Definition input_internal.h:543
@ INPUT_CONTROL_SET_BOOKMARK
Definition input_internal.h:539
@ INPUT_CONTROL_SET_TIME
Definition input_internal.h:527
@ INPUT_CONTROL_NAV_ACTIVATE
Definition input_internal.h:541
@ INPUT_CONTROL_SET_RECORD_STATE
Definition input_internal.h:565
@ INPUT_CONTROL_UNSET_ES
Definition input_internal.h:551
@ INPUT_CONTROL_SET_INITIAL_VIEWPOINT
Definition input_internal.h:556
@ INPUT_CONTROL_SET_ES_CAT_IDS
Definition input_internal.h:553
@ INPUT_CONTROL_UPDATE_VIEWPOINT
Definition input_internal.h:557
@ INPUT_CONTROL_SET_SEEKPOINT_NEXT
Definition input_internal.h:536
@ INPUT_CONTROL_NAV_UP
Definition input_internal.h:542
@ INPUT_CONTROL_SET_ES
Definition input_internal.h:549
@ INPUT_CONTROL_SET_VIEWPOINT
Definition input_internal.h:555
@ INPUT_CONTROL_ADD_SLAVE
Definition input_internal.h:562
@ INPUT_CONTROL_NAV_RIGHT
Definition input_internal.h:545
@ INPUT_CONTROL_SET_PROGRAM
Definition input_internal.h:529
@ INPUT_CONTROL_SET_CATEGORY_DELAY
Definition input_internal.h:559
@ INPUT_CONTROL_SET_SUBS_FPS
Definition input_internal.h:563
@ INPUT_CONTROL_NAV_POPUP
Definition input_internal.h:546
@ INPUT_CONTROL_SET_RENDERER
Definition input_internal.h:569
@ INPUT_CONTROL_SET_POSITION
Definition input_internal.h:525
@ INPUT_CONTROL_SET_SEEKPOINT
Definition input_internal.h:535
@ INPUT_CONTROL_SET_SEEKPOINT_PREV
Definition input_internal.h:537
@ INPUT_CONTROL_SET_TITLE_PREV
Definition input_internal.h:533
int input_ControlPush(input_thread_t *, int, const input_control_param_t *)
Definition input.c:1506
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:3475
struct input_stats * input_stats_Create(void)
Definition stats.c:54
#define INPUT_CONTROL_FIFO_SIZE
Definition input_internal.h:386
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:1825
static input_thread_private_t * input_priv(input_thread_t *input)
Definition input_internal.h:511
#define input_Create(a, b, c)
Definition input_internal.h:356
Definition vlc_es.h:57
Definition vlc_es.h:633
Definition vlc_input.h:169
Definition input_internal.h:435
int i_type
Definition input_internal.h:436
input_control_param_t param
Definition input_internal.h:437
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:696
struct input_rate_t::@55 samples[2]
vlc_mutex_t lock
Definition input_internal.h:697
uintmax_t value
Definition input_internal.h:699
uintmax_t updates
Definition input_internal.h:698
vlc_tick_t date
Definition input_internal.h:703
Definition resource.c:58
Definition source.h:35
Definition vlc_input_item.h:529
Definition input_internal.h:707
atomic_uintmax_t lost_abuffers
Definition input_internal.h:715
atomic_uintmax_t demux_corrupted
Definition input_internal.h:710
atomic_uintmax_t lost_pictures
Definition input_internal.h:718
atomic_uintmax_t late_pictures
Definition input_internal.h:717
atomic_uintmax_t played_abuffers
Definition input_internal.h:714
atomic_uintmax_t displayed_pictures
Definition input_internal.h:716
atomic_uintmax_t decoded_video
Definition input_internal.h:713
input_rate_t input_bitrate
Definition input_internal.h:708
atomic_uintmax_t demux_discontinuity
Definition input_internal.h:711
input_rate_t demux_bitrate
Definition input_internal.h:709
atomic_uintmax_t decoded_audio
Definition input_internal.h:712
Private input fields.
Definition input_internal.h:442
int i_seekpoint_offset
Definition input_internal.h:477
sout_stream_t * p_sout
Definition input_internal.h:468
bool viewpoint_changed
Definition input_internal.h:472
struct vlc_input_es_out * p_es_out_display
Definition input_internal.h:470
int i_state
Definition input_internal.h:452
input_source_t ** slave
Definition input_internal.h:492
const struct vlc_input_thread_callbacks * cbs
Definition input_internal.h:445
struct input_stats * stats
Definition input_internal.h:499
size_t i_control
Definition input_internal.h:504
float rate
Definition input_internal.h:456
bool preparse_subitems
Definition input_internal.h:449
input_attachment_t ** attachment
Definition input_internal.h:481
int i_attachment
Definition input_internal.h:480
bool b_out_pace_control
Definition input_internal.h:467
enum input_type type
Definition input_internal.h:448
vlc_tick_t i_start
Definition input_internal.h:459
vlc_renderer_item_t * p_renderer
Definition input_internal.h:473
vlc_tick_t i_stop
Definition input_internal.h:460
input_control_t control[100]
Definition input_internal.h:505
vlc_interrupt_t interrupt
Definition input_internal.h:508
float slave_subs_rate
Definition input_internal.h:493
input_item_t * p_item
Definition input_internal.h:486
void * cbs_data
Definition input_internal.h:446
size_t i_slave
Definition input_internal.h:491
bool is_running
Definition input_internal.h:453
bool b_low_delay
Definition input_internal.h:463
bool b_recording
Definition input_internal.h:455
int i_title_offset
Definition input_internal.h:476
vlc_cond_t wait_control
Definition input_internal.h:503
vlc_mutex_t lock_control
Definition input_internal.h:502
vlc_tick_t i_jitter_max
Definition input_internal.h:464
vlc_viewpoint_t viewpoint
Definition input_internal.h:471
input_resource_t * p_resource
Definition input_internal.h:496
struct vlc_input_es_out * p_es_out
Definition input_internal.h:469
input_source_t * master
Definition input_internal.h:489
bool is_stopped
Definition input_internal.h:454
struct input_thread_t input
Definition input_internal.h:443
vlc_thread_t thread
Definition input_internal.h:507
Main structure representing an input thread.
Definition input_internal.h:43
struct vlc_object_t obj
Definition input_internal.h:44
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:269
size_t count
Definition input_internal.h:271
input_attachment_t *const * array
Definition input_internal.h:270
Definition input_internal.h:203
int seekpoint
Definition input_internal.h:205
int title
Definition input_internal.h:204
Definition input_internal.h:223
enum vlc_vout_order vout_order
Definition input_internal.h:249
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:247
const char * title
Title of ES track, can be updated after the VLC_INPUT_ES_UPDATED event.
Definition input_internal.h:238
const es_format_t * fmt
ES track information, can be updated after the VLC_INPUT_ES_UPDATED event.
Definition input_internal.h:242
@ VLC_INPUT_ES_SELECTED
Definition input_internal.h:228
@ VLC_INPUT_ES_UPDATED
Definition input_internal.h:227
@ VLC_INPUT_ES_DELETED
Definition input_internal.h:226
@ VLC_INPUT_ES_ADDED
Definition input_internal.h:225
@ VLC_INPUT_ES_UNSELECTED
Definition input_internal.h:229
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:234
Definition input_internal.h:175
vlc_es_id_t * id
Definition input_internal.h:176
vlc_tick_t system_ts
Definition input_internal.h:178
unsigned frame_rate
Definition input_internal.h:181
double rate
Definition input_internal.h:180
vlc_tick_t ts
Definition input_internal.h:179
unsigned frame_rate_base
Definition input_internal.h:182
bool master
Definition input_internal.h:177
Definition input_internal.h:208
bool scrambled
Definition input_internal.h:219
const char * title
Definition input_internal.h:218
@ VLC_INPUT_PROGRAM_UPDATED
Definition input_internal.h:212
@ VLC_INPUT_PROGRAM_SCRAMBLED
Definition input_internal.h:214
@ VLC_INPUT_PROGRAM_SELECTED
Definition input_internal.h:213
@ VLC_INPUT_PROGRAM_DELETED
Definition input_internal.h:211
@ VLC_INPUT_PROGRAM_ADDED
Definition input_internal.h:210
int id
Definition input_internal.h:216
enum vlc_input_event_program::@38 action
Definition input_internal.h:252
float quality
Definition input_internal.h:253
float strength
Definition input_internal.h:254
Definition input_internal.h:160
vlc_tick_t date
Definition input_internal.h:163
input_state_e value
Definition input_internal.h:161
Definition input_internal.h:167
vlc_tick_t time
Definition input_internal.h:169
double position
Definition input_internal.h:168
vlc_tick_t normal_time
Definition input_internal.h:170
vlc_tick_t length
Definition input_internal.h:171
Definition input_internal.h:186
size_t selected_idx
Definition input_internal.h:198
size_t count
Definition input_internal.h:196
enum vlc_input_event_title::@34 action
struct vlc_input_event_title::@35::@37 list
@ VLC_INPUT_TITLE_NEW_LIST
Definition input_internal.h:188
@ VLC_INPUT_TITLE_SELECTED
Definition input_internal.h:189
input_title_t *const * array
Definition input_internal.h:195
Definition input_internal.h:258
enum vlc_input_event_vout::@42 action
vlc_es_id_t * id
Definition input_internal.h:265
enum vlc_vout_order order
Definition input_internal.h:264
@ VLC_INPUT_EVENT_VOUT_STOPPED
Definition input_internal.h:261
@ VLC_INPUT_EVENT_VOUT_STARTED
Definition input_internal.h:260
vout_thread_t * vout
Definition input_internal.h:263
Definition input_internal.h:275
struct vlc_input_event_state state
Definition input_internal.h:280
unsigned vbi_page
Definition input_internal.h:310
float cache
Definition input_internal.h:304
struct vlc_input_event_program program
Definition input_internal.h:294
int nav_type
Definition input_internal.h:320
struct vlc_input_event_signal signal
Definition input_internal.h:302
const struct input_stats_t * stats
Definition input_internal.h:300
struct vlc_input_event_chapter chapter
Definition input_internal.h:292
struct vlc_input_event_output_clock output_clock
Definition input_internal.h:288
struct vlc_input_event_title title
Definition input_internal.h:290
bool record
Definition input_internal.h:298
float rate
Definition input_internal.h:282
struct vlc_input_event_vout vout
Definition input_internal.h:306
struct vlc_input_event_es es
Definition input_internal.h:296
float subs_fps
Definition input_internal.h:314
struct vlc_input_event_times times
Definition input_internal.h:286
input_item_node_t * subitems
Definition input_internal.h:308
int capabilities
cf.
Definition input_internal.h:284
input_event_type_e type
Definition input_internal.h:276
picture_t * thumbnail
Definition input_internal.h:316
bool vbi_transparent
Definition input_internal.h:312
struct vlc_input_event_attachments attachments
Definition input_internal.h:318
Definition input_internal.h:325
void(* on_event)(input_thread_t *input, const struct vlc_input_event *event, void *userdata)
Definition input_internal.h:326
Definition input_internal.h:331
enum input_type type
Definition input_internal.h:332
bool subitems
Definition input_internal.h:339
bool interact
Definition input_internal.h:341
vlc_renderer_item_t * renderer
Definition input_internal.h:334
struct vlc_input_thread_cfg::@45 preparsing
void * cbs_data
Definition input_internal.h:336
const struct vlc_input_thread_callbacks * cbs
Definition input_internal.h:335
input_resource_t * resource
Definition input_internal.h:333
Definition interrupt.h:33
Definition meta.c: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:389
char * dir_path
Definition input_internal.h:430
double f_val
Definition input_internal.h:403
unsigned page
Definition input_internal.h:422
char * str_ids
Definition input_internal.h:413
vlc_es_id_t * id
Definition input_internal.h:392
vlc_es_id_t ** ids
Definition input_internal.h:395
bool b_fast_seek
Definition input_internal.h:398
vlc_tick_t i_val
Definition input_internal.h:399
bool enabled
Definition input_internal.h:426
enum es_format_category_e cat
Definition input_internal.h:394
vlc_tick_t delay
Definition input_internal.h:408
vlc_viewpoint_t viewpoint
Definition input_internal.h:391
vlc_value_t val
Definition input_internal.h:390
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