[utils]: read_image support YUV444SP, YUV444P

Signed-off-by: Zhihua Wang <hogan.wang@rock-chips.com>
Change-Id: I20f9b200134dac343c7e3e5da894689937afe2ca
This commit is contained in:
Zhihua Wang
2022-11-11 11:27:14 +08:00
parent 5557255eac
commit 2de930d33c

View File

@@ -595,6 +595,8 @@ MPP_RET read_image(RK_U8 *buf, FILE *fp, RK_U32 width, RK_U32 height,
case MPP_FMT_YUV422_VYUY : { case MPP_FMT_YUV422_VYUY : {
ret = read_with_pixel_width(buf_y, width, height, hor_stride, 2, fp); ret = read_with_pixel_width(buf_y, width, height, hor_stride, 2, fp);
} break; } break;
case MPP_FMT_YUV444SP :
case MPP_FMT_YUV444P :
case MPP_FMT_RGB888 : case MPP_FMT_RGB888 :
case MPP_FMT_BGR888 : { case MPP_FMT_BGR888 : {
ret = read_with_pixel_width(buf_y, width, height, hor_stride, 3, fp); ret = read_with_pixel_width(buf_y, width, height, hor_stride, 3, fp);