You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix stride alignment for SIMD performance and decoder correctness
Adds 32-byte aligned stride support for framebuffers to enable SIMD optimizations
(AVX/SSE) and fixes stride-related bugs in WebP and GIF decoders that were causing
data corruption.
Changes:
- opencv.cpp/hpp: Add opencv_mat_create_from_data_with_stride() to support custom strides
- opencv.go: Update NewFramebuffer() and resizeMat() to use 32-byte aligned strides
- webp.cpp: Fix decoder to use Mat's actual stride instead of intermediate buffer
- giflib.cpp: Fix decoder and encoder to copy frame data row-by-row respecting stride
Fixes thumbhash test failures where stride mismatches were corrupting pixel data.
0 commit comments