mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
media_module: optimize buf_available check condition in mh264 [1/1]
PD#SWPL-1617 Problem: On S805X, back end performance is not good. easy to cause bufmgr reset and cts failed. Solution: optimize buf_available checkcondition to avoid reset. Verify: Verified P241 Change-Id: I98c7e9ad8a8c31e0f97c26f5130952d4308756bb Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
This commit is contained in:
@@ -4052,7 +4052,7 @@ static bool is_buffer_available(struct vdec_s *vdec)
|
||||
if ((kfifo_len(&hw->newframe_q) <= 0) ||
|
||||
((hw->config_bufmgr_done) && (!have_free_buf_spec(vdec))) ||
|
||||
((p_H264_Dpb->mDPB.init_done) &&
|
||||
(p_H264_Dpb->mDPB.used_size == p_H264_Dpb->mDPB.size) &&
|
||||
(p_H264_Dpb->mDPB.used_size >= (p_H264_Dpb->mDPB.size -1)) &&
|
||||
(is_there_unused_frame_from_dpb(&p_H264_Dpb->mDPB) == 0))) {
|
||||
dpb_print(DECODE_ID(hw), PRINT_FLAG_VDEC_DETAIL,
|
||||
"%s, empty, newq(%d), free_spec(%d), initdon(%d), used_size(%d/%d), unused_fr_dpb(%d)\n",
|
||||
|
||||
Reference in New Issue
Block a user