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
dfe8c5c0
Commit
dfe8c5c0
authored
May 13, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged mp1v/mp2v codecs.
The codec defined will only be used by encoder to force one of the types.
parent
2a1bc0ad
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
27 deletions
+19
-27
include/vlc_fourcc.h
include/vlc_fourcc.h
+4
-2
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+2
-2
modules/access/dshow/filter.cpp
modules/access/dshow/filter.cpp
+1
-1
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+2
-1
modules/codec/avcodec/fourcc.c
modules/codec/avcodec/fourcc.c
+1
-3
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+1
-3
modules/mux/mpeg/ps.c
modules/mux/mpeg/ps.c
+0
-6
modules/stream_out/record.c
modules/stream_out/record.c
+2
-2
src/misc/fourcc.c
src/misc/fourcc.c
+6
-7
No files found.
include/vlc_fourcc.h
View file @
dfe8c5c0
...
@@ -29,8 +29,6 @@
...
@@ -29,8 +29,6 @@
/* Video codec */
/* Video codec */
#define VLC_CODEC_MPGV VLC_FOURCC('m','p','g','v')
#define VLC_CODEC_MPGV VLC_FOURCC('m','p','g','v')
#define VLC_CODEC_MP1V VLC_FOURCC('m','p','1','v')
#define VLC_CODEC_MP2V VLC_FOURCC('m','p','2','v')
#define VLC_CODEC_MP4V VLC_FOURCC('m','p','4','v')
#define VLC_CODEC_MP4V VLC_FOURCC('m','p','4','v')
#define VLC_CODEC_DIV1 VLC_FOURCC('D','I','V','1')
#define VLC_CODEC_DIV1 VLC_FOURCC('D','I','V','1')
#define VLC_CODEC_DIV2 VLC_FOURCC('D','I','V','2')
#define VLC_CODEC_DIV2 VLC_FOURCC('D','I','V','2')
...
@@ -292,6 +290,10 @@
...
@@ -292,6 +290,10 @@
# define VLC_CODEC_S32N VLC_CODEC_S32L
# define VLC_CODEC_S32N VLC_CODEC_S32L
#endif
#endif
/* Non official codecs, used to force a profile in an encoder */
#define VLC_CODEC_MP1V VLC_FOURCC('m','p','1','v')
#define VLC_CODEC_MP2V VLC_FOURCC('m','p','2','v')
/**
/**
* It returns the codec associatedto a fourcc within a ES category.
* It returns the codec associatedto a fourcc within a ES category.
*
*
...
...
modules/access/dshow/dshow.cpp
View file @
dfe8c5c0
...
@@ -491,7 +491,7 @@ static int CommonOpen( vlc_object_t *p_this, access_sys_t *p_sys,
...
@@ -491,7 +491,7 @@ static int CommonOpen( vlc_object_t *p_this, access_sys_t *p_sys,
if
(
/* Raw DV stream */
if
(
/* Raw DV stream */
p_stream
->
i_fourcc
==
VLC_CODEC_DV
||
p_stream
->
i_fourcc
==
VLC_CODEC_DV
||
/* Raw MPEG video stream */
/* Raw MPEG video stream */
p_stream
->
i_fourcc
==
VLC_CODEC_MP
2
V
)
p_stream
->
i_fourcc
==
VLC_CODEC_MP
G
V
)
{
{
b_use_audio
=
false
;
b_use_audio
=
false
;
...
@@ -729,7 +729,7 @@ static int AccessOpen( vlc_object_t *p_this )
...
@@ -729,7 +729,7 @@ static int AccessOpen( vlc_object_t *p_this )
free
(
p_access
->
psz_demux
);
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"rawdv"
);
p_access
->
psz_demux
=
strdup
(
"rawdv"
);
}
}
else
if
(
p_stream
->
i_fourcc
==
VLC_CODEC_MP
2
V
)
else
if
(
p_stream
->
i_fourcc
==
VLC_CODEC_MP
G
V
)
{
{
free
(
p_access
->
psz_demux
);
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"mpgv"
);
p_access
->
psz_demux
=
strdup
(
"mpgv"
);
...
...
modules/access/dshow/filter.cpp
View file @
dfe8c5c0
...
@@ -286,7 +286,7 @@ int GetFourCCFromMediaType( const AM_MEDIA_TYPE &media_type )
...
@@ -286,7 +286,7 @@ int GetFourCCFromMediaType( const AM_MEDIA_TYPE &media_type )
/* MPEG2 video elementary stream */
/* MPEG2 video elementary stream */
else
if
(
media_type
.
subtype
==
MEDIASUBTYPE_MPEG2_VIDEO
)
else
if
(
media_type
.
subtype
==
MEDIASUBTYPE_MPEG2_VIDEO
)
i_fourcc
=
VLC_CODEC_MP
2
V
;
i_fourcc
=
VLC_CODEC_MP
G
V
;
/* DivX video */
/* DivX video */
else
if
(
media_type
.
subtype
==
MEDIASUBTYPE_DIVX
)
else
if
(
media_type
.
subtype
==
MEDIASUBTYPE_DIVX
)
...
...
modules/codec/avcodec/encoder.c
View file @
dfe8c5c0
...
@@ -453,7 +453,8 @@ int OpenEncoder( vlc_object_t *p_this )
...
@@ -453,7 +453,8 @@ int OpenEncoder( vlc_object_t *p_this )
__MAX
(
__MIN
(
p_sys
->
i_b_frames
,
FF_MAX_B_FRAMES
),
0
);
__MAX
(
__MIN
(
p_sys
->
i_b_frames
,
FF_MAX_B_FRAMES
),
0
);
p_context
->
b_frame_strategy
=
0
;
p_context
->
b_frame_strategy
=
0
;
if
(
!
p_context
->
max_b_frames
&&
if
(
!
p_context
->
max_b_frames
&&
(
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_MP2V
||
(
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_MPGV
||
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_MP2V
||
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_MP1V
)
)
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_MP1V
)
)
p_context
->
flags
|=
CODEC_FLAG_LOW_DELAY
;
p_context
->
flags
|=
CODEC_FLAG_LOW_DELAY
;
...
...
modules/codec/avcodec/fourcc.c
View file @
dfe8c5c0
...
@@ -52,9 +52,7 @@ static const struct
...
@@ -52,9 +52,7 @@ static const struct
* Video Codecs
* Video Codecs
*/
*/
{
VLC_CODEC_MP1V
,
CODEC_ID_MPEG1VIDEO
,
VIDEO_ES
},
{
VLC_CODEC_MPGV
,
CODEC_ID_MPEG2VIDEO
,
VIDEO_ES
},
{
VLC_CODEC_MP2V
,
CODEC_ID_MPEG2VIDEO
,
VIDEO_ES
},
{
VLC_CODEC_MP4V
,
CODEC_ID_MPEG4
,
VIDEO_ES
},
{
VLC_CODEC_MP4V
,
CODEC_ID_MPEG4
,
VIDEO_ES
},
/* 3ivx delta 3.5 Unsupported
/* 3ivx delta 3.5 Unsupported
...
...
modules/codec/libmpeg2.c
View file @
dfe8c5c0
...
@@ -119,9 +119,7 @@ static int OpenDecoder( vlc_object_t *p_this )
...
@@ -119,9 +119,7 @@ static int OpenDecoder( vlc_object_t *p_this )
decoder_sys_t
*
p_sys
;
decoder_sys_t
*
p_sys
;
uint32_t
i_accel
=
0
;
uint32_t
i_accel
=
0
;
if
(
p_dec
->
fmt_in
.
i_codec
!=
VLC_CODEC_MP1V
&&
if
(
p_dec
->
fmt_in
.
i_codec
!=
VLC_CODEC_MPGV
)
p_dec
->
fmt_in
.
i_codec
!=
VLC_CODEC_MP2V
&&
p_dec
->
fmt_in
.
i_codec
!=
VLC_CODEC_MPGV
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
/* Select onl recognized original format (standard mpeg video) */
/* Select onl recognized original format (standard mpeg video) */
...
...
modules/mux/mpeg/ps.c
View file @
dfe8c5c0
...
@@ -276,12 +276,6 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
...
@@ -276,12 +276,6 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
/* Init this new stream */
/* Init this new stream */
switch
(
p_input
->
p_fmt
->
i_codec
)
switch
(
p_input
->
p_fmt
->
i_codec
)
{
{
case
VLC_CODEC_MP1V
:
p_stream
->
i_stream_id
=
StreamIdGet
(
p_sys
->
stream_id_mpgv
,
0xe0
,
0xef
);
p_stream
->
i_stream_type
=
0x01
;
/* ISO/IEC 11172 Video */
break
;
case
VLC_CODEC_MP2V
:
case
VLC_CODEC_MPGV
:
case
VLC_CODEC_MPGV
:
p_stream
->
i_stream_id
=
p_stream
->
i_stream_id
=
StreamIdGet
(
p_sys
->
stream_id_mpgv
,
0xe0
,
0xef
);
StreamIdGet
(
p_sys
->
stream_id_mpgv
,
0xe0
,
0xef
);
...
...
modules/stream_out/record.c
View file @
dfe8c5c0
...
@@ -287,12 +287,12 @@ static const muxer_properties_t p_muxers[] = {
...
@@ -287,12 +287,12 @@ static const muxer_properties_t p_muxers[] = {
M
(
"mp4"
,
"mp4"
,
INT_MAX
,
VLC_CODEC_MP4A
,
VLC_CODEC_H264
,
VLC_CODEC_MP4V
,
M
(
"mp4"
,
"mp4"
,
INT_MAX
,
VLC_CODEC_MP4A
,
VLC_CODEC_H264
,
VLC_CODEC_MP4V
,
VLC_CODEC_SUBT
),
VLC_CODEC_SUBT
),
M
(
"ps"
,
"mpg"
,
16
/* FIXME*/
,
VLC_CODEC_MPGV
,
VLC_CODEC_MP1V
,
VLC_CODEC_MP2V
,
M
(
"ps"
,
"mpg"
,
16
/* FIXME*/
,
VLC_CODEC_MPGV
,
VLC_CODEC_MPGA
,
VLC_CODEC_DVD_LPCM
,
VLC_CODEC_A52
,
VLC_CODEC_MPGA
,
VLC_CODEC_DVD_LPCM
,
VLC_CODEC_A52
,
VLC_CODEC_DTS
,
VLC_CODEC_DTS
,
VLC_CODEC_SPU
),
VLC_CODEC_SPU
),
M
(
"ts"
,
"ts"
,
8000
,
VLC_CODEC_MPGV
,
VLC_CODEC_MP1V
,
VLC_CODEC_MP2V
,
M
(
"ts"
,
"ts"
,
8000
,
VLC_CODEC_MPGV
,
VLC_CODEC_H264
,
VLC_CODEC_H264
,
VLC_CODEC_MPGA
,
VLC_CODEC_DVD_LPCM
,
VLC_CODEC_A52
,
VLC_CODEC_MPGA
,
VLC_CODEC_DVD_LPCM
,
VLC_CODEC_A52
,
VLC_CODEC_DTS
,
VLC_CODEC_MP4A
,
VLC_CODEC_DTS
,
VLC_CODEC_MP4A
,
...
...
src/misc/fourcc.c
View file @
dfe8c5c0
...
@@ -56,16 +56,18 @@ typedef struct
...
@@ -56,16 +56,18 @@ typedef struct
/* */
/* */
static
const
entry_t
p_list_video
[]
=
{
static
const
entry_t
p_list_video
[]
=
{
B
(
VLC_CODEC_MP1V
,
"MPEG-1 Video"
),
B
(
VLC_CODEC_MPGV
,
"MPEG-1/2 Video"
),
A
(
"mpgv"
),
A
(
"mp1v"
),
A
(
"mp1v"
),
A
(
"mpeg"
),
A
(
"mpeg"
),
A
(
"mpg1"
),
A
(
"mpg1"
),
E
(
"PIM1"
,
"Pinnacle DC1000 (MPEG-1 Video)"
),
B
(
VLC_CODEC_MP2V
,
"MPEG-2 Video"
),
A
(
"mp2v"
),
A
(
"mp2v"
),
A
(
"MPEG"
),
A
(
"MPEG"
),
A
(
"mpg2"
),
A
(
"mpg2"
),
E
(
"PIM1"
,
"Pinnacle DC1000 (MPEG-1 Video)"
),
E
(
"hdv1"
,
"HDV 720p30 (MPEG-2 Video)"
),
E
(
"hdv1"
,
"HDV 720p30 (MPEG-2 Video)"
),
E
(
"hdv2"
,
"Sony HDV (MPEG-2 Video)"
),
E
(
"hdv2"
,
"Sony HDV (MPEG-2 Video)"
),
E
(
"hdv3"
,
"FCP HDV (MPEG-2 Video)"
),
E
(
"hdv3"
,
"FCP HDV (MPEG-2 Video)"
),
...
@@ -83,9 +85,6 @@ static const entry_t p_list_video[] = {
...
@@ -83,9 +85,6 @@ static const entry_t p_list_video[] = {
E
(
"xdv2"
,
"XDCAM HD 1080i60"
),
E
(
"xdv2"
,
"XDCAM HD 1080i60"
),
E
(
"AVmp"
,
"AVID IMX PAL"
),
E
(
"AVmp"
,
"AVID IMX PAL"
),
B
(
VLC_CODEC_MPGV
,
"MPEG-1/2 Video"
),
A
(
"mpgv"
),
B
(
VLC_CODEC_MP4V
,
"MPEG-4 Video"
),
B
(
VLC_CODEC_MP4V
,
"MPEG-4 Video"
),
A
(
"mp4v"
),
A
(
"mp4v"
),
A
(
"DIVX"
),
A
(
"DIVX"
),
...
...
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