mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +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:
@@ -362,16 +362,16 @@ MPP_RET test_mpp_run(MpiEncTestData *p)
|
||||
void *buf = mpp_buffer_get_ptr(p->frm_buf);
|
||||
|
||||
if (p->fp_input) {
|
||||
ret = read_yuv_image(buf, p->fp_input, p->width, p->height,
|
||||
p->hor_stride, p->ver_stride, p->fmt);
|
||||
ret = read_image(buf, p->fp_input, p->width, p->height,
|
||||
p->hor_stride, p->ver_stride, p->fmt);
|
||||
if (ret == MPP_NOK || feof(p->fp_input)) {
|
||||
mpp_log("found last frame. feof %d\n", feof(p->fp_input));
|
||||
p->frm_eos = 1;
|
||||
} else if (ret == MPP_ERR_VALUE)
|
||||
goto RET;
|
||||
} else {
|
||||
ret = fill_yuv_image(buf, p->width, p->height, p->hor_stride,
|
||||
p->ver_stride, p->fmt, p->frame_count);
|
||||
ret = fill_image(buf, p->width, p->height, p->hor_stride,
|
||||
p->ver_stride, p->fmt, p->frame_count);
|
||||
if (ret)
|
||||
goto RET;
|
||||
}
|
||||
@@ -529,6 +529,7 @@ static void mpi_enc_test_help()
|
||||
mpp_log("usage: mpi_enc_test [options]\n");
|
||||
show_options(mpi_enc_cmd);
|
||||
mpp_show_support_format();
|
||||
mpp_show_color_format();
|
||||
}
|
||||
|
||||
static RK_S32 mpi_enc_test_parse_options(int argc, char **argv, MpiEncTestCmd* cmd)
|
||||
|
Reference in New Issue
Block a user