Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
c4ab43ff
Commit
c4ab43ff
authored
Jul 21, 2011
by
Thierry Foucu
Committed by
Ronald S. Bultje
Jul 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4: add Mpeg4 Profiles names.
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
0637e505
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
avcodec.h
libavcodec/avcodec.h
+17
-0
mpeg4videodec.c
libavcodec/mpeg4videodec.c
+20
-0
No files found.
libavcodec/avcodec.h
View file @
c4ab43ff
...
...
@@ -2231,6 +2231,23 @@ typedef struct AVCodecContext {
#define FF_PROFILE_VC1_COMPLEX 2
#define FF_PROFILE_VC1_ADVANCED 3
#define FF_PROFILE_MPEG4_SIMPLE 0
#define FF_PROFILE_MPEG4_SIMPLE_SCALABLE 1
#define FF_PROFILE_MPEG4_CORE 2
#define FF_PROFILE_MPEG4_MAIN 3
#define FF_PROFILE_MPEG4_N_BIT 4
#define FF_PROFILE_MPEG4_SCALABLE_TEXTURE 5
#define FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION 6
#define FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE 7
#define FF_PROFILE_MPEG4_HYBRID 8
#define FF_PROFILE_MPEG4_ADVANCED_REAL_TIME 9
#define FF_PROFILE_MPEG4_CORE_SCALABLE 10
#define FF_PROFILE_MPEG4_ADVANCED_CODING 11
#define FF_PROFILE_MPEG4_ADVANCED_CORE 12
#define FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE 13
#define FF_PROFILE_MPEG4_SIMPLE_STUDIO 14
#define FF_PROFILE_MPEG4_ADVANCED_SIMPLE 15
/**
* level
* - encoding: Set by user.
...
...
libavcodec/mpeg4videodec.c
View file @
c4ab43ff
...
...
@@ -2256,6 +2256,25 @@ static av_cold int decode_init(AVCodecContext *avctx)
return
0
;
}
static
const
AVProfile
mpeg4_video_profiles
[]
=
{
{
FF_PROFILE_MPEG4_SIMPLE
,
"Simple Profile"
},
{
FF_PROFILE_MPEG4_SIMPLE_SCALABLE
,
"Simple Scalable Profile"
},
{
FF_PROFILE_MPEG4_CORE
,
"Core Profile"
},
{
FF_PROFILE_MPEG4_MAIN
,
"Main Profile"
},
{
FF_PROFILE_MPEG4_N_BIT
,
"N-bit Profile"
},
{
FF_PROFILE_MPEG4_SCALABLE_TEXTURE
,
"Scalable Texture Profile"
},
{
FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION
,
"Simple Face Animation Profile"
},
{
FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE
,
"Basic Animated Texture Profile"
},
{
FF_PROFILE_MPEG4_HYBRID
,
"Hybrid Profile"
},
{
FF_PROFILE_MPEG4_ADVANCED_REAL_TIME
,
"Advanced Real Time Simple Profile"
},
{
FF_PROFILE_MPEG4_CORE_SCALABLE
,
"Code Scalable Profile"
},
{
FF_PROFILE_MPEG4_ADVANCED_CODING
,
"Advanced Coding Profile"
},
{
FF_PROFILE_MPEG4_ADVANCED_CORE
,
"Advanced Core Profile"
},
{
FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE
,
"Advanced Scalable Texture Profile"
},
{
FF_PROFILE_MPEG4_SIMPLE_STUDIO
,
"Simple Studio Profile"
},
{
FF_PROFILE_MPEG4_ADVANCED_SIMPLE
,
"Advanced Simple Profile"
},
};
AVCodec
ff_mpeg4_decoder
=
{
"mpeg4"
,
AVMEDIA_TYPE_VIDEO
,
...
...
@@ -2270,6 +2289,7 @@ AVCodec ff_mpeg4_decoder = {
.
max_lowres
=
3
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MPEG-4 part 2"
),
.
pix_fmts
=
ff_hwaccel_pixfmt_list_420
,
.
profiles
=
NULL_IF_CONFIG_SMALL
(
mpeg4_video_profiles
),
.
update_thread_context
=
ONLY_IF_THREADS_ENABLED
(
ff_mpeg_update_thread_context
)
};
...
...
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