WO2022057601A1 - Method and apparatus for sending image data - Google Patents
Method and apparatus for sending image data Download PDFInfo
- Publication number
- WO2022057601A1 WO2022057601A1 PCT/CN2021/115285 CN2021115285W WO2022057601A1 WO 2022057601 A1 WO2022057601 A1 WO 2022057601A1 CN 2021115285 W CN2021115285 W CN 2021115285W WO 2022057601 A1 WO2022057601 A1 WO 2022057601A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- refresh rate
- screen refresh
- duration
- horizontal
- power consumption
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/04—Synchronising
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/36—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/01—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
Definitions
- the present application relates to the field of terminal technologies, and in particular, to a method and apparatus for sending image data.
- electronic devices such as mobile phones and tablet computers gradually begin to support multiple screen refresh rates.
- the electronic device can switch different screen refresh rates for different display scenarios. For example, when the electronic device is interacting with the user through the screen or displaying game content, it can be displayed at a higher screen refresh rate, while other The timing can be switched to a lower screen refresh rate for display.
- an electronic device includes a system on chip (SOC) and a display module.
- SOC system on chip
- the SOC can send the image data included in one frame of image to the display module line by line for display based on the horizontal time sequence.
- the horizontal timing includes multiple pixel clocks (PCLK).
- PCLK cycle When the screen refresh rate is reduced, the SOC can increase the PCLK cycle (hereinafter referred to as the PCLK cycle), so that the time taken to transmit each line of images increases, and accordingly, the speed of sending and displaying each frame of image will also decrease.
- PCLK is the clock signal used to control the pixel output
- changing the PCLK cycle will make the image data transmission unstable, resulting in abnormal display such as black screen or blurry screen when the screen refresh rate is switched.
- the present application provides a method and apparatus for transmitting image data.
- an embodiment of the present application provides a method for sending image data, which is characterized by comprising:
- the horizontal timing sequence for sending image data to the display module is switched from the first horizontal timing sequence to the second horizontal timing sequence, and the first screen refresh rate is greater than the second screen refresh rate;
- the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area
- the PCLK period in the first horizontal timing sequence is the same as the PCLK period in the second horizontal timing sequence;
- the duration of the first effective display area is the same as the duration of the second effective display area
- the duration of the first horizontal blank blanking area is shorter than the duration of the second horizontal blank blanking zone.
- Hsync may indicate the arrival of one line of image data, and the line of image data includes a plurality of pixels.
- Hsync may be a pulse signal.
- Hsync ends and passes through HBP, the line of image data starts to be transmitted, wherein each pixel may occupy one PCLK.
- Hsync, HFP and HBP There is no image data transmission between Hsync, HFP and HBP, so this time is called the horizontal blanking area, and there is image data transmission between adjacent HBP and HFP, this time can be called the effective display area.
- the first horizontal timing sequence may be the horizontal timing sequence used by the electronic device to send image data to the display module when the screen refresh rate is the first screen refresh rate.
- the embodiments of the present application do not limit the triggering condition or method for switching the screen refresh rate.
- the electronic device may determine whether a user operation is received based on any window based on the interface manager 212, and if so, determine the higher screen refresh rate as the second screen refresh rate, otherwise determine the lower screen refresh rate as the first screen refresh rate Second screen refresh rate.
- the timing of sending image data by the display module can be switched from the first horizontal timing to the second Two-level timing.
- the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area
- the second horizontal timing sequence includes a second horizontal blank blanking area and a second effective display area.
- the duration of the first effective display area is the same as the duration of the second effective display area, and the duration of the first horizontal blanking area is smaller than that of the second
- the duration of the horizontal blanking area so when the screen refresh rate is reduced, you can increase the horizontal blanking area while keeping the PCLK cycle unchanged, thereby increasing the duration of the horizontal sequence, reducing the electronic equipment due to screen refresh.
- the phenomenon that the display rate is reduced and the display abnormality occurs, and the reliability of transmitting image data and displaying images based on the image data is improved.
- the first horizontal blank blanking region includes a first horizontal front porch (HFP), a first horizontal synchronization signal (Hsync) and a first horizontal back porch (HBP)
- the second horizontal blank blanking region includes a second HFP, a second Hsync and a second HBP;
- the duration of the first HFP is shorter than the duration of the second HFP; and/or the duration of the first Hsync is shorter than the duration of the second Hsync; and/or the duration of the first HBP is shorter than the duration of the first HFP Duration of the second HBP.
- the duration of the first HFP, the first Hsync and the first HBP in the first horizontal timing sequence are all 2 PCLK cycles
- the duration of the first horizontal blanking area is 6 PCLK cycles
- the duration of the first effective display area is 6 PCLK cycles. for 4 PCLK cycles.
- the second horizontal timing sequence may include the following four possible implementation manners: manner 1, the durations of the second HFP, the second Hsync and the second HBP are respectively 1 longer than the durations of the first HFP, the first Hsync and the first HBP PCLK cycle, the duration of the second horizontal timing sequence is 3 PCLK cycles longer than the duration of the first horizontal timing sequence, and the duration of the first effective display area is the same as the duration of the second effective display area;
- the duration of HFP is 3 PCLK cycles longer, the first Hsync, the first HBP and the first effective display area are respectively the same as the duration of the second Hsync, the second HBP and the second effective display area;
- Mode 3 The duration of the second Hsync 3 PCLK cycles longer than the duration of the first Hsync, the first HFP, the first HBP and the first effective display area are respectively the same as the duration of the second HFP, the second HBP and the second effective display area;
- the duration of the HBP is 3 PC
- the method before the switching of the horizontal timing sequence for sending image data to the display module from the first horizontal timing sequence to the second horizontal timing sequence, the method further includes:
- the first HFP, the first Hsync and the first HBP are respectively increased by M, P and Q PCLK cycles to obtain the second HFP, the second Hsync and the first HBP. 2HBP;
- the corresponding horizontal timing sequence may be obtained from the corresponding relationship between the screen refresh rate and the horizontal timing sequence as the second horizontal timing sequence.
- the duration of the first horizontal blanking area may be greater than the duration of the second horizontal blanking area: first HFP
- the duration of the first HBP is greater than the duration of the second HFP
- the duration of the first Hsync is greater than the duration of the second Hsync
- the duration of the first HBP is greater than the duration of the second HBP.
- the power consumption indicated by the first power consumption parameter is lower than that indicated by the second power consumption parameter corresponding to the first screen refresh rate power consumption.
- the image composition information including at least one of the number of layers and the total number of pixels in the layers;
- the determining of the first power consumption parameter corresponding to the second screen refresh rate includes:
- the second power consumption parameter is determined based on the second screen refresh rate and the image composition information.
- the image synthesis information may also include other types of information, such as the position of each layer.
- the current power consumption parameter of the display controller (display subsystem, DSS) is set as the first power consumption parameter, including at least one of the following:
- the second power consumption parameter includes a first physical clock, setting the physical clock of the DSS as the first physical clock;
- the voltage of the DSS is set to the first voltage.
- the power consumption parameter of the DSS can be switched from the second power consumption parameter to the first power consumption parameter, so as to save power consumption when the screen refresh rate decreases, and to reliably send image data when the screen refresh rate increases .
- the corresponding power consumption parameter may be obtained from the correspondence between the screen refresh rate and the power consumption parameter as the first power consumption parameter.
- the screen refresh rate change amount may be determined based on the first screen refresh rate and the second screen refresh rate, and based on the screen refresh rate change amount, from the correspondence between the screen refresh rate change amount and the power consumption parameter change amount In the relationship, the corresponding power consumption parameter variation is obtained, and the first power consumption parameter is determined based on the power consumption parameter variation and the second power consumption parameter.
- the corresponding power consumption parameter may be obtained from the correspondence between the image composition information and the power consumption parameter based on the image composition information of the current frame image, and determined as the first power consumption parameter.
- the power consumption indicated by the first power consumption parameter may be greater than the power consumption indicated by the second power consumption parameter.
- the at least one layer is synthesized to obtain the image data.
- a screen refresh rate switching notification is sent to the display module, where the screen refresh rate switching notification is used to instruct the current screen refresh rate to be switched to the second screen refresh rate.
- an apparatus for sending image data including:
- the processing module is configured to switch the horizontal timing sequence for sending image data to the display module from the first horizontal timing sequence to the second horizontal timing sequence when the screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate.
- a screen refresh rate is greater than the second screen refresh rate;
- the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area
- the PCLK period in the first horizontal timing sequence is the same as the PCLK period in the second horizontal timing sequence;
- the duration of the first effective display area is the same as the duration of the second effective display area
- the duration of the first horizontal blank blanking area is shorter than the duration of the second horizontal blank blanking zone.
- the first horizontal blank blanking area includes a first HFP, a first Hsync and a first HBP
- the second horizontal blank blanking area includes a second HFP, a second Hsync and a second HBP
- the duration of the first HFP is shorter than the duration of the second HFP; and/or the duration of the first Hsync is shorter than the duration of the second Hsync; and/or the duration of the first HBP is shorter than the duration of the first HFP Duration of the second HBP.
- processing module is also used for:
- the first HFP, the first Hsync and the first HBP are respectively increased by M, P and Q PCLK cycles to obtain the second HFP, the second Hsync and the first HBP. 2HBP;
- processing module is also used for:
- processing module is also used for:
- the image synthesis information including at least one of the number of layers and the total number of pixels in the layers;
- the second power consumption parameter is determined based on the second screen refresh rate and the image composition information.
- processing module is further configured to perform at least one of the following operations:
- the second power consumption parameter includes a first physical clock, setting the physical clock of the DSS as the first physical clock;
- the voltage of the DSS is set to the first voltage.
- processing module is also used for:
- the at least one layer is synthesized to obtain the image data.
- a sending module for:
- a screen refresh rate switching notification is sent to the display module, where the screen refresh rate switching notification is used to instruct the current screen refresh rate to be switched to the second screen refresh rate.
- an embodiment of the present application provides an electronic device, including: a memory and a processor, where the memory is used to store a computer program; the processor is used to execute the method described in any one of the first aspects when the computer program is invoked.
- an embodiment of the present application provides a chip system, the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory, so as to implement any one of the above first aspects. one of the methods described.
- the chip system may be a single chip or a chip module composed of multiple chips.
- an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method described in any one of the foregoing first aspects.
- an embodiment of the present application provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to execute the method described in any one of the first aspects above.
- 1 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
- FIG. 2 is a block diagram of a software structure of an electronic device provided by an embodiment of the present application.
- FIG. 3 is an abstract diagram of a MIPI timing sequence provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of a vertical timing sequence provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of a horizontal sequence provided by an embodiment of the present application.
- FIG. 6 is a sequence diagram of a method for sending image data provided by an embodiment of the present application.
- FIG. 7 is another schematic diagram of a horizontal timing sequence provided by an embodiment of the present application.
- FIG. 8 is another schematic diagram of a horizontal sequence provided by an embodiment of the present application.
- FIG. 9 is another schematic diagram of a horizontal timing sequence provided by an embodiment of the present application.
- FIG. 10 is another schematic diagram of a horizontal timing sequence provided by an embodiment of the present application.
- FIG. 11 is a schematic structural diagram of an apparatus for sending image data according to an embodiment of the application.
- FIG. 12 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
- the display method provided by the embodiments of the present application can be applied to mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, super mobile personal computers ( On electronic devices such as ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), the embodiment of the present application does not impose any restrictions on the specific type of the electronic device.
- AR augmented reality
- VR virtual reality
- PDA personal digital assistant
- FIG. 1 is a schematic structural diagram of an electronic device 100 provided by the present application.
- the electronic device 100 may include an SOC 110 and a liquid crystal display (LCD) display module (LCD module, LCM) 120 .
- LCD liquid crystal display
- LCM liquid crystal display
- the SOC 110 may include an application processor (application processor, AP) 111 , a DSS 112 and a mobile industry processor interface (mobile industry processor interface, MIPI) 113 .
- application processor application processor
- AP application processor
- DSS 112 DSS 112
- MIPI mobile industry processor interface
- AP111 can be an ultra-large-scale integrated circuit that expands audio and video functions and dedicated interfaces on the basis of a central processing unit (CPU), and can be used to process multimedia data such as images and music, including photography, music playback, radio, radio, video playback, etc.
- CPU central processing unit
- the DSS 112 can be used to obtain image data from the memory (not shown in FIG. 1 ) of the SOC 110 , and send the image data to the DDIC 122 in the LCM 120 through the MIPI interface 113 according to the MIPI timing sequence conforming to the MIPI protocol.
- the MIPI interface 113 includes a camera interface, a display interface, a radio frequency interface, a microphone interface and other interfaces.
- the display interface can be used for the above-mentioned communication between the DSS112 and the DDIC122, including sending image data through the MIPI timing sequence.
- the MIPI timing sequence is used to indicate the time sequence of sending the image data of one frame of image, so that the DDIC 122 receives the image data in an orderly manner and controls the display panel 121 to display the image.
- MIPI interface 113 may be integrated in DSS 112 .
- the LCM 120 may include a display panel 121 and a display drive integrated circuit (DDIC) 122 .
- the DDIC 122 can be used to receive image data sent from the DSS 112 according to a specific timing, and control the display panel 121 to control the corresponding liquid crystal molecules based on each pixel in the image data, so that the display panel 121 displays the image data.
- the DDIC 122 may also store the image data in an image register (graphics random-access memory, GRAM) 123 .
- GRAM graphics random-access memory
- the display panel 121 may be used to display image data.
- the display panel 121 can be an LCD panel, including a twisted nematic (TN) type panel, a vertical nematic (TA) type panel, an in-plane switching (IPS) type panel, a continuous firework-like arrangement (continuous pinwheel alignment, CPA) type panel or advanced super dimension switch (advanced super dimension switch, ADSDS) type panel.
- TN twisted nematic
- TA vertical nematic
- IPS in-plane switching
- CPA continuous pinwheel alignment
- ADSDS advanced super dimension switch
- the display panel 121 may also be other types of panels, and the embodiment of the present application does not specifically limit the type of the display panel 121 .
- the LCM 120 may further include more components, such as at least one of a connector, a support, a peripheral circuit and a backlight.
- the LCM 120 in the electronic device 100 may be replaced with other display modules, and the embodiment of the present application does not specifically limit the type of the display module.
- the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
- the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
- the electronic device 100 may further include an external memory interface, an internal memory, a universal serial bus (USB) interface, a charging management module, a power management module, a battery, an antenna, a mobile communication module, At least one of a wireless communication module, an audio module, a speaker, a receiver, a microphone, an earphone jack, a sensor module, a button, a motor, an indicator, a camera, a display screen, and a subscriber identification module (SIM) card interface.
- USB universal serial bus
- SIM subscriber identification module
- FIG. 2 is a software structural block diagram of an electronic device 100 provided by an embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
- the electronic device 100 includes a display framework layer 210, a hardware abstraction layer 220, a DSS driver layer 230 and an LCD driver layer 240, wherein the display framework layer 210 and the hardware abstraction layer 220 may be located at AP111 in FIG. 1, DSS
- the driving layer 230 may be located at the DSS 112 in FIG. 1
- the LCD driving layer 240 may be located at the DDIC 122 in FIG. 1 .
- the display frame layer 210 may include a window manager (window manager) 211 and an interface manager (surface flinger) 212.
- the display panel 121 of the electronic device 100 may display a plurality of windows (window, an abstract class related to display), such as a dialog box, a status bar and a floating window, and the content in each window may serve as a surface.
- the window manager 211 is an interface class, which defines several interfaces to manage the window, including judging whether there is a status bar, locking the screen, and capturing the screen.
- the interface manager 212 can obtain the interface in each window, thereby obtaining at least one layer, and send the obtained at least one layer and image composition information to the hardware abstraction layer 220, wherein each layer can include one interface.
- the interface manager 212 can also detect whether the corresponding window receives a user operation.
- the image synthesis information may include at least one of the number of layers and the total number of pixels in the layers. Of course, in practical applications, the image synthesis information may also include more information, such as the position of each layer.
- the hardware abstraction layer 220 may include an image synthesis module 221 and a screen refresh rate switching module 222 .
- the image synthesis module 221 may be configured to receive at least one layer and image synthesis information sent by the interface manager 212, and according to the image synthesis information, synthesize the at least one layer into a frame of image.
- the screen refresh rate switching module 222 can determine the current screen refresh rate according to the preset screen refresh rate policy. screen refresh rate.
- the hardware abstraction layer 220 may also include a power consumption module 223 .
- the DSS112 in Figure 1 can reduce the rate of sending image data to the DDIC122 through the MIPI interface 113, and the DSS112 can reduce the power consumption when the rate of sending image data is reduced; conversely, when the screen refresh rate is increased , the DSS112 can increase the rate of sending image data to the DDIC122 through the MIPI interface 113, and the DSS112 can increase the power consumption when increasing the rate of sending image data.
- the power consumption module 223 may determine the power consumption parameters of the DSS112 according to the current screen refresh rate, such as at least one of the physical clock and voltage of the DSS112.
- the DSS driving layer 230 may include a MIPI timing control module 231 .
- the MIPI timing control module 231 can determine the MIPI timing for sending image data to the LCD layer 240 according to the current screen refresh rate, and according to the MIPI timing, send the image data of the frame of image synthesized by the hardware abstraction layer 220 to the LCD layer Display unit 241 in 240.
- the DSS driving layer 230 may further include a clock control module 232 and a voltage control module 233 .
- the clock control module 232 may set the current physical clock of the DSS 112 as the physical clock determined by the power consumption module 223 .
- the voltage control module 233 may set the current voltage of the DSS 112 to the voltage determined by the power consumption module 223 .
- the LCD driving layer 240 may include the display unit 241 .
- the display unit 241 can be used to control the display panel 121 in FIG. 1 to display based on the received image data, including controlling the liquid crystal molecules corresponding to each pixel to display the pixel.
- the electronic device 100 may also include more or less layers, and each layer may include more or less modules.
- the image synthesis module 221 can be switched with the screen refresh rate Module 222 is integrated into one module.
- FIG. 3 is an abstract diagram of a MIPI timing sequence provided by an embodiment of the present application.
- MIPI timing can be used to indicate the timing of transmitting image data, including vertical timing and horizontal timing.
- the vertical synchronization signal (vertical synchronization, Vsync)
- Vsync vertical synchronization
- VFP vertical front porch
- VBP vertical back porch
- the image data of a certain frame of image is between adjacent VBPs and VFPs, and the image data will be transmitted by the SOC 110 to the LCM 120 for display line by line.
- Hsync may indicate the arrival of a line of image data, the line of image data including a plurality of pixels.
- one HFP may be included
- one HBP may be included
- between adjacent HBPs and HFPs is the line of image data.
- FIG. 3 in the process of displaying one frame of image, in addition to the time for actually transmitting image data, it also includes the time occupied by Vsync, VFP, VBP, Hsync, HFP and HBP.
- FIG. 4 is a schematic diagram of a vertical timing sequence provided by an embodiment of the present application.
- Vsync may be a pulse signal, and when Vsync ends and VBP passes, the image data of one frame of image starts to be transmitted, wherein each line of image data may be transmitted through a horizontal timing sequence.
- VFP and VBP there is no image data transmission. This period can be called the vertical blank blanking area, and there is image data transmission between adjacent VFP and VBP. Therefore, The time between adjacent VFPs and VBPs may be referred to as an active display area.
- FIG. 5 is a schematic diagram of a horizontal timing sequence provided by an embodiment of the present application.
- Hsync may be a pulse signal.
- Hsync ends and passes through HBP, the line of image data starts to be transmitted, wherein each pixel may occupy one PCLK.
- this period is called the horizontal blanking area, and there is image data transmission between adjacent HBP and HFP. , this period of time can be called the effective display area.
- FIG. 4 and FIG. 5 respectively explain the vertical timing sequence and the horizontal timing sequence of the DSS112 transmitting image data.
- the DDIC 122 can receive the image data according to the vertical timing sequence and the horizontal timing sequence and control the display panel 121 to display.
- Vsync, VFP, VBP, Hsync, HFP, HBP and PCLK can be generated by the DSS 112 in the aforementioned FIG. 1 . 4 and 5, the durations of Hsync, HFP, and HBP may be several PCLK cycles, and the durations of Vsync, VFP, and VBP may be several horizontal time sequences.
- FIG. 4 and FIG. 5 it can be seen from Figure 4 that the currently transmitted image includes 7 lines of image data. From Figure 5, it can be seen that each line of image data includes 4 pixels. It can be seen that the image data includes 7*4 of pixels. It should be noted that the embodiments of the present application only take FIG. 4 and FIG. 5 as examples to describe the MIPI timing sequence for transmitting image data, and do not limit the display panel 121 of the image and the resolution of the image. In practical applications, the panel 121 and the image can be of larger or smaller resolution, for example, the resolution can be 1366*768.
- electronic devices can support multiple screen refresh rates and switch the screen refresh rates.
- the PCLK period can be increased, so that each line of image data is transmitted in a longer time, and the image data of each frame of image will be transmitted more slowly. It also achieves the purpose of reducing the screen refresh rate.
- the horizontal timing sequence is similar to the horizontal timing sequence shown in FIG. 5 , which is only equivalent to extending the horizontal timing sequence shown in FIG. 5 laterally.
- PCLK is the clock signal for transmitting pixels. Changing the PCL cycle will make the image data transmission unstable, which will lead to abnormal display phenomena such as black screen or blurred screen when the screen refresh rate is switched.
- the present application proposes another method for sending image data.
- the timing of sending image data by the display module can be switched from the first horizontal timing to the second Two-level timing.
- the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area
- the second horizontal timing sequence includes a second horizontal blank blanking area and a second effective display area.
- the duration of the first effective display area is the same as the duration of the second effective display area, and the duration of the first horizontal blanking area is smaller than that of the second
- the duration of the horizontal blanking area so when the screen refresh rate is reduced, you can increase the horizontal blanking area while keeping the PCLK cycle unchanged, thereby increasing the duration of the horizontal sequence, reducing the electronic equipment due to screen refresh.
- the phenomenon that the display rate is reduced and the display abnormality occurs, and the reliability of transmitting image data and displaying images based on the image data is improved.
- FIG. 6 is a flowchart of a method for sending image data provided by an embodiment of the present application. It should be noted that the method is not limited to the specific sequence shown in FIG. 6 and the following, and it should be understood that in other embodiments, the sequence of some steps of the method may be exchanged according to actual needs, or some steps of the method may be exchanged. It can also be omitted or deleted.
- the method includes the following steps:
- the interface manager 212 acquires at least one layer and image composition information from the window manager 211 .
- the interface manager 212 can obtain the interface from at least one window manager 211 respectively when receiving the Vsync to obtain at least one layer, and can also obtain information such as the number of layers and the at least one layer. Image composition information such as the total number of pixels in the layer.
- the interface manager 212 may also acquire at least one layer and image composition information from the window manager 211 based on other trigger conditions.
- the embodiments of the present application do not specifically limit the triggering conditions for acquiring at least one layer and image synthesis information.
- the interface manager 212 sends the at least one layer and the image composition information to the image composition module 221.
- the interface manager 212 may send the image composition information to the power consumption module 223 .
- the image synthesizing module 221 synthesizes the at least one layer into one frame of image according to the image synthesizing information.
- the image synthesis module 221 may splicing and stacking the layers of the number of layers based on the total number of pixels of the layers, so as to obtain A frame of image, which is the current image to be displayed.
- the image synthesis module 221 can also synthesize the layers based on the positions of the layers.
- the image synthesis module 221 may synthesize the at least one layer into one frame of image according to the image synthesis information in other ways, or, in other embodiments, may be managed by the interface
- the device 212 synthesizes the at least one layer into a frame of image according to the image synthesis information, and the embodiment of the present application does not specifically limit the manner of synthesizing the at least one layer into a frame of image according to the image synthesis information.
- the screen refresh rate switching module 222 determines the current second screen refresh rate. After that, S605-S606 and S607-S609 can be executed respectively.
- the display panel 121 of the electronic device 100 can support multiple screen refresh rates and switch the screen refresh rates, before displaying a new frame of image, the current second screen refresh rate can be determined to ensure that the subsequent display panel 121 has the The image data displays the image correctly.
- the screen refresh rate switching module 222 may determine the current second screen refresh rate when receiving Vsync or when determining that the image synthesis module 221 has synthesized an image.
- the display panel 121 of the electronic device 100 may support two screen refresh rates.
- the screen refresh rate switching module 222 may determine whether a user operation is received based on any window based on the interface manager 212, and if so, determine the higher screen refresh rate as the second screen refresh rate, otherwise determine the lower screen refresh rate for the second screen refresh rate.
- the electronic device 100 may support more screen refresh rates, then the screen refresh rate switching module 222 may determine the second screen refresh rate in a similar or more complex manner, such as The frequency of the operation is determined, and the screen refresh rate corresponding to the frequency is determined as the second screen refresh rate.
- the screen refresh rate switching module 222 may also determine the second screen refresh rate in other ways based on other trigger conditions.
- the embodiments of the present application do not specify the trigger conditions and methods for determining the second screen refresh rate. limited.
- the screen refresh rate switching module 222 may send the second screen refresh rate to the power consumption module 223 .
- the power consumption module 223 determines the current first power consumption parameter.
- the subsequent DSS112 needs to send image data to the DDIC122 faster, and the corresponding power consumption will be larger, so in order to facilitate the subsequent
- the power consumption parameter of the DSS 112 is adjusted in time to ensure the reliability of sending image data, and the power consumption module 223 can determine the current second power consumption parameter.
- the second power consumption parameter may include at least one of the second physical clock and the second voltage of the DSS 112 .
- a corresponding power consumption parameter may be obtained from the correspondence between the screen refresh rate and the power consumption parameter as the first power consumption parameter.
- the refresh rate of the second screen is 90 Hz (Hertz)
- the clock 2 corresponding to 90 Hz can be obtained as the first physical clock
- the voltage 2 corresponding to 90 Hz can be obtained as the first voltage.
- the power consumption module 223 may determine the first screen refresh rate and the second power consumption parameter corresponding to the image of the previous frame adjacent to the image to be displayed. Based on the first screen refresh rate and the second screen refresh rate, determine the screen refresh rate variation, and based on the screen refresh rate variation, obtain the corresponding power from the correspondence between the screen refresh rate variation and the power consumption parameter variation The variation of the power consumption parameter is determined, and the first power consumption parameter is determined based on the variation of the power consumption parameter and the second power consumption parameter.
- the power consumption indicated by the first power consumption parameter when the refresh rate of the second screen is lower than the refresh rate of the first screen, the power consumption indicated by the first power consumption parameter may be smaller than the power consumption indicated by the second power consumption parameter, for example, the second power consumption parameter may include the second physical at least one of the clock and the second voltage, the frequency of the first physical clock may be lower than the frequency of the second physical clock, and the first voltage may be lower than the second voltage.
- the power consumption indicated by the first power consumption parameter may be greater than the power consumption indicated by the second power consumption parameter.
- the corresponding power consumption parameter may be obtained from the correspondence between the image composition information and the power consumption parameter, and determined as the first power consumption parameter.
- the image synthesis information includes the number of layers and the total number of pixels in the layer
- the power consumption parameters include the physical clock and voltage of the DSS112. If the image synthesis information corresponding to the current frame image includes 4 layers and the total number of pixels in the layers is 400,000 pixels, the corresponding clock 3 is obtained as the first physical clock, and the corresponding voltage 3 is obtained as the first voltage.
- the parameters between the screen refresh rate, the image composition information and the power consumption parameter may be determined based on the second screen refresh rate and the image composition information.
- the corresponding power consumption parameter is obtained as the first power consumption parameter; or, when the first power consumption parameter is determined based on the second screen refresh rate and image composition information, the second screen refresh rate and the image composition information can be determined based on the second screen refresh rate and image composition respectively.
- the information determines the power consumption parameter, and obtains the average value of the two power consumption parameters as the first power consumption parameter.
- the above-mentioned correspondence between the screen refresh rate and the power consumption parameter, the correspondence between the image synthesis information and the power consumption parameter, or the correspondence between the screen refresh rate, the image synthesis information and the power consumption parameter It can be obtained by setting in advance.
- the power consumption module 223 may send a physical clock control notification to the clock control module 232, the physical clock control notification carrying the first physical clock; and/or the power consumption module 223 may send a voltage control notification to the voltage control module 233 notification, the voltage control notification carries the first voltage.
- the clock control module 232 sets the current physical clock of the DSS 112 as the first physical clock, and/or the voltage control module 233 sets the current voltage of the DSS 112 as the first voltage.
- DSS112 can send image data to DDIC122 according to the speed corresponding to the screen refresh rate.
- Matching the refresh rate includes reducing the power consumption of the DSS112 in time when the screen refresh rate decreases, and the clock control module 232 and the voltage control module 233 can respectively control the current physical clock and voltage of the DSS112.
- the power consumption parameter of the DSS 112 may not be adjusted, that is, S605 and S606 are optional steps.
- the MIPI timing control module 231 determines the second horizontal timing corresponding to the second screen refresh.
- the DSS 112 transmits the image data line by line to the DDIC 122 through the horizontal timing sequence. Therefore, in order to ensure that the DDIC 122 correctly receives and displays the image, a second horizontal timing corresponding to the second screen refresh rate may be determined.
- the second horizontal timing sequence may include a second horizontal blank blanking area and a second effective display area, and the second horizontal blank blanking area may include a second HFP, a second Hsync, and a second HBP.
- the horizontal timing sequence includes: The time duration occupied by the effective display area may be the same.
- determining the second horizontal timing sequence may include determining the second HFP, the second Hsync, and the second HBP.
- the MIPI timing control module 231 may determine the first screen refresh rate when the image data corresponding to the previous frame image adjacent to the currently to-be-displayed image is sent.
- the MIPI timing control module 231 may determine the second horizontal timing sequence corresponding to the second screen refresh rate when it is determined that the first screen refresh rate is different from the second screen refresh rate, that is, the current screen refresh rate needs to be switched.
- the PCLK cycle in the second horizontal sequence can be the same as the PCLK cycle in the first horizontal sequence, that is, the PCLK cycle does not need to be changed when the screen refresh rate is switched, which reduces abnormal display phenomena such as black screen and blurred screen, and improves the sending of images.
- the duration of the first effective display area may be the same as the duration of the second effective display area.
- the duration of the first horizontal blanking area can be shorter than that of the second horizontal blanking area: the duration of the first HFP is shorter than that of the second HFP and/or, the duration of the first Hsync is shorter than the duration of the second Hsync; and/or, the duration of the first HBP is shorter than the duration of the second HBP.
- the duration of the first horizontal blanking area can be longer than that of the second horizontal blanking area: the duration of the first HFP is longer than that of the second HFP and/or, the duration of the first Hsync is greater than the duration of the second Hsync; and/or the duration of the first HBP is greater than the duration of the second HBP.
- the MIPI timing control module 231 may obtain the corresponding horizontal timing as the second horizontal timing from the correspondence between the screen refresh rate and the horizontal timing based on the second screen refresh rate.
- the refresh rate of the second screen is 90Hz
- the corresponding second horizontal timing sequence including the second HFP, the second Hsync and the second HBP can be all 3 PCLK cycles, as shown in Figure 7 Show.
- the MIPI timing control module 231 may acquire a first horizontal timing sequence corresponding to the first screen refresh, wherein the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area, and the first horizontal blank blanking
- the zone includes a first HFP, a first Hsync, and a first HBP.
- a screen refresh rate variation is determined, and a horizontal timing variation is determined based on the screen refresh rate variation, where the horizontal timing variation includes N PCLK cycles.
- the amount of screen refresh rate variation the first screen refresh rate - the second screen refresh rate. If the change of the screen refresh rate is greater than 0, it means that the screen refresh rate is reduced.
- the change in the screen refresh rate is less than 0, it means that the screen refresh rate is increased, and the first HFP, the first Hsync and the first HBP can be reduced by M, P and Q PCLK cycles respectively based on the horizontal timing change.
- the second HFP, the second Hsync and the second HBP are obtained, that is, N PCLK cycles are extracted from at least one of the first HFP, the first Hsync and the first HBP, thereby reducing the duration of the horizontal blanking area.
- the acquired first horizontal timing sequence is as shown in FIG. 5 above, the durations of the first HFP, the first Hsync and the first HBP are all 2 PCLK cycles, and the duration of the first horizontal blanking area is 6 PCLKs cycle, the duration of the first effective display area is 4 PCLK cycles.
- the duration of the second HFP, the second Hsync and the second HBP is 1 PCLK cycle longer than the duration of the first HFP, the first Hsync and the first HBP respectively, and the duration of the second horizontal sequence is longer than that of the first HFP, the first Hsync and the first HBP respectively.
- the duration of the horizontal timing sequence is 3 PCLK cycles longer, and the duration of the first effective display area is the same as the duration of the second effective display area.
- FIG. 8 to FIG. 10 respectively provide a schematic diagram of a horizontal timing sequence.
- the duration of the second HFP is 3 PCLK cycles longer than the duration of the first HFP, and the first Hsync, the first HBP and the first effective display area are The second HBP and the second active display area have the same duration.
- the duration of the second Hsync is longer than the duration of the first Hsync by 3 PCLK cycles, and the first HFP, the first HBP and the first effective display area are the same as the second HFP, The second HBP and the second active display area have the same duration.
- the duration of the second HBP is 3 PCLKs longer than the duration of the first HBP, and the first HFP, the first Hsync and the first effective display area are The duration of the second Hsync and the second effective display area is the same.
- the MIPI timing control module 231 sends image data to the display unit 241 based on the second horizontal timing.
- the MIPI timing control module 231 may, based on the MIPI interface 113, start from the first line of image data of the image, and based on the first horizontal timing, send a plurality of pixels included in the first line of image data to the display unit 241, and then, based on the first line of image data, to the display unit 241 In the horizontal timing sequence, the plurality of pixels included in the image data of the second line are sent to the display unit 241, . . . , until the plurality of pixels included in the image data of the next line are sent.
- the MIPI timing control module 231 may also send a screen refresh rate switching notification to the display unit 241, where the screen refresh rate switching notification is used to notify the display unit 241 to switch the current screen refresh rate to the second screen refresh rate.
- the display unit 241 displays an image based on the received image data.
- the display unit 241 may receive a plurality of pixels included in the first line of image data based on the first horizontal timing sequence, and control the display panel 121 to display the first line of image data, . . . , until the last line of image data is displayed, the display panel 121 may completely display the image corresponding to the second image data.
- steps of S605-S606 for setting the current physical clock and voltage of the DSS112 and the steps of S607-S609 for transmitting and displaying image data based on the current screen refresh rate can be performed independently.
- the timing of sending image data by the display module can be switched from the first horizontal timing to the second Two-level timing.
- the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area
- the second horizontal timing sequence includes a second horizontal blank blanking area and a second effective display area.
- the duration of the first effective display area is the same as the duration of the second effective display area, and the duration of the first horizontal blanking area is smaller than that of the second
- the duration of the horizontal blanking area so when the screen refresh rate is reduced, you can increase the horizontal blanking area while keeping the PCLK cycle unchanged, thereby increasing the duration of the horizontal sequence, reducing the electronic equipment due to screen refresh.
- the phenomenon that the display rate is reduced and the display abnormality occurs, and the reliability of transmitting image data and displaying images based on the image data is improved.
- an embodiment of the present application further provides an apparatus 1100 for sending image data, the apparatus 1100 can be set in the SOC 110 of the aforementioned electronic device 100, and the apparatus 1100 includes:
- the processing module 1101 is used to switch the horizontal timing sequence of sending image data to the display module from the first horizontal timing sequence to the second horizontal timing sequence when the screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate.
- the screen refresh rate is greater than the second screen refresh rate;
- the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area
- the PCLK period in the first horizontal timing sequence is the same as the PCLK period in the second horizontal timing sequence;
- the duration of the first effective display area is the same as the duration of the second effective display area
- the duration of the first horizontal blank blanking area is shorter than the duration of the second horizontal blank blanking zone.
- the first horizontal blank blanking area includes a first HFP, a first Hsync and a first HBP
- the second horizontal blank blanking area includes a second HFP, a second Hsync and a second HBP
- the duration of the first HFP is shorter than the duration of the second HFP; and/or the duration of the first Hsync is shorter than the duration of the second Hsync; and/or the duration of the first HBP is shorter than the duration of the second HBP.
- processing module is also used to:
- the first HFP, the first Hsync and the first HBP are respectively increased by M, P and Q PCLK cycles to obtain the second HFP, the second Hsync and the second HBP;
- processing module is also used to:
- the current power consumption parameter of the DSS is set as the first power consumption parameter, and the power consumption indicated by the first power consumption parameter is lower than the power consumption indicated by the second power consumption parameter corresponding to the first screen refresh rate.
- processing module is also used to:
- the image synthesis information includes at least one of the number of layers and the total number of pixels in the layers;
- the second power consumption parameter is determined based on the second screen refresh rate and the image composition information.
- processing module is further configured to perform at least one of the following operations:
- the second power consumption parameter includes the first physical clock, setting the physical clock of the DSS as the first physical clock;
- the voltage of the DSS is set to the first voltage.
- processing module is also used to:
- a sending module for:
- the apparatus 1100 for sending image data provided in this embodiment may execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
- FIG. 12 is a schematic structural diagram of an electronic device 1200 provided by an embodiment of the present application.
- the electronic device 1200 provided by this embodiment includes: a memory 1210 and a processor 1220.
- the memory 1210 is used to store computer programs; The methods described in the above method embodiments are executed when the computer program is invoked.
- the electronic device 1200 provided in this embodiment can execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
- an embodiment of the present application also provides a chip system.
- the chip system includes a processor coupled with a memory, and the processor executes a computer program stored in the memory, so as to implement the method described in the first aspect or any one of the implementation manners of the first aspect.
- the chip system may be a single chip, or a chip module composed of multiple chips.
- Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the foregoing method embodiment is implemented.
- the embodiment of the present application further provides a computer program product, when the computer program product runs on the electronic device 1200, the electronic device 1200 implements the method described in the foregoing method embodiments when executed.
- the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium.
- the present application realizes all or part of the processes in the methods of the above embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium.
- the steps of each of the above method embodiments can be implemented.
- the computer program includes computer program code
- the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like.
- the computer-readable storage medium may include at least: any entity or device capable of carrying computer program codes to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM), random access Memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
- ROM read-only memory
- RAM random access Memory
- electrical carrier signals telecommunication signals
- software distribution media For example, U disk, mobile hard disk, disk or CD, etc.
- computer readable media may not be electrical carrier signals and telecommunications signals.
- the disclosed apparatus/device and method may be implemented in other manners.
- the apparatus/equipment embodiments described above are only illustrative.
- the division of the modules or units is only a logical function division.
- the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
- the term “if” may be contextually interpreted as “when” or “once” or “in response to determining” or “in response to detecting “.
- the phrases “if it is determined” or “if the [described condition or event] is detected” may be interpreted, depending on the context, to mean “once it is determined” or “in response to the determination” or “once the [described condition or event] is detected. ]” or “in response to detection of the [described condition or event]”.
- references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
- appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
- the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Chemical & Material Sciences (AREA)
- Human Computer Interaction (AREA)
- Crystallography & Structural Chemistry (AREA)
- General Engineering & Computer Science (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The present application relates to the technical field of terminals. Provided are a method and apparatus for sending image data. The method comprises: when a screen refresh rate is switched from a first screen refresh rate to a second screen refresh rate, switching a horizontal timing for sending image data to a display module from a first horizontal timing to a second horizontal timing. The first screen refresh rate is greater than the second screen refresh rate; the first horizontal timing comprises a first horizontal blanking region and a first active display region; the second horizontal timing comprises a second horizontal blanking region and a second active display region; a PCLK period in the first horizontal timing is the same as a PCLK period in the second horizontal timing; the duration of the first active display region is the same as the duration of the second active display region; the duration of the first horizontal blanking region is less than the duration of the second horizontal blanking region. According to the technical solution provided in the present application, the phenomenon of abnormal display of an electronic device caused by decrease in screen refresh rate is reduced.
Description
本申请要求于2020年09月18日提交国家知识产权局、申请号为202010988832.4、申请名称为“发送图像数据的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010988832.4 and the application title "Method and Device for Sending Image Data", which was submitted to the State Intellectual Property Office on September 18, 2020, the entire contents of which are incorporated into this application by reference middle.
本申请涉及终端技术领域,尤其涉及一种发送图像数据的方法及装置。The present application relates to the field of terminal technologies, and in particular, to a method and apparatus for sending image data.
目前,手机和平板电脑等电子设备逐渐开始支持多种屏幕刷新率。电子设备可以针对不同的显示场景,可以切换不同的屏幕刷新率,比如当电子设备正在通过屏幕与用户进行交互时或者正在显示游戏内容时,可以通过较高的屏幕刷新率进行显示,而在其他时机可以切换至较低的屏幕刷新率进行显示。At present, electronic devices such as mobile phones and tablet computers gradually begin to support multiple screen refresh rates. The electronic device can switch different screen refresh rates for different display scenarios. For example, when the electronic device is interacting with the user through the screen or displaying game content, it can be displayed at a higher screen refresh rate, while other The timing can be switched to a lower screen refresh rate for display.
现有技术中,电子设备包括片上系统(system on chip,SOC)和显示模组。SOC可以基于水平时序将一帧图像中所包括的图像数据逐行发送给显示模组进行显示。该水平时序包括多个像素时钟(pixel clock,PCLK)。当屏幕刷新率降低时,SOC可以增大PCLK的周期(以下简称PCLK周期),使传输每行图像所占的时长增大,相应的,发送和显示每帧图像的速度也会降低。In the prior art, an electronic device includes a system on chip (SOC) and a display module. The SOC can send the image data included in one frame of image to the display module line by line for display based on the horizontal time sequence. The horizontal timing includes multiple pixel clocks (PCLK). When the screen refresh rate is reduced, the SOC can increase the PCLK cycle (hereinafter referred to as the PCLK cycle), so that the time taken to transmit each line of images increases, and accordingly, the speed of sending and displaying each frame of image will also decrease.
但由于PCLK是用于控制像素输出的时钟信号,改变PCLK周期,会使图像数据传输不稳定,从而导致在切换屏幕刷新率时,会出现显示黑屏或花屏等显示异常的现象。However, since PCLK is the clock signal used to control the pixel output, changing the PCLK cycle will make the image data transmission unstable, resulting in abnormal display such as black screen or blurry screen when the screen refresh rate is switched.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供一种发送图像数据的方法及装置。In view of this, the present application provides a method and apparatus for transmitting image data.
为了实现上述目的,第一方面,本申请实施例提供发送图像数据的方法,其特征在于,包括:In order to achieve the above purpose, in the first aspect, an embodiment of the present application provides a method for sending image data, which is characterized by comprising:
当屏幕刷新率由第一屏幕刷新率切换至第二屏幕刷新率时,将向显示模组发送图像数据的水平时序从第一水平时序切换至第二水平时序,所述第一屏幕刷新率大于所述第二屏幕刷新率;When the screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate, the horizontal timing sequence for sending image data to the display module is switched from the first horizontal timing sequence to the second horizontal timing sequence, and the first screen refresh rate is greater than the second screen refresh rate;
其中,所述第一水平时序包括第一水平空白消隐区和第一有效显示区;Wherein, the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area;
所述第二水平时序包括的第二水平空白消隐区和第二有效显示区;a second horizontal blank blanking area and a second effective display area included in the second horizontal timing sequence;
所述第一水平时序中的PCLK周期和所述第二水平时序中的PCLK周期相同;The PCLK period in the first horizontal timing sequence is the same as the PCLK period in the second horizontal timing sequence;
所述第一有效显示区的时长和所述第二有效显示区的时长相同;The duration of the first effective display area is the same as the duration of the second effective display area;
所述第一水平空白消隐区的时长小于所述第二水平空白消隐区的时长。The duration of the first horizontal blank blanking area is shorter than the duration of the second horizontal blank blanking zone.
其中,在水平时序中,Hsync可以表示一行图像数据的到来,该行图像数据包括多个像素。Hsync可以是一个脉冲信号,当Hsync结束并经过HBP时,该行图像数据开始传输,其中,每个像素可以占用一个PCLK。在Hsync、HFP和HBP之间,并没 有图像数据传输,所以这段时间所以被称为水平空白消隐区,而相邻的HBP和HFP之间是有图像数据传输的,这段时间可以被称为有效显示区。Wherein, in the horizontal timing sequence, Hsync may indicate the arrival of one line of image data, and the line of image data includes a plurality of pixels. Hsync may be a pulse signal. When Hsync ends and passes through HBP, the line of image data starts to be transmitted, wherein each pixel may occupy one PCLK. There is no image data transmission between Hsync, HFP and HBP, so this time is called the horizontal blanking area, and there is image data transmission between adjacent HBP and HFP, this time can be called the effective display area.
需要说明的是,第一水平时序可以是电子设备在屏幕刷新率为第一屏幕刷新率时,向显示模组发送图像数据所采用水平时序。It should be noted that the first horizontal timing sequence may be the horizontal timing sequence used by the electronic device to send image data to the display module when the screen refresh rate is the first screen refresh rate.
还需要说明的,本申请实施例对切换屏幕刷新率的触发条件或方式不进行限定。例如,电子设备可以基于界面管理器212确定是否基于任一窗口接收到用户操作,如果是则将较高的屏幕刷新率确定为第二屏幕刷新率,否则将较低的屏幕刷新率确定为第二屏幕刷新率。It should also be noted that the embodiments of the present application do not limit the triggering condition or method for switching the screen refresh rate. For example, the electronic device may determine whether a user operation is received based on any window based on the interface manager 212, and if so, determine the higher screen refresh rate as the second screen refresh rate, otherwise determine the lower screen refresh rate as the first screen refresh rate Second screen refresh rate.
在本申请实施例中,当屏幕刷新率由较大的第一屏幕刷新率切换至较小的第二屏幕刷新率时,可以将显示模组发送图像数据的时序从第一水平时序切换至第二水平时序。其中,第一水平时序包括第一水平空白消隐区和第一有效显示区,第二水平时序包括第二水平空白消隐区和第二有效显示区。由于第一水平时序中的PCLK周期与第二水平时序包括的PCLK周期相同,第一有效显示区的时长和第二有效显示区的时长相同,而第一水平空白消隐区的时长小于第二水平空白消隐区的时长,因此当屏幕刷新率降低时,可以在保持PCLK周期不变的情况下,增大水平空白消隐区,进而增大水平时序的时长,减少了电子设备因屏幕刷新率降低而出现显示异常的现象,提高了传输图像数据和基于该图像数据显示图像的可靠性。In the embodiment of the present application, when the screen refresh rate is switched from a relatively large first screen refresh rate to a relatively small second screen refresh rate, the timing of sending image data by the display module can be switched from the first horizontal timing to the second Two-level timing. The first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area, and the second horizontal timing sequence includes a second horizontal blank blanking area and a second effective display area. Since the PCLK cycle in the first horizontal timing sequence is the same as the PCLK cycle included in the second horizontal timing sequence, the duration of the first effective display area is the same as the duration of the second effective display area, and the duration of the first horizontal blanking area is smaller than that of the second The duration of the horizontal blanking area, so when the screen refresh rate is reduced, you can increase the horizontal blanking area while keeping the PCLK cycle unchanged, thereby increasing the duration of the horizontal sequence, reducing the electronic equipment due to screen refresh. The phenomenon that the display rate is reduced and the display abnormality occurs, and the reliability of transmitting image data and displaying images based on the image data is improved.
可选地,所述第一水平空白消隐区包括第一水平前沿(horizontal front porch,HFP)、第一水平同步信号(horizontal synchronization,Hsync)和第一水平后沿(horizontal back porch,HBP),所述第二水平空白消隐区包括第二HFP、第二Hsync和第二HBP;Optionally, the first horizontal blank blanking region includes a first horizontal front porch (HFP), a first horizontal synchronization signal (Hsync) and a first horizontal back porch (HBP) , the second horizontal blank blanking region includes a second HFP, a second Hsync and a second HBP;
所述第一HFP的时长小于所述第二HFP的时长;和/或,所述第一Hsync的时长小于所述第二Hsync的时长;和/或,所述第一HBP的时长小于所述第二HBP的时长。The duration of the first HFP is shorter than the duration of the second HFP; and/or the duration of the first Hsync is shorter than the duration of the second Hsync; and/or the duration of the first HBP is shorter than the duration of the first HFP Duration of the second HBP.
例如,第一水平时序中的第一HFP、第一Hsync和第一HBP的时长均为2个PCLK周期,第一水平空白消隐区的时长为6个PCLK周期,第一有效显示区的时长为4个PCLK周期。第二水平时序可以包括下述四种可能的实现方式:方式一,第二HFP、第二Hsync和第二HBP的时长,分别比第一HFP、第一Hsync和第一HBP的时长大1个PCLK周期,第二水平时序的时长比第一水平时序的时长大3个PCLK周期,第一有效显示区的时长与第二有效显示区的时长相同;方式二,第二HFP的时长比第一HFP的时长大3个PCLK周期,第一Hsync、第一HBP和第一有效显示区,分别与第二Hsync、第二HBP和第二有效显示区的时长相同;方式三:第二Hsync的时长比第一Hsync的时长大3个PCLK周期,第一HFP、第一HBP和第一有效显示区,分别与第二HFP、第二HBP和第二有效显示区的时长相同;方式四:第二HBP的时长比第一HBP的时长大3个PCLK,第一HFP、第一Hsync和第一有效显示区,分别与第二HFP、第二Hsync和第二有效显示区的时长相同。For example, the duration of the first HFP, the first Hsync and the first HBP in the first horizontal timing sequence are all 2 PCLK cycles, the duration of the first horizontal blanking area is 6 PCLK cycles, and the duration of the first effective display area is 6 PCLK cycles. for 4 PCLK cycles. The second horizontal timing sequence may include the following four possible implementation manners: manner 1, the durations of the second HFP, the second Hsync and the second HBP are respectively 1 longer than the durations of the first HFP, the first Hsync and the first HBP PCLK cycle, the duration of the second horizontal timing sequence is 3 PCLK cycles longer than the duration of the first horizontal timing sequence, and the duration of the first effective display area is the same as the duration of the second effective display area; The duration of HFP is 3 PCLK cycles longer, the first Hsync, the first HBP and the first effective display area are respectively the same as the duration of the second Hsync, the second HBP and the second effective display area; Mode 3: The duration of the second Hsync 3 PCLK cycles longer than the duration of the first Hsync, the first HFP, the first HBP and the first effective display area are respectively the same as the duration of the second HFP, the second HBP and the second effective display area; The duration of the HBP is 3 PCLKs longer than the duration of the first HBP, and the durations of the first HFP, the first Hsync and the first effective display area are respectively the same as the durations of the second HFP, the second Hsync and the second effective display area.
可选地,在所述将向显示模组发送图像数据的水平时序从第一水平时序切换至第二水平时序之前,还包括:Optionally, before the switching of the horizontal timing sequence for sending image data to the display module from the first horizontal timing sequence to the second horizontal timing sequence, the method further includes:
基于所述第一屏幕刷新率和所述第二屏幕刷新率,确定屏幕刷新率变化量;based on the first screen refresh rate and the second screen refresh rate, determining an amount of screen refresh rate variation;
基于所述屏幕刷新率变化量,确定水平时序变化量,所述水平时序变化量为N个PCLK周期;Determine the horizontal timing variation based on the screen refresh rate variation, where the horizontal timing variation is N PCLK cycles;
基于所述水平时序变化量,分别将所述第一HFP、所述第一Hsync和所述第一HBP增大M、P和Q个PCLK周期,得到所述第二HFP、第二Hsync和第二HBP;Based on the horizontal timing change amount, the first HFP, the first Hsync and the first HBP are respectively increased by M, P and Q PCLK cycles to obtain the second HFP, the second Hsync and the first HBP. 2HBP;
其中,N、M、P和Q为整数,且M+P+Q=N。where N, M, P and Q are integers, and M+P+Q=N.
在一些实施例中,可以基于第二屏幕刷新率,从屏幕刷新率与水平时序之间的对应关系中,获取对应的水平时序作为第二水平时序。In some embodiments, based on the second screen refresh rate, the corresponding horizontal timing sequence may be obtained from the corresponding relationship between the screen refresh rate and the horizontal timing sequence as the second horizontal timing sequence.
在一些实施例中,当第一屏幕刷新率小于第二屏幕刷新率,即提高屏幕刷新率时,第一水平空白消隐区的时长可以大于第二水平空白消隐区的时长:第一HFP的时长大于第二HFP的时长;和/或,第一Hsync的时长大于第二Hsync的时长;和/或,第一HBP的时长大于第二HBP的时长。In some embodiments, when the first screen refresh rate is lower than the second screen refresh rate, that is, when the screen refresh rate is increased, the duration of the first horizontal blanking area may be greater than the duration of the second horizontal blanking area: first HFP The duration of the first HBP is greater than the duration of the second HFP; and/or the duration of the first Hsync is greater than the duration of the second Hsync; and/or the duration of the first HBP is greater than the duration of the second HBP.
可选地,还包括:Optionally, also include:
当所述屏幕刷新率由所述第一屏幕刷新率切换至所述第二屏幕刷新率时,确定与所述第二屏幕刷新率对应的第一功耗参数;When the screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate, determining a first power consumption parameter corresponding to the second screen refresh rate;
将显示控制器DSS当前的功耗参数设置为所述第一功耗参数,所述第一功耗参数所指示的功耗低于所述第一屏幕刷新率对应的第二功耗参数所指示的功耗。Setting the current power consumption parameter of the display controller DSS as the first power consumption parameter, the power consumption indicated by the first power consumption parameter is lower than that indicated by the second power consumption parameter corresponding to the first screen refresh rate power consumption.
可选地,还包括:Optionally, also include:
获取与所述图像数据对应的图像合成信息,所述图像合成信息包括图层数目和图层总像素数目中的至少一个;acquiring image composition information corresponding to the image data, the image composition information including at least one of the number of layers and the total number of pixels in the layers;
所述确定与所述第二屏幕刷新率对应的第一功耗参数,包括:The determining of the first power consumption parameter corresponding to the second screen refresh rate includes:
基于所述第二屏幕刷新率和所述图像合成信息,确定所述第二功耗参数。The second power consumption parameter is determined based on the second screen refresh rate and the image composition information.
需要说明的是,在实际应用中,图像合成信息还可以包括其他类型的信息,比如各图层的位置。It should be noted that, in practical applications, the image synthesis information may also include other types of information, such as the position of each layer.
可选地,将显示控制器(display subsystem,DSS)当前的功耗参数设置为所述第一功耗参数,包括下述至少一项:Optionally, the current power consumption parameter of the display controller (display subsystem, DSS) is set as the first power consumption parameter, including at least one of the following:
当所述第二功耗参数包括第一物理时钟时,将所述DSS的物理时钟设置为所述第一物理时钟;When the second power consumption parameter includes a first physical clock, setting the physical clock of the DSS as the first physical clock;
当所述第二功耗参数包括第一电压时,将所述DSS的电压设置为所述第一电压。When the second power consumption parameter includes a first voltage, the voltage of the DSS is set to the first voltage.
由于当屏幕刷新率越高、图层数目越多、图层总像素数目越大时,向显示模组发送图像数据的速度也要越快,相应的功耗也会越大,因此,当屏幕刷新率变化时,可以将DSS的功耗参数从第二功耗参数切换至第一功耗参数,以在屏幕刷新率降低时,节省功耗,在屏幕刷新率提高时,可靠地发送图像数据。Because when the screen refresh rate is higher, the number of layers is larger, and the total number of pixels in the layer is larger, the speed of sending image data to the display module is also faster, and the corresponding power consumption is also larger. Therefore, when the screen is When the refresh rate changes, the power consumption parameter of the DSS can be switched from the second power consumption parameter to the first power consumption parameter, so as to save power consumption when the screen refresh rate decreases, and to reliably send image data when the screen refresh rate increases .
在一些实施例中,可以基于第二屏幕刷新率,从屏幕刷新率与功耗参数之间的对应关系中,获取对应的功耗参数作为第一功耗参数。在一些实施例中,可以基于第一屏幕刷新率和第二屏幕刷新率,确定屏幕刷新率变化量,基于屏幕刷新率变化量,从屏幕刷新率变化量与功耗参数变化量之间的对应关系中,获取对应的功耗参数变化量,基于功耗参数变化量和第二功耗参数,确定第一功耗参数。在一些实施例中,可以基于当前帧图像的图像合成信息,从图像合成信息与功耗参数之间的对应关系中,获取对应的功耗参数,确定为第一功耗参数。In some embodiments, based on the second screen refresh rate, the corresponding power consumption parameter may be obtained from the correspondence between the screen refresh rate and the power consumption parameter as the first power consumption parameter. In some embodiments, the screen refresh rate change amount may be determined based on the first screen refresh rate and the second screen refresh rate, and based on the screen refresh rate change amount, from the correspondence between the screen refresh rate change amount and the power consumption parameter change amount In the relationship, the corresponding power consumption parameter variation is obtained, and the first power consumption parameter is determined based on the power consumption parameter variation and the second power consumption parameter. In some embodiments, the corresponding power consumption parameter may be obtained from the correspondence between the image composition information and the power consumption parameter based on the image composition information of the current frame image, and determined as the first power consumption parameter.
在一些实施例中,当第二屏幕刷新率大于第一屏幕刷新率时,第一功耗参数所指示的功耗可以大于第二功耗参数所指示的功耗。In some embodiments, when the second screen refresh rate is greater than the first screen refresh rate, the power consumption indicated by the first power consumption parameter may be greater than the power consumption indicated by the second power consumption parameter.
可选地,还包括:Optionally, also include:
获取至少一个图层;Get at least one layer;
将所述至少一个图层进行合成,得到所述图像数据。The at least one layer is synthesized to obtain the image data.
可选地,还包括:Optionally, also include:
向所述显示模组发送屏幕刷新率切换通知,所述屏幕刷新率切换通知用于指示当前屏幕刷新率切换至所述第二屏幕刷新率。A screen refresh rate switching notification is sent to the display module, where the screen refresh rate switching notification is used to instruct the current screen refresh rate to be switched to the second screen refresh rate.
第二方面,本申请实施例提供一种发送图像数据的装置,包括:In a second aspect, an embodiment of the present application provides an apparatus for sending image data, including:
处理模块,用于当屏幕刷新率由第一屏幕刷新率切换至第二屏幕刷新率时,将向显示模组发送图像数据的水平时序从第一水平时序切换至第二水平时序,所述第一屏幕刷新率大于所述第二屏幕刷新率;The processing module is configured to switch the horizontal timing sequence for sending image data to the display module from the first horizontal timing sequence to the second horizontal timing sequence when the screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate. A screen refresh rate is greater than the second screen refresh rate;
其中,所述第一水平时序包括第一水平空白消隐区和第一有效显示区;Wherein, the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area;
所述第二水平时序包括的第二水平空白消隐区和第二有效显示区;a second horizontal blank blanking area and a second effective display area included in the second horizontal timing sequence;
所述第一水平时序中的PCLK周期和所述第二水平时序中的PCLK周期相同;The PCLK period in the first horizontal timing sequence is the same as the PCLK period in the second horizontal timing sequence;
所述第一有效显示区的时长和所述第二有效显示区的时长相同;The duration of the first effective display area is the same as the duration of the second effective display area;
所述第一水平空白消隐区的时长小于所述第二水平空白消隐区的时长。The duration of the first horizontal blank blanking area is shorter than the duration of the second horizontal blank blanking zone.
可选地,所述第一水平空白消隐区包括第一HFP、第一Hsync和第一HBP,所述第二水平空白消隐区包括第二HFP、第二Hsync和第二HBP;Optionally, the first horizontal blank blanking area includes a first HFP, a first Hsync and a first HBP, and the second horizontal blank blanking area includes a second HFP, a second Hsync and a second HBP;
所述第一HFP的时长小于所述第二HFP的时长;和/或,所述第一Hsync的时长小于所述第二Hsync的时长;和/或,所述第一HBP的时长小于所述第二HBP的时长。The duration of the first HFP is shorter than the duration of the second HFP; and/or the duration of the first Hsync is shorter than the duration of the second Hsync; and/or the duration of the first HBP is shorter than the duration of the first HFP Duration of the second HBP.
可选地,所述处理模块还用于:Optionally, the processing module is also used for:
基于所述第一屏幕刷新率和所述第二屏幕刷新率,确定屏幕刷新率变化量;based on the first screen refresh rate and the second screen refresh rate, determining an amount of screen refresh rate variation;
基于所述屏幕刷新率变化量,确定水平时序变化量,所述水平时序变化量为N个PCLK周期;Determine the horizontal timing variation based on the screen refresh rate variation, where the horizontal timing variation is N PCLK cycles;
基于所述水平时序变化量,分别将所述第一HFP、所述第一Hsync和所述第一HBP增大M、P和Q个PCLK周期,得到所述第二HFP、第二Hsync和第二HBP;Based on the horizontal timing change amount, the first HFP, the first Hsync and the first HBP are respectively increased by M, P and Q PCLK cycles to obtain the second HFP, the second Hsync and the first HBP. 2HBP;
其中,N、M、P和Q为整数,且M+P+Q=N。where N, M, P and Q are integers, and M+P+Q=N.
可选地,所述处理模块还用于:Optionally, the processing module is also used for:
当所述屏幕刷新率由所述第一屏幕刷新率切换至所述第二屏幕刷新率时,确定与所述第二屏幕刷新率对应的第一功耗参数;When the screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate, determining a first power consumption parameter corresponding to the second screen refresh rate;
将DSS当前的功耗参数设置为所述第一功耗参数,所述第一功耗参数所指示的功耗低于所述第一屏幕刷新率对应的第二功耗参数所指示的功耗。Set the current power consumption parameter of the DSS as the first power consumption parameter, and the power consumption indicated by the first power consumption parameter is lower than the power consumption indicated by the second power consumption parameter corresponding to the first screen refresh rate .
可选地,所述处理模块还用于:Optionally, the processing module is also used for:
用于获取与所述图像数据对应的图像合成信息,所述图像合成信息包括图层数目和图层总像素数目中的至少一个;for acquiring image synthesis information corresponding to the image data, the image synthesis information including at least one of the number of layers and the total number of pixels in the layers;
基于所述第二屏幕刷新率和所述图像合成信息,确定所述第二功耗参数。The second power consumption parameter is determined based on the second screen refresh rate and the image composition information.
可选地,所述处理模块还用于执行下述至少一项操作:Optionally, the processing module is further configured to perform at least one of the following operations:
当所述第二功耗参数包括第一物理时钟时,将所述DSS的物理时钟设置为所述第一物理时钟;When the second power consumption parameter includes a first physical clock, setting the physical clock of the DSS as the first physical clock;
当所述第二功耗参数包括第一电压时,将所述DSS的电压设置为所述第一电压。When the second power consumption parameter includes a first voltage, the voltage of the DSS is set to the first voltage.
可选地,所述处理模块还用于:Optionally, the processing module is also used for:
获取至少一个图层;Get at least one layer;
将所述至少一个图层进行合成,得到所述图像数据。The at least one layer is synthesized to obtain the image data.
可选地,还包括发送模块,用于:Optionally, it also includes a sending module for:
向所述显示模组发送屏幕刷新率切换通知,所述屏幕刷新率切换通知用于指示当前屏幕刷新率切换至所述第二屏幕刷新率。A screen refresh rate switching notification is sent to the display module, where the screen refresh rate switching notification is used to instruct the current screen refresh rate to be switched to the second screen refresh rate.
第三方面,本申请实施例提供一种电子设备,包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时执行上述第一方面中任一项所述的方法。In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, where the memory is used to store a computer program; the processor is used to execute the method described in any one of the first aspects when the computer program is invoked.
第四方面,本申请实施例提供一种芯片系统,所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述第一方面中任一项所述的方法。In a fourth aspect, an embodiment of the present application provides a chip system, the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory, so as to implement any one of the above first aspects. one of the methods described.
其中,所述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。Wherein, the chip system may be a single chip or a chip module composed of multiple chips.
第五方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述第一方面中任一项所述的方法。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method described in any one of the foregoing first aspects.
第六方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面中任一项所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to execute the method described in any one of the first aspects above.
可以理解的是,上述第二方面至第六方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the foregoing second aspect to the sixth aspect, reference may be made to the relevant descriptions in the foregoing first aspect, and details are not described herein again.
图1为本申请实施例所提供的一种电子设备的结构示意图;1 is a schematic structural diagram of an electronic device provided by an embodiment of the application;
图2为本申请实施例所提供一种电子设备的软件结构框图;2 is a block diagram of a software structure of an electronic device provided by an embodiment of the present application;
图3为本申请实施例提供的一种MIPI时序的抽象图;3 is an abstract diagram of a MIPI timing sequence provided by an embodiment of the present application;
图4为本申请实施例所提供的一种竖直时序示意图;FIG. 4 is a schematic diagram of a vertical timing sequence provided by an embodiment of the present application;
图5为本申请实施例所提供的一种水平时序示意图;FIG. 5 is a schematic diagram of a horizontal sequence provided by an embodiment of the present application;
图6为本申请实施例提供的一种发送图像数据的方法的时序图;6 is a sequence diagram of a method for sending image data provided by an embodiment of the present application;
图7为本申请实施例提供的另一种水平时序示意图;FIG. 7 is another schematic diagram of a horizontal timing sequence provided by an embodiment of the present application;
图8为本申请实施例提供的另一种水平时序示意图;FIG. 8 is another schematic diagram of a horizontal sequence provided by an embodiment of the present application;
图9为本申请实施例提供的另一种水平时序示意图;FIG. 9 is another schematic diagram of a horizontal timing sequence provided by an embodiment of the present application;
图10为本申请实施例提供的另一种水平时序示意图;FIG. 10 is another schematic diagram of a horizontal timing sequence provided by an embodiment of the present application;
图11为本申请实施例提供的一种发送图像数据的装置的结构示意图;FIG. 11 is a schematic structural diagram of an apparatus for sending image data according to an embodiment of the application;
图12为本申请实施例所提供的另一种电子设备的结构示意图。FIG. 12 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
本申请实施例提供的显示方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。The display method provided by the embodiments of the present application can be applied to mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, super mobile personal computers ( On electronic devices such as ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), the embodiment of the present application does not impose any restrictions on the specific type of the electronic device.
请参照图1,为本申请所提供的一种电子设备100的结构示意图。电子设备100 可以包括SOC110和液晶显示器(liquid crystal display,LCD)显示模组(LCD module,LCM)120。Please refer to FIG. 1 , which is a schematic structural diagram of an electronic device 100 provided by the present application. The electronic device 100 may include an SOC 110 and a liquid crystal display (LCD) display module (LCD module, LCM) 120 .
SOC110可以包括应用处理器(application processor,AP)111、DSS112和移动行业处理器接口(mobile industry processor interface,MIPI)113。The SOC 110 may include an application processor (application processor, AP) 111 , a DSS 112 and a mobile industry processor interface (mobile industry processor interface, MIPI) 113 .
AP111可以是在中央处理器(central processing unit,CPU)的基础上扩展音视频功能和专用接口的超大规模集成电路,可以用于处理图像和音乐等多媒体数据,包括摄影、音乐播放、广播收音、视频播放等。AP111 can be an ultra-large-scale integrated circuit that expands audio and video functions and dedicated interfaces on the basis of a central processing unit (CPU), and can be used to process multimedia data such as images and music, including photography, music playback, radio, radio, video playback, etc.
DSS112可以用于从SOC110的内存(图1中未示出)中获取图像数据,并将该图像数据按照符合MIPI协议的MIPI时序,将该图像数据通过MIPI接口113发送给LCM120中的DDIC122。The DSS 112 can be used to obtain image data from the memory (not shown in FIG. 1 ) of the SOC 110 , and send the image data to the DDIC 122 in the LCM 120 through the MIPI interface 113 according to the MIPI timing sequence conforming to the MIPI protocol.
MIPI接口113包括摄像头接口、显示接口、射频接口、麦克风接口等多种接口。其中,显示接口即可用于上述DSS112与DDIC122之间的通信,包括通过MIPI时序发送图像数据。The MIPI interface 113 includes a camera interface, a display interface, a radio frequency interface, a microphone interface and other interfaces. Among them, the display interface can be used for the above-mentioned communication between the DSS112 and the DDIC122, including sending image data through the MIPI timing sequence.
其中,MIPI时序用于指示发送一帧图像的图像数据的时间顺序,以便于DDIC122有序接收该图像数据并控制显示面板121显示该图像。The MIPI timing sequence is used to indicate the time sequence of sending the image data of one frame of image, so that the DDIC 122 receives the image data in an orderly manner and controls the display panel 121 to display the image.
在一些实施例中,MIPI接口113可以集成在DSS112中。In some embodiments, MIPI interface 113 may be integrated in DSS 112 .
LCM120可以包括显示面板121、显示驱动芯片(display drive integrated circuit,DDIC)122。DDIC122可以用于接收来自DSS112按照特定时序发送的图像数据,控制显面板121基于该图像数据中各像素,控制对应的液晶分子,从而使显示面板121显示该图像数据。另外,DDIC122也可以将该图像数据存储至图像寄存器(graphics random-access memory,GRAM)123。The LCM 120 may include a display panel 121 and a display drive integrated circuit (DDIC) 122 . The DDIC 122 can be used to receive image data sent from the DSS 112 according to a specific timing, and control the display panel 121 to control the corresponding liquid crystal molecules based on each pixel in the image data, so that the display panel 121 displays the image data. In addition, the DDIC 122 may also store the image data in an image register (graphics random-access memory, GRAM) 123 .
显示面板121可以用于显示图像数据。显示面板121可以为LCD面板,包括扭曲向列(twisted nematic,TN)型面板、垂直向列(vertical alignment,TA)型面板、平面转换(in-plane switching,IPS)型面板、连续焰火状排列(continuous pinwheel alignment,CPA)型面板或高级超维场转换(advanced super dimension switch,ADSDS)型面板。当然,在实际应用中,显示面板121还可以为其他类型的面板,本申请实施例对此显示面板121的类型不做具体限定。The display panel 121 may be used to display image data. The display panel 121 can be an LCD panel, including a twisted nematic (TN) type panel, a vertical nematic (TA) type panel, an in-plane switching (IPS) type panel, a continuous firework-like arrangement (continuous pinwheel alignment, CPA) type panel or advanced super dimension switch (advanced super dimension switch, ADSDS) type panel. Of course, in practical applications, the display panel 121 may also be other types of panels, and the embodiment of the present application does not specifically limit the type of the display panel 121 .
需要说明的是,LCM120还可以包括更多的组件,比如连接件、支撑件、外围电路和背光源中的至少一个。It should be noted that the LCM 120 may further include more components, such as at least one of a connector, a support, a peripheral circuit and a backlight.
另外,在实际应用中,电子设备100中的LCM120可以被替换为其他的显示模组,本申请实施例对此显示模组的类型不做具体限定。In addition, in practical applications, the LCM 120 in the electronic device 100 may be replaced with other display modules, and the embodiment of the present application does not specifically limit the type of the display module.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。比如,在一些实施例中,电子设备100还可以包括外部存储器接口,内部存储器,通用串行总线(universal serial bus,USB)接口,充电管理模块,电源管理模块,电池,天线,移动通信模块,无线通信模块,音频模块,扬声器,受话器,麦克风,耳机接口,传感器模块,按键,马达,指示器,摄像头,显示屏,以及用户标识模块(subscriber identification module,SIM)卡接口中的至少一 个。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. For example, in some embodiments, the electronic device 100 may further include an external memory interface, an internal memory, a universal serial bus (USB) interface, a charging management module, a power management module, a battery, an antenna, a mobile communication module, At least one of a wireless communication module, an audio module, a speaker, a receiver, a microphone, an earphone jack, a sensor module, a button, a motor, an indicator, a camera, a display screen, and a subscriber identification module (SIM) card interface.
请参照图2,为本申请实施例所提供的一种电子设备100的软件结构框图。Please refer to FIG. 2 , which is a software structural block diagram of an electronic device 100 provided by an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
如图2所示,电子设备100包括显示框架层210、硬件抽象层220、DSS驱动层230和LCD驱动层240,其中,显示框架层210和硬件抽象层220可以位于图1中的AP111,DSS驱动层230可以位于图1中的DSS112,LCD驱动层240可以位于图1中的DDIC122。As shown in FIG. 2 , the electronic device 100 includes a display framework layer 210, a hardware abstraction layer 220, a DSS driver layer 230 and an LCD driver layer 240, wherein the display framework layer 210 and the hardware abstraction layer 220 may be located at AP111 in FIG. 1, DSS The driving layer 230 may be located at the DSS 112 in FIG. 1 , and the LCD driving layer 240 may be located at the DDIC 122 in FIG. 1 .
显示框架层210可以包括窗口管理器(window manger)211和界面管理器(surface flinger)212。电子设备100的显示面板121可以显示多个窗口(window,一种与显示相关的抽象类),比如对话框、状态栏和悬浮窗,每个窗口中的内容可以作为一个界面(surface)。窗口管理器211是一个接口类,定义了若干个接口来对窗口进行管理,包括判断是否有状态栏,锁定屏幕,截取屏幕等。界面管理器212可以获取各窗口中的界面,从而得到至少一个图层,并将获取到的至少一个图层和图像合成信息发送给硬件抽象层220,其中每个图层可以包括一个界面。另外,界面管理器212还可以检测对应的窗口是否接收到用户操作。The display frame layer 210 may include a window manager (window manager) 211 and an interface manager (surface flinger) 212. The display panel 121 of the electronic device 100 may display a plurality of windows (window, an abstract class related to display), such as a dialog box, a status bar and a floating window, and the content in each window may serve as a surface. The window manager 211 is an interface class, which defines several interfaces to manage the window, including judging whether there is a status bar, locking the screen, and capturing the screen. The interface manager 212 can obtain the interface in each window, thereby obtaining at least one layer, and send the obtained at least one layer and image composition information to the hardware abstraction layer 220, wherein each layer can include one interface. In addition, the interface manager 212 can also detect whether the corresponding window receives a user operation.
其中,图像合成信息可以包括图层数目和图层总像素数目的至少一个,当然,在实际应用中,图像合成信息还可以包括更多的信息,比如每个图层的位置。The image synthesis information may include at least one of the number of layers and the total number of pixels in the layers. Of course, in practical applications, the image synthesis information may also include more information, such as the position of each layer.
硬件抽象层220可以包括图像合成模块221和屏幕刷新率切换模块222。图像合成模块221可以用于接收界面管理器212发送的至少一个图层和图像合成信息,并根据该图像合成信息,将该至少一个图层合成为一帧图像。屏幕刷新率切换模块222可以根据预设的屏幕刷新率策略,确定当前的屏幕刷新率,比如,当界面管理器212在距离当前最近的预设时长内没有接收到用户操作时,可以降低当前的屏幕刷新率。The hardware abstraction layer 220 may include an image synthesis module 221 and a screen refresh rate switching module 222 . The image synthesis module 221 may be configured to receive at least one layer and image synthesis information sent by the interface manager 212, and according to the image synthesis information, synthesize the at least one layer into a frame of image. The screen refresh rate switching module 222 can determine the current screen refresh rate according to the preset screen refresh rate policy. screen refresh rate.
在一些实施例中,硬件抽象层220还可以包括功耗模块223。当屏幕刷新率降低时,图1中的DSS112可以降低通过MIPI接口113向DDIC122发送图像数据的速率,而DSS112在降低发送图像数据的速率时便可以降低功耗;相反地,当屏幕刷新率提高时,DSS112可以提高通过MIPI接口113向DDIC122发送图像数据的速率,DSS112在提高发送图像数据的速率时可以提高功耗。因此,为了灵活设置DSS112的功耗参数,以降低功耗或提高功耗,功耗模块223可以根据当前的屏幕刷新率确定DSS112的功耗参数,比如DSS112的物理时钟和电压中的至少一个。In some embodiments, the hardware abstraction layer 220 may also include a power consumption module 223 . When the screen refresh rate is reduced, the DSS112 in Figure 1 can reduce the rate of sending image data to the DDIC122 through the MIPI interface 113, and the DSS112 can reduce the power consumption when the rate of sending image data is reduced; conversely, when the screen refresh rate is increased , the DSS112 can increase the rate of sending image data to the DDIC122 through the MIPI interface 113, and the DSS112 can increase the power consumption when increasing the rate of sending image data. Therefore, in order to flexibly set the power consumption parameters of the DSS112 to reduce or increase power consumption, the power consumption module 223 may determine the power consumption parameters of the DSS112 according to the current screen refresh rate, such as at least one of the physical clock and voltage of the DSS112.
DSS驱动层230可以包括MIPI时序控制模块231。MIPI时序控制模块231可以根据当前的屏幕刷新率,确定向LCD层240发送图像数据的MIPI时序,并按照该MIPI时序,将硬件抽象层220所合成的那一帧图像的图像数据发送给LCD层240中的显示单元241。The DSS driving layer 230 may include a MIPI timing control module 231 . The MIPI timing control module 231 can determine the MIPI timing for sending image data to the LCD layer 240 according to the current screen refresh rate, and according to the MIPI timing, send the image data of the frame of image synthesized by the hardware abstraction layer 220 to the LCD layer Display unit 241 in 240.
在一些实施例中,DSS驱动层230还可以包括时钟控制模块232和电压控制模块233。时钟控制模块232可以将DSS112当前的物理时钟设置为功耗模块223所确定的物理时钟。电压控制模块233可以将DSS112当前的电压设置为功耗模块223所确定的电压。In some embodiments, the DSS driving layer 230 may further include a clock control module 232 and a voltage control module 233 . The clock control module 232 may set the current physical clock of the DSS 112 as the physical clock determined by the power consumption module 223 . The voltage control module 233 may set the current voltage of the DSS 112 to the voltage determined by the power consumption module 223 .
LCD驱动层240可以包括显示单元241。显示单元241可以用于控制图1中显示 面板121基于所接收到的图像数据进行显示,包括控制各像素对应的液晶分子显示该像素。The LCD driving layer 240 may include the display unit 241 . The display unit 241 can be used to control the display panel 121 in FIG. 1 to display based on the received image data, including controlling the liquid crystal molecules corresponding to each pixel to display the pixel.
需要说明的是,电子设备100也可以包括更多或更少的层,每层可以包括更多或更少的模块,比如,在硬件抽象层220中,图像合成模块221可以和屏幕刷新率切换模块222集成为一个模块。It should be noted that the electronic device 100 may also include more or less layers, and each layer may include more or less modules. For example, in the hardware abstraction layer 220, the image synthesis module 221 can be switched with the screen refresh rate Module 222 is integrated into one module.
请参照图3,为本申请实施例所提供的一种MIPI时序的抽象图。MIPI时序可以用于指示传输图像数据的时序,包括竖直时序和水平时序。在竖直时序中,竖直同步信号(vertical synchronization,Vsync),可以表示一帧新图像的到来,在Vsync之前,包括垂直前沿(vertical front porch,VFP),在Vsync之后,包括垂直后沿(vertical back porch,VBP)。相邻的VBP和VFP之间为某一帧图像的图像数据,该图像数据将逐行被SOC110传输至LCM120进行显示。在水平时序中,Hsync可以表示一行图像数据的到来,该行图像数据包括多个像素。在每个Hsync之前,可以包括一个HFP,在每个Hsync之后,可以包括一个HBP,在相邻的HBP和HFP之间,是该行图像数据。由图3可知,在显示一帧图像的过程中,除了实际传输图像数据的时间之外,还包括Vsync、VFP、VBP、Hsync、HFP和HBP所占用的时间。Please refer to FIG. 3 , which is an abstract diagram of a MIPI timing sequence provided by an embodiment of the present application. MIPI timing can be used to indicate the timing of transmitting image data, including vertical timing and horizontal timing. In the vertical timing, the vertical synchronization signal (vertical synchronization, Vsync), can indicate the arrival of a new frame of image, before Vsync, including vertical front porch (vertical front porch, VFP), after Vsync, including vertical trailing edge ( vertical back porch, VBP). The image data of a certain frame of image is between adjacent VBPs and VFPs, and the image data will be transmitted by the SOC 110 to the LCM 120 for display line by line. In horizontal timing, Hsync may indicate the arrival of a line of image data, the line of image data including a plurality of pixels. Before each Hsync, one HFP may be included, after each Hsync, one HBP may be included, and between adjacent HBPs and HFPs, is the line of image data. As can be seen from FIG. 3 , in the process of displaying one frame of image, in addition to the time for actually transmitting image data, it also includes the time occupied by Vsync, VFP, VBP, Hsync, HFP and HBP.
请参照图4,为本申请实施例所提供的一种竖直时序示意图。如图4所示,当传输一帧图像时,先经过VFP,然后通过Vsync指示该帧图像开始传输。Vsync可以是一个脉冲信号,当Vsync结束并经过VBP时,该一帧图像的图像数据开始传输,其中,每行图像数据可以通过一个水平时序进行传输。且由图4可知,在Vsync、VFP和VBP期间,并没有图像数据传输,这段时间可以被称为垂直空白消隐区,而相邻的VFP和VBP之间是有图像数据传输的,因此相邻的VFP和VBP之间的时间可以被称为有效显示区。Please refer to FIG. 4 , which is a schematic diagram of a vertical timing sequence provided by an embodiment of the present application. As shown in Figure 4, when a frame of image is transmitted, VFP is first passed, and then the frame of image is instructed to start transmission through Vsync. Vsync may be a pulse signal, and when Vsync ends and VBP passes, the image data of one frame of image starts to be transmitted, wherein each line of image data may be transmitted through a horizontal timing sequence. And it can be seen from Figure 4 that during Vsync, VFP and VBP, there is no image data transmission. This period can be called the vertical blank blanking area, and there is image data transmission between adjacent VFP and VBP. Therefore, The time between adjacent VFPs and VBPs may be referred to as an active display area.
请参照图5,为本申请实施例所提供的一种水平时序示意图。如图5所示,当传输一行图像数据时,先经过HFP,然后再通过Hsync指示该行图像数据开始传输。Hsync可以是一个脉冲信号,当Hsync结束并经过HBP时,该行图像数据开始传输,其中,每个像素可以占用一个PCLK。且由图5可知,在Hsync、HFP和HBP之间,并没有图像数据传输,所以这段时间所以被称为水平空白消隐区,而相邻的HBP和HFP之间是有图像数据传输的,这段时间可以被称为有效显示区。Please refer to FIG. 5 , which is a schematic diagram of a horizontal timing sequence provided by an embodiment of the present application. As shown in FIG. 5 , when a line of image data is transmitted, the HFP is first passed, and then the line of image data is instructed to start transmission through Hsync. Hsync may be a pulse signal. When Hsync ends and passes through HBP, the line of image data starts to be transmitted, wherein each pixel may occupy one PCLK. And it can be seen from Figure 5 that there is no image data transmission between Hsync, HFP and HBP, so this period is called the horizontal blanking area, and there is image data transmission between adjacent HBP and HFP. , this period of time can be called the effective display area.
图4和图5分别解释了DSS112传输图像数据的竖直时序和水平时序,对应的,DDIC122可以按照该竖直时序和该水平时序接收图像数据并控制显示面板121进行显示。FIG. 4 and FIG. 5 respectively explain the vertical timing sequence and the horizontal timing sequence of the DSS112 transmitting image data. Correspondingly, the DDIC 122 can receive the image data according to the vertical timing sequence and the horizontal timing sequence and control the display panel 121 to display.
需要说明的是,Vsync、VFP、VBP、Hsync、HFP、HBP和PCLK,可以由前述图1中的DSS112生成。且结合图4和图5可知,Hsync、HFP和HBP的时长,可以是若干个PCLK周期,Vsync、VFP、VBP的时长,可以是若干个水平时序的时长。It should be noted that Vsync, VFP, VBP, Hsync, HFP, HBP and PCLK can be generated by the DSS 112 in the aforementioned FIG. 1 . 4 and 5, the durations of Hsync, HFP, and HBP may be several PCLK cycles, and the durations of Vsync, VFP, and VBP may be several horizontal time sequences.
仍以图4和图5为例,由图4可知,当前传输的图像包括7行图像数据,由图5可知,每行图像数据包括4个像素,由此可知,该图像数据包括7*4的像素。需要说明的是,本申请实施例仅以图4和图5为例,对传输图像数据的MIPI时序进行说明,并不对图像的显示面板121和图像的分辨率进行限定,在实际应用中,面板121和图像可以为更大或更小的分辨率,比如该分辨率可以是1366*768。Still taking Figure 4 and Figure 5 as examples, it can be seen from Figure 4 that the currently transmitted image includes 7 lines of image data. From Figure 5, it can be seen that each line of image data includes 4 pixels. It can be seen that the image data includes 7*4 of pixels. It should be noted that the embodiments of the present application only take FIG. 4 and FIG. 5 as examples to describe the MIPI timing sequence for transmitting image data, and do not limit the display panel 121 of the image and the resolution of the image. In practical applications, the panel 121 and the image can be of larger or smaller resolution, for example, the resolution can be 1366*768.
目前,电子设备能够支持多种屏幕刷新率,并对屏幕刷新率进行切换。在一些实施例中,在SOC110在向LCM120发送图像数据时,可以将PCLK周期增大,从而在更长的时间内传输各行图像数据,那么每帧图像的图像数据也就会传输的更慢,也就达到了降低屏幕刷新率的目的。在这种方式下,水平时序与图5所示的水平时序相似,仅相当于将图5所示的水平时序横向拉长。但由前述可知,PCLK是传输像素的时钟信号,改变PCL周期,会使图像数据传输不稳定,进而导致在切换屏幕刷新率时,出现黑屏或花屏等显示异常现象。At present, electronic devices can support multiple screen refresh rates and switch the screen refresh rates. In some embodiments, when the SOC 110 sends image data to the LCM 120, the PCLK period can be increased, so that each line of image data is transmitted in a longer time, and the image data of each frame of image will be transmitted more slowly. It also achieves the purpose of reducing the screen refresh rate. In this manner, the horizontal timing sequence is similar to the horizontal timing sequence shown in FIG. 5 , which is only equivalent to extending the horizontal timing sequence shown in FIG. 5 laterally. However, it can be seen from the above that PCLK is the clock signal for transmitting pixels. Changing the PCL cycle will make the image data transmission unstable, which will lead to abnormal display phenomena such as black screen or blurred screen when the screen refresh rate is switched.
为解决上述问题,本申请提出了另一种发送图像数据的方法。在本申请实施例中,当屏幕刷新率由较大的第一屏幕刷新率切换至较小的第二屏幕刷新率时,可以将显示模组发送图像数据的时序从第一水平时序切换至第二水平时序。其中,第一水平时序包括第一水平空白消隐区和第一有效显示区,第二水平时序包括第二水平空白消隐区和第二有效显示区。由于第一水平时序中的PCLK周期与第二水平时序包括的PCLK周期相同,第一有效显示区的时长和第二有效显示区的时长相同,而第一水平空白消隐区的时长小于第二水平空白消隐区的时长,因此当屏幕刷新率降低时,可以在保持PCLK周期不变的情况下,增大水平空白消隐区,进而增大水平时序的时长,减少了电子设备因屏幕刷新率降低而出现显示异常的现象,提高了传输图像数据和基于该图像数据显示图像的可靠性。To solve the above problems, the present application proposes another method for sending image data. In the embodiment of the present application, when the screen refresh rate is switched from a relatively large first screen refresh rate to a relatively small second screen refresh rate, the timing of sending image data by the display module can be switched from the first horizontal timing to the second Two-level timing. The first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area, and the second horizontal timing sequence includes a second horizontal blank blanking area and a second effective display area. Since the PCLK cycle in the first horizontal timing sequence is the same as the PCLK cycle included in the second horizontal timing sequence, the duration of the first effective display area is the same as the duration of the second effective display area, and the duration of the first horizontal blanking area is smaller than that of the second The duration of the horizontal blanking area, so when the screen refresh rate is reduced, you can increase the horizontal blanking area while keeping the PCLK cycle unchanged, thereby increasing the duration of the horizontal sequence, reducing the electronic equipment due to screen refresh. The phenomenon that the display rate is reduced and the display abnormality occurs, and the reliability of transmitting image data and displaying images based on the image data is improved.
下面以具体地实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present application will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
请参照图6,为本申请实施例所提供的一种发送图像数据的方法的流程图。需要说明的是,该方法并不以图6以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。该方法包括如下步骤:Please refer to FIG. 6 , which is a flowchart of a method for sending image data provided by an embodiment of the present application. It should be noted that the method is not limited to the specific sequence shown in FIG. 6 and the following, and it should be understood that in other embodiments, the sequence of some steps of the method may be exchanged according to actual needs, or some steps of the method may be exchanged. It can also be omitted or deleted. The method includes the following steps:
S601,界面管理器212从窗口管理器211获取至少一个图层和图像合成信息。S601 , the interface manager 212 acquires at least one layer and image composition information from the window manager 211 .
为了便于生成后续屏幕中显示的图像,界面管理器212可以在接收到Vsync时,分别从至少一个窗口管理器211获取界面,得到至少一个图层,还可以获取诸如图层数目和至少一个图层的图层总像素数目等图像合成信息。In order to facilitate the generation of images displayed in subsequent screens, the interface manager 212 can obtain the interface from at least one window manager 211 respectively when receiving the Vsync to obtain at least one layer, and can also obtain information such as the number of layers and the at least one layer. Image composition information such as the total number of pixels in the layer.
需要说明的是,在实际应用中,界面管理器212也可以基于其他触发条件,从窗口管理器211获取至少一个图层和图像合成信息。本申请实施例对获取至少一个图层和图像合成信息的触发条件不做具体限定。It should be noted that, in practical applications, the interface manager 212 may also acquire at least one layer and image composition information from the window manager 211 based on other trigger conditions. The embodiments of the present application do not specifically limit the triggering conditions for acquiring at least one layer and image synthesis information.
S602,界面管理器212向图像合成模块221发送该至少一个图层和图像合成信息。S602, the interface manager 212 sends the at least one layer and the image composition information to the image composition module 221.
可选地,界面管理器212可以向功耗模块223发送图像合成信息。Optionally, the interface manager 212 may send the image composition information to the power consumption module 223 .
S603,图像合成模块221根据该图像合成信息,将该至少一个图层合成为一帧图像。S603, the image synthesizing module 221 synthesizes the at least one layer into one frame of image according to the image synthesizing information.
其中,当图像合成信息包括图层数目和图层总像素数目时,图像合成模块221可以基于各图层的图层总像素数目,将该图层数目的各图层进行拼接和堆叠,从而得到一帧图像,该图像即为当前的待显示图像。当然,如果图层合成信息还包括各图层的位置,则图像合成模块221还可以基于各图层的位置,对各图层进行合成。Wherein, when the image synthesis information includes the number of layers and the total number of pixels of the layers, the image synthesis module 221 may splicing and stacking the layers of the number of layers based on the total number of pixels of the layers, so as to obtain A frame of image, which is the current image to be displayed. Of course, if the layer synthesis information further includes the positions of the layers, the image synthesis module 221 can also synthesize the layers based on the positions of the layers.
需要说明的是,在实际应用中,图像合成模块221与可以通过其他方式来根据该 图像合成信息将该至少一个图层合成为一帧图像,或者,在另一些实施例中,可以由界面管理器212根据该图像合成信息将该至少一个图层合成为一帧图像,本申请实施例对根据该图像合成信息将该至少一个图层合成为一帧图像的方式,不做具体限定。It should be noted that, in practical applications, the image synthesis module 221 may synthesize the at least one layer into one frame of image according to the image synthesis information in other ways, or, in other embodiments, may be managed by the interface The device 212 synthesizes the at least one layer into a frame of image according to the image synthesis information, and the embodiment of the present application does not specifically limit the manner of synthesizing the at least one layer into a frame of image according to the image synthesis information.
S604,屏幕刷新率切换模块222确定当前的第二屏幕刷新率。之后可以分别执行S605-S606和S607-S609。S604, the screen refresh rate switching module 222 determines the current second screen refresh rate. After that, S605-S606 and S607-S609 can be executed respectively.
由于电子设备100的显示面板121可以支持多种屏幕刷新率并对屏幕刷新率进行切换,因此在显示新的一帧图像之前,可以确定当前的第二屏幕刷新率,以确保后续显示面板121该图像数据正确显示该图像。Since the display panel 121 of the electronic device 100 can support multiple screen refresh rates and switch the screen refresh rates, before displaying a new frame of image, the current second screen refresh rate can be determined to ensure that the subsequent display panel 121 has the The image data displays the image correctly.
可选地,屏幕刷新率切换模块222可以在接收到Vsync时或在确定图像合成模块221合成得到图像时,确定当前的第二屏幕刷新率。Optionally, the screen refresh rate switching module 222 may determine the current second screen refresh rate when receiving Vsync or when determining that the image synthesis module 221 has synthesized an image.
可选地,电子设备100的显示面板121可以支持两个屏幕刷新率。屏幕刷新率切换模块222可以基于界面管理器212确定是否基于任一窗口接收到用户操作,如果是则将较高的屏幕刷新率确定为第二屏幕刷新率,否则将较低的屏幕刷新率确定为第二屏幕刷新率。当然,在实际应用中,电子设备100可以支持更多的屏幕刷新率,那么屏幕刷新率切换模块222可以按照相似的或更复杂的方式,来确定第二屏幕刷新率,比如可以确定接收到用户操作的频率,确定与该频率对应的屏幕刷新率作为第二屏幕刷新率。Optionally, the display panel 121 of the electronic device 100 may support two screen refresh rates. The screen refresh rate switching module 222 may determine whether a user operation is received based on any window based on the interface manager 212, and if so, determine the higher screen refresh rate as the second screen refresh rate, otherwise determine the lower screen refresh rate for the second screen refresh rate. Of course, in practical applications, the electronic device 100 may support more screen refresh rates, then the screen refresh rate switching module 222 may determine the second screen refresh rate in a similar or more complex manner, such as The frequency of the operation is determined, and the screen refresh rate corresponding to the frequency is determined as the second screen refresh rate.
需要说明的是,屏幕刷新率切换模块222也可以基于其他触发条件,通过其他方式,来确定第二屏幕刷新率,本申请实施例对确定第二屏幕刷新率的触发条件和方式,均不作具体限定。It should be noted that the screen refresh rate switching module 222 may also determine the second screen refresh rate in other ways based on other trigger conditions. The embodiments of the present application do not specify the trigger conditions and methods for determining the second screen refresh rate. limited.
可选地,屏幕刷新率切换模块222可以将第二屏幕刷新率发送给功耗模块223。Optionally, the screen refresh rate switching module 222 may send the second screen refresh rate to the power consumption module 223 .
S605,功耗模块223确定当前的第一功耗参数。S605, the power consumption module 223 determines the current first power consumption parameter.
当屏幕刷新率越高、图层数目越多、图层总像素数目越大时,后续DSS112需要向DDIC122发送图像数据的速度也要越快,相应的功耗也会越大,因此为了便于后续及时调整DSS112的功耗参数,以确保发送图像数据的可靠性,功耗模块223可以确定当前的第二功耗参数。When the screen refresh rate is higher, the number of layers is larger, and the total number of pixels in the layer is larger, the subsequent DSS112 needs to send image data to the DDIC122 faster, and the corresponding power consumption will be larger, so in order to facilitate the subsequent The power consumption parameter of the DSS 112 is adjusted in time to ensure the reliability of sending image data, and the power consumption module 223 can determine the current second power consumption parameter.
可选地,第二功耗参数可以包括DSS112的第二物理时钟和第二电压中的至少一个。Optionally, the second power consumption parameter may include at least one of the second physical clock and the second voltage of the DSS 112 .
可选地,可以基于第二屏幕刷新率,从屏幕刷新率与功耗参数之间的对应关系中,获取对应的功耗参数作为第一功耗参数。请参照下述表1,第二屏幕刷新率为90Hz(赫兹),则可以获取90Hz对应的时钟2作为第一物理时钟,获取90Hz对应的电压2作为第一电压。Optionally, based on the second screen refresh rate, a corresponding power consumption parameter may be obtained from the correspondence between the screen refresh rate and the power consumption parameter as the first power consumption parameter. Please refer to Table 1 below, the refresh rate of the second screen is 90 Hz (Hertz), then the clock 2 corresponding to 90 Hz can be obtained as the first physical clock, and the voltage 2 corresponding to 90 Hz can be obtained as the first voltage.
表1Table 1
另外,在另一些实施例中,功耗模块223可以确定与待显示图像相邻的前一帧图像对应的第一屏幕刷新率和第二功耗参数。基于第一屏幕刷新率和第二屏幕刷新率,确定屏幕刷新率变化量,基于屏幕刷新率变化量,从屏幕刷新率变化量与功耗参数变化量之间的对应关系中,获取对应的功耗参数变化量,基于功耗参数变化量和第二功耗参数,确定第一功耗参数。其中,当第二屏幕刷新率小于第一屏幕刷新率时,第一功耗参数所指示的功耗可以小于第二功耗参数所指示的功耗,比如第二功耗参数可以包括第二物理时钟和第二电压中的至少一个,则第一物理时钟的频率可以小于第二物理时钟的频率,第一电压可以小于第二电压。当然,当第二屏幕刷新率大于第一屏幕刷新率时,第一功耗参数所指示的功耗可以大于第二功耗参数所指示的功耗。In addition, in other embodiments, the power consumption module 223 may determine the first screen refresh rate and the second power consumption parameter corresponding to the image of the previous frame adjacent to the image to be displayed. Based on the first screen refresh rate and the second screen refresh rate, determine the screen refresh rate variation, and based on the screen refresh rate variation, obtain the corresponding power from the correspondence between the screen refresh rate variation and the power consumption parameter variation The variation of the power consumption parameter is determined, and the first power consumption parameter is determined based on the variation of the power consumption parameter and the second power consumption parameter. Wherein, when the refresh rate of the second screen is lower than the refresh rate of the first screen, the power consumption indicated by the first power consumption parameter may be smaller than the power consumption indicated by the second power consumption parameter, for example, the second power consumption parameter may include the second physical at least one of the clock and the second voltage, the frequency of the first physical clock may be lower than the frequency of the second physical clock, and the first voltage may be lower than the second voltage. Certainly, when the refresh rate of the second screen is greater than the refresh rate of the first screen, the power consumption indicated by the first power consumption parameter may be greater than the power consumption indicated by the second power consumption parameter.
可选地,可以基于当前帧图像的图像合成信息,从图像合成信息与功耗参数之间的对应关系中,获取对应的功耗参数,确定为第一功耗参数。请参照下述表2,图像合成信息包括图层数目和图层总像素数目,功耗参数包括DSS112的物理时钟和电压。若当前帧图像对应的图像合成信息包括4个图层,图层总像素数目为40万像素,则获取对应的时钟3作为第一物理时钟,获取对应的电压3作为第一电压。Optionally, based on the image composition information of the current frame image, the corresponding power consumption parameter may be obtained from the correspondence between the image composition information and the power consumption parameter, and determined as the first power consumption parameter. Please refer to Table 2 below, the image synthesis information includes the number of layers and the total number of pixels in the layer, and the power consumption parameters include the physical clock and voltage of the DSS112. If the image synthesis information corresponding to the current frame image includes 4 layers and the total number of pixels in the layers is 400,000 pixels, the corresponding clock 3 is obtained as the first physical clock, and the corresponding voltage 3 is obtained as the first voltage.
表2Table 2
需要说明的是,当基于第二屏幕刷新率和图像合成信息确定第一功耗参数时,可以基于第二屏幕刷新率和图像合成信息,从屏幕刷新率、图像合成信息与功耗参数之间的对应关系中,获取对应的功耗参数作为第一功耗参数;或者,当基于第二屏幕刷新率和图像合成信息确定第一功耗参数时,可以分别基于第二屏幕刷新率和图像合成信息确定功耗参数,并获取两个功耗参数的平均值作为第一功耗参数。It should be noted that, when the first power consumption parameter is determined based on the second screen refresh rate and the image composition information, the parameters between the screen refresh rate, the image composition information and the power consumption parameter may be determined based on the second screen refresh rate and the image composition information. In the corresponding relationship, the corresponding power consumption parameter is obtained as the first power consumption parameter; or, when the first power consumption parameter is determined based on the second screen refresh rate and image composition information, the second screen refresh rate and the image composition information can be determined based on the second screen refresh rate and image composition respectively. The information determines the power consumption parameter, and obtains the average value of the two power consumption parameters as the first power consumption parameter.
还需要说明的是,上述屏幕刷新率与功耗参数之间的对应关系、图像合成信息与功耗参数之间的对应关系或屏幕刷新率、图像合成信息与功耗参数之间的对应关系,可以通过事先设置得到。It should also be noted that the above-mentioned correspondence between the screen refresh rate and the power consumption parameter, the correspondence between the image synthesis information and the power consumption parameter, or the correspondence between the screen refresh rate, the image synthesis information and the power consumption parameter, It can be obtained by setting in advance.
在一些实施例中,功耗模块223可以向时钟控制模块232发送物理时钟控制通知,该物理时钟控制通知携带第一物理时钟;和/或,功耗模块223可以向电压控制模块233发送电压控制通知,该电压控制通知携带第一电压。In some embodiments, the power consumption module 223 may send a physical clock control notification to the clock control module 232, the physical clock control notification carrying the first physical clock; and/or the power consumption module 223 may send a voltage control notification to the voltage control module 233 notification, the voltage control notification carries the first voltage.
S606,时钟控制模块232将DSS112的当前物理时钟设置为第一物理时钟,和/或,电压控制模块233将DSS112的当前电压设置为第一电压。S606, the clock control module 232 sets the current physical clock of the DSS 112 as the first physical clock, and/or the voltage control module 233 sets the current voltage of the DSS 112 as the first voltage.
由于当屏幕刷新率变化时,DSS112可以按照与该屏幕刷新率对应的速度向DDIC122发送图像数据,发送图像数据的速度越快,DSS112的功耗也越高,所以为了使DSS112的功耗与屏幕刷新率相匹配,包括在屏幕刷新率降低时,及时降低DSS112 的功耗,时钟控制模块232和电压控制模块233可以分别对DSS112当前的物理时钟和电压进行控制。When the screen refresh rate changes, DSS112 can send image data to DDIC122 according to the speed corresponding to the screen refresh rate. The faster the speed of sending image data, the higher the power consumption of DSS112. Matching the refresh rate includes reducing the power consumption of the DSS112 in time when the screen refresh rate decreases, and the clock control module 232 and the voltage control module 233 can respectively control the current physical clock and voltage of the DSS112.
另外,在另一些实施例中,也可以不对DSS112的功耗参数进行调整,也即是S605和S606是可选的步骤。In addition, in other embodiments, the power consumption parameter of the DSS 112 may not be adjusted, that is, S605 and S606 are optional steps.
S607,MIPI时序控制模块231确定与第二屏幕刷新对应的第二水平时序。S607, the MIPI timing control module 231 determines the second horizontal timing corresponding to the second screen refresh.
由前述可知,DSS112是通过水平时序将图像数据逐行发送给向DDIC122。因此为了确保DDIC122正确地接收和显示图像,可以确定与第二屏幕刷新率对应的第二水平时序。As can be seen from the foregoing, the DSS 112 transmits the image data line by line to the DDIC 122 through the horizontal timing sequence. Therefore, in order to ensure that the DDIC 122 correctly receives and displays the image, a second horizontal timing corresponding to the second screen refresh rate may be determined.
其中,第二水平时序可以包括第二水平空白消隐区和第二有效显示区,第二水平空白消隐区可以包括第二HFP、第二Hsync和第二HBP。且由于第二有效显示区是用于实际传输图像中的每行像素,而对于同一电子设备100来说,显示面板121的宽度是不变的,那么对于不同屏幕刷新率,水平时序所包括的有效显示区所占用的时长可以相同,相应的,在S607中,确定第二水平时序,可以包括确定第二HFP、第二Hsync和第二HBP。The second horizontal timing sequence may include a second horizontal blank blanking area and a second effective display area, and the second horizontal blank blanking area may include a second HFP, a second Hsync, and a second HBP. And since the second effective display area is used for each row of pixels in the actual transmission image, and for the same electronic device 100, the width of the display panel 121 is constant, then for different screen refresh rates, the horizontal timing sequence includes: The time duration occupied by the effective display area may be the same. Correspondingly, in S607, determining the second horizontal timing sequence may include determining the second HFP, the second Hsync, and the second HBP.
另外,在一些实施例中,MIPI时序控制模块231可以确定发送与当前待显示图像相邻的前一帧图像对应的图像数据时的第一屏幕刷新率。MIPI时序控制模块231可以在确定第一屏幕刷新率与第二屏幕刷新率不同,即需要对当前的屏幕刷新率进行切换时,确定第二屏幕刷新率对应的第二水平时序。In addition, in some embodiments, the MIPI timing control module 231 may determine the first screen refresh rate when the image data corresponding to the previous frame image adjacent to the currently to-be-displayed image is sent. The MIPI timing control module 231 may determine the second horizontal timing sequence corresponding to the second screen refresh rate when it is determined that the first screen refresh rate is different from the second screen refresh rate, that is, the current screen refresh rate needs to be switched.
其中,第二水平时序中的PCLK周期可以与第一水平时序中的PCLK周期相同,即在切换屏幕刷新率时不需要改变PCLK周期,减少了显示黑屏和花屏等显示异常现象,提高了发送图像数据和后续基于该图像数据显示图像的可靠性。第一有效显示区的时长可以与第二有效显示区的时长相同。当第一屏幕刷新率大于第二屏幕刷新率,即降低屏幕刷新率时,第一水平空白消隐区的时长可以小于第二水平空白消隐区的时长:第一HFP的时长小于第二HFP的时长;和/或,第一Hsync的时长小于第二Hsync的时长;和/或,第一HBP的时长小于第二HBP的时长。当第一屏幕刷新率小于第二屏幕刷新率,即提高屏幕刷新率时,第一水平空白消隐区的时长可以大于第二水平空白消隐区的时长:第一HFP的时长大于第二HFP的时长;和/或,第一Hsync的时长大于第二Hsync的时长;和/或,第一HBP的时长大于第二HBP的时长。Among them, the PCLK cycle in the second horizontal sequence can be the same as the PCLK cycle in the first horizontal sequence, that is, the PCLK cycle does not need to be changed when the screen refresh rate is switched, which reduces abnormal display phenomena such as black screen and blurred screen, and improves the sending of images. The reliability of the data and subsequent display images based on this image data. The duration of the first effective display area may be the same as the duration of the second effective display area. When the refresh rate of the first screen is greater than the refresh rate of the second screen, that is, when the refresh rate of the screen is reduced, the duration of the first horizontal blanking area can be shorter than that of the second horizontal blanking area: the duration of the first HFP is shorter than that of the second HFP and/or, the duration of the first Hsync is shorter than the duration of the second Hsync; and/or, the duration of the first HBP is shorter than the duration of the second HBP. When the refresh rate of the first screen is lower than the refresh rate of the second screen, that is, when the refresh rate of the screen is increased, the duration of the first horizontal blanking area can be longer than that of the second horizontal blanking area: the duration of the first HFP is longer than that of the second HFP and/or, the duration of the first Hsync is greater than the duration of the second Hsync; and/or the duration of the first HBP is greater than the duration of the second HBP.
可选地,MIPI时序控制模块231可以基于第二屏幕刷新率,从屏幕刷新率与水平时序之间的对应关系中,获取对应的水平时序作为第二水平时序。请参照下述表3,第二屏幕刷新率为90Hz,则可以获取对应的第二水平时序包括第二HFP、第二Hsync和第二HBP的时长可以均为3个PCLK周期,如图7所示。Optionally, the MIPI timing control module 231 may obtain the corresponding horizontal timing as the second horizontal timing from the correspondence between the screen refresh rate and the horizontal timing based on the second screen refresh rate. Please refer to Table 3 below, the refresh rate of the second screen is 90Hz, then the corresponding second horizontal timing sequence including the second HFP, the second Hsync and the second HBP can be all 3 PCLK cycles, as shown in Figure 7 Show.
表3table 3
可选地,MIPI时序控制模块231可以获取与第一屏幕刷新对应的第一水平时序,其中,第一水平时序包括第一水平空白消隐区和第一有效显示区,第一水平空白消隐区包括第一HFP、第一Hsync和第一HBP。基于第一屏幕刷新率和第二屏幕刷新率,确定屏幕刷新率变化量,基于屏幕刷新率变化量确定水平时序变化量,该水平时序变化量包括N个PCLK周期。其中,屏幕刷新率变化量=第一屏幕刷新率-第二屏幕刷新率。如果屏幕刷新率变化量大于0,则表示是降低屏幕刷新率,可以基于该水平时序变化量,分别将第一HFP、第一Hsync和第一HBP增大M、P和Q个PCLK周期,得到第二HFP、第二Hsync和第二HBP,其中,N、M、P和Q为整数,且M+P+Q=N。也即是,将该N个PCLK周期插入至第一HFP、第一Hsync和第一HBP中的至少一个,从而增大水平空白消隐区的时长。相似的,如果屏幕刷新率变化量小于0,则表示是提高屏幕刷新率,可以基于该水平时序变化量,分别将第一HFP、第一Hsync和第一HBP减少M、P和Q个PCLK周期,得到第二HFP、第二Hsync和第二HBP,即从第一HFP、第一Hsync和第一HBP中的至少一个中抽取N个PCLK周期,从而降低水平空白消隐区的时长。Optionally, the MIPI timing control module 231 may acquire a first horizontal timing sequence corresponding to the first screen refresh, wherein the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area, and the first horizontal blank blanking The zone includes a first HFP, a first Hsync, and a first HBP. Based on the first screen refresh rate and the second screen refresh rate, a screen refresh rate variation is determined, and a horizontal timing variation is determined based on the screen refresh rate variation, where the horizontal timing variation includes N PCLK cycles. Wherein, the amount of screen refresh rate variation = the first screen refresh rate - the second screen refresh rate. If the change of the screen refresh rate is greater than 0, it means that the screen refresh rate is reduced. Based on the horizontal timing change, the first HFP, the first Hsync and the first HBP can be increased by M, P and Q PCLK cycles, respectively, to obtain The second HFP, the second Hsync, and the second HBP, where N, M, P, and Q are integers, and M+P+Q=N. That is, the N PCLK cycles are inserted into at least one of the first HFP, the first Hsync, and the first HBP, thereby increasing the duration of the horizontal blank blanking region. Similarly, if the change in the screen refresh rate is less than 0, it means that the screen refresh rate is increased, and the first HFP, the first Hsync and the first HBP can be reduced by M, P and Q PCLK cycles respectively based on the horizontal timing change. , the second HFP, the second Hsync and the second HBP are obtained, that is, N PCLK cycles are extracted from at least one of the first HFP, the first Hsync and the first HBP, thereby reducing the duration of the horizontal blanking area.
例如,获取到的第一水平时序如前述中图5所示,第一HFP、第一Hsync和第一HBP的时长均为2个PCLK周期,第一水平空白消隐区的时长为6个PCLK周期,第一有效显示区的时长为4个PCLK周期。与图7对比可知,第二HFP、第二Hsync和第二HBP的时长,分别比第一HFP、第一Hsync和第一HBP的时长大1个PCLK周期,第二水平时序的时长比第一水平时序的时长大3个PCLK周期,第一有效显示区的时长与第二有效显示区的时长相同。又或者,请参照图8-图10,分别提供了一种水平时序示意图。在如图8所示的第二水平时序中,第二HFP的时长比第一HFP的时长大3个PCLK周期,第一Hsync、第一HBP和第一有效显示区,分别与第二Hsync、第二HBP和第二有效显示区的时长相同。在如图9所示的第二水平时序中,第二Hsync的时长比第一Hsync的时长大3个PCLK周期,第一HFP、第一HBP和第一有效显示区,分别与第二HFP、第二HBP和第二有效显示区的时长相同。在如图10所示的第二水平时序中,第二HBP的时长比第一HBP的时长大3个PCLK,第一HFP、第一Hsync和第一有效显示区,分别与第二HFP、第二Hsync和第二有效显示区的时长相同。For example, the acquired first horizontal timing sequence is as shown in FIG. 5 above, the durations of the first HFP, the first Hsync and the first HBP are all 2 PCLK cycles, and the duration of the first horizontal blanking area is 6 PCLKs cycle, the duration of the first effective display area is 4 PCLK cycles. Compared with Fig. 7, it can be seen that the duration of the second HFP, the second Hsync and the second HBP is 1 PCLK cycle longer than the duration of the first HFP, the first Hsync and the first HBP respectively, and the duration of the second horizontal sequence is longer than that of the first HFP, the first Hsync and the first HBP respectively. The duration of the horizontal timing sequence is 3 PCLK cycles longer, and the duration of the first effective display area is the same as the duration of the second effective display area. Alternatively, please refer to FIG. 8 to FIG. 10 , which respectively provide a schematic diagram of a horizontal timing sequence. In the second horizontal timing sequence shown in FIG. 8 , the duration of the second HFP is 3 PCLK cycles longer than the duration of the first HFP, and the first Hsync, the first HBP and the first effective display area are The second HBP and the second active display area have the same duration. In the second horizontal timing sequence shown in FIG. 9 , the duration of the second Hsync is longer than the duration of the first Hsync by 3 PCLK cycles, and the first HFP, the first HBP and the first effective display area are the same as the second HFP, The second HBP and the second active display area have the same duration. In the second horizontal timing sequence shown in FIG. 10 , the duration of the second HBP is 3 PCLKs longer than the duration of the first HBP, and the first HFP, the first Hsync and the first effective display area are The duration of the second Hsync and the second effective display area is the same.
S608,MIPI时序控制模块231基于第二水平时序,向显示单元241发送图像数据。S608, the MIPI timing control module 231 sends image data to the display unit 241 based on the second horizontal timing.
其中,MIPI时序控制模块231可以基于MIPI接口113,从图像的第一行图像数据开始,基于第一水平时序,向显示单元241发送第一行图像数据包括的多个像素,然后再基于第一水平时序,向显示单元241发送第二行图像数据包括的多个像素,……,直至发送之后一行图像数据包括的多个像素。Wherein, the MIPI timing control module 231 may, based on the MIPI interface 113, start from the first line of image data of the image, and based on the first horizontal timing, send a plurality of pixels included in the first line of image data to the display unit 241, and then, based on the first line of image data, to the display unit 241 In the horizontal timing sequence, the plurality of pixels included in the image data of the second line are sent to the display unit 241, . . . , until the plurality of pixels included in the image data of the next line are sent.
可选地,MIPI时序控制模块231还可以向显示单元241发送屏幕刷新率切换通知,该屏幕刷新率切换通知用于通知显示单元241当前屏幕刷新率切换至第二屏幕刷新率。Optionally, the MIPI timing control module 231 may also send a screen refresh rate switching notification to the display unit 241, where the screen refresh rate switching notification is used to notify the display unit 241 to switch the current screen refresh rate to the second screen refresh rate.
S609,显示单元241基于接收到的图像数据显示图像。S609, the display unit 241 displays an image based on the received image data.
其中,显示单元241可以基于第一水平时序,接收第一行图像数据所包括的多个像素,控制显示面板121显示第一行图像数据,……,直至显示完最后一行图像数据时,显示面板121可以完整地显示第二图像数据对应的图像。The display unit 241 may receive a plurality of pixels included in the first line of image data based on the first horizontal timing sequence, and control the display panel 121 to display the first line of image data, . . . , until the last line of image data is displayed, the display panel 121 may completely display the image corresponding to the second image data.
需要说明的是,S605-S606设置DSS112的当前物理时钟和电压的步骤,与S607-S609基于当前的屏幕刷新率进行图像数据传输并显示的步骤可以独立执行。It should be noted that the steps of S605-S606 for setting the current physical clock and voltage of the DSS112 and the steps of S607-S609 for transmitting and displaying image data based on the current screen refresh rate can be performed independently.
在本申请实施例中,当屏幕刷新率由较大的第一屏幕刷新率切换至较小的第二屏幕刷新率时,可以将显示模组发送图像数据的时序从第一水平时序切换至第二水平时序。其中,第一水平时序包括第一水平空白消隐区和第一有效显示区,第二水平时序包括第二水平空白消隐区和第二有效显示区。由于第一水平时序中的PCLK周期与第二水平时序包括的PCLK周期相同,第一有效显示区的时长和第二有效显示区的时长相同,而第一水平空白消隐区的时长小于第二水平空白消隐区的时长,因此当屏幕刷新率降低时,可以在保持PCLK周期不变的情况下,增大水平空白消隐区,进而增大水平时序的时长,减少了电子设备因屏幕刷新率降低而出现显示异常的现象,提高了传输图像数据和基于该图像数据显示图像的可靠性。In the embodiment of the present application, when the screen refresh rate is switched from a relatively large first screen refresh rate to a relatively small second screen refresh rate, the timing of sending image data by the display module can be switched from the first horizontal timing to the second Two-level timing. The first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area, and the second horizontal timing sequence includes a second horizontal blank blanking area and a second effective display area. Since the PCLK cycle in the first horizontal timing sequence is the same as the PCLK cycle included in the second horizontal timing sequence, the duration of the first effective display area is the same as the duration of the second effective display area, and the duration of the first horizontal blanking area is smaller than that of the second The duration of the horizontal blanking area, so when the screen refresh rate is reduced, you can increase the horizontal blanking area while keeping the PCLK cycle unchanged, thereby increasing the duration of the horizontal sequence, reducing the electronic equipment due to screen refresh. The phenomenon that the display rate is reduced and the display abnormality occurs, and the reliability of transmitting image data and displaying images based on the image data is improved.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
基于同一发明构思,请参照图11,本申请实施例还提供了一种发送图像数据的装置1100,该装置1100可以设置前述电子设备100的SOC110中,该装置1100包括:Based on the same inventive concept, please refer to FIG. 11 , an embodiment of the present application further provides an apparatus 1100 for sending image data, the apparatus 1100 can be set in the SOC 110 of the aforementioned electronic device 100, and the apparatus 1100 includes:
处理模块1101,用于当屏幕刷新率由第一屏幕刷新率切换至第二屏幕刷新率时,将向显示模组发送图像数据的水平时序从第一水平时序切换至第二水平时序,第一屏幕刷新率大于第二屏幕刷新率;The processing module 1101 is used to switch the horizontal timing sequence of sending image data to the display module from the first horizontal timing sequence to the second horizontal timing sequence when the screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate. The screen refresh rate is greater than the second screen refresh rate;
其中,第一水平时序包括第一水平空白消隐区和第一有效显示区;Wherein, the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area;
第二水平时序包括的第二水平空白消隐区和第二有效显示区;a second horizontal blank blanking area and a second effective display area included in the second horizontal timing sequence;
第一水平时序中的PCLK周期和第二水平时序中的PCLK周期相同;The PCLK period in the first horizontal timing sequence is the same as the PCLK period in the second horizontal timing sequence;
第一有效显示区的时长和第二有效显示区的时长相同;The duration of the first effective display area is the same as the duration of the second effective display area;
第一水平空白消隐区的时长小于第二水平空白消隐区的时长。The duration of the first horizontal blank blanking area is shorter than the duration of the second horizontal blank blanking zone.
可选地,第一水平空白消隐区包括第一HFP、第一Hsync和第一HBP,第二水平空白消隐区包括第二HFP、第二Hsync和第二HBP;Optionally, the first horizontal blank blanking area includes a first HFP, a first Hsync and a first HBP, and the second horizontal blank blanking area includes a second HFP, a second Hsync and a second HBP;
第一HFP的时长小于第二HFP的时长;和/或,第一Hsync的时长小于第二Hsync的时长;和/或,第一HBP的时长小于第二HBP的时长。The duration of the first HFP is shorter than the duration of the second HFP; and/or the duration of the first Hsync is shorter than the duration of the second Hsync; and/or the duration of the first HBP is shorter than the duration of the second HBP.
可选地,处理模块还用于:Optionally, the processing module is also used to:
基于第一屏幕刷新率和第二屏幕刷新率,确定屏幕刷新率变化量;Determine the amount of screen refresh rate change based on the first screen refresh rate and the second screen refresh rate;
基于屏幕刷新率变化量,确定水平时序变化量,水平时序变化量为N个PCLK周期;Determine the horizontal timing variation based on the screen refresh rate variation, and the horizontal timing variation is N PCLK cycles;
基于水平时序变化量,分别将第一HFP、第一Hsync和第一HBP增大M、P和Q 个PCLK周期,得到第二HFP、第二Hsync和第二HBP;Based on the horizontal timing variation, the first HFP, the first Hsync and the first HBP are respectively increased by M, P and Q PCLK cycles to obtain the second HFP, the second Hsync and the second HBP;
其中,N、M、P和Q为整数,且M+P+Q=N。where N, M, P and Q are integers, and M+P+Q=N.
可选地,处理模块还用于:Optionally, the processing module is also used to:
当确定当前屏幕刷新率由第一屏幕刷新率切换至第二屏幕刷新率时,确定与第二屏幕刷新率对应的第一功耗参数;When it is determined that the current screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate, determining the first power consumption parameter corresponding to the second screen refresh rate;
将DSS当前的功耗参数设置为第一功耗参数,第一功耗参数所指示的功耗低于第一屏幕刷新率对应的第二功耗参数所指示的功耗。The current power consumption parameter of the DSS is set as the first power consumption parameter, and the power consumption indicated by the first power consumption parameter is lower than the power consumption indicated by the second power consumption parameter corresponding to the first screen refresh rate.
可选地,处理模块还用于:Optionally, the processing module is also used to:
用于获取与图像数据对应的图像合成信息,图像合成信息包括图层数目和图层总像素数目中的至少一个;for obtaining image synthesis information corresponding to the image data, the image synthesis information includes at least one of the number of layers and the total number of pixels in the layers;
基于第二屏幕刷新率和图像合成信息,确定第二功耗参数。The second power consumption parameter is determined based on the second screen refresh rate and the image composition information.
可选地,处理模块还用于执行下述至少一项操作:Optionally, the processing module is further configured to perform at least one of the following operations:
当第二功耗参数包括第一物理时钟时,将DSS的物理时钟设置为第一物理时钟;When the second power consumption parameter includes the first physical clock, setting the physical clock of the DSS as the first physical clock;
当第二功耗参数包括第一电压时,将DSS的电压设置为第一电压。When the second power consumption parameter includes the first voltage, the voltage of the DSS is set to the first voltage.
可选地,处理模块还用于:Optionally, the processing module is also used to:
获取至少一个图层;Get at least one layer;
将至少一个图层进行合成,得到图像数据。Synthesize at least one layer to obtain image data.
可选地,还包括发送模块,用于:Optionally, it also includes a sending module for:
向显示模组发送屏幕刷新率切换通知,屏幕刷新率切换通知用于指示当前屏幕刷新率切换至第二屏幕刷新率。Send a screen refresh rate switching notification to the display module, where the screen refresh rate switching notification is used to instruct the current screen refresh rate to switch to the second screen refresh rate.
本实施例提供的发送图像数据的装置1100可以执行上述方法实施例,其实现原理与技术效果类似,此处不再赘述。The apparatus 1100 for sending image data provided in this embodiment may execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
基于同一发明构思,本申请实施例还提供了一种电子设备1200。图12为本申请实施例提供的电子设备1200结构示意图,如图12所示,本实施例提供的电子设备1200包括:存储器1210和处理器1220,存储器1210用于存储计算机程序;处理器1220用于在调用计算机程序时执行上述方法实施例所述的方法。Based on the same inventive concept, the embodiment of the present application further provides an electronic device 1200 . FIG. 12 is a schematic structural diagram of an electronic device 1200 provided by an embodiment of the present application. As shown in FIG. 12 , the electronic device 1200 provided by this embodiment includes: a memory 1210 and a processor 1220. The memory 1210 is used to store computer programs; The methods described in the above method embodiments are executed when the computer program is invoked.
本实施例提供的电子设备1200可以执行上述方法实施例,其实现原理与技术效果类似,此处不再赘述。The electronic device 1200 provided in this embodiment can execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
基于同一发明构思,本申请实施例还提供了一种芯片系统。该所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述第一方面或第一方面的任一实施方式所述的方法。Based on the same inventive concept, an embodiment of the present application also provides a chip system. The chip system includes a processor coupled with a memory, and the processor executes a computer program stored in the memory, so as to implement the method described in the first aspect or any one of the implementation manners of the first aspect.
其中,该芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。Wherein, the chip system may be a single chip, or a chip module composed of multiple chips.
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例所述的方法。Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the foregoing method embodiment is implemented.
本申请实施例还提供一种计算机程序产品,当计算机程序产品在电子设备1200上运行时,使得电子设备1200执行时实现上述方法实施例所述的方法。The embodiment of the present application further provides a computer program product, when the computer program product runs on the electronic device 1200, the electronic device 1200 implements the method described in the foregoing method embodiments when executed.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计 算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable storage medium may include at least: any entity or device capable of carrying computer program codes to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM), random access Memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media. For example, U disk, mobile hard disk, disk or CD, etc. In some jurisdictions, under legislation and patent practice, computer readable media may not be electrical carrier signals and telecommunications signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/device and method may be implemented in other manners. For example, the apparatus/equipment embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or Components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification of this application and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and should not be construed as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. Scope.
Claims (16)
- 一种发送图像数据的方法,其特征在于,包括:A method for sending image data, comprising:当屏幕刷新率由第一屏幕刷新率切换至第二屏幕刷新率时,将向显示模组发送图像数据的水平时序从第一水平时序切换至第二水平时序,所述第一屏幕刷新率大于所述第二屏幕刷新率;When the screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate, the horizontal timing sequence for sending image data to the display module is switched from the first horizontal timing sequence to the second horizontal timing sequence, and the first screen refresh rate is greater than the second screen refresh rate;其中,所述第一水平时序包括第一水平空白消隐区和第一有效显示区;Wherein, the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area;所述第二水平时序包括的第二水平空白消隐区和第二有效显示区;a second horizontal blank blanking area and a second effective display area included in the second horizontal timing sequence;所述第一水平时序中的像素时钟PCLK周期和所述第二水平时序中的PCLK周期相同;The pixel clock PCLK period in the first horizontal timing sequence is the same as the PCLK period in the second horizontal timing sequence;所述第一有效显示区的时长和所述第二有效显示区的时长相同;The duration of the first effective display area is the same as the duration of the second effective display area;所述第一水平空白消隐区的时长小于所述第二水平空白消隐区的时长。The duration of the first horizontal blank blanking area is shorter than the duration of the second horizontal blank blanking zone.
- 根据权利要求1所述的方法,其特征在于,所述第一水平空白消隐区包括第一水平前沿HFP、第一水平同步信号Hsync和第一水平后沿HBP,所述第二水平空白消隐区包括第二HFP、第二Hsync和第二HBP;The method according to claim 1, wherein the first horizontal blank blanking region comprises a first horizontal leading edge HFP, a first horizontal synchronization signal Hsync and a first horizontal trailing edge HBP, and the second horizontal blank blanking region comprises a first horizontal blank blanking region. The hidden region includes a second HFP, a second Hsync and a second HBP;所述第一HFP的时长小于所述第二HFP的时长;和/或,所述第一Hsync的时长小于所述第二Hsync的时长;和/或,所述第一HBP的时长小于所述第二HBP的时长。The duration of the first HFP is shorter than the duration of the second HFP; and/or the duration of the first Hsync is shorter than the duration of the second Hsync; and/or the duration of the first HBP is shorter than the duration of the first HFP Duration of the second HBP.
- 根据权利要求2所述的方法,其特征在于,在所述将向显示模组发送图像数据的水平时序从第一水平时序切换至第二水平时序之前,还包括:The method according to claim 2, wherein before the switching of the horizontal timing sequence for sending image data to the display module from the first horizontal timing sequence to the second horizontal timing sequence, the method further comprises:基于所述第一屏幕刷新率和所述第二屏幕刷新率,确定屏幕刷新率变化量;based on the first screen refresh rate and the second screen refresh rate, determining an amount of screen refresh rate variation;基于所述屏幕刷新率变化量,确定水平时序变化量,所述水平时序变化量为N个PCLK周期;Determine the horizontal timing variation based on the screen refresh rate variation, where the horizontal timing variation is N PCLK cycles;基于所述水平时序变化量,分别将所述第一HFP、所述第一Hsync和所述第一HBP增大M、P和Q个PCLK周期,得到所述第二HFP、第二Hsync和第二HBP;Based on the horizontal timing change amount, the first HFP, the first Hsync and the first HBP are respectively increased by M, P and Q PCLK cycles to obtain the second HFP, the second Hsync and the first HBP. 2HBP;其中,N、M、P和Q为整数,且M+P+Q=N。where N, M, P and Q are integers, and M+P+Q=N.
- 根据权利要求1-3任一所述的方法,其特征在于,还包括:The method according to any one of claims 1-3, characterized in that, further comprising:当所述屏幕刷新率由所述第一屏幕刷新率切换至所述第二屏幕刷新率时,确定与所述第二屏幕刷新率对应的第一功耗参数;When the screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate, determining a first power consumption parameter corresponding to the second screen refresh rate;将显示控制器DSS当前的功耗参数设置为所述第一功耗参数,所述第一功耗参数所指示的功耗低于所述第一屏幕刷新率对应的第二功耗参数所指示的功耗。Setting the current power consumption parameter of the display controller DSS as the first power consumption parameter, the power consumption indicated by the first power consumption parameter is lower than that indicated by the second power consumption parameter corresponding to the first screen refresh rate power consumption.
- 根据权利要求4所述的方法,其特征在于,还包括:The method of claim 4, further comprising:获取与所述图像数据对应的图像合成信息,所述图像合成信息包括图层数目和图层总像素数目中的至少一个;acquiring image composition information corresponding to the image data, the image composition information including at least one of the number of layers and the total number of pixels in the layers;所述确定与所述第二屏幕刷新率对应的第一功耗参数,包括:The determining of the first power consumption parameter corresponding to the second screen refresh rate includes:基于所述第二屏幕刷新率和所述图像合成信息,确定所述第二功耗参数。The second power consumption parameter is determined based on the second screen refresh rate and the image composition information.
- 根据权利要求4或5所述的方法,其特征在于,所述将DSS当前的功耗参数设置为所述第一功耗参数,包括下述至少一项:The method according to claim 4 or 5, wherein the setting the current power consumption parameter of the DSS as the first power consumption parameter comprises at least one of the following:当所述第二功耗参数包括第一物理时钟时,将所述DSS的物理时钟设置为所述第一物理时钟;When the second power consumption parameter includes a first physical clock, setting the physical clock of the DSS as the first physical clock;当所述第二功耗参数包括第一电压时,将所述DSS的电压设置为所述第一电压。When the second power consumption parameter includes a first voltage, the voltage of the DSS is set to the first voltage.
- 根据权利要求1-6任一所述的方法,其特征在于,还包括:The method according to any one of claims 1-6, further comprising:获取至少一个图层;Get at least one layer;将所述至少一个图层进行合成,得到所述图像数据。The at least one layer is synthesized to obtain the image data.
- 根据权利要求1-7任一所述的方法,其特征在于,还包括:The method according to any one of claims 1-7, further comprising:向所述显示模组发送屏幕刷新率切换通知,所述屏幕刷新率切换通知用于指示当前屏幕刷新率切换至所述第二屏幕刷新率。A screen refresh rate switching notification is sent to the display module, where the screen refresh rate switching notification is used to instruct the current screen refresh rate to be switched to the second screen refresh rate.
- 一种发送图像数据的装置,其特征在于,包括:A device for sending image data, comprising:处理模块,用于当屏幕刷新率由第一屏幕刷新率切换至第二屏幕刷新率时,将向显示模组发送图像数据的水平时序从第一水平时序切换至第二水平时序,所述第一屏幕刷新率大于所述第二屏幕刷新率;The processing module is configured to switch the horizontal timing sequence for sending image data to the display module from the first horizontal timing sequence to the second horizontal timing sequence when the screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate. A screen refresh rate is greater than the second screen refresh rate;其中,所述第一水平时序包括第一水平空白消隐区和第一有效显示区;Wherein, the first horizontal timing sequence includes a first horizontal blank blanking area and a first effective display area;所述第二水平时序包括的第二水平空白消隐区和第二有效显示区;a second horizontal blank blanking area and a second effective display area included in the second horizontal timing sequence;所述第一水平时序中的PCLK周期和所述第二水平时序中的PCLK周期相同;The PCLK period in the first horizontal timing sequence is the same as the PCLK period in the second horizontal timing sequence;所述第一有效显示区的时长和所述第二有效显示区的时长相同;The duration of the first effective display area is the same as the duration of the second effective display area;所述第一水平空白消隐区的时长小于所述第二水平空白消隐区的时长。The duration of the first horizontal blank blanking area is shorter than the duration of the second horizontal blank blanking zone.
- 根据权利要求9所述的装置,其特征在于,所述第一水平空白消隐区包括第一HFP、第一Hsync和第一HBP,所述第二水平空白消隐区包括第二HFP、第二Hsync和第二HBP;The apparatus according to claim 9, wherein the first horizontal blank blanking area includes a first HFP, a first Hsync and a first HBP, and the second horizontal blank blanking area includes a second HFP, a first Hsync and a first HBP. Second Hsync and Second HBP;所述第一HFP的时长小于所述第二HFP的时长;和/或,所述第一Hsync的时长小于所述第二Hsync的时长;和/或,所述第一HBP的时长小于所述第二HBP的时长。The duration of the first HFP is shorter than the duration of the second HFP; and/or the duration of the first Hsync is shorter than the duration of the second Hsync; and/or the duration of the first HBP is shorter than the duration of the first HBP Duration of the second HBP.
- 根据权利要求10所述的装置,其特征在于,所述处理模块还用于:The apparatus according to claim 10, wherein the processing module is further configured to:基于所述第一屏幕刷新率和所述第二屏幕刷新率,确定屏幕刷新率变化量;based on the first screen refresh rate and the second screen refresh rate, determining an amount of screen refresh rate variation;基于所述屏幕刷新率变化量,确定水平时序变化量,所述水平时序变化量为N个PCLK周期;Determine a horizontal timing variation based on the screen refresh rate variation, where the horizontal timing variation is N PCLK cycles;基于所述水平时序变化量,分别将所述第一HFP、所述第一Hsync和所述第一HBP增大M、P和Q个PCLK周期,得到所述第二HFP、第二Hsync和第二HBP;Based on the horizontal timing variation, the first HFP, the first Hsync and the first HBP are respectively increased by M, P and Q PCLK cycles to obtain the second HFP, the second Hsync and the first HBP. 2HBP;其中,N、M、P和Q为整数,且M+P+Q=N。where N, M, P and Q are integers, and M+P+Q=N.
- 根据权利要求9-11任一所述的装置,其特征在于,所述处理模块还用于:The device according to any one of claims 9-11, wherein the processing module is further configured to:当所述屏幕刷新率由所述第一屏幕刷新率切换至所述第二屏幕刷新率时,确定与所述第二屏幕刷新率对应的第一功耗参数;When the screen refresh rate is switched from the first screen refresh rate to the second screen refresh rate, determining a first power consumption parameter corresponding to the second screen refresh rate;将显示控制器DSS当前的功耗参数设置为所述第一功耗参数,所述第一功耗参数所指示的功耗低于所述第一屏幕刷新率对应的第二功耗参数所指示的功耗。Setting the current power consumption parameter of the display controller DSS as the first power consumption parameter, the power consumption indicated by the first power consumption parameter is lower than that indicated by the second power consumption parameter corresponding to the first screen refresh rate power consumption.
- 根据权利要求12所述的装置,其特征在于,所述处理模块还用于:The apparatus according to claim 12, wherein the processing module is further configured to:用于获取与所述图像数据对应的图像合成信息,所述图像合成信息包括图层数目和图层总像素数目中的至少一个;for acquiring image synthesis information corresponding to the image data, the image synthesis information including at least one of the number of layers and the total number of pixels in the layers;基于所述第二屏幕刷新率和所述图像合成信息,确定所述第二功耗参数。The second power consumption parameter is determined based on the second screen refresh rate and the image composition information.
- 根据权利要求9-13任一所述的装置,其特征在于,还包括发送模块,用于:The device according to any one of claims 9-13, further comprising a sending module for:向所述显示模组发送屏幕刷新率切换通知,所述屏幕刷新率切换通知用于指示当前屏幕刷新率切换至所述第二屏幕刷新率。A screen refresh rate switching notification is sent to the display module, where the screen refresh rate switching notification is used to instruct the current screen refresh rate to be switched to the second screen refresh rate.
- 一种电子设备,其特征在于,包括:存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于在调用所述计算机程序时执行如权利要求1-8任一项所述的方法。An electronic device, characterized in that it comprises: a memory and a processor, wherein the memory is used to store a computer program; the processor is used to execute the method according to any one of claims 1-8 when the computer program is invoked method.
- 一种芯片系统,其特征在于,所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行所述存储器中存储的计算机程序,以实现如权利要求1-9任一项所述的方法。A chip system, characterized in that the chip system includes a processor, the processor is coupled with a memory, and the processor executes a computer program stored in the memory, so as to realize any one of claims 1-9 the method described.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010988832.4 | 2020-09-18 | ||
CN202010988832.4A CN114205485B (en) | 2020-09-18 | 2020-09-18 | Method and device for sending image data |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022057601A1 true WO2022057601A1 (en) | 2022-03-24 |
Family
ID=80645125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/115285 WO2022057601A1 (en) | 2020-09-18 | 2021-08-30 | Method and apparatus for sending image data |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114205485B (en) |
WO (1) | WO2022057601A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115002542A (en) * | 2022-05-26 | 2022-09-02 | 展讯半导体(南京)有限公司 | Frame rate adjusting method and device, computer readable storage medium and terminal |
CN116052578A (en) * | 2023-03-31 | 2023-05-02 | 深圳曦华科技有限公司 | Method and device for synchronously controlling chip input and output in display chip system |
CN116798376A (en) * | 2023-08-02 | 2023-09-22 | 苏州华星光电技术有限公司 | Display panel and driving method thereof |
CN117711356A (en) * | 2022-08-24 | 2024-03-15 | 荣耀终端有限公司 | Screen refresh rate switching method and electronic equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118298780A (en) * | 2023-01-05 | 2024-07-05 | 荣耀终端有限公司 | Refresh rate switching method and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100149413A1 (en) * | 2008-12-15 | 2010-06-17 | Kabushiki Kaisha Toshiba | Electronic apparatus and display control method |
CN102750932A (en) * | 2006-07-31 | 2012-10-24 | 夏普株式会社 | Display controller, display device, display system, and method for controlling display device |
CN106205460A (en) * | 2016-09-29 | 2016-12-07 | 京东方科技集团股份有限公司 | The driving method of display device, time schedule controller and display device |
CN106782259A (en) * | 2015-09-25 | 2017-05-31 | 乐金显示有限公司 | Display device and the method for driving the display device |
CN107039013A (en) * | 2017-05-25 | 2017-08-11 | 上海中航光电子有限公司 | A kind of display driver circuit plate, its driving method and display device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050122820A (en) * | 2004-06-25 | 2005-12-29 | 주식회사 대우일렉트로닉스 | Hdtv having an automatic screen turnover by checking a horizontal blacking time |
CN106131476B (en) * | 2016-06-22 | 2019-02-26 | 北京集创北方科技股份有限公司 | The method and apparatus that control display refreshes |
-
2020
- 2020-09-18 CN CN202010988832.4A patent/CN114205485B/en active Active
-
2021
- 2021-08-30 WO PCT/CN2021/115285 patent/WO2022057601A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750932A (en) * | 2006-07-31 | 2012-10-24 | 夏普株式会社 | Display controller, display device, display system, and method for controlling display device |
US20100149413A1 (en) * | 2008-12-15 | 2010-06-17 | Kabushiki Kaisha Toshiba | Electronic apparatus and display control method |
CN106782259A (en) * | 2015-09-25 | 2017-05-31 | 乐金显示有限公司 | Display device and the method for driving the display device |
CN106205460A (en) * | 2016-09-29 | 2016-12-07 | 京东方科技集团股份有限公司 | The driving method of display device, time schedule controller and display device |
CN107039013A (en) * | 2017-05-25 | 2017-08-11 | 上海中航光电子有限公司 | A kind of display driver circuit plate, its driving method and display device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115002542A (en) * | 2022-05-26 | 2022-09-02 | 展讯半导体(南京)有限公司 | Frame rate adjusting method and device, computer readable storage medium and terminal |
CN117711356A (en) * | 2022-08-24 | 2024-03-15 | 荣耀终端有限公司 | Screen refresh rate switching method and electronic equipment |
CN116052578A (en) * | 2023-03-31 | 2023-05-02 | 深圳曦华科技有限公司 | Method and device for synchronously controlling chip input and output in display chip system |
CN116052578B (en) * | 2023-03-31 | 2023-08-04 | 深圳曦华科技有限公司 | Method and device for synchronously controlling chip input and output in display chip system |
CN116798376A (en) * | 2023-08-02 | 2023-09-22 | 苏州华星光电技术有限公司 | Display panel and driving method thereof |
CN116798376B (en) * | 2023-08-02 | 2023-11-28 | 苏州华星光电技术有限公司 | Display panel and driving method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN114205485B (en) | 2023-03-10 |
CN114205485A (en) | 2022-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022057601A1 (en) | Method and apparatus for sending image data | |
US8581833B2 (en) | System, method, and computer program product for controlling stereo glasses shutters | |
US8878904B2 (en) | System, method, and computer program product for increasing an LCD display vertical blanking interval | |
EP2619653B1 (en) | Techniques to transmit commands to a target device | |
US8436863B2 (en) | Switch for graphics processing units | |
US8823721B2 (en) | Techniques for aligning frame data | |
CN103109267B (en) | Change the method, apparatus and system of image display properties | |
US8872754B2 (en) | System, method, and computer program product for controlling stereo glasses shutters | |
WO2012096967A1 (en) | Mirroring graphics content to an external display | |
EP1999740A2 (en) | System, method, and computer program product for controlling stereo glasses shutters | |
TWI419006B (en) | Quick port switching method and associated apparatus | |
CN102622991A (en) | Image adjusting device and image adjusting method | |
US11151929B2 (en) | Control method and control circuit for display device | |
WO2023174123A1 (en) | Display control chip, display panel, and related device, method and apparatus | |
TWI386041B (en) | Apparatuses for capturing and storing real-time images | |
US11804195B2 (en) | Display equipment, brightness compensation device and brightness compensation method | |
US9087473B1 (en) | System, method, and computer program product for changing a display refresh rate in an active period | |
US8194065B1 (en) | Hardware system and method for changing a display refresh rate | |
JP5628484B2 (en) | Display method and display device using the same | |
TWI825893B (en) | Image processing method and display device | |
CN109936708B (en) | VGA video switching device, method and system | |
US9489916B2 (en) | Processing method of an external-image device | |
WO2022236601A1 (en) | Image data transmission method and apparatus | |
CN112187225B (en) | Clock calibration method and device | |
EP1326429B1 (en) | Automatic detection of synchronisation signal polarity in video timing and generation of blanking period signal indicator from sync information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21868429 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21868429 Country of ref document: EP Kind code of ref document: A1 |