mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-14 05:13:44 +08:00
[legacy]: Fix ver_stride alignment on copy path
Change-Id: Ic1d0d6c5c1f20ea915750aae3f3ee88cb740bd7e Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -192,9 +192,10 @@ static int copy_align_raw_buffer_to_dest(RK_U8 *dst, RK_U8 *src, RK_U32 width,
|
|||||||
RK_U8 *src_buf = src;
|
RK_U8 *src_buf = src;
|
||||||
RK_U32 row = 0;
|
RK_U32 row = 0;
|
||||||
RK_U32 hor_stride = MPP_ALIGN(width, 16);
|
RK_U32 hor_stride = MPP_ALIGN(width, 16);
|
||||||
RK_U32 ver_stride = MPP_ALIGN(height, 16);
|
RK_U32 ver_stride = MPP_ALIGN(height, 8);
|
||||||
RK_U8 *dst_u = dst_buf + hor_stride * ver_stride;
|
RK_U8 *dst_u = dst_buf + hor_stride * ver_stride;
|
||||||
RK_U8 *dst_v = dst_u + hor_stride * ver_stride / 4;
|
RK_U8 *dst_v = dst_u + hor_stride * ver_stride / 4;
|
||||||
|
|
||||||
switch (fmt) {
|
switch (fmt) {
|
||||||
case MPP_FMT_YUV420SP : {
|
case MPP_FMT_YUV420SP : {
|
||||||
for (row = 0; row < height; row++) {
|
for (row = 0; row < height; row++) {
|
||||||
|
Reference in New Issue
Block a user