PD#OTT-7782
Problem:
For the timeout state, the driver will discards the frame,
causing the buffer reset.
Solution:
store picture to dpb buffer when timeout status.
Verify:
u212
Change-Id: If14f02fc0ac44eaf4947dd44ef66095d38941d7a
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
bit[12] i_only when error happen
bit[13] 0: mark error according to last pic, 1: ignore mark error
bit[14] 0: result done when timeout from ucode. 1: reset bufmgr when timeout.
+ bit[18] 1: time out status, store pic to dpb buffer.
*/
-static unsigned int error_proc_policy = 0x4fb6; /*0x1f14*/
+static unsigned int error_proc_policy = 0x7Cfb6; /*0x1f14*/
/*
(dec_dpb_status == H264_DECODE_TIMEOUT)) {
empty_proc:
reset_process_time(hw);
+ if ((error_proc_policy & 0x40000) &&
+ dec_dpb_status == H264_DECODE_TIMEOUT)
+ goto pic_done_proc;
if (!hw->frmbase_cont_flag)
release_cur_decoding_buf(hw);