Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
b642af72
Commit
b642af72
authored
Dec 03, 2003
by
Rocky Bernstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a few more fields in the stream info.
parent
31f7c3ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
7 deletions
+29
-7
modules/demux/mpeg/mpga.c
modules/demux/mpeg/mpga.c
+6
-2
modules/demux/mpeg/mpgv.c
modules/demux/mpeg/mpgv.c
+4
-1
src/input/es_out.c
src/input/es_out.c
+19
-4
No files found.
modules/demux/mpeg/mpga.c
View file @
b642af72
...
...
@@ -2,7 +2,7 @@
* mpga.c : MPEG-I/II Audio input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mpga.c,v 1.1
0 2003/11/21 16:07:20 fenrir
Exp $
* $Id: mpga.c,v 1.1
1 2003/12/03 00:27:52 rocky
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -249,6 +249,7 @@ static int Open( vlc_object_t * p_this )
{
int
i_xing
;
uint8_t
*
p_xing
;
char
psz_description
[
50
];
p_sys
->
i_bitrate_avg
=
MPGA_BITRATE
(
header
)
*
1000
;
if
(
(
i_xing
=
stream_Peek
(
p_input
->
s
,
&
p_xing
,
1024
)
)
>=
21
)
...
...
@@ -305,7 +306,7 @@ static int Open( vlc_object_t * p_this )
}
msg_Dbg
(
p_input
,
"version=%d layer=%d channels=%d samplerate=%d"
,
MPGA_VERSION
(
header
)
+
1
,
MPGA_VERSION
(
header
)
+
1
,
MPGA_LAYER
(
header
)
+
1
,
MPGA_CHANNELS
(
header
),
MPGA_SAMPLE_RATE
(
header
)
);
...
...
@@ -313,6 +314,9 @@ static int Open( vlc_object_t * p_this )
fmt
.
audio
.
i_channels
=
MPGA_CHANNELS
(
header
);
fmt
.
audio
.
i_rate
=
MPGA_SAMPLE_RATE
(
header
);
fmt
.
i_bitrate
=
p_sys
->
i_bitrate_avg
;
sprintf
(
psz_description
,
"MPEG Audio Layer %d, version %d"
,
MPGA_LAYER
(
header
)
+
1
,
MPGA_VERSION
(
header
)
+
1
);
fmt
.
psz_description
=
strdup
(
psz_description
);
}
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
...
...
modules/demux/mpeg/mpgv.c
View file @
b642af72
...
...
@@ -2,7 +2,7 @@
* mpgv.c : MPEG-I/II Video demuxer
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mpgv.c,v 1.
2 2003/11/24 00:39:01 fenrir
Exp $
* $Id: mpgv.c,v 1.
3 2003/12/03 00:27:52 rocky
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -75,6 +75,7 @@ static int Open( vlc_object_t * p_this )
uint8_t
*
p_peek
;
es_format_t
fmt
;
char
psz_description
[
50
];
if
(
stream_Peek
(
p_input
->
s
,
&
p_peek
,
4
)
<
4
)
{
...
...
@@ -151,6 +152,8 @@ static int Open( vlc_object_t * p_this )
* create the output
*/
es_format_Init
(
&
fmt
,
VIDEO_ES
,
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
)
);
sprintf
(
psz_description
,
"MPEG-I/II Video"
);
fmt
.
psz_description
=
strdup
(
psz_description
);
p_sys
->
p_es
=
es_out_Add
(
p_input
->
p_es_out
,
&
fmt
);
return
VLC_SUCCESS
;
...
...
src/input/es_out.c
View file @
b642af72
...
...
@@ -2,7 +2,7 @@
* es_out.c: Es Out handler for input.
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: es_out.c,v 1.
6 2003/12/02 12:57:35 gbazin
Exp $
* $Id: es_out.c,v 1.
7 2003/12/03 00:27:52 rocky
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -337,22 +337,32 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
switch
(
fmt
->
i_cat
)
{
case
AUDIO_ES
:
input_AddInfo
(
p_cat
,
_
(
"Type"
),
_
(
"Audio"
)
);
if
(
fmt
->
psz_description
)
{
input_AddInfo
(
p_cat
,
_
(
"Description"
),
"%s"
,
fmt
->
psz_description
);
}
input_AddInfo
(
p_cat
,
_
(
"Codec"
),
"%.4s"
,
(
char
*
)
&
fmt
->
i_codec
);
input_AddInfo
(
p_cat
,
_
(
"Type"
),
_
(
"Audio"
)
);
if
(
fmt
->
audio
.
i_channels
>
0
)
{
input_AddInfo
(
p_cat
,
_
(
"Channels"
),
"%d"
,
fmt
->
audio
.
i_channels
);
}
if
(
fmt
->
psz_language
)
{
input_AddInfo
(
p_cat
,
_
(
"Language"
),
"%s"
,
fmt
->
psz_language
);
}
if
(
fmt
->
audio
.
i_rate
>
0
)
{
input_AddInfo
(
p_cat
,
_
(
"Sample Rate"
),
"%d"
,
input_AddInfo
(
p_cat
,
_
(
"Sample Rate"
),
_
(
"%d Hz"
)
,
fmt
->
audio
.
i_rate
);
}
if
(
fmt
->
i_bitrate
>
0
)
{
input_AddInfo
(
p_cat
,
_
(
"Bitrate"
),
"%d"
,
input_AddInfo
(
p_cat
,
_
(
"Bitrate"
),
_
(
"%d bps"
),
fmt
->
i_bitrate
);
}
if
(
fmt
->
audio
.
i_bitspersample
)
...
...
@@ -362,6 +372,11 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
}
break
;
case
VIDEO_ES
:
if
(
fmt
->
psz_description
)
{
input_AddInfo
(
p_cat
,
_
(
"Description"
),
"%s"
,
fmt
->
psz_description
);
}
input_AddInfo
(
p_cat
,
_
(
"Type"
),
_
(
"Video"
)
);
input_AddInfo
(
p_cat
,
_
(
"Codec"
),
"%.4s"
,
(
char
*
)
&
fmt
->
i_codec
);
...
...
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