diff options
author | Philip Langdale <philipl@overt.org> | 2022-08-04 20:35:04 -0700 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2022-08-09 09:22:49 -0700 |
commit | 109515e16dfffa6bb34de75c5253b7cbb1f12fa6 (patch) | |
tree | 42316804ffa8a0eb58f755b7dbafb1c797394cff /libavcodec/vaapi_encode_h265.c | |
parent | 737298b4f7b60bc2b755fe8fa9135f50a496d94d (diff) | |
download | ffmpeg-109515e16dfffa6bb34de75c5253b7cbb1f12fa6.tar.gz |
lavc/vaapi_encode: enable 8bit 4:4:4 encoding for HEVC and VP9
Sufficiently recent Intel hardware is able to do encoding of 8bit 4:4:4
content in HEVC and VP9. The main requirement here is that the frames
must be provided in the AYUV format.
Enabling support is done by adding the appropriate encoding profiles
and noting that AYUV is officially a four channel format with alpha so
we must state that we expect all four channels.
Diffstat (limited to 'libavcodec/vaapi_encode_h265.c')
-rw-r--r-- | libavcodec/vaapi_encode_h265.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index d5375add22..1de323af78 100644 --- a/libavcodec/vaapi_encode_h265.c +++ b/libavcodec/vaapi_encode_h265.c @@ -1278,6 +1278,8 @@ static const VAAPIEncodeProfile vaapi_encode_h265_profiles[] = { #if VA_CHECK_VERSION(1, 2, 0) { FF_PROFILE_HEVC_REXT, 8, 3, 1, 0, VAProfileHEVCMain422_10 }, { FF_PROFILE_HEVC_REXT, 10, 3, 1, 0, VAProfileHEVCMain422_10 }, + // Four channels because this uses the AYUV format which has Alpha + { FF_PROFILE_HEVC_REXT, 8, 4, 0, 0, VAProfileHEVCMain444 }, #endif { FF_PROFILE_UNKNOWN } }; |