Camera Preview Display Frame Rate Switching to Prevent Frame Drop
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The frequency mismatch between the camera module's image collection and the display screen's image display due to display driver chip limitations leads to frame drop and frame skip in preview and video shooting scenarios.
Innovation Solution
A display control method that dynamically adjusts the display frame rate by increasing it to a higher first frame rate when entering a preview or video shooting scenario, using a buffer queue to manage image production and consumption, and generating Vsync signals to ensure timely image display.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the display driver chip operates at its maximum capability, then the display frame rate is limited by hardware constraints, but the image collection frequency cannot be matched, causing frame drop and frame skip
Solution Approach 1:
The system performs preliminary identification of preview/video shooting scenarios and proactively increases the display frame rate before frame drop can occur. The display control module detects when the camera application is in preview mode and preemptively adjusts the frame rate from the second frame rate to the first frame rate, ensuring smooth image transitions are maintained before problems arise.
Solution Approach 2:
The display frame rate is made dynamic rather than fixed. The system automatically switches between the first frame rate (higher) and second frame rate (lower) based on the current interface state. When a preview interface is detected, the frame rate increases to the first frame rate; when exiting preview mode, it returns to the second frame rate. This dynamic adjustment resolves the contradiction by adapting performance to actual needs.
2Reliability
If the display frame rate is increased to match image collection frequency, then frame drop is prevented, but energy consumption increases
Solution Approach 1:
The display frame rate dynamically adjusts between first frame rate and second frame rate based on whether the device is in preview mode. During preview/video shooting (when continuity is critical), the higher first frame rate is used. During other interfaces, the lower second frame rate is used to conserve energy. This selective approach maintains reliability when needed while minimizing energy consumption during normal operation.
Solution Approach 2:
The system changes the display frame rate parameter based on operational context. By identifying preview scenarios and switching to the first frame rate only when necessary, the system optimizes the balance between frame display continuity and energy consumption. The frame rate parameter is adjusted from a static value to a context-dependent variable.
Data Source
Figure 1
Figure 2
Figure 3~4
AI summary
Embodiments of this application provide a display control method and an electronic device, and relate to the technical field of electronic devices. According to the method, a preview/video shooting scenario can be accurately identified, and a display frame rate is increased in the scenario, to avoid a problem of frame drop caused when an image that is not displayed is covered. The method may include: receiving a first operation of a user; starting a camera application in response to the first operation, and displaying a first interface on a display screen, where the first interface is a preview interface of the camera application, or the first interface is a video shooting interface of the camera application, where a display frame rate of the display screen is a first frame rate when the first interface is displayed; receiving a second operation of the user; and displaying a second interface on the display screen in response to the second operation, where the second interface is different from the preview interface or the video shooting interface, where the display frame rate of the display screen is a second frame rate when the second interface is displayed; and the first frame rate is greater than the second frame rate.