>>>> To: FFmpeg development discussions and patches
>>>>
>>>> Subject: Re: [FFmpeg-devel] [PATCH 1/2] vaapi_h264: Add named options
>>>> for setting profile and level
>>>>
>>>> On Thu, Nov 30, 2017 at 08:52:21 +, Li, Zhong wro
> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf
> Of Mark Thompson
> Sent: Saturday, December 2, 2017 11:36 PM
> To: ffmpeg-devel@ffmpeg.org
> Subject: Re: [FFmpeg-devel] [PATCH 1/2] vaapi_h264: Add named options for
> setting profile and level
>
&g
On 01/12/17 05:24, Li, Zhong wrote:
>> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf
>> Of Moritz Barsnick
>> Sent: Thursday, November 30, 2017 10:33 PM
>> To: FFmpeg development discussions and patches
>>
>> Subject: Re: [FFmpeg-deve
> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf
> Of Moritz Barsnick
> Sent: Thursday, November 30, 2017 10:33 PM
> To: FFmpeg development discussions and patches
>
> Subject: Re: [FFmpeg-devel] [PATCH 1/2] vaapi_h264: Add named options for
> sett
On Thu, Nov 30, 2017 at 08:52:21 +, Li, Zhong wrote:
> > +{ LEVEL("6", 60) },
> > +{ LEVEL("6.1", 61) },
> > +{ LEVEL("6.2", 62) },
>
> IIRC, level 5.2 is the maximum level of H264?
Higher levels were introduced in 2016. Edition V12 of H.264 lists 6,
6.1 and 6.2 in Annex A, Tab
> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf
> Of Mark Thompson
> +#define LEVEL(name, value) name, NULL, 0, AV_OPT_TYPE_CONST, \
> + { .i64 = value }, 0, 0, FLAGS, "level"
> +{ LEVEL("1", 10) },
> +{ LEVEL("1.1", 11) },
> +{ LEVEL("1.2", 12) },
> +
---
libavcodec/vaapi_encode_h264.c | 48 --
1 file changed, 46 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c
index 5fd0bf7796..6940823b8e 100644
--- a/libavcodec/vaapi_encode_h264.c
+++ b/libavcod