aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vaapi_decode.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2022-08-19 17:01:07 -0700
committerPhilip Langdale <philipl@overt.org>2022-09-03 16:19:40 -0700
commitb982dd0d8366b2cb9cc6288b821a536c8e2b50ed (patch)
treecd89ca3b6e1752389e54b80a1f50dc630bbe4bc2 /libavcodec/vaapi_decode.c
parentd75c4693fef51e8f0a1b88798530f4c5147ea906 (diff)
downloadffmpeg-b982dd0d8366b2cb9cc6288b821a536c8e2b50ed.tar.gz
lavc/vaapi: Add support for remaining 10/12bit profiles
With the necessary pixel formats defined, we can now expose support for the remaining 10/12bit combinations that VAAPI can handle. Specifically, we are adding support for: * HEVC ** 12bit 420 ** 10bit 422 ** 12bit 422 ** 10bit 444 ** 12bit 444 * VP9 ** 10bit 444 ** 12bit 444 These obviously require actual hardware support to be usable, but where that exists, it is now enabled. Note that unlike YUVA/YUVX, the Intel driver does not formally expose support for the alphaless formats XV30 and XV360, and so we are implicitly discarding the alpha from the decoder and passing undefined values for the alpha to the encoder. If a future encoder iteration was to actually do something with the alpha bits, we would need to use a formal alpha capable format or the encoder would need to explicitly accept the alphaless format.
Diffstat (limited to 'libavcodec/vaapi_decode.c')
-rw-r--r--libavcodec/vaapi_decode.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
index 8c13a4f098..134f10eca5 100644
--- a/libavcodec/vaapi_decode.c
+++ b/libavcodec/vaapi_decode.c
@@ -263,6 +263,9 @@ static const struct {
#ifdef VA_FOURCC_Y210
MAP(Y210, Y210),
#endif
+#ifdef VA_FOURCC_Y212
+ MAP(Y212, Y212),
+#endif
// 4:4:0
MAP(422V, YUV440P),
// 4:4:4
@@ -270,10 +273,19 @@ static const struct {
#ifdef VA_FOURCC_XYUV
MAP(XYUV, VUYX),
#endif
+#ifdef VA_FOURCC_Y410
+ MAP(Y410, XV30),
+#endif
+#ifdef VA_FOURCC_Y412
+ MAP(Y412, XV36),
+#endif
// 4:2:0 10-bit
#ifdef VA_FOURCC_P010
MAP(P010, P010),
#endif
+#ifdef VA_FOURCC_P012
+ MAP(P012, P012),
+#endif
#ifdef VA_FOURCC_I010
MAP(I010, YUV420P10),
#endif
@@ -417,6 +429,7 @@ static const struct {
#if VA_CHECK_VERSION(0, 39, 0)
MAP(VP9, VP9_1, VP9Profile1 ),
MAP(VP9, VP9_2, VP9Profile2 ),
+ MAP(VP9, VP9_3, VP9Profile3 ),
#endif
#if VA_CHECK_VERSION(1, 8, 0)
MAP(AV1, AV1_MAIN, AV1Profile0),