Skip to content

mpi_enc_test 运行后会出现横纹 #788

Open
@jiangchunyu

Description

@jiangchunyu

./test/mpi_enc_test -i /dev/video1 -o test.h264 -w 640 -h 480 -f 8 -t 7
运行这个命令会出现横纹,是什么原因引起的?,以下这段代码只有mpp_buffer_sync_end没有mpp_buffer_sync_begin 是不是这个原因引起的?如果是的话想要加mpp_buffer_sync_begin,应该加在什么位置?

MppBuffer camera_frame_to_buf(CamSource *ctx, RK_S32 idx)
{
MppBuffer buf = NULL;

if (idx < 0)
    return buf;

buf = ctx->fbuf[idx].buffer;
if (buf)
    mpp_buffer_sync_end(buf);

return buf;

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions