CN-121996182-A - Display method, display device, electronic equipment and storage medium
Abstract
The disclosure provides a display method, a display device, an electronic device and a storage medium. The method comprises the steps of obtaining a video stream and determining a video layer based on the video stream, wherein the video stream is used for presenting at least one animation obtained by pre-rendering, and according to a layer set of a current frame, determining display content of a display screen of the wearable device in the current frame, wherein the layer set comprises at least one dial layer and the video layer. Based on the method, on one hand, the presentation of the complex content of the watch disc can be realized on the premise of not depending on a real-time rendering algorithm, so that some relatively complex animations can be applied to wearable devices such as intelligent watches on the premise of not deleting the animation algorithm, and on the other hand, the video layers and other layers are decoupled, so that the drawing processes of the video layers and the other layers are not interfered with each other, and the influence of the rendering bottleneck of the video layers on the refreshing frame rate of the display screen is avoided.
Inventors
- ZHU SHIQI
- MA GE
- Rong Yichang
- JIANG LIANFANG
- XU XINGLIANG
- FANG YIBO
Assignees
- 北京小米移动软件有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241106
Claims (14)
- 1.A display method, the method comprising: Acquiring a video stream and determining a video layer based on the video stream, wherein the video stream is used for presenting at least one animation obtained by pre-rendering; And determining the display content of the display screen of the wearable device in the current frame according to the layer set of the current frame, wherein the layer set comprises at least one dial layer and the video layer.
- 2. The display method of claim 1, wherein the acquiring a video stream and determining a video layer based on the video stream comprises: When the last time of determining the duration of the video layer at the current moment reaches the refresh period corresponding to the video layer, acquiring a video stream and determining the video layer based on the video stream; The method further comprises the steps of: Refreshing any dial layer when the moment of refreshing the dial layer at the current moment from the last time reaches a refresh period corresponding to the any dial layer; Wherein, the refresh period corresponding to each layer in the layer set is different.
- 3. The display method of claim 2, wherein the at least one dial layer comprises an information layer, the information layer having a lower level than the video layer, the information layer having a refresh period greater than the refresh period of the video layer.
- 4. The display method of claim 3, wherein the information layer is configured to present static information, and wherein the method further comprises: The information layer is determined based on a lightweight multifunction graphics library.
- 5. The display method according to claim 2, wherein the at least one dial layer includes a pointer layer, the pointer layer having a higher level than the video layer, the pointer layer having a refresh period less than or equal to a refresh period corresponding to the video layer.
- 6. The display method of claim 5, wherein the pointer layer is configured to present pointer information, the pointer information being configured to characterize time information, the method further comprising: The pointer layer is determined based on a graphics processor.
- 7. The display method according to claim 2, characterized in that the method further comprises: And determining a refresh period corresponding to at least one layer in the layer set according to the battery residual capacity and/or the current running load of the wearable device.
- 8. The display method of claim 1, wherein the acquiring a video stream and determining a video layer based on the video stream comprises: acquiring a video stream, and determining a video frame under the current playing progress according to the video stream; Determining an animation special effect frame under the current playing progress based on a preset rendering algorithm; and determining a video layer according to the video frame and the animation special effect frame under the current playing progress.
- 9. The display method of claim 1, wherein the acquiring a video stream and determining a video layer based on the video stream comprises: And acquiring a video stream, and processing the video stream by a video processor based on the media frame to obtain a video layer.
- 10. The display method according to claim 1, wherein determining, according to the layer set of the current frame, the display content of the display screen of the wearable device in the current frame includes: And according to the hierarchical relation of each layer in the layer set of the current frame, carrying out superposition processing on each layer in the layer set of the current frame to obtain the display content of the display screen of the wearable device in the current frame.
- 11. A display device, the device comprising: The video analysis module is used for acquiring a video stream and determining a video layer based on the video stream, wherein the video stream is used for presenting at least one animation obtained by pre-rendering; The display preparation module is used for determining the display content of the display screen of the wearable device in the current frame according to the layer set of the current frame, wherein the layer set comprises at least one dial layer and the video layer.
- 12. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the method of any of claims 1 to 10.
- 13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 10 when the program is executed by the processor.
- 14. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1 to 10.
Description
Display method, display device, electronic equipment and storage medium Technical Field The disclosure relates to the technical field of wearable device dial display, in particular to a display method, a device, electronic equipment and a storage medium. Background With the increasing development of intelligent wearable equipment with display functions, the traditional static dial plate cannot meet the increasingly complex demands of users, and the display effect and interactivity of the dial plate become key factors for improving user experience. In this case, a dynamic dial is created. In the related art, the dynamic dial plate needs to process a large amount of dynamic effects and multidimensional information display, so that the dynamic dial plate has high requirements on the processing capacities of the CPU and the GPU. Especially when the second hand refresh rate is high or animation effects are introduced, the hardware resource consumption increases significantly, resulting in a decrease in the overall performance and endurance of the device. Disclosure of Invention In order to overcome the problems in the related art, the present disclosure provides a display method, apparatus, electronic device, and storage medium. A first aspect of the present disclosure provides a display method, the method including: Acquiring a video stream and determining a video layer based on the video stream, wherein the video stream is used for presenting at least one animation obtained by pre-rendering; And determining the display content of the display screen of the wearable device in the current frame according to the layer set of the current frame, wherein the layer set comprises at least one dial layer and the video layer. Optionally, the acquiring the video stream and determining the video layer based on the video stream includes: When the last time of determining the duration of the video layer at the current moment reaches the refresh period corresponding to the video layer, acquiring a video stream and determining the video layer based on the video stream; The method further comprises the steps of: Refreshing any dial layer when the moment of refreshing the dial layer at the current moment from the last time reaches a refresh period corresponding to the any dial layer; Wherein, the refresh period corresponding to each layer in the layer set is different. Optionally, the at least one dial layer includes an information layer, the level of the information layer is lower than the level of the video layer, and the refresh period corresponding to the information layer is greater than the refresh period corresponding to the video layer. Optionally, the information layer is used for presenting static information; The method further comprises the steps of: The information layer is determined based on a lightweight multifunction graphics library. Optionally, the at least one dial layer includes a pointer layer, the level of the pointer layer is higher than the level of the video layer, and the refresh period corresponding to the pointer layer is smaller than or equal to the refresh period corresponding to the video layer. Optionally, the pointer layer is used for presenting pointer information, and the pointer information is used for representing time information; The method further comprises the steps of: The pointer layer is determined based on a graphics processor. Optionally, the method further comprises: And determining a refresh period corresponding to at least one layer in the layer set according to the battery residual capacity and/or the current running load of the wearable device. Optionally, the acquiring the video stream and determining the video layer based on the video stream includes: acquiring a video stream, and determining a video frame under the current playing progress according to the video stream; Determining an animation special effect frame under the current playing progress based on a preset rendering algorithm; and determining a video layer according to the video frame and the animation special effect frame under the current playing progress. Optionally, the acquiring the video stream and determining the video layer based on the video stream includes: And acquiring a video stream, and processing the video stream by a video processor based on the media frame to obtain a video layer. Optionally, the determining, according to the layer set of the current frame, the display content of the display screen of the wearable device in the current frame includes: And according to the hierarchical relation of each layer in the layer set of the current frame, carrying out superposition processing on each layer in the layer set of the current frame to obtain the display content of the display screen of the wearable device in the current frame. A second aspect of the present disclosure provides a display device, the device comprising: The video analysis module is used for acquiring a video stream and determining