video: modify the statistics of new frame count [1/1]

PD#TV-8725

Problem:
STR standby, wake up, takes a long time, takes 5-6s.

Solution:
When the first frame is displayed,
the statistics start new frame count.

Verify:
Verified with X301

Change-Id: Ib318455959fe9688f3c697b1d562388547002877
Signed-off-by: Rui Wang <rui.wang@amlogic.com>
This commit is contained in:
Rui Wang
2019-08-21 19:34:05 +08:00
committed by Tao Zeng
parent a477f52caf
commit 93f34aa427

View File

@@ -3926,11 +3926,15 @@ static void vsync_toggle_frame(struct vframe_s *vf, int line)
}
}
if ((cur_dispbuf) && (cur_dispbuf != &vf_local) && (cur_dispbuf != vf)
&& (video_property_changed != 2)) {
if (cur_dispbuf != vf) {
new_frame_count++;
if (new_frame_count == 1)
first_picture = 1;
}
if ((cur_dispbuf) && (cur_dispbuf != &vf_local) && (cur_dispbuf != vf)
&& (video_property_changed != 2)) {
#ifdef CONFIG_AMLOGIC_MEDIA_VSYNC_RDMA
if (is_vsync_rdma_enable()) {
#ifdef RDMA_RECYCLE_ORDERED_VFRAMES