summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Manuel Jaquez Leal <vjaquez@igalia.com>2022-11-26 20:48:45 +0100
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2022-12-01 15:17:49 +0000
commitb25b1be70d6830a0b1be3f351ff66865edd973d3 (patch)
tree3d6f604e80f6d96c024045fadf366bc5b0a17ef4
parent1f88f411bce08dc1df820681aee8dba3cd132c24 (diff)
downloadgstreamer-b25b1be70d6830a0b1be3f351ff66865edd973d3.tar.gz
vafilter: Increase the number of 3DLUT caps to 16.
To fix the warning on Alderlake vafilter gstvafilter.c:534:gst_va_filter_ensure_filters:<vafilter0> vaQueryVideoProcFiltersCaps: list argument exceeds maximum number Increase the number of caps to 16 as vadumpcaps does. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3473>
-rw-r--r--subprojects/gst-plugins-bad/sys/va/gstvafilter.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/subprojects/gst-plugins-bad/sys/va/gstvafilter.c b/subprojects/gst-plugins-bad/sys/va/gstvafilter.c
index a6c197012a..7ddd693dfd 100644
--- a/subprojects/gst-plugins-bad/sys/va/gstvafilter.c
+++ b/subprojects/gst-plugins-bad/sys/va/gstvafilter.c
@@ -444,7 +444,7 @@ static const struct VaFilterCapMap {
F(HVSNoiseReduction, 0),
F(HighDynamicRangeToneMapping, 1),
#if VA_CHECK_VERSION (1, 12, 0)
- F(3DLUT, 1),
+ F(3DLUT, 16),
#endif
#undef F
};
@@ -481,6 +481,9 @@ struct VaFilter
VAProcFilterCapColorBalance cb[VAProcColorBalanceCount];
VAProcFilterCapTotalColorCorrection cc[VAProcTotalColorCorrectionCount];
VAProcFilterCapHighDynamicRange hdr;
+#if VA_CHECK_VERSION (1, 12, 0)
+ VAProcFilterCap3DLUT lut[16];
+#endif
} caps;
};