25 #ifndef VLC_INPUT_ITEM_H
26 #define VLC_INPUT_ITEM_H 1
93 enum input_item_type_e
118 VLC_API
void input_item_SetName(
input_item_t *p_item,
const char *psz_name );
175 VLC_INPUT_OPTION_TRUSTED = 0x2,
179 VLC_INPUT_OPTION_UNIQUE = 0x100,
188 VLC_API
bool input_item_HasErrorWhenReading(
input_item_t * );
189 VLC_API
void input_item_SetMeta(
input_item_t *, vlc_meta_type_t meta_type,
const char *psz_val );
190 VLC_API
bool input_item_MetaMatch(
input_item_t *p_i, vlc_meta_type_t meta_type,
const char *psz );
191 VLC_API
char * input_item_GetMeta(
input_item_t *p_i, vlc_meta_type_t meta_type ) VLC_USED;
192 VLC_API
char * input_item_GetName(
input_item_t * p_i ) VLC_USED;
193 VLC_API
char * input_item_GetTitleFbName(
input_item_t * p_i ) VLC_USED;
194 VLC_API
char * input_item_GetURI(
input_item_t * p_i ) VLC_USED;
195 VLC_API
void input_item_SetURI(
input_item_t * p_i,
const char *psz_uri );
198 VLC_API
bool input_item_IsPreparsed(
input_item_t *p_i );
199 VLC_API
bool input_item_IsArtFetched(
input_item_t *p_i );
201 #define INPUT_META( name ) \
203 void input_item_Set ## name (input_item_t *p_input, const char *val) \
205 input_item_SetMeta (p_input, vlc_meta_ ## name, val); \
208 char *input_item_Get ## name (input_item_t *p_input) \
210 return input_item_GetMeta (p_input, vlc_meta_ ## name); \
216 INPUT_META(Copyright)
218 INPUT_META(TrackNumber)
219 INPUT_META(Description)
225 INPUT_META(NowPlaying)
226 INPUT_META(Publisher)
227 INPUT_META(EncodedBy)
228 INPUT_META(ArtworkURL)
230 INPUT_META(TrackTotal)
232 #define input_item_SetTrackNum input_item_SetTrackNumber
233 #define input_item_GetTrackNum input_item_GetTrackNumber
234 #define input_item_SetArtURL input_item_SetArtworkURL
235 #define input_item_GetArtURL input_item_GetArtworkURL
237 VLC_API
char * input_item_GetInfo(
input_item_t *p_i,
const char *psz_cat,
const char *psz_name ) VLC_USED;
238 VLC_API
int input_item_AddInfo(
input_item_t *p_i,
const char *psz_cat,
const char *psz_name,
const char *psz_format, ... ) VLC_FORMAT( 4, 5 );
239 VLC_API
int input_item_DelInfo(
input_item_t *p_i, const
char *psz_cat, const
char *psz_name );
241 VLC_API
void input_item_MergeInfos( input_item_t *, info_category_t * );
249 VLC_API input_item_t *
input_item_NewWithType( const
char *psz_uri, const
char *psz_name,
int i_options, const
char *const *ppsz_options,
unsigned i_option_flags,
mtime_t i_duration,
int i_type ) VLC_USED;
256 VLC_API input_item_t *
input_item_NewExt( const
char *psz_uri, const
char *psz_name,
int i_options, const
char *const *ppsz_options,
unsigned i_option_flags,
mtime_t i_duration ) VLC_USED;
263 #define input_item_New( a,b ) input_item_NewExt( a, b, 0, NULL, 0, -1 )
277 #define vlc_gc_incref(i) input_item_Hold(i)
278 #define vlc_gc_decref(i) input_item_Release(i)
288 int64_t i_read_packets;
289 int64_t i_read_bytes;
290 float f_input_bitrate;
291 float f_average_input_bitrate;
294 int64_t i_demux_read_packets;
295 int64_t i_demux_read_bytes;
296 float f_demux_bitrate;
297 float f_average_demux_bitrate;
298 int64_t i_demux_corrupted;
299 int64_t i_demux_discontinuity;
302 int64_t i_decoded_audio;
303 int64_t i_decoded_video;
306 int64_t i_displayed_pictures;
307 int64_t i_lost_pictures;
310 int64_t i_sent_packets;
311 int64_t i_sent_bytes;
312 float f_send_bitrate;
315 int64_t i_played_abuffers;
316 int64_t i_lost_abuffers;
char * psz_name
Definition: vlc_input_item.h:44
Definition: vlc_events.h:103
char * psz_value
Definition: vlc_input_item.h:45
char * psz_name
Definition: vlc_input_item.h:50
Definition: vlc_input_item.h:48
struct info_t ** pp_infos
Definition: vlc_input_item.h:52
Definition: vlc_input_item.h:42
int64_t mtime_t
Definition: vlc_common.h:153
int i_infos
Definition: vlc_input_item.h:51