mbox series

[FFmpeg-devel,v2,0/3] consider chroma subsampling for bwdif (including CUDA and Vulkan)

Message ID 0101018c1d9bd369-81383354-8caa-4736-ba47-6a70b92d3f4d-000000@us-west-2.amazonses.com
Headers show
Series consider chroma subsampling for bwdif (including CUDA and Vulkan) | expand

Message

Cosmin Stejerean Nov. 30, 2023, 12:23 a.m. UTC
From: Cosmin Stejerean <cosmin@cosmin.at>

This fixes the issue reported in #10688. In v2 the checks for chroma
plane are combined together and the fixes are extended to cover the
Vulkan and CUDA implementations of bwdif.

I have not had a chance to replicate the issue on CUDA or Vulkan but
based on the dimension checks in those filters I believe they would
have the same out of bounds issue.

I kept the changes in separate patches since I've only properly tested
the first one. I'll work on testing the CUDA and Vulkan
implementations as well but meanwhile wanted to get some feedback on
the overall approach.

Cosmin Stejerean (3):
  avfilter/vf_bwdif: consider chroma subsampling when enforcing minimum
    dimensions
  avfilter/vf_bwdif_cuda: consider chroma subsampling when enforcing
    minimum dimensions
  avfilter/vf_bwdif_vulkan: consider chroma subsampling when enforcing
    minimum dimensions

 libavfilter/vf_bwdif.c        | 13 ++++++++++---
 libavfilter/vf_bwdif_cuda.c   | 13 ++++++++++---
 libavfilter/vf_bwdif_vulkan.c | 14 ++++++++++----
 3 files changed, 30 insertions(+), 10 deletions(-)