aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vulkan_decode.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-04-14 14:11:44 +0200
committerLynne <dev@lynne.ee>2024-04-15 02:40:02 +0200
commitdb09f1a5d811a3ca8adc89c58e29932efd0c255e (patch)
tree5010d12dfdec41d9121d7df65600deb1839abeff /libavcodec/vulkan_decode.h
parent3cca8dfbd88dfbf9c20f2e8c8da47881b4596567 (diff)
downloadffmpeg-db09f1a5d811a3ca8adc89c58e29932efd0c255e.tar.gz
vulkan_av1: add workaround for NVIDIA drivers tested on broken CTS
The first release of the CTS for AV1 decoding had incorrect offsets for the OrderHints values. The CTS will be fixed, and eventually, the drivers will be updated to the proper spec-conforming behaviour, but we still need to add a workaround as this will take months. Only NVIDIA use these values at all, so limit the workaround to only NVIDIA. Also, other vendors don't tend to provide accurate CTS information.
Diffstat (limited to 'libavcodec/vulkan_decode.h')
-rw-r--r--libavcodec/vulkan_decode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vulkan_decode.h b/libavcodec/vulkan_decode.h
index 7ba8b239cb..076af93499 100644
--- a/libavcodec/vulkan_decode.h
+++ b/libavcodec/vulkan_decode.h
@@ -72,6 +72,10 @@ typedef struct FFVulkanDecodeContext {
int external_fg; /* Oddity #2 - hardware can't apply film grain */
uint32_t frame_id_alloc_mask; /* For AV1 only */
+ /* Workaround for NVIDIA drivers tested with CTS version 1.3.8 for AV1.
+ * The tests were incorrect as the OrderHints were offset by 1. */
+ int quirk_av1_offset;
+
/* Thread-local state below */
struct HEVCHeaderSet *hevc_headers;
size_t hevc_headers_size;