mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 01:20:40 +01:00
feat[kmpp]: Set chan_fd to init cfg
Depend on the commit: 270375: feat[kmpp_venc_objs]: Add chan_fd to init cfg | https://10.10.10.29/c/rk/mpp/+/270375 Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com> Change-Id: I5d174695f023cf306e7f4df59243d21f255c2bc3
This commit is contained in:
parent
ac16b2c63e
commit
8dcf903d9e
1 changed files with 1 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ static MPP_RET init(Kmpp *ctx, MppCtxType type, MppCodingType coding)
|
|||
hnd = kmpp_obj_to_shm(ctx->mVencInitKcfg);
|
||||
size = kmpp_obj_to_shm_size(ctx->mVencInitKcfg);
|
||||
kmpp_obj_get_u32(ctx->mVencInitKcfg, "chan_dup", &ctx->mChanDup);
|
||||
kmpp_obj_set_s32(ctx->mVencInitKcfg, "chan_fd", ctx->mClientFd);
|
||||
|
||||
ret = mpp_vcodec_ioctl(ctx->mClientFd, VCODEC_CHAN_CREATE, 0, size, hnd);
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue