mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-18 15:10:39 +08:00
[mpp_frame]: Add color format print
1. Add color format print for all supported format. 2. Add RGB color fill function. Change-Id: I79fb3f40402b6fb6e36883c99945e709723aee7d Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -713,18 +713,18 @@ static MPP_RET mpi_rc_codec(MpiRcTestCtx *ctx)
|
||||
i = 0;
|
||||
|
||||
if (fp_input) {
|
||||
ret = read_yuv_image(buf, fp_input,
|
||||
prep_cfg->width, prep_cfg->height,
|
||||
prep_cfg->hor_stride, prep_cfg->ver_stride,
|
||||
prep_cfg->format);
|
||||
ret = read_image(buf, fp_input,
|
||||
prep_cfg->width, prep_cfg->height,
|
||||
prep_cfg->hor_stride, prep_cfg->ver_stride,
|
||||
prep_cfg->format);
|
||||
if (MPP_OK != ret || feof(fp_input)) {
|
||||
mpp_log("found last frame\n");
|
||||
frm_eos = 1;
|
||||
}
|
||||
} else {
|
||||
ret = fill_yuv_image(buf, prep_cfg->width, prep_cfg->height,
|
||||
prep_cfg->hor_stride, prep_cfg->ver_stride,
|
||||
prep_cfg->format, frame_count);
|
||||
ret = fill_image(buf, prep_cfg->width, prep_cfg->height,
|
||||
prep_cfg->hor_stride, prep_cfg->ver_stride,
|
||||
prep_cfg->format, frame_count);
|
||||
if (ret)
|
||||
goto MPP_TEST_OUT;
|
||||
}
|
||||
|
Reference in New Issue
Block a user