From 804980bbab748fd0e180cd6e7d9292ff49baf704 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Mon, 31 Jan 2022 11:49:55 -0800 Subject: DetilePlane and unittest for NEON Bug: libyuv:915, b/215425056 Change-Id: Iccab1ed3f6d385f02895d44faa94d198ad79d693 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3424820 Reviewed-by: Justin Green Reviewed-by: Frank Barchard Commit-Queue: Frank Barchard --- source/row_common.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source/row_common.cc') diff --git a/source/row_common.cc b/source/row_common.cc index 0f7aa820..84b395b6 100644 --- a/source/row_common.cc +++ b/source/row_common.cc @@ -2659,6 +2659,21 @@ void RGB24MirrorRow_C(const uint8_t* src_rgb24, uint8_t* dst_rgb24, int width) { } } +void DetileRow_C(const uint8_t* src, + ptrdiff_t src_tile_stride, + uint8_t* dst, + int width) { + int x; + for (x = 0; x < width - 15; x += 16) { + memcpy(dst, src, 16); + dst += 16; + src += src_tile_stride; + } + if (width & 15) { + memcpy(dst, src, width & 15); + } +} + void SplitUVRow_C(const uint8_t* src_uv, uint8_t* dst_u, uint8_t* dst_v, -- cgit v1.2.3