The branch, master has been updated
       via  909d71322a0694b1158a046d531f2d60c680af4d (commit)
      from  70be2e2ae280e1d258ee33640932eb2334451d20 (commit)


- Log -----------------------------------------------------------------
commit 909d71322a0694b1158a046d531f2d60c680af4d
Author:     averne <[email protected]>
AuthorDate: Sun Oct 26 22:05:07 2025 +0100
Commit:     Lynne <[email protected]>
CommitDate: Tue Oct 28 06:12:14 2025 +0000

    vulkan/prores: output LSB-padded data
    
    For consistency with existing Vulkan-based hwaccels

diff --git a/libavcodec/vulkan/prores_idct.comp 
b/libavcodec/vulkan/prores_idct.comp
index 645cb02979..642fcb5bd5 100644
--- a/libavcodec/vulkan/prores_idct.comp
+++ b/libavcodec/vulkan/prores_idct.comp
@@ -110,14 +110,14 @@ void main(void)
     idct(block, idx, 9);
 
     float fact = 1.0f / (1 << (12 - depth)), off = 1 << (depth - 1);
-    int maxv = (1 << depth) - 1;
+    int maxv = (1 << depth) - 1, shift = 16 - depth;
 
     /* 7.5.1 Color Component Samples. Rescale, clamp and write back to global 
memory */
     barrier();
     if (act) {
         [[unroll]] for (uint i = 0; i < 8; ++i) {
             float v = blocks[block][i * 9 + idx] * fact + off;
-            put_px(comp, ivec2(gid.x, (gid.y << 3) | i), clamp(int(v), 0, 
maxv));
+            put_px(comp, ivec2(gid.x, (gid.y << 3) | i), clamp(int(v), 0, 
maxv) << shift);
         }
     }
 }

-----------------------------------------------------------------------

Summary of changes:
 libavcodec/vulkan/prores_idct.comp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to