mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[vepu580]: Add YUV444 support for vepu580
Change-Id: I58859e59094fcecc13011b16f33b3810abbc7882 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -1030,6 +1030,44 @@ MPP_RET fill_image(RK_U8 *buf, RK_U32 width, RK_U32 height,
|
||||
}
|
||||
}
|
||||
} break;
|
||||
case MPP_FMT_YUV444SP : {
|
||||
RK_U8 *p = buf_y;
|
||||
|
||||
for (y = 0; y < height; y++, p += hor_stride) {
|
||||
for (x = 0; x < width; x++) {
|
||||
p[x] = x + y + frame_count * 3;
|
||||
}
|
||||
}
|
||||
|
||||
p = buf + hor_stride * ver_stride;
|
||||
for (y = 0; y < height; y++, p += hor_stride * 2) {
|
||||
for (x = 0; x < width; x++) {
|
||||
p[x * 2 + 0] = 128 + y / 2 + frame_count * 2;
|
||||
p[x * 2 + 1] = 64 + x + frame_count * 5;
|
||||
}
|
||||
}
|
||||
} break;
|
||||
case MPP_FMT_YUV444P : {
|
||||
RK_U8 *p = buf_y;
|
||||
|
||||
for (y = 0; y < height; y++, p += hor_stride) {
|
||||
for (x = 0; x < width; x++) {
|
||||
p[x] = x + y + frame_count * 3;
|
||||
}
|
||||
}
|
||||
p = buf + hor_stride * ver_stride;
|
||||
for (y = 0; y < height; y++, p += hor_stride) {
|
||||
for (x = 0; x < width; x++) {
|
||||
p[x] = 128 + y / 2 + frame_count * 2;
|
||||
}
|
||||
}
|
||||
p = buf + hor_stride * ver_stride * 2;
|
||||
for (y = 0; y < height; y++, p += hor_stride) {
|
||||
for (x = 0; x < width; x++) {
|
||||
p[x] = 64 + x + frame_count * 5;
|
||||
}
|
||||
}
|
||||
} break;
|
||||
case MPP_FMT_RGB565 :
|
||||
case MPP_FMT_BGR565 :
|
||||
case MPP_FMT_RGB555 :
|
||||
|
Reference in New Issue
Block a user