mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
mpeg4: add Mpeg4 Profiles names.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
parent
0637e50579
commit
c4ab43ff3c
@ -2231,6 +2231,23 @@ typedef struct AVCodecContext {
|
|||||||
#define FF_PROFILE_VC1_COMPLEX 2
|
#define FF_PROFILE_VC1_COMPLEX 2
|
||||||
#define FF_PROFILE_VC1_ADVANCED 3
|
#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
|
* level
|
||||||
* - encoding: Set by user.
|
* - encoding: Set by user.
|
||||||
|
@ -2256,6 +2256,25 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
return 0;
|
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 = {
|
AVCodec ff_mpeg4_decoder = {
|
||||||
"mpeg4",
|
"mpeg4",
|
||||||
AVMEDIA_TYPE_VIDEO,
|
AVMEDIA_TYPE_VIDEO,
|
||||||
@ -2270,6 +2289,7 @@ AVCodec ff_mpeg4_decoder = {
|
|||||||
.max_lowres= 3,
|
.max_lowres= 3,
|
||||||
.long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2"),
|
.long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2"),
|
||||||
.pix_fmts= ff_hwaccel_pixfmt_list_420,
|
.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)
|
.update_thread_context= ONLY_IF_THREADS_ENABLED(ff_mpeg_update_thread_context)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user