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 /* If the event is not handled, or if the listener is returning false,
86 * the input will be stopped normally at EOF */
88
89 /* "rate" has changed */
91
92 /* "capabilities" has changed */
94
95 /* At least one of "position", "time" "length" has changed */
97
98 /* The output PTS changed */
100
101 /* A title has been added or removed or selected.
102 * It implies that the chapter has changed (no chapter event is sent) */
104 /* A chapter has been added or removed or selected. */
106
107 /* A program ("program") has been added or removed or selected,
108 * or "program-scrambled" has changed.*/
110 /* A ES has been added or removed or selected */
112
113 /* "record" has changed */
115
116 /* input_item_t media has changed */
118 /* input_item_t info has changed */
120 /* input_item_t epg has changed */
122
123 /* Input statistics have been updated */
125 /* At least one of "signal-quality" or "signal-strength" has changed */
127
128 /* "bookmark" has changed */
130
131 /* cache" has changed */
133
134 /* A vout_thread_t object has been created/deleted by *the input* */
136
137 /* The output state changed (paused or resumed) */
139
140 /* (pre-)parsing events */
142
143 /* vbi_page has changed */
145 /* vbi_transparent has changed */
147
148 /* subs_fps has changed */
150
151 /* Thumbnail generation */
153
154 /* Attachments */
156
157 /* The demux is not able to navigate */
159
160 /* Mouse event */
162
163 /* frame-next status */
165 /* frame-previous status */
168
169#define VLC_INPUT_CAPABILITIES_SEEKABLE (1<<0)
170#define VLC_INPUT_CAPABILITIES_PAUSEABLE (1<<1)
171#define VLC_INPUT_CAPABILITIES_CHANGE_RATE (1<<2)
172#define VLC_INPUT_CAPABILITIES_REWINDABLE (1<<3)
173
175{
177 /* Only valid for PAUSE_S and PLAYING_S states */
179};
180
189
200
202{
203 enum {
207 union
208 {
209 struct
210 {
212 size_t count;
215 };
216};
217
223
238
240 enum {
247 /**
248 * ES track id: only valid from the event callback, unless the id is held
249 * by the user with vlc_es_Hold(). */
251 /**
252 * Title of ES track, can be updated after the VLC_INPUT_ES_UPDATED event.
253 */
254 const char *title;
255 /**
256 * ES track information, can be updated after the VLC_INPUT_ES_UPDATED event.
257 */
259 /**
260 * Only valid with VLC_INPUT_ES_SELECTED, true if the track was selected by
261 * the user.
262 */
263 bool forced;
264
266};
267
272
283
293
299
305
307{
309
310 union {
311 /* INPUT_EVENT_STATE */
313 /* INPUT_EVENT_RATE */
314 float rate;
315 /* INPUT_EVENT_CAPABILITIES */
316 int capabilities; /**< cf. VLC_INPUT_CAPABILITIES_* bitwise flags */
317 /* INPUT_EVENT_TIMES */
319 /* INPUT_EVENT_OUTPUT_CLOCK */
321 /* INPUT_EVENT_TITLE */
323 /* INPUT_EVENT_CHAPTER */
325 /* INPUT_EVENT_PROGRAM */
327 /* INPUT_EVENT_ES */
329 /* INPUT_EVENT_RECORD */
330 bool record;
331 /* INPUT_EVENT_STATISTICS */
332 const struct input_stats_t *stats;
333 /* INPUT_EVENT_SIGNAL */
335 /* INPUT_EVENT_CACHE */
336 float cache;
337 /* INPUT_EVENT_VOUT */
339 /* INPUT_EVENT_OUTPUT_STATE */
341 /* INPUT_EVENT_SUBITEMS */
343 /* INPUT_EVENT_VBI_PAGE */
344 unsigned vbi_page;
345 /* INPUT_EVENT_VBI_TRANSPARENCY */
347 /* INPUT_EVENT_SUBS_FPS */
348 float subs_fps;
349 /* INPUT_EVENT_THUMBNAIL_READY */
351 /* INPUT_EVENT_ATTACHMENTS */
353 /* INPUT_EVENT_NAV_FAILED */
355 /* INPUT_EVENT_FRAME_NEXT_STATUS */
357 /* INPUT_EVENT_FRAME_PREVIOUS_STATUS */
359 };
360};
361
363{
364 bool (*on_event)(input_thread_t *input, const struct vlc_input_event *event,
365 void *userdata);
366};
367
387/**
388 * Create a new input_thread_t.
389 *
390 * You need to call input_Start on it when you are done
391 * adding callback on the variables/events you want to monitor.
392 *
393 * \param p_parent a vlc_object
394 * \param p_item an input item
395 * \param cfg pointer to a configuration struct, mandatory
396 * \return a pointer to the spawned input thread
397 */
399 const struct vlc_input_thread_cfg *cfg ) VLC_USED;
400#define input_Create(a,b,c) input_Create(VLC_OBJECT(a),b,c)
401
403
404void input_Stop( input_thread_t * );
405
407
408void input_SetTime( input_thread_t *, vlc_tick_t i_time, bool b_fast );
409
410void input_SetPosition( input_thread_t *, double f_position, bool b_fast );
411
412/**
413 * Set the delay of an ES identifier
414 */
416 vlc_tick_t delay);
417
418/**
419 * Get the input item for an input thread
420 *
421 * You have to keep a reference to the input or to the input_item_t until
422 * you do not need it anymore.
423 */
425
426/*****************************************************************************
427 * Private input fields
428 *****************************************************************************/
429
430#define INPUT_CONTROL_FIFO_SIZE 100
431
432typedef union
433{
437 struct {
441 struct {
444 } time;
445 struct {
446 bool b_fast_seek;
447 double f_val;
448 } pos;
449 struct
450 {
451 enum es_format_category_e cat;
453 } cat_delay;
454 struct
455 {
456 enum es_format_category_e cat;
457 char *str_ids;
458 } cat_ids;
459 struct
460 {
461 vlc_es_id_t *id;
462 vlc_tick_t delay;
463 } es_delay;
464 struct {
465 vlc_es_id_t *id;
466 unsigned page;
467 } vbi_page;
468 struct {
469 vlc_es_id_t *id;
471 } vbi_transparency;
472 struct {
473 bool enabled;
474 char *dir_path;
475 } record_state;
476 struct
477 {
479 unsigned frame_rate;
481 int steps;
482 bool failed;
483 } frame_previous_seek;
485
491
492/** Private input fields */
494{
496
498 void *cbs_data;
499
501 bool hw_dec;
503
504 /* Current state */
509 float rate;
510
511 /* Playtime configuration and state */
512 vlc_tick_t i_start; /* :start-time,0 by default */
513 vlc_tick_t i_stop; /* :stop-time, 0 if none */
514
515 /* Delays */
518
519 /* Output */
520 bool b_out_pace_control; /* XXX Move it ot es_sout ? */
521 sout_stream_t *p_sout; /* Idem ? */
527
528
531
532 /* Input attachment */
535
536 /* Main input properties */
537
538 /* Input item */
540
541 /* Main source */
543 /* Slave sources (subs, and others) */
544 size_t i_slave;
547
548 /* Resources */
550
551 /* Stats counters */
553
554 /* Buffer of pending actions */
557 size_t i_control;
559
562
563 struct {
566 bool end;
569
571{
572 return container_of(input, input_thread_private_t, input);
573}
574
575/***************************************************************************
576 * Internal control helpers
577 ***************************************************************************/
579{
581
583
585
587
589
593
597
599
601
602 INPUT_CONTROL_NAV_ACTIVATE, // NOTE: INPUT_CONTROL_NAV_* values must be
603 INPUT_CONTROL_NAV_UP, // contiguous and in the same order as
604 INPUT_CONTROL_NAV_DOWN, // INPUT_NAV_* and DEMUX_NAV_*.
609
611 INPUT_CONTROL_SET_ES_LIST, // select a list of ES atomically
615
616 INPUT_CONTROL_SET_VIEWPOINT, // new absolute viewpoint
617 INPUT_CONTROL_SET_INITIAL_VIEWPOINT, // set initial viewpoint (generally from video)
618 INPUT_CONTROL_UPDATE_VIEWPOINT, // update viewpoint relative to current
619
622
625
627
631
633
636};
637
638/* Internal helpers */
639
641
642/* XXX for string value you have to allocate it before calling
643 * input_ControlPushHelper
644 */
645static inline int input_ControlPushHelper( input_thread_t *p_input, int i_type, vlc_value_t *val )
646{
647 if( val != NULL )
648 {
649 input_control_param_t param = { .val = *val };
650 return input_ControlPush( p_input, i_type, &param );
651 }
652 else
653 {
654 return input_ControlPush( p_input, i_type, NULL );
655 }
656}
657
658static inline int input_ControlPushEsHelper( input_thread_t *p_input, int i_type,
659 vlc_es_id_t *id )
660{
663 return input_ControlPush( p_input, i_type, &(input_control_param_t) {
664 .id = vlc_es_id_Hold( id ),
665 } );
666}
667
668/**
669 * Set the program id
670 *
671 * cf. ES_OUT_SET_GROUP
672 * This function can be called before start or while started.
673 * This function is not thread-safe, the caller should handle the locking.
674 */
675void input_SetProgramId(input_thread_t *input, int group_id);
676
677/**
678 * Set the default delay applied to the given category.
679 *
680 * Set the default delay for the given \p es_format_category_e synchronously
681 * if the input is not running yet, otherwise push a control to signal to the
682 * input which delay should be updated.
683 *
684 * @param input Any input to change the delay for.
685 * @param cat The ES category to apply the delay to.
686 * @param delay The delay to apply to the category, a positive delay shifting
687 * the track to the future.
688 * @return VLC_SUCCESS when the delay has been applied, or signal an error
689 * otherwise.
690 *
691 * @note This function can be called before start or while running.
692 * @note This function is not thread-safe, the caller should handle the locking.
693 */
695 vlc_tick_t delay);
696
697/**
698 * Set the list of string ids to enable for a category
699 *
700 * cf. ES_OUT_SET_ES_CAT_IDS
701 * This function can be called before start or while started.
702 * This function is not thread-safe, the caller should handle the locking.
703 */
705 const char *str_ids);
706
708
709int input_GetAttachments(input_thread_t *input, input_attachment_t ***attachments);
710
712
714
715/**
716 * Calculates the duration of the item in an input thread.
717 *
718 * This function determines the duration of a track item based on the start and
719 * stop times stored in the input thread's private data. If the stop time is not
720 * set (i.e., equals zero), the function considers the given `duration` as the
721 * stop time and calculates the effective duration based on the start time.
722 * Otherwise, it calculates the duration using the set start and stop times.
723 *
724 * @param input Pointer to the input_thread_t object.
725 * @param duration The initial duration value, used if the stop time is not set.
726 *
727 * @return The calculated duration based on the start and stop times.
728 */
730
731/* Bound pts_delay */
732#define INPUT_PTS_DELAY_MAX VLC_TICK_FROM_SEC(60)
733
734/**********************************************************************
735 * Item metadata
736 **********************************************************************/
737/* input_ExtractAttachmentAndCacheArt:
738 * Be careful: p_item lock will be taken! */
740
741/***************************************************************************
742 * Internal prototypes
743 ***************************************************************************/
744
745/* var.c */
746
748 bool playback, bool do_inherit);
749
750/* Subtitles */
751int subtitles_Detect( input_thread_t *, char *, const char *, input_item_slave_t ***, int * );
752int subtitles_Filter( const char *);
753
754/* stats.c */
755typedef struct input_rate_t
756{
758 uintmax_t updates;
759 uintmax_t value;
760 struct
761 {
762 uintmax_t value;
766
770 atomic_uintmax_t demux_corrupted;
771 atomic_uintmax_t demux_discontinuity;
772 atomic_uintmax_t decoded_audio;
773 atomic_uintmax_t decoded_video;
774 atomic_uintmax_t played_abuffers;
775 atomic_uintmax_t lost_abuffers;
776 atomic_uintmax_t displayed_pictures;
777 atomic_uintmax_t late_pictures;
778 atomic_uintmax_t lost_pictures;
779};
780
781struct input_stats *input_stats_Create(void);
782void input_stats_Destroy(struct input_stats *);
783void input_rate_Add(input_rate_t *, uintmax_t);
785
786#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:4867
#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:3654
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_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:448
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:1849
input_event_type_e
Input events.
Definition input_internal.h:80
@ INPUT_EVENT_MOUSE_LEFT
Definition input_internal.h:161
@ INPUT_EVENT_THUMBNAIL_READY
Definition input_internal.h:152
@ INPUT_EVENT_SUBITEMS
Definition input_internal.h:141
@ INPUT_EVENT_CHAPTER
Definition input_internal.h:105
@ INPUT_EVENT_ITEM_EPG
Definition input_internal.h:121
@ INPUT_EVENT_OUTPUT_STATE
Definition input_internal.h:138
@ INPUT_EVENT_OUTPUT_CLOCK
Definition input_internal.h:99
@ INPUT_EVENT_SIGNAL
Definition input_internal.h:126
@ INPUT_EVENT_ITEM_META
Definition input_internal.h:117
@ INPUT_EVENT_RATE
Definition input_internal.h:90
@ INPUT_EVENT_TITLE
Definition input_internal.h:103
@ INPUT_EVENT_DEAD
Definition input_internal.h:84
@ INPUT_EVENT_ES
Definition input_internal.h:111
@ INPUT_EVENT_RECORD
Definition input_internal.h:114
@ INPUT_EVENT_ATTACHMENTS
Definition input_internal.h:155
@ INPUT_EVENT_CAPABILITIES
Definition input_internal.h:93
@ INPUT_EVENT_STATISTICS
Definition input_internal.h:124
@ INPUT_EVENT_ITEM_INFO
Definition input_internal.h:119
@ INPUT_EVENT_BOOKMARK
Definition input_internal.h:129
@ INPUT_EVENT_PROGRAM
Definition input_internal.h:109
@ INPUT_EVENT_FRAME_PREVIOUS_STATUS
Definition input_internal.h:166
@ INPUT_EVENT_TIMES
Definition input_internal.h:96
@ INPUT_EVENT_STATE
Definition input_internal.h:82
@ INPUT_EVENT_EOF
Definition input_internal.h:87
@ INPUT_EVENT_VOUT
Definition input_internal.h:135
@ INPUT_EVENT_FRAME_NEXT_STATUS
Definition input_internal.h:164
@ INPUT_EVENT_SUBS_FPS
Definition input_internal.h:149
@ INPUT_EVENT_NAV_FAILED
Definition input_internal.h:158
@ INPUT_EVENT_VBI_PAGE
Definition input_internal.h:144
@ INPUT_EVENT_CACHE
Definition input_internal.h:132
@ INPUT_EVENT_VBI_TRANSPARENCY
Definition input_internal.h:146
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:658
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:3635
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:3607
void input_SetProgramId(input_thread_t *input, int group_id)
Set the program id.
Definition input.c:1832
void vlc_object_InitInputConfig(vlc_object_t *obj, bool playback, bool do_inherit)
Definition var.c:39
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:645
input_control_e
Definition input_internal.h:579
@ INPUT_CONTROL_SET_ES_DELAY
Definition input_internal.h:621
@ INPUT_CONTROL_SET_FRAME_PREVIOUS
Definition input_internal.h:629
@ INPUT_CONTROL_SET_TITLE_NEXT
Definition input_internal.h:591
@ INPUT_CONTROL_RESTART_ES
Definition input_internal.h:613
@ INPUT_CONTROL_SET_TITLE
Definition input_internal.h:590
@ INPUT_CONTROL_SEEK_FRAME_PREVIOUS
Definition input_internal.h:630
@ INPUT_CONTROL_NAV_MENU
Definition input_internal.h:608
@ INPUT_CONTROL_SET_STATE
Definition input_internal.h:580
@ INPUT_CONTROL_NAV_LEFT
Definition input_internal.h:605
@ INPUT_CONTROL_SET_VBI_PAGE
Definition input_internal.h:634
@ INPUT_CONTROL_SET_FRAME_NEXT
Definition input_internal.h:628
@ INPUT_CONTROL_SET_RATE
Definition input_internal.h:582
@ INPUT_CONTROL_SET_ES_LIST
Definition input_internal.h:611
@ INPUT_CONTROL_SET_VBI_TRANSPARENCY
Definition input_internal.h:635
@ INPUT_CONTROL_NAV_DOWN
Definition input_internal.h:604
@ INPUT_CONTROL_SET_BOOKMARK
Definition input_internal.h:598
@ INPUT_CONTROL_SET_TIME
Definition input_internal.h:586
@ INPUT_CONTROL_NAV_ACTIVATE
Definition input_internal.h:602
@ INPUT_CONTROL_SET_RECORD_STATE
Definition input_internal.h:626
@ INPUT_CONTROL_UNSET_ES
Definition input_internal.h:612
@ INPUT_CONTROL_SET_INITIAL_VIEWPOINT
Definition input_internal.h:617
@ INPUT_CONTROL_SET_ES_CAT_IDS
Definition input_internal.h:614
@ INPUT_CONTROL_UPDATE_VIEWPOINT
Definition input_internal.h:618
@ INPUT_CONTROL_SET_SEEKPOINT_NEXT
Definition input_internal.h:595
@ INPUT_CONTROL_NAV_UP
Definition input_internal.h:603
@ INPUT_CONTROL_SET_ES
Definition input_internal.h:610
@ INPUT_CONTROL_SET_VIEWPOINT
Definition input_internal.h:616
@ INPUT_CONTROL_ADD_SLAVE
Definition input_internal.h:623
@ INPUT_CONTROL_NAV_RIGHT
Definition input_internal.h:606
@ INPUT_CONTROL_SET_PROGRAM
Definition input_internal.h:588
@ INPUT_CONTROL_SET_CATEGORY_DELAY
Definition input_internal.h:620
@ INPUT_CONTROL_SET_SUBS_FPS
Definition input_internal.h:624
@ INPUT_CONTROL_NAV_POPUP
Definition input_internal.h:607
@ INPUT_CONTROL_SET_RENDERER
Definition input_internal.h:632
@ INPUT_CONTROL_SET_POSITION
Definition input_internal.h:584
@ INPUT_CONTROL_SET_SEEKPOINT
Definition input_internal.h:594
@ INPUT_CONTROL_SET_SEEKPOINT_PREV
Definition input_internal.h:596
@ INPUT_CONTROL_RESET_POSITION
Definition input_internal.h:600
@ INPUT_CONTROL_SET_TITLE_PREV
Definition input_internal.h:592
int input_ControlPush(input_thread_t *, int, const input_control_param_t *)
Definition input.c:1520
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:3660
struct input_stats * input_stats_Create(void)
Definition stats.c:54
#define INPUT_CONTROL_FIFO_SIZE
Definition input_internal.h:430
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:1839
static input_thread_private_t * input_priv(input_thread_t *input)
Definition input_internal.h:570
#define input_Create(a, b, c)
Definition input_internal.h:400
Definition vlc_es.h:614
Definition vlc_input.h:168
Definition input_internal.h:487
int i_type
Definition input_internal.h:488
input_control_param_t param
Definition input_internal.h:489
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:756
vlc_mutex_t lock
Definition input_internal.h:757
uintmax_t value
Definition input_internal.h:759
uintmax_t updates
Definition input_internal.h:758
struct input_rate_t::@61 samples[2]
vlc_tick_t date
Definition input_internal.h:763
Definition resource.c:58
Definition source.h:35
Definition vlc_input_item.h:529
Definition input_internal.h:767
atomic_uintmax_t lost_abuffers
Definition input_internal.h:775
atomic_uintmax_t demux_corrupted
Definition input_internal.h:770
atomic_uintmax_t lost_pictures
Definition input_internal.h:778
atomic_uintmax_t late_pictures
Definition input_internal.h:777
atomic_uintmax_t played_abuffers
Definition input_internal.h:774
atomic_uintmax_t displayed_pictures
Definition input_internal.h:776
atomic_uintmax_t decoded_video
Definition input_internal.h:773
input_rate_t input_bitrate
Definition input_internal.h:768
atomic_uintmax_t demux_discontinuity
Definition input_internal.h:771
input_rate_t demux_bitrate
Definition input_internal.h:769
atomic_uintmax_t decoded_audio
Definition input_internal.h:772
Private input fields.
Definition input_internal.h:494
int i_seekpoint_offset
Definition input_internal.h:530
sout_stream_t * p_sout
Definition input_internal.h:521
bool viewpoint_changed
Definition input_internal.h:525
struct vlc_input_es_out * p_es_out_display
Definition input_internal.h:523
int i_state
Definition input_internal.h:505
input_source_t ** slave
Definition input_internal.h:545
const struct vlc_input_thread_callbacks * cbs
Definition input_internal.h:497
vlc_tick_t last_pts
Definition input_internal.h:564
struct input_stats * stats
Definition input_internal.h:552
size_t i_control
Definition input_internal.h:557
float rate
Definition input_internal.h:509
bool enabled
Definition input_internal.h:565
bool preparse_subitems
Definition input_internal.h:502
input_attachment_t ** attachment
Definition input_internal.h:534
int i_attachment
Definition input_internal.h:533
bool b_out_pace_control
Definition input_internal.h:520
enum input_type type
Definition input_internal.h:500
vlc_tick_t i_start
Definition input_internal.h:512
vlc_renderer_item_t * p_renderer
Definition input_internal.h:526
vlc_tick_t i_stop
Definition input_internal.h:513
input_control_t control[100]
Definition input_internal.h:558
bool end
Definition input_internal.h:566
vlc_interrupt_t interrupt
Definition input_internal.h:561
float slave_subs_rate
Definition input_internal.h:546
input_item_t * p_item
Definition input_internal.h:539
void * cbs_data
Definition input_internal.h:498
size_t i_slave
Definition input_internal.h:544
bool is_running
Definition input_internal.h:506
bool hw_dec
Definition input_internal.h:501
bool b_low_delay
Definition input_internal.h:516
bool b_recording
Definition input_internal.h:508
int i_title_offset
Definition input_internal.h:529
vlc_cond_t wait_control
Definition input_internal.h:556
vlc_mutex_t lock_control
Definition input_internal.h:555
vlc_tick_t i_jitter_max
Definition input_internal.h:517
struct input_thread_private_t::@60 prev_frame
vlc_viewpoint_t viewpoint
Definition input_internal.h:524
input_resource_t * p_resource
Definition input_internal.h:549
struct vlc_input_es_out * p_es_out
Definition input_internal.h:522
input_source_t * master
Definition input_internal.h:542
bool is_stopped
Definition input_internal.h:507
struct input_thread_t input
Definition input_internal.h:495
vlc_thread_t thread
Definition input_internal.h:560
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:102
Video picture.
Definition vlc_picture.h:128
Definition vlc_sout.h:274
Condition variable.
Definition vlc_threads.h:270
Opaque structure representing an ES (Elementary Stream) track.
Definition es_out.c:103
Definition es_out.h:122
Definition input_internal.h:295
size_t count
Definition input_internal.h:297
input_attachment_t *const * array
Definition input_internal.h:296
Definition input_internal.h:219
int seekpoint
Definition input_internal.h:221
int title
Definition input_internal.h:220
Definition input_internal.h:239
enum vlc_vout_order vout_order
Definition input_internal.h:265
@ VLC_INPUT_ES_SELECTED
Definition input_internal.h:244
@ VLC_INPUT_ES_UPDATED
Definition input_internal.h:243
@ VLC_INPUT_ES_DELETED
Definition input_internal.h:242
@ VLC_INPUT_ES_ADDED
Definition input_internal.h:241
@ VLC_INPUT_ES_UNSELECTED
Definition input_internal.h:245
bool forced
Only valid with VLC_INPUT_ES_SELECTED, true if the track was selected by the user.
Definition input_internal.h:263
const char * title
Title of ES track, can be updated after the VLC_INPUT_ES_UPDATED event.
Definition input_internal.h:254
enum vlc_input_event_es::@43 action
const es_format_t * fmt
ES track information, can be updated after the VLC_INPUT_ES_UPDATED event.
Definition input_internal.h:258
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:250
Definition input_internal.h:301
vlc_mouse_t oldmouse
Definition input_internal.h:302
vlc_mouse_t newmouse
Definition input_internal.h:303
Definition input_internal.h:191
vlc_es_id_t * id
Definition input_internal.h:192
vlc_tick_t system_ts
Definition input_internal.h:194
unsigned frame_rate
Definition input_internal.h:197
double rate
Definition input_internal.h:196
vlc_tick_t ts
Definition input_internal.h:195
unsigned frame_rate_base
Definition input_internal.h:198
bool master
Definition input_internal.h:193
Definition input_internal.h:285
vlc_es_id_t * id
Definition input_internal.h:291
enum vlc_input_event_output_state::@45 action
vlc_tick_t paused_date
Definition input_internal.h:290
@ VLC_INPUT_EVENT_OUTPUT_STATE_RESUMED
Definition input_internal.h:287
@ VLC_INPUT_EVENT_OUTPUT_STATE_PAUSED
Definition input_internal.h:288
Definition input_internal.h:224
enum vlc_input_event_program::@40 action
bool scrambled
Definition input_internal.h:235
const char * title
Definition input_internal.h:234
int id
Definition input_internal.h:232
@ VLC_INPUT_PROGRAM_UPDATED
Definition input_internal.h:228
@ VLC_INPUT_PROGRAM_SCRAMBLED
Definition input_internal.h:230
@ VLC_INPUT_PROGRAM_SELECTED
Definition input_internal.h:229
@ VLC_INPUT_PROGRAM_DELETED
Definition input_internal.h:227
@ VLC_INPUT_PROGRAM_ADDED
Definition input_internal.h:226
Definition input_internal.h:268
float quality
Definition input_internal.h:269
float strength
Definition input_internal.h:270
Definition input_internal.h:175
vlc_tick_t date
Definition input_internal.h:178
input_state_e value
Definition input_internal.h:176
Definition input_internal.h:182
vlc_tick_t time
Definition input_internal.h:184
double position
Definition input_internal.h:183
vlc_tick_t normal_time
Definition input_internal.h:185
bool live
Definition input_internal.h:187
vlc_tick_t length
Definition input_internal.h:186
Definition input_internal.h:202
size_t selected_idx
Definition input_internal.h:214
@ VLC_INPUT_TITLE_NEW_LIST
Definition input_internal.h:204
@ VLC_INPUT_TITLE_SELECTED
Definition input_internal.h:205
enum vlc_input_event_title::@36 action
size_t count
Definition input_internal.h:212
struct vlc_input_event_title::@37::@39 list
input_title_t *const * array
Definition input_internal.h:211
Definition input_internal.h:274
vlc_es_id_t * id
Definition input_internal.h:281
enum vlc_vout_order order
Definition input_internal.h:280
@ VLC_INPUT_EVENT_VOUT_STOPPED
Definition input_internal.h:277
@ VLC_INPUT_EVENT_VOUT_STARTED
Definition input_internal.h:276
enum vlc_input_event_vout::@44 action
vout_thread_t * vout
Definition input_internal.h:279
Definition input_internal.h:307
int frame_previous_status
Definition input_internal.h:358
struct vlc_input_event_state state
Definition input_internal.h:312
unsigned vbi_page
Definition input_internal.h:344
float cache
Definition input_internal.h:336
struct vlc_input_event_program program
Definition input_internal.h:326
int nav_type
Definition input_internal.h:354
int frame_next_status
Definition input_internal.h:356
struct vlc_input_event_signal signal
Definition input_internal.h:334
const struct input_stats_t * stats
Definition input_internal.h:332
struct vlc_input_event_chapter chapter
Definition input_internal.h:324
struct vlc_input_event_output_clock output_clock
Definition input_internal.h:320
struct vlc_input_event_title title
Definition input_internal.h:322
bool record
Definition input_internal.h:330
float rate
Definition input_internal.h:314
struct vlc_input_event_vout vout
Definition input_internal.h:338
struct vlc_input_event_es es
Definition input_internal.h:328
float subs_fps
Definition input_internal.h:348
struct vlc_input_event_times times
Definition input_internal.h:318
struct vlc_input_event_output_state output_state
Definition input_internal.h:340
input_item_node_t * subitems
Definition input_internal.h:342
int capabilities
cf.
Definition input_internal.h:316
input_event_type_e type
Definition input_internal.h:308
picture_t * thumbnail
Definition input_internal.h:350
bool vbi_transparent
Definition input_internal.h:346
struct vlc_input_event_attachments attachments
Definition input_internal.h:352
Definition input_internal.h:363
bool(* on_event)(input_thread_t *input, const struct vlc_input_event *event, void *userdata)
Definition input_internal.h:364
Definition input_internal.h:369
enum input_type type
Definition input_internal.h:370
bool subitems
Definition input_internal.h:383
struct vlc_input_thread_cfg::@49 preparsing
bool interact
Definition input_internal.h:385
enum vlc_input_thread_cfg::@48 hw_dec
vlc_renderer_item_t * renderer
Definition input_internal.h:378
void * cbs_data
Definition input_internal.h:380
@ INPUT_CFG_HW_DEC_DEFAULT
Definition input_internal.h:373
@ INPUT_CFG_HW_DEC_ENABLED
Definition input_internal.h:375
@ INPUT_CFG_HW_DEC_DISABLED
Definition input_internal.h:374
const struct vlc_input_thread_callbacks * cbs
Definition input_internal.h:379
input_resource_t * resource
Definition input_internal.h:377
Definition interrupt.h:33
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:433
vlc_tick_t pts
Definition input_internal.h:478
int steps
Definition input_internal.h:481
char * dir_path
Definition input_internal.h:474
double f_val
Definition input_internal.h:447
unsigned page
Definition input_internal.h:466
unsigned frame_rate
Definition input_internal.h:479
char * str_ids
Definition input_internal.h:457
vlc_es_id_t * id
Definition input_internal.h:436
vlc_es_id_t ** ids
Definition input_internal.h:439
bool b_fast_seek
Definition input_internal.h:442
vlc_tick_t i_val
Definition input_internal.h:443
bool enabled
Definition input_internal.h:470
enum es_format_category_e cat
Definition input_internal.h:438
vlc_tick_t delay
Definition input_internal.h:452
unsigned frame_rate_base
Definition input_internal.h:480
vlc_viewpoint_t viewpoint
Definition input_internal.h:435
bool failed
Definition input_internal.h:482
vlc_value_t val
Definition input_internal.h:434
VLC value structure.
Definition vlc_variables.h:122
#define container_of(ptr, type, member)
Definition vlc_common.h:1069
Demultiplexer modules interface.
es_format_category_e
ES Categories.
Definition vlc_es.h:597
Input thread interface.
int64_t vlc_tick_t
High precision date or time interval.
Definition vlc_tick.h:48