mirror of
https://github.com/rockchip-linux/mpp.git
synced 2024-11-27 03:54:00 +08:00
fix[mpp_enc]: Add device attach/detach on enc flow
Add rk3576 devices first. Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: I3e07d86787f50c00e6bfac7c376fae45035ba471
This commit is contained in:
parent
4c0b591272
commit
b8c4c585e2
@ -22,6 +22,7 @@
|
||||
|
||||
#include "mpp_time.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_buffer_impl.h"
|
||||
|
||||
#include "mpp_frame_impl.h"
|
||||
#include "mpp_packet_impl.h"
|
||||
@ -1436,6 +1437,7 @@ static MPP_RET mpp_enc_check_pkt_buf(MppEncImpl *enc)
|
||||
|
||||
mpp_assert(size);
|
||||
mpp_buffer_get(mpp->mPacketGroup, &buffer, size);
|
||||
mpp_buffer_attach_dev(buffer, enc->dev);
|
||||
mpp_assert(buffer);
|
||||
enc->pkt_buf = buffer;
|
||||
pkt->data = mpp_buffer_get_ptr(buffer);
|
||||
@ -2597,6 +2599,7 @@ static MPP_RET check_async_pkt_buf(MppEncImpl *enc, EncAsyncTaskInfo *async)
|
||||
|
||||
mpp_assert(size);
|
||||
mpp_buffer_get(mpp->mPacketGroup, &buffer, size);
|
||||
mpp_buffer_attach_dev(buffer, enc->dev);
|
||||
mpp_assert(buffer);
|
||||
enc->pkt_buf = buffer;
|
||||
pkt->data = mpp_buffer_get_ptr(buffer);
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_buffer_impl.h"
|
||||
#include "mpp_enc_hal.h"
|
||||
|
||||
#include "jpege_syntax.h"
|
||||
@ -145,6 +146,7 @@ static MPP_RET hal_jpege_vpu720_init(void *hal, MppEncHalCfg *cfg)
|
||||
}
|
||||
|
||||
ret = mpp_buffer_get(ctx->group, &ctx->qtbl_buffer, JPEGE_VPU720_QTABLE_SIZE * sizeof(RK_U16));
|
||||
mpp_buffer_attach_dev(ctx->qtbl_buffer, ctx->dev);
|
||||
ctx->qtbl_sw_buf = (RK_U16 *)mpp_calloc(RK_U16, JPEGE_VPU720_QTABLE_SIZE);
|
||||
|
||||
hal_jpege_leave();
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_frame.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_buffer_impl.h"
|
||||
|
||||
#include "jpegd_syntax.h"
|
||||
#include "hal_jpegd_common.h"
|
||||
@ -295,6 +296,8 @@ MPP_RET hal_jpegd_rkv_init(void *hal, MppHalCfg *cfg)
|
||||
mpp_err_f("Get table buffer failed, ret %d\n", ret);
|
||||
}
|
||||
|
||||
mpp_buffer_attach_dev(ctx->pTableBase, ctx->dev);
|
||||
|
||||
jpegd_dbg_func("exit\n");
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user