On Tue, 24 Sep 2024, Zhao Zhili wrote:
ffmpeg | branch: master | Zhao Zhili <[email protected]> | Wed Sep 18
21:11:44 2024 +0800| [e18b46d95fadcbaaf450bda9f1871849f2b0c586] | committer: Zhao
Zhili
swscale/aarch64: Fix rgb24toyv12 only works with aligned width
Since c0666d8b, rgb24toyv12 is broken for width non-aligned to 16.
Add a simple wrapper to handle the non-aligned part.
Co-authored-by: johzzy <[email protected]>
Signed-off-by: Zhao Zhili <[email protected]>
http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e18b46d95fadcbaaf450bda9f1871849f2b0c586
---
libswscale/aarch64/rgb2rgb.c | 23 ++++++++++++++++++++++-
tests/checkasm/sw_rgb.c | 2 +-
2 files changed, 23 insertions(+), 2 deletions(-)
--- a/tests/checkasm/sw_rgb.c
+++ b/tests/checkasm/sw_rgb.c
@@ -129,7 +129,7 @@ static int cmp_off_by_n(const uint8_t *ref, const uint8_t
*test, size_t n, int a
static void check_rgb24toyv12(struct SwsContext *ctx)
{
- static const int input_sizes[] = {16, 128, 512, MAX_LINE_SIZE,
-MAX_LINE_SIZE};
+ static const int input_sizes[] = {2, 16, 128, 540, MAX_LINE_SIZE,
-MAX_LINE_SIZE};
LOCAL_ALIGNED_32(uint8_t, src, [BUFSIZE * 3]);
LOCAL_ALIGNED_32(uint8_t, buf_y_0, [BUFSIZE]);
These new test cases fail on x86_32; we have got a version of
rgb24toyv12 which is specific to "#if ARCH_X86_32 && HAVE_7REGS".
Can you have a look?
// Martin
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".