mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[mpi_enc_test]: modify mdinfo_size
fix vepu540c pagefault Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com> Change-Id: I2c5b5a6184ae01c20047bb9285b47850ae5fe77e
This commit is contained in:

committed by
Herman Chen

parent
da63fea543
commit
9e018b8135
@@ -176,10 +176,10 @@ MPP_RET test_ctx_init(MpiEncMultiCtxInfo *info)
|
|||||||
p->fps_out_den = cmd->fps_out_den;
|
p->fps_out_den = cmd->fps_out_den;
|
||||||
p->fps_out_num = cmd->fps_out_num;
|
p->fps_out_num = cmd->fps_out_num;
|
||||||
p->mdinfo_size = (MPP_VIDEO_CodingHEVC == cmd->type) ?
|
p->mdinfo_size = (MPP_VIDEO_CodingHEVC == cmd->type) ?
|
||||||
|
(MPP_ALIGN(p->hor_stride, 32) >> 5) *
|
||||||
|
(MPP_ALIGN(p->ver_stride, 32) >> 5) * 16 :
|
||||||
(MPP_ALIGN(p->hor_stride, 64) >> 6) *
|
(MPP_ALIGN(p->hor_stride, 64) >> 6) *
|
||||||
(MPP_ALIGN(p->ver_stride, 64) >> 6) * 32 :
|
(MPP_ALIGN(p->ver_stride, 16) >> 4) * 16;
|
||||||
(MPP_ALIGN(p->hor_stride, 64) >> 6) *
|
|
||||||
(MPP_ALIGN(p->ver_stride, 16) >> 4) * 8;
|
|
||||||
|
|
||||||
if (cmd->file_input) {
|
if (cmd->file_input) {
|
||||||
if (!strncmp(cmd->file_input, "/dev/video", 10)) {
|
if (!strncmp(cmd->file_input, "/dev/video", 10)) {
|
||||||
|
Reference in New Issue
Block a user