chore[mpp_enc]: Encoder changes to cacheable buffer

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I8df399ff708e354f8e3017da41e1424cba4999ee
This commit is contained in:
Herman Chen
2023-11-10 17:25:17 +08:00
parent 5d89c2cc32
commit 0d773814cf
8 changed files with 97 additions and 19 deletions

View File

@@ -716,10 +716,11 @@ void *enc_test_input(void *arg)
break;
} else {
if (p->cam_ctx == NULL) {
ret = fill_image((RK_U8 *)buf, p->width, p->height, p->hor_stride,
p->ver_stride, p->fmt, p->frm_cnt_in);
if (ret)
break;
ret = MPP_OK;
// ret = fill_image((RK_U8 *)buf, p->width, p->height, p->hor_stride,
// p->ver_stride, p->fmt, p->frm_cnt_in);
// if (ret)
// break;
} else {
cam_frm_idx = camera_source_get_frame(p->cam_ctx);
mpp_assert(cam_frm_idx >= 0);
@@ -1058,6 +1059,7 @@ int enc_test_mt(MpiEncTestArgs* cmd, const char *name)
mpp_log("*******************************************\n");
getc(stdin);
mpp_log_f("loop_end start");
for (i = 0; i < cmd->nthreads; i++)
ctxs[i].ctx.loop_end = 1;
}