mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-23 09:01:00 +08:00
lavc: add profiles to AVCodecDescriptor
The profiles are a property of the codec, so it makes sense to export them through AVCodecDescriptors, not just the codec implementations.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "mpegvideodata.h"
|
||||
#include "mpeg4video.h"
|
||||
#include "h263.h"
|
||||
#include "profiles.h"
|
||||
#include "thread.h"
|
||||
#include "xvididct.h"
|
||||
|
||||
@@ -2599,25 +2600,6 @@ 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 = {
|
||||
.name = "mpeg4",
|
||||
.long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2"),
|
||||
@@ -2632,6 +2614,6 @@ AVCodec ff_mpeg4_decoder = {
|
||||
AV_CODEC_CAP_FRAME_THREADS,
|
||||
.flush = ff_mpeg_flush,
|
||||
.pix_fmts = ff_h263_hwaccel_pixfmt_list_420,
|
||||
.profiles = NULL_IF_CONFIG_SMALL(mpeg4_video_profiles),
|
||||
.profiles = NULL_IF_CONFIG_SMALL(ff_mpeg4_video_profiles),
|
||||
.update_thread_context = ONLY_IF_THREADS_ENABLED(mpeg4_update_thread_context),
|
||||
};
|
||||
|
Reference in New Issue
Block a user