Go to the documentation of this file.
43 #define VLC_DEMUXER_EOF 0
44 #define VLC_DEMUXER_EGENERIC -1
45 #define VLC_DEMUXER_SUCCESS 1
48 #define INPUT_UPDATE_TITLE 0x0010
49 #define INPUT_UPDATE_SEEKPOINT 0x0020
50 #define INPUT_UPDATE_META 0x0040
51 #define INPUT_UPDATE_TITLE_LIST 0x0100
54 #define add_file_extension(ext) add_shortcut("ext-" ext)
295 int64_t i_bitrate,
int i_align,
int i_query, va_list args );
305 va_start( args, i_query );
317 int *restrict titlep,
int *restrict seekpointp,
318 unsigned *restrict updatep )
321 unsigned title, seekpoint;
324 && title != (
unsigned)*titlep )
332 && seekpoint != (
unsigned)*seekpointp )
334 *seekpointp = seekpoint;
338 # define demux_UpdateTitleFromStream(demux) \
339 demux_UpdateTitleFromStream(demux, \
340 &((demux_sys_t *)((demux)->p_sys))->current_title, \
341 &((demux_sys_t *)((demux)->p_sys))->current_seekpoint, \
342 &((demux_sys_t *)((demux)->p_sys))->updates)
398 time += current_time;
421 #define DEMUX_INIT_COMMON() do { \
422 p_demux->pf_control = Control; \
423 p_demux->pf_demux = Demux; \
424 p_demux->p_sys = calloc( 1, sizeof( demux_sys_t ) ); \
425 if( !p_demux->p_sys ) return VLC_ENOMEM;\
@ DEMUX_GET_META
Retrieves stream meta-data.
Definition: vlc_demux.h:118
@ DEMUX_SET_PAUSE_STATE
Sets the paused or playing/resumed state.
Definition: vlc_demux.h:142
@ DEMUX_GET_SIGNAL
Retrieves an estimate of signal quality and strength.
Definition: vlc_demux.h:124
#define demux_UpdateTitleFromStream(demux)
Definition: vlc_demux.h:339
@ STREAM_GET_TITLE
arg1=unsigned * res=can fail
Definition: vlc_stream.h:157
#define VLC_API
Definition: fourcc_gen.c:31
@ DEMUX_NAV_UP
Use the up arrow to select a navigation item above.
Definition: vlc_demux.h:263
@ DEMUX_GET_TYPE
Retrieves the demuxed content type Can fail if the control is not implemented.
Definition: vlc_demux.h:130
int strcasecmp(const char *, const char *)
const char * psz_name
Definition: text_style.c:53
@ DEMUX_SET_TIME
Definition: vlc_demux.h:190
static int demux_Control(demux_t *p_demux, int i_query,...)
Definition: vlc_demux.h:301
@ DEMUX_GET_TITLE_INFO
Definition: vlc_demux.h:203
@ DEMUX_CAN_RECORD
Definition: vlc_demux.h:237
static bool demux_IsForced(demux_t *p_demux, const char *psz_name)
Definition: vlc_demux.h:364
VLC_EXPORT decoder_t * demux_PacketizerNew(demux_t *p_demux, es_format_t *p_fmt, const char *psz_msg)
This function will create a packetizer suitable for a demuxer that parses elementary stream.
Definition: demux.c:373
@ DEMUX_SET_TITLE
Seeks to the beginning of a title.
Definition: vlc_demux.h:150
@ DEMUX_SET_GROUP_LIST
Definition: vlc_demux.h:211
@ DEMUX_SET_ES
Definition: vlc_demux.h:212
@ DEMUX_SET_ES_LIST
Definition: vlc_demux.h:213
Definition: vlc_codec.h:101
const char psz_ext[7]
Definition: image.c:586
@ DEMUX_SET_SEEKPOINT
Seeks to the beginning of a chapter of the current title.
Definition: vlc_demux.h:158
VLC_EXPORT int demux_vaControl(demux_t *p_demux, int i_query, va_list args)
Definition: demux.c:229
VLC_EXPORT void vlc_demux_chained_Send(vlc_demux_chained_t *, block_t *block)
Sends data to a chained demuxer.
Definition: demux_chained.c:133
@ DEMUX_SET_RATE
Definition: vlc_demux.h:257
const char * psz_location
Location (URL with the scheme stripped)
Definition: vlc_stream.h:52
@ DEMUX_HAS_UNSUPPORTED_META
Definition: vlc_demux.h:225
@ DEMUX_GET_TIME
Definition: vlc_demux.h:189
@ DEMUX_SET_GROUP_ALL
Definition: vlc_demux.h:210
char * psz_name
Definition: vlc_stream.h:50
Definition: vlc_es_out.h:143
@ DEMUX_CAN_PAUSE
Checks whether (long) pause then stream resumption is supported.
Definition: vlc_demux.h:99
@ DEMUX_SET_NEXT_DEMUX_TIME
Definition: vlc_demux.h:220
VLC_EXPORT void demux_PacketizerDestroy(decoder_t *p_packetizer)
This function will destroy a packetizer create by demux_PacketizerNew.
Definition: demux.c:403
@ DEMUX_GET_LENGTH
Definition: vlc_demux.h:188
int64_t vlc_tick_t
High precision date or time interval.
Definition: vlc_tick.h:45
@ DEMUX_SET_GROUP_DEFAULT
Definition: vlc_demux.h:209
VLC_EXPORT demux_t * demux_New(vlc_object_t *p_obj, const char *psz_name, stream_t *s, es_out_t *out)
Definition: demux.c:72
@ DEMUX_SET_POSITION
Definition: vlc_demux.h:185
@ DEMUX_NAV_LEFT
Use the left arrow to select a navigation item on the left.
Definition: vlc_demux.h:267
#define INPUT_UPDATE_TITLE
Definition: vlc_demux.h:49
@ DEMUX_GET_NORMAL_TIME
Definition: vlc_demux.h:192
static int vlc_stream_Control(stream_t *s, int query,...)
Definition: vlc_stream.h:294
@ DEMUX_GET_SEEKPOINT
Definition: vlc_demux.h:180
@ DEMUX_NAV_POPUP
Activate the popup Menu (for BD).
Definition: vlc_demux.h:271
@ DEMUX_NAV_ACTIVATE
Activate the navigation item selected.
Definition: vlc_demux.h:261
@ DEMUX_CAN_SEEK
Checks whether the stream supports seeking.
Definition: vlc_demux.h:91
stream_t definition
Definition: vlc_stream.h:46
stream_t * s
Input stream.
Definition: vlc_stream.h:65
@ DEMUX_NAV_DOWN
Use the down arrow to select a navigation item under.
Definition: vlc_demux.h:265
@ DEMUX_FILTER_DISABLE
Definition: vlc_demux.h:280
@ DEMUX_NAV_MENU
Activate disc Root Menu.
Definition: vlc_demux.h:273
@ STREAM_GET_SEEKPOINT
arg1=unsigned * res=can fail
Definition: vlc_stream.h:158
VLC object common members.
Definition: vlc_objects.h:43
@ DEMUX_GET_FPS
Definition: vlc_demux.h:222
@ DEMUX_GET_PTS_DELAY
Retrieves the PTS delay (roughly the default buffer duration).
Definition: vlc_demux.h:112
#define VLC_SUCCESS
No error.
Definition: vlc_common.h:472
#define VLC_USED
Definition: fourcc_gen.c:32
const char name[16]
Definition: httpd.c:1268
Definition: demux_chained.c:35
@ DEMUX_CAN_CONTROL_PACE
Whether the stream can be read at an arbitrary pace.
Definition: vlc_demux.h:105
@ DEMUX_FILTER_ENABLE
Enable/Disable a demux filter.
Definition: vlc_demux.h:279
@ DEMUX_GET_TITLE
Read the title number currently playing.
Definition: vlc_demux.h:173
@ DEMUX_GET_POSITION
Definition: vlc_demux.h:184
static bool demux_IsContentType(demux_t *demux, const char *type)
Definition: vlc_demux.h:358
static int demux_SetPosition(demux_t *p_demux, double pos, bool precise, bool absolute)
Definition: vlc_demux.h:371
static int vlc_demux_chained_Control(vlc_demux_chained_t *dc, int query,...)
Definition: vlc_demux.h:492
@ DEMUX_SET_RECORD_STATE
Definition: vlc_demux.h:247
void vlc_stream_Delete(stream_t *s)
Destroy a stream.
Definition: stream.c:133
VLC_EXPORT void vlc_demux_chained_Delete(vlc_demux_chained_t *)
Destroys a chained demuxer.
Definition: demux_chained.c:163
static bool stream_IsMimeType(stream_t *s, const char *type)
Checks for a MIME type.
Definition: vlc_stream.h:391
VLC_EXPORT int demux_Demux(demux_t *p_demux)
Definition: demux.c:202
#define INPUT_UPDATE_SEEKPOINT
Definition: vlc_demux.h:50
char * psz_filepath
Local file path (if applicable)
Definition: vlc_stream.h:53
@ DEMUX_NAV_RIGHT
Use the right arrow to select a navigation item on the right.
Definition: vlc_demux.h:269
@ DEMUX_CAN_CONTROL_RATE
Definition: vlc_demux.h:254
@ DEMUX_GET_ATTACHMENTS
Definition: vlc_demux.h:232
VLC_EXPORT int vlc_demux_chained_ControlVa(vlc_demux_chained_t *, int query, va_list args)
Controls a chained demuxer.
Definition: demux_chained.c:138
VLC_EXPORT int demux_vaControlHelper(stream_t *, int64_t i_start, int64_t i_end, int64_t i_bitrate, int i_align, int i_query, va_list args)
Definition: demux.c:237
static void demux_Delete(demux_t *demux)
Definition: vlc_demux.h:290
static bool demux_IsPathExtension(demux_t *p_demux, const char *psz_extension)
Definition: vlc_demux.h:347
demux_query_e
Control query identifiers for use with demux_t.pf_control.
Definition: vlc_demux.h:84
Definition: vlc_block.h:117
static int demux_SetTime(demux_t *p_demux, vlc_tick_t time, bool precise, bool absolute)
Definition: vlc_demux.h:390
VLC_EXPORT vlc_demux_chained_t * vlc_demux_chained_New(vlc_object_t *parent, const char *name, es_out_t *out)
Creates a chained demuxer.
Definition: demux_chained.c:100
es_out_t * out
Definition: demux_chained.c:71
struct demux_meta_t demux_meta_t
@ DEMUX_TEST_AND_CLEAR_FLAGS
Check which INPUT_UPDATE_XXX flag is set and reset the ones set.
Definition: vlc_demux.h:166