X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_input_item.h;h=4d6a83cd3f79ab921853db712cb0b9bed4af3a19;hb=7ba508f8ef84047d1c1ed06ac0f3596e0ea1019d;hp=fa97b061cedac33b91f95ecf78936b9a31ec73ea;hpb=2170fa51de3922a26ab3341ca423ec46c199473c;p=vlc diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h index fa97b061ce..4d6a83cd3f 100644 --- a/include/vlc_input_item.h +++ b/include/vlc_input_item.h @@ -118,7 +118,12 @@ VLC_EXPORT( void, input_item_AddSubItem, ( input_item_t *p_parent, input_item_t */ enum input_item_option_e { + /* Allow VLC to trust the given option. + * By default options are untrusted */ VLC_INPUT_OPTION_TRUSTED = 0x2, + + /* Change the value associated to an option if already present, otherwise + * add the option */ VLC_INPUT_OPTION_UNIQUE = 0x100, }; @@ -133,6 +138,7 @@ VLC_EXPORT( void, input_item_SetMeta, ( input_item_t *, vlc_meta_type_t meta_typ VLC_EXPORT( bool, input_item_MetaMatch, ( input_item_t *p_i, vlc_meta_type_t meta_type, const char *psz ) ); VLC_EXPORT( char *, input_item_GetMeta, ( input_item_t *p_i, vlc_meta_type_t meta_type ) ); VLC_EXPORT( char *, input_item_GetName, ( input_item_t * p_i ) ); +VLC_EXPORT( char *, input_item_GetTitleFbName, ( input_item_t * p_i ) ); VLC_EXPORT( char *, input_item_GetURI, ( input_item_t * p_i ) ); VLC_EXPORT( void, input_item_SetURI, ( input_item_t * p_i, const char *psz_uri )); VLC_EXPORT(mtime_t, input_item_GetDuration, ( input_item_t * p_i ) ); @@ -205,4 +211,43 @@ VLC_EXPORT( input_item_t *, __input_item_NewExt, (vlc_object_t *, const char *ps */ #define input_item_New( a,b,c ) input_item_NewExt( a, b, c, 0, NULL, 0, -1 ) +/****************** + * Input stats + ******************/ +struct input_stats_t +{ + vlc_mutex_t lock; + + /* Input */ + int i_read_packets; + int i_read_bytes; + float f_input_bitrate; + float f_average_input_bitrate; + + /* Demux */ + int i_demux_read_packets; + int i_demux_read_bytes; + float f_demux_bitrate; + float f_average_demux_bitrate; + int i_demux_corrupted; + int i_demux_discontinuity; + + /* Decoders */ + int i_decoded_audio; + int i_decoded_video; + + /* Vout */ + int i_displayed_pictures; + int i_lost_pictures; + + /* Sout */ + int i_sent_packets; + int i_sent_bytes; + float f_send_bitrate; + + /* Aout */ + int i_played_abuffers; + int i_lost_abuffers; +}; + #endif