summaryrefslogtreecommitdiff
authorPeng Yixin <yixin.peng@amlogic.com>2019-10-17 05:14:31 (GMT)
committer Zhi Zhou <zhi.zhou@amlogic.com>2019-11-08 07:56:30 (GMT)
commit148b9ad615306ad79388716d2d9f3d6d6c73965e (patch)
treecadf25c01fcbd47fd5d1c5c5a8e8205d2dbb6690
parent7555ee739ef7c134ee02314c422eb9bf397939a1 (diff)
downloadmedia_modules-148b9ad615306ad79388716d2d9f3d6d6c73965e.zip
media_modules-148b9ad615306ad79388716d2d9f3d6d6c73965e.tar.gz
media_modules-148b9ad615306ad79388716d2d9f3d6d6c73965e.tar.bz2
media_module: h265 full-screen mosaic during playback [1/1]
PD#SWPL-12387 Problem: The first I frame was not incorrectly detected, resulting display mosaic picture. Solution: Add error detection for the first I frame to solve this problem. Verify: Verified U212 Change-Id: I2247a878c3bd7b9d13c17614856cb101623e6dab Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Diffstat
-rw-r--r--drivers/frame_provider/decoder/h265/vh265.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/frame_provider/decoder/h265/vh265.c b/drivers/frame_provider/decoder/h265/vh265.c
index 2cd939a..37e6969 100644
--- a/drivers/frame_provider/decoder/h265/vh265.c
+++ b/drivers/frame_provider/decoder/h265/vh265.c
@@ -9478,9 +9478,13 @@ pic_done:
pic->output_mark = 1;
pic->recon_mark = 1;
}
+ check_pic_decoded_error(hevc,
+ READ_VREG(HEVC_PARSER_LCU_START) & 0xffffff);
+ if (hevc->cur_pic != NULL &&
+ (READ_VREG(HEVC_PARSER_LCU_START) & 0xffffff) == 0)
+ hevc->cur_pic->error_mark = 1;
force_output:
pic_display = output_pic(hevc, 1);
-
if (pic_display) {
if ((pic_display->error_mark &&
((hevc->ignore_bufmgr_error &