mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-18 07:00:37 +08:00
feat[mpi_enc_test]: add YUV400 fmt support
Change-Id: I05d149d176e1e692e9706dac07e6d843446309f9 Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
This commit is contained in:
@@ -36,6 +36,7 @@ RK_S32 mpi_enc_width_default_stride(RK_S32 width, MppFrameFormat fmt)
|
||||
RK_S32 stride = 0;
|
||||
|
||||
switch (fmt & MPP_FRAME_FMT_MASK) {
|
||||
case MPP_FMT_YUV400 :
|
||||
case MPP_FMT_YUV420SP :
|
||||
case MPP_FMT_YUV420SP_VU : {
|
||||
stride = MPP_ALIGN(width, 8);
|
||||
|
@@ -612,6 +612,9 @@ MPP_RET read_image(RK_U8 *buf, FILE *fp, RK_U32 width, RK_U32 height,
|
||||
case MPP_FMT_BGR888 : {
|
||||
ret = read_with_pixel_width(buf_y, width, height, hor_stride, 3, fp);
|
||||
} break;
|
||||
case MPP_FMT_YUV400 : {
|
||||
ret = read_with_pixel_width(buf_y, width, height, hor_stride, 1, fp);
|
||||
} break;
|
||||
default : {
|
||||
mpp_err_f("read image do not support fmt %d\n", fmt);
|
||||
ret = MPP_ERR_VALUE;
|
||||
|
Reference in New Issue
Block a user