diff options
author | Gildas Cocherel <gildas.cocherel@laposte.net> | 2013-12-19 00:30:24 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-20 19:35:27 +0100 |
commit | 2a41826bea3833895dc06939831b7f35ca1f597e (patch) | |
tree | e1dca860f9256aa2d6b03a5ef9505d73719f6501 /libavcodec/hevc.c | |
parent | f412b2c9f3a7add0ab8021262ec4bad249347e30 (diff) | |
download | ffmpeg-2a41826bea3833895dc06939831b7f35ca1f597e.tar.gz |
lavc: add HEVC profiles names
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 4af5aee155..530abdc26e 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -3170,6 +3170,14 @@ static void hevc_decode_flush(AVCodecContext *avctx) #define OFFSET(x) offsetof(HEVCContext, x) #define PAR (AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM) + +static const AVProfile profiles[] = { + { FF_PROFILE_HEVC_MAIN, "Main" }, + { FF_PROFILE_HEVC_MAIN_10, "Main 10" }, + { FF_PROFILE_HEVC_MAIN_STILL_PICTURE, "Main Still Picture" }, + { FF_PROFILE_UNKNOWN }, +}; + static const AVOption options[] = { { "apply_defdispwin", "Apply default display window from VUI", OFFSET(apply_defdispwin), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, PAR }, @@ -3198,4 +3206,5 @@ AVCodec ff_hevc_decoder = { .init_thread_copy = hevc_init_thread_copy, .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_FRAME_THREADS, + .profiles = NULL_IF_CONFIG_SMALL(profiles), }; |