|
|
|
@ -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), |
|
|
|
|
}; |
|
|
|
|