CN112929511B - Method and device for reporting vertical synchronization signal and computer readable storage medium - Google Patents
Method and device for reporting vertical synchronization signal and computer readable storage medium Download PDFInfo
- Publication number
- CN112929511B CN112929511B CN202110122542.6A CN202110122542A CN112929511B CN 112929511 B CN112929511 B CN 112929511B CN 202110122542 A CN202110122542 A CN 202110122542A CN 112929511 B CN112929511 B CN 112929511B
- Authority
- CN
- China
- Prior art keywords
- vertical synchronization
- frequency
- layer
- reporting
- synchronization signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 claims abstract description 25
- 230000001360 synchronised effect Effects 0.000 claims abstract description 15
- 230000015572 biosynthetic process Effects 0.000 claims description 12
- 238000003786 synthesis reaction Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/04—Synchronising
- H04N5/06—Generation of synchronising signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/04—Synchronising
- H04N5/06—Generation of synchronising signals
- H04N5/067—Arrangements or circuits at the transmitter end
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention provides a method and a device for reporting a vertical synchronization signal and a computer readable storage medium. The method comprises the following steps: receiving a vertical synchronous signal reported by display hardware according to a first frequency; after continuously receiving a predetermined number of vertical synchronization signals, reporting the vertical synchronization signals to a layer combining module once, so that the layer combining module can apply the reporting of the vertical synchronization signals to an upper layer according to a second frequency, wherein the first frequency is a predetermined number times of the second frequency. The invention can dynamically generate the vertical synchronous signals with different frequencies according to the requirements of the application programs, thereby meeting the different requirements of different application programs on refresh frame rates.
Description
Technical Field
The present invention relates to the field of image display technologies, and in particular, to a method and apparatus for reporting a vertical synchronization signal, and a computer readable storage medium.
Background
Currently, in order to meet the needs of users, high frame rate display of mobile phones is gradually becoming a trend, and high refresh frame rate inevitably brings huge power consumption. While many applications currently remain at a low frame rate. In order to ensure the fluency of system display, reduce the system power consumption as much as possible, and adapt to refresh display of different frame rates of different applications, currently, android11 supports a VRR (Variable Refresh Rate, variable refresh frame rate) display technology, and allows each application program to set different display refresh frame rates according to its own characteristics, and then after classifying and aligning the frame rates set by all applications in a Surface Flinger module of the Android, a refresh frame rate VSync (vertical synchronization) periodic signal matched with the application is provided for each application, and a unified hardware VSync refresh periodic signal after classifying and aligning is requested for the display hardware. Under the condition that the system runs different applications, the calculated required display hardware VSync signals are different, so that the bottom display hardware of a chip manufacturer is required to dynamically generate different VSync signals according to the requirements.
In the mobile phone system, the software updates a frame of data only when receiving a VSync signal generated by a bottom hardware display module, and the reporting frequency of the VSync signal determines the image data updating frequency of the software. The display hardware DPU (Display Processor Unit, display processing unit) module of the chip can only generate a fixed hardware VSync refresh period signal after the LCD (Liquid Crystal Display ) time sequence is configured, that is, if the refresh frame rate of the LCD screen is 120Hz, the DPU module of the chip can only generate a VSync signal of 120 Hz; if the refresh frame rate of the LCD screen is 60Hz, then the DPU module of the chip can only generate a VSync signal of 60 Hz.
Currently, display hardware of a chip on the market generally only supports fixed generation of a Vsync signal, but cannot support VRR refresh display, and cannot meet different requirements of different application programs on refresh frame rates.
Disclosure of Invention
The method, the device and the computer readable storage medium for reporting the vertical synchronization signal can dynamically generate the vertical synchronization signals with different frequencies according to the requirements of the application programs, and meet the different requirements of the different application programs on refresh frame rates.
In a first aspect, the present invention provides a method for reporting a vertical synchronization signal, including:
receiving a vertical synchronous signal reported by display hardware according to a first frequency;
after continuously receiving a predetermined number of vertical synchronization signals, reporting the vertical synchronization signals to a layer combining module once, so that the layer combining module can apply the reporting of the vertical synchronization signals to an upper layer according to a second frequency, wherein the first frequency is a predetermined number times of the second frequency.
Optionally, the predetermined number of sizes is determined according to a refresh frame rate of an upper layer application.
Optionally, the layer synthesis module reports the vertical synchronization signal to the upper layer according to the second frequency, including: the layer synthesis module reports a vertical synchronization signal to an application frame layer according to a second frequency; and the application framework layer reports the vertical synchronous signal to the application layer according to the second frequency.
Optionally, under Android, the layer composition module is Surface Flinger.
In a second aspect, the present invention provides a device for reporting a vertical synchronization signal, including:
the receiving unit is used for receiving the vertical synchronous signal reported by the display hardware according to the first frequency;
and the reporting unit is used for reporting the vertical synchronization signal once to the layer combining module after continuously receiving the preset number of the vertical synchronization signals, so that the layer combining module can apply the reported vertical synchronization signal to the upper layer according to a second frequency, wherein the first frequency is the preset number of times of the second frequency.
Optionally, the predetermined number of sizes is determined according to a refresh frame rate of an upper layer application.
Optionally, the layer synthesis module reports the vertical synchronization signal to the upper layer according to the second frequency, including: the layer synthesis module reports a vertical synchronization signal to an application frame layer according to a second frequency; and the application framework layer reports the vertical synchronous signal to the application layer according to the second frequency.
Optionally, under Android, the layer composition module is Surface Flinger.
In a third aspect, the present invention provides a device for reporting a vertical synchronization signal, including:
a memory;
and a processor coupled to the memory, the processor configured to perform the method of reporting the vertical synchronization signal based on the instructions stored in the memory.
In a fourth aspect, the present invention provides a computer readable storage medium, where the computer readable storage medium stores computer instructions, where the computer instructions, when executed by a processor, implement the method for reporting a vertical synchronization signal described above.
According to the method, the device and the computer readable storage medium for reporting the vertical synchronization signals, which are provided by the embodiment of the invention, according to the refresh frame rate of the upper layer application, after the predetermined number of vertical synchronization signals continuously reported by the display hardware according to the first frequency are received, the vertical synchronization signals are reported to the upper layer once, so that the vertical synchronization signals with different frequencies can be dynamically generated according to the requirements of the application programs, and the different requirements of different application programs on the refresh frame rate are met.
Drawings
FIG. 1 is a flowchart of a method for reporting a vertical synchronization signal according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a vertical synchronization signal reporting in the prior art;
fig. 3 is a schematic diagram of reporting a vertical synchronization signal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a reporting device for vertical synchronization signals according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a reporting device for vertical synchronization signals according to another embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
An embodiment of the present invention provides a method for reporting a vertical synchronization signal, as shown in fig. 1, where the method includes:
s11, receiving a vertical synchronizing signal reported by display hardware according to a first frequency.
And S12, after continuously receiving the preset number of vertical synchronous signals, reporting the vertical synchronous signals to a layer combining module once so that the layer combining module can apply the reported vertical synchronous signals to an upper layer according to a second frequency, wherein the first frequency is the preset number of times of the second frequency.
According to the method for reporting the vertical synchronization signal, which is provided by the embodiment of the invention, according to the refresh frame rate of the upper layer application, after the preset number of vertical synchronization signals continuously reported by the display hardware according to the first frequency are received, the vertical synchronization signals are reported to the upper layer once, so that the vertical synchronization signals with different frequencies can be dynamically generated according to the requirements of the application programs, and the different requirements of different application programs on the refresh frame rate are met.
The method for reporting the vertical synchronization signal according to the present invention will be described in detail with reference to specific embodiments.
As shown in fig. 2, in the prior art, display hardware of a bottom chip directly reports a hardware vertical synchronization signal VSync to a Surface Flinger of an Android system, and after the Surface Flinger performs software processing on the hardware vertical synchronization signal VSync, the software vertical synchronization signal VSync is reported to an application framework layer Android Framework according to the same frequency; then, the application framework layer Android Framework reports the software vertical synchronization signal VSync to the application layer Android APP according to the same frequency. Finally, the frequency of reporting the vertical synchronization signal VSync to the application layer Android APP is the same as the frequency of the vertical synchronization signal VSync generated by the display hardware, so that all applications of the upper layer refresh and display according to the same frame rate. Wherein the Surface Flinger functions to accept graphic display data from multiple sources, synthesize them, and then send them to a display device.
As shown in fig. 3, in this embodiment, after generating a hardware vertical synchronization signal VSync by display hardware of a bottom chip according to a first frequency and reporting the hardware vertical synchronization signal VSync to an upper layer, after continuously receiving a predetermined number of vertical synchronization signals, an adaptation layer between the display hardware and an Android system reports the hardware vertical synchronization signal VSync to a Surface Flinger of the Android system according to a second frequency, where the first frequency is a predetermined number of times that of the second frequency; then, after the Surface Flinger processes the hardware vertical synchronization signal VSync, the application framework layer Android Framework reports the software vertical synchronization signal VSync according to the second frequency, and then the application framework layer Android Framework reports the software vertical synchronization signal VSync to the application layer Android APP according to the second frequency. Therefore, for different applications of the upper layer, according to different refresh frame rates, the vertical synchronization signals with different frequencies can be generated by adjusting the preset number of the vertical synchronization signals, so that the vertical synchronization signals sent by the Surface Flinger to the upper layer application also have different frequencies, and different requirements of different application programs on the refresh frame rates are met.
Wherein the predetermined number of sizes is determined according to a refresh frame rate of an upper layer application.
Specifically, if the first frequency is F1, the refresh frame rate applied by the upper layer is F, and if F1/F is an integer, the predetermined number is equal to F1/F; if F1/F is not an integer, the predetermined number is equal to the integer closest to F1/F.
For example, if the display hardware reports the vertical synchronization signal at a frequency of 120 times per second, the refresh frame rate of the upper layer application is 40HZ, and the predetermined number is 3; if the display hardware reports the vertical synchronous signal according to the frequency of 120 times per second, the refresh frame rate of the upper layer application is 50HZ, and the preset number is 2; if the display hardware reports the vertical synchronization signal according to the frequency of 120 times per second, the refresh frame rate of the upper layer application is 45HZ, and the preset number is 3.
The embodiment of the invention also provides a device for reporting the vertical synchronization signal, as shown in fig. 4, which comprises:
a receiving unit 11, configured to receive a vertical synchronization signal reported by display hardware according to a first frequency;
and the reporting unit 12 is configured to report the vertical synchronization signal to the layer combining module once after continuously receiving a predetermined number of vertical synchronization signals, so that the layer combining module applies the report vertical synchronization signal to an upper layer according to a second frequency, where the first frequency is a predetermined number multiple of the second frequency.
According to the device for reporting the vertical synchronization signals, which is provided by the embodiment of the invention, according to the refresh frame rate of the upper layer application, after the preset number of vertical synchronization signals continuously reported by the display hardware according to the first frequency are received, the vertical synchronization signals are reported to the upper layer once, so that the vertical synchronization signals with different frequencies can be dynamically generated according to the requirements of the application programs, and the different requirements of different application programs on the refresh frame rate are met.
Optionally, the predetermined number of sizes is determined according to a refresh frame rate of an upper layer application.
Optionally, the layer synthesis module reports the vertical synchronization signal to the upper layer according to the second frequency, including: the layer synthesis module reports a vertical synchronization signal to an application frame layer according to a second frequency; and the application framework layer reports the vertical synchronous signal to the application layer according to the second frequency.
Optionally, under Android, the layer composition module is Surface Flinger.
The device of the present embodiment may be used to execute the technical solution of the foregoing method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The embodiment of the present invention further provides a device 2 for reporting a vertical synchronization signal, as shown in fig. 5, where the device includes:
a memory 21;
and a processor 22 coupled to the memory 21, the processor 22 being configured to perform the above-described reporting method of the vertical synchronization signal based on the instructions stored in the memory 21.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores computer instructions, and the computer instructions realize the method for reporting the vertical synchronization signal when being executed by a processor.
Those skilled in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by way of computer programs, which may be stored on a computer readable storage medium, which when executed may comprise the steps of the method embodiments described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (8)
1. The method for reporting the vertical synchronization signal is characterized by comprising the following steps:
receiving a vertical synchronous signal reported by display hardware according to a first frequency;
after continuously receiving a predetermined number of vertical synchronization signals, reporting the vertical synchronization signals to a layer synthesis module once, so that the layer synthesis module reports the vertical synchronization signals to an upper layer according to a second frequency, wherein the first frequency is a predetermined number times of the second frequency, and the magnitude of the predetermined number is determined according to a refresh frame rate applied to the upper layer.
2. The method of claim 1, wherein the layer synthesis module reporting the vertical synchronization signal to an upper layer application at the second frequency comprises: the layer synthesis module reports a vertical synchronization signal to an application frame layer according to a second frequency; and the application framework layer reports the vertical synchronous signal to the application layer according to the second frequency.
3. A method according to any one of claims 1 to 2, characterized in that the layer composition module is Surface Flinger under Android.
4. The utility model provides a report device of vertical synchronization signal which characterized in that includes:
the receiving unit is used for receiving the vertical synchronous signal reported by the display hardware according to the first frequency;
and the reporting unit is used for reporting the vertical synchronization signal once to the layer combining module after continuously receiving the preset number of the vertical synchronization signals, so that the layer combining module reports the vertical synchronization signal to the upper layer according to a second frequency, wherein the first frequency is the preset number times of the second frequency, and the preset number is determined according to the refresh frame rate of the upper layer application.
5. The apparatus of claim 4, wherein the layer synthesis module reporting the vertical synchronization signal to the upper layer application at the second frequency comprises: the layer synthesis module reports a vertical synchronization signal to an application frame layer according to a second frequency; and the application framework layer reports the vertical synchronous signal to the application layer according to the second frequency.
6. The apparatus of any one of claims 4 to 5, wherein the layer composition module is Surface Flinger under Android.
7. A reporting apparatus for a vertical synchronization signal, comprising:
a memory;
and a processor coupled to the memory, the processor configured to perform the method of reporting a vertical synchronization signal as claimed in any one of claims 1 to 3 based on instructions stored in the memory.
8. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the method of reporting a vertical synchronization signal according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110122542.6A CN112929511B (en) | 2021-01-29 | 2021-01-29 | Method and device for reporting vertical synchronization signal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110122542.6A CN112929511B (en) | 2021-01-29 | 2021-01-29 | Method and device for reporting vertical synchronization signal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112929511A CN112929511A (en) | 2021-06-08 |
CN112929511B true CN112929511B (en) | 2023-04-25 |
Family
ID=76168324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110122542.6A Active CN112929511B (en) | 2021-01-29 | 2021-01-29 | Method and device for reporting vertical synchronization signal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112929511B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113949918B (en) * | 2021-07-29 | 2024-07-23 | 努比亚技术有限公司 | Picture-in-picture display method, terminal and storage medium |
CN114040252B (en) * | 2021-11-03 | 2024-07-02 | Oppo广东移动通信有限公司 | Display frame rate control method and device, computer readable medium and electronic equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009159360A (en) * | 2007-12-27 | 2009-07-16 | Seiko Epson Corp | Program, image processing system, display device, and frequency determination method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102370331B1 (en) * | 2015-08-13 | 2022-03-07 | 삼성디스플레이 주식회사 | Display apparatus and method of driving the same |
US10019968B2 (en) * | 2015-12-31 | 2018-07-10 | Apple Inc. | Variable refresh rate display synchronization |
CN106933327B (en) * | 2017-03-10 | 2020-04-17 | Oppo广东移动通信有限公司 | Method and device for controlling frame rate of mobile terminal and mobile terminal |
CN106933526B (en) * | 2017-03-10 | 2019-03-15 | Oppo广东移动通信有限公司 | A kind of method, device and mobile terminal of dynamic regulation screen refresh rate |
CN112198954B (en) * | 2020-10-23 | 2022-10-21 | Tcl通讯(宁波)有限公司 | Frame rate setting method and device, storage medium and mobile terminal |
-
2021
- 2021-01-29 CN CN202110122542.6A patent/CN112929511B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009159360A (en) * | 2007-12-27 | 2009-07-16 | Seiko Epson Corp | Program, image processing system, display device, and frequency determination method |
Also Published As
Publication number | Publication date |
---|---|
CN112929511A (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI639989B (en) | Power optimization with dynamic frame rate support | |
CN110491351B (en) | Driving method and driving device of display panel and display device | |
JP6069354B2 (en) | Receiving apparatus, video refresh frequency control method, apparatus and system | |
CN112929511B (en) | Method and device for reporting vertical synchronization signal and computer readable storage medium | |
CN109992232B (en) | Image updating method, device, terminal and storage medium | |
US20200312270A1 (en) | Timing controller, display driving method and display device | |
CN116052618B (en) | Screen refresh rate switching method and electronic device | |
JP5770312B2 (en) | Reduced still image detection and resource usage on electronic devices | |
KR102234512B1 (en) | Display device, electronic device having display device and method of driving the same | |
KR20190117635A (en) | Method and apparatus for improving image fluency | |
CN114648951A (en) | Method for controlling dynamic change of screen refresh rate and electronic equipment | |
TWI509594B (en) | Method for synchronizing a display horizontal synchronization signal with an external horizontal synchronization signal | |
CN102270428A (en) | Display device and display interface refresh method and device | |
US20240296813A1 (en) | Refresh rate switching method and electronic device | |
CN106657681A (en) | Mobile terminal refresh rate control method and device and mobile terminal | |
CN112256223A (en) | Display fluency adjusting method and device and electronic equipment | |
CN110764725A (en) | Vehicle machine system main screen and auxiliary screen display method and device and electronic equipment | |
CN108769815B (en) | Video processing method and device | |
CN109783043A (en) | A kind of method, apparatus that display frequency is shown and display | |
CN103517051B (en) | Control method and electronic equipment | |
CN113823230B (en) | Backlight control method and device, storage medium and display device | |
US20220327977A1 (en) | Preemptive refresh for reduced display judder | |
CN116453472A (en) | Backlight adjustment method, medium and electronic device | |
CN116027930A (en) | Dynamic frame rate control method and device | |
CN103077000A (en) | Method and device for adjusting display effect |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |