Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d4215f4f
Commit
d4215f4f
authored
Nov 30, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: added demux_t structure and some demux2_* functions.
Anyway, don't use them for now.
parent
26eae60c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
3 deletions
+56
-3
include/ninput.h
include/ninput.h
+54
-1
include/vlc_common.h
include/vlc_common.h
+2
-2
No files found.
include/ninput.h
View file @
d4215f4f
...
...
@@ -2,7 +2,7 @@
* ninput.h
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: ninput.h,v 1.2
0 2003/11/30 14:49:2
3 fenrir Exp $
* $Id: ninput.h,v 1.2
1 2003/11/30 17:29:0
3 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -157,6 +157,32 @@ static int inline stream_Seek( stream_t *s, int64_t i_pos )
* \defgroup demux Demux
* @{
*/
struct
demux_t
{
VLC_COMMON_MEMBERS
/* Module properties */
module_t
*
p_module
;
/* eg informative but needed (we can have access+demux) */
char
*
psz_access
;
char
*
psz_demux
;
char
*
psz_path
;
/* input stream */
stream_t
*
s
;
/* NULL in case of a access+demux in one */
/* es output */
es_out_t
*
out
;
/* ou p_es_out */
/* set by demuxer */
int
(
*
pf_demux
)
(
demux_t
*
);
/* demux one frame only */
int
(
*
pf_control
)(
demux_t
*
,
int
i_query
,
va_list
args
);
demux_sys_t
*
p_sys
;
};
enum
demux_query_e
{
DEMUX_GET_POSITION
,
/* arg1= double * res= */
...
...
@@ -178,6 +204,33 @@ VLC_EXPORT( int, demux_Control, ( input_thread_t *, int i_qu
VLC_EXPORT
(
int
,
demux_vaControlDefault
,
(
input_thread_t
*
,
int
i_query
,
va_list
)
);
/* New demux arch: don't touch that */
/* stream_t *s could be null and then it mean a access+demux in one */
#define demux2_New( a, b, c, d ) __demux2_New(VLC_OBJECT(a), b, c, d)
VLC_EXPORT
(
demux_t
*
,
__demux2_New
,
(
vlc_object_t
*
p_obj
,
char
*
psz_mrl
,
stream_t
*
s
,
es_out_t
*
out
)
);
VLC_EXPORT
(
void
,
demux2_Delete
,
(
demux_t
*
)
);
static
inline
int
demux2_Demux
(
demux_t
*
p_demux
)
{
return
p_demux
->
pf_demux
(
p_demux
);
}
static
inline
int
demux2_vaControl
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
return
p_demux
->
pf_control
(
p_demux
,
i_query
,
args
);
}
static
inline
int
demux2_Control
(
demux_t
*
p_demux
,
int
i_query
,
...
)
{
va_list
args
;
int
i_result
;
va_start
(
args
,
i_query
);
i_result
=
demux2_vaControl
(
p_demux
,
i_query
,
args
);
va_end
(
args
);
return
i_result
;
}
/* Subtitles */
VLC_EXPORT
(
char
**
,
subtitles_Detect
,
(
input_thread_t
*
,
char
*
path
,
char
*
fname
)
);
...
...
include/vlc_common.h
View file @
d4215f4f
...
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vlc_common.h,v 1.9
1 2003/11/24 20:45:23 gbazin
Exp $
* $Id: vlc_common.h,v 1.9
2 2003/11/30 17:29:03 fenrir
Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
...
@@ -230,7 +230,7 @@ typedef struct stream_t stream_t;
typedef
struct
es_out_t
es_out_t
;
typedef
struct
es_out_id_t
es_out_id_t
;
typedef
struct
es_out_sys_t
es_out_sys_t
;
typedef
struct
demux_t
demux_t
;
/* Audio */
typedef
struct
aout_instance_t
aout_instance_t
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment