mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 09:36:49 +08:00
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:
@@ -428,8 +428,14 @@ MPP_RET camera_source_put_frame(CamSource *ctx, RK_S32 idx)
|
||||
|
||||
MppBuffer camera_frame_to_buf(CamSource *ctx, RK_S32 idx)
|
||||
{
|
||||
if (idx < 0)
|
||||
return NULL;
|
||||
MppBuffer buf = NULL;
|
||||
|
||||
return ctx->fbuf[idx].buffer;
|
||||
if (idx < 0)
|
||||
return buf;
|
||||
|
||||
buf = ctx->fbuf[idx].buffer;
|
||||
if (buf)
|
||||
mpp_buffer_sync_end(buf);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user