[go: up one dir, main page]

WO2018161534A1 - Image display method, dual screen terminal and computer readable non-volatile storage medium - Google Patents

Image display method, dual screen terminal and computer readable non-volatile storage medium Download PDF

Info

Publication number
WO2018161534A1
WO2018161534A1 PCT/CN2017/102896 CN2017102896W WO2018161534A1 WO 2018161534 A1 WO2018161534 A1 WO 2018161534A1 CN 2017102896 W CN2017102896 W CN 2017102896W WO 2018161534 A1 WO2018161534 A1 WO 2018161534A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
image
layers
display
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2017/102896
Other languages
French (fr)
Chinese (zh)
Inventor
梅正怡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Publication of WO2018161534A1 publication Critical patent/WO2018161534A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • G06F3/1431Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display using a single graphics controller

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a method for displaying an image, a dual screen terminal, and a computer readable nonvolatile storage medium.
  • terminals such as mobile phones with display functions.
  • terminals such as mobile phones with display functions.
  • only one screen is set in the terminal used by the user, and the user can interact with the terminal through the image displayed on the terminal screen.
  • most of the terminals only support the display of a single screen, and there are two factors on the terminal for simultaneously displaying images. More.
  • Embodiments of the present invention provide a method of displaying an image, a dual screen terminal, and a computer readable nonvolatile storage medium.
  • an embodiment of the present invention provides a method for displaying an image, where the method includes:
  • the first image is transmitted to the first screen for display by a hardware synthesizer in the dual screen terminal, and the second image is transmitted to the second screen for display.
  • the synthesizing the plurality of layers to be synthesized corresponding to the first screen to form a first image includes:
  • synthesizing the plurality of layers to be synthesized corresponding to the second screen to form a second image including:
  • the first screen is an ink screen
  • the acquiring a plurality of layers to be synthesized corresponding to the first screen includes:
  • synthesizing the plurality of layers to be synthesized corresponding to the first screen, and forming the first image includes:
  • acquiring the plurality of layers to be synthesized corresponding to the second screen includes:
  • synthesizing the plurality of layers to be synthesized corresponding to the second screen, and forming the second image includes:
  • acquiring the plurality of layers to be synthesized corresponding to the second screen includes:
  • the channel other than the first channel the plurality of layers to be synthesized corresponding to the second screen, wherein one channel of the hardware synthesizer acquires a layer, where the The number of layers of the plurality of layers to be synthesized corresponding to the two screens is less than or equal to the number of channels of the hardware synthesizer minus one;
  • synthesizing the plurality of layers to be synthesized corresponding to the second screen to form a second image including:
  • the layers in the first layer set do not change.
  • the layers in the second layer set are all changed, and the multiple layers to be synthesized corresponding to the second screen are obtained, including:
  • synthesizing the plurality of layers to be synthesized corresponding to the second screen to form a second image including:
  • each layer in the second layer set and the third image to form the second image.
  • the first channel stored in the first buffer area is acquired by the first channel of the hardware synthesizer, and the first image is transmitted to the first screen for display, including :
  • the method further includes:
  • the first buffer is stored in the first channel of the hardware synthesizer And transmitting the first image to the first screen for display, including:
  • Decoding the first image obtaining logical TCON data corresponding to the first image, and driving the first screen to display according to the TCON data.
  • an embodiment of the present invention provides a dual screen terminal, including: the dual screen terminal includes: a memory, a processor, a GPU, a hardware synthesizer, a first screen, a second screen, and are stored on the memory and a program executable on the processor, the processor being respectively coupled to the memory, the hardware synthesizer, and the GPU, the GPU being coupled to the memory, the hardware synthesizer separately and the The memory, the first screen and the second screen are connected, and the processor implements the program when:
  • the first image is transmitted to the first screen for display by a hardware synthesizer in the dual screen terminal, and the second image is transmitted to the second screen for display.
  • the processor implements the program when:
  • the first screen is an ink screen
  • the implementation when the processor executes the program, the implementation is:
  • the processor executes the program:
  • the processor executes the program:
  • the channel other than the first channel the plurality of layers to be synthesized corresponding to the second screen, wherein one channel of the hardware synthesizer acquires a layer, where the The number of layers of the plurality of layers to be synthesized corresponding to the two screens is less than or equal to the number of channels of the hardware synthesizer minus one;
  • the processor when the plurality of layers to be synthesized corresponding to the second screen includes a first layer set and a second layer set, the processor implements the program when:
  • each layer in the second layer set and the third image to form the second image.
  • the processor implements the program when:
  • the processor when executing the program further implements:
  • the processor implements the program when:
  • Decoding the first image obtaining logical TCON data corresponding to the first image, and driving the first screen to display according to the TCON data.
  • an embodiment of the present invention provides a computer readable non-volatile storage medium, where the non-volatile storage medium stores a program, and when the program is executed, the method step of the first aspect is carried out.
  • an embodiment of the present invention provides an apparatus for displaying an image, including:
  • An acquiring module configured to respectively acquire a plurality of layers to be synthesized corresponding to the first screen and multiple layers to be synthesized corresponding to the second screen;
  • a synthesizing module configured to synthesize a plurality of layers to be synthesized corresponding to the first screen to form a first image, and synthesize the plurality of layers to be synthesized corresponding to the second screen to form a second image ;
  • a display module configured to transmit the first image to the first screen for display through a hardware synthesizer in the dual screen terminal, and transmit the second image to the second screen for display.
  • the synthesizing module is configured to display, according to the display position of the first screen, each of the plurality of layers to be synthesized corresponding to the first screen, to the first screen Corresponding multiple layers to be combined are combined to form the first image; according to the display position of each of the plurality of layers to be synthesized corresponding to the second screen at the second screen, And synthesizing a plurality of layers to be synthesized corresponding to the second screen to form the second image.
  • the acquiring module is configured to acquire, by the graphics processor GPU in the dual screen terminal, a plurality of graphics to be synthesized corresponding to the first screen, when the first screen is an ink screen. Floor;
  • the synthesizing module is configured to synthesize a plurality of layers to be synthesized corresponding to the first screen by using the GPU to form the first image, and store the first image in a first buffer area;
  • the display module is configured to acquire a first image stored in the first buffer area by using a first channel of the hardware synthesizer, and transmit the first image to the first screen for display.
  • the acquiring module is configured to acquire, by the GPU, the first screen correspondingly when each of the plurality of layers to be synthesized corresponding to the second screen does not change. Multiple to be synthesized Layer
  • the synthesizing module is configured to synthesize a plurality of layers to be synthesized corresponding to the second screen by using the GPU to form the second image, and store the second image in a second buffer area;
  • the display module is configured to acquire a second image stored in the second buffer area by using a second channel of the hardware synthesizer, and transmit the second image to the second screen for display.
  • the acquiring module is configured to remove, by the hardware synthesizer, the first one when each of the plurality of layers to be synthesized corresponding to the second screen changes
  • the channel outside the channel acquires multiple layers to be synthesized corresponding to the second screen, where one channel in the hardware synthesizer acquires a layer, and the number of multiple layers to be synthesized corresponding to the second screen is smaller than Or equal to the number of channels of the hardware synthesizer minus one;
  • the synthesizing module is configured to synthesize a plurality of layers to be synthesized corresponding to the second screen by using the hardware synthesizer to form the second image.
  • the acquiring module is configured to acquire, by the GPU, when the multiple layers to be synthesized corresponding to the second screen include a first layer set and a second layer set Each layer in a set of layers acquires each layer in the second set of layers through the remaining channels of the hardware synthesizer except the first channel and the second channel; wherein one of the hardware synthesizers The channel acquires a layer, the number of layers in the second set is less than or equal to the number of channels of the hardware synthesizer minus 2;
  • the synthesizing module is configured to synthesize each layer in the first layer set by the GPU to form a third image, and store the third image in a second buffer area;
  • the acquiring module is further configured to acquire, by using a second channel of the hardware synthesizer, a third image stored in the second buffer area;
  • the synthesizing module is further configured to synthesize each layer in the second layer set and the third image by using the hardware synthesizer to form the second image.
  • the display module is configured to acquire, by the first channel of the hardware synthesizer in the dual screen terminal, when the GPU completes the synthesis completion instruction of the first image. a first image stored in the first buffer area, and transmitting the first image to the first screen for display; when detecting a synthesis completion instruction of the second image by the GPU, passing the hardware
  • the second channel of the synthesizer acquires the second image stored in the second buffer area and transmits the second image to the second screen for display.
  • the apparatus further includes a deletion module
  • the deleting module is configured to: when the display completion instruction of the first image is detected, delete the first image in the first buffer area; when detecting the display completion instruction of the second image, The second image in the second buffer area is deleted.
  • the apparatus further includes a decoding module
  • the acquiring module is further configured to acquire, by using the first channel of the hardware synthesizer, the first image stored in the first buffer area;
  • the decoding module is configured to decode the first image, obtain logical TCON data corresponding to the first image, and drive the first screen to display according to the TCON data.
  • Embodiment 1 is a schematic flow chart of Embodiment 1 of a method for displaying an image provided by the present invention
  • FIG. 2 is a schematic diagram of layer composition according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of Embodiment 2 of a method for displaying an image according to the present invention
  • FIG. 3a is a schematic diagram of layer synthesis according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic flow chart of a third embodiment of a method for displaying an image according to the present invention.
  • FIG. 4a is a schematic diagram of layer synthesis according to Embodiment 3 of the present invention.
  • 4b is a schematic diagram showing a display flow of the first image and the second image
  • FIG. 5 is a schematic flowchart diagram of Embodiment 4 of a method for displaying an image according to the present invention
  • FIG. 5a is a schematic diagram of layer composition according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic flowchart diagram of Embodiment 5 of a method for displaying an image according to the present invention.
  • FIG. 6a is a schematic diagram of layer composition according to Embodiment 5 of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic flowchart diagram of Embodiment 1 of an apparatus for displaying an image according to the present invention.
  • FIG. 10 is a schematic flowchart diagram of Embodiment 2 of an apparatus for displaying an image according to the present invention.
  • FIG. 11 is a schematic flowchart diagram of Embodiment 3 of an apparatus for displaying an image according to the present invention.
  • the embodiment of the invention provides a method for displaying an image, and the execution body of the method is a dual screen terminal.
  • the dual-screen terminal may be any terminal having a display function, such as a dual-screen mobile phone.
  • the dual-screen terminal may be provided with a graphics processor, a memory, a hardware synthesizer, a screen, and the graphics processor may be used for processing related processes of synthesizing a plurality of layers, and the memory may be used to store the following processes required and generated.
  • the data synthesizer can be used for correlation processing of multiple layers for synthesis, and can be used to acquire images stored in the buffer area and transfer them to the screen, which can be used to display images.
  • FIG. 1 is a schematic flowchart diagram of Embodiment 1 of a method for displaying an image provided by the present invention.
  • the execution body of this embodiment is a dual screen terminal, and specifically may be a device having a display image function in a dual screen terminal.
  • the method in this embodiment may include:
  • the method for synthesizing the image to be displayed on the first screen is similar to the method for synthesizing the image to be displayed on the second screen, and the first screen will be taken as an example in conjunction with the specific embodiment.
  • the image displayed by the dual-screen terminal is synthesized by multiple layers, that is, the dual-screen terminal is often used before the image is displayed. Synthesize multiple layers contained in the image to be displayed on the screen.
  • the display content and the scene will change constantly, and the number of layers will change constantly. To display the desired content on the screen, these images must be displayed.
  • the layers are combined into a final picture.
  • smart terminals with display will have GPU and hardware synthesizer, and the synthesis of layers is done by these two modules. Among them, the hardware synthesizer consumes less power when synthesized.
  • GPU synthesis refers to merging layers according to the size and starting position of the layer in order from top to bottom.
  • the dual screen terminal can pass the GPU (Graphics Processing) Unit, graphics processor or CPU (Central Processing Unit) draws the layer, or draws the layer by the upper application to get the multiple layers corresponding to the first screen, GPU or hardware synthesizer (For example, the Overlay module) may acquire a plurality of layers to be synthesized corresponding to the first screen and a plurality of layers to be synthesized corresponding to the second screen.
  • GPU Graphics Processing
  • CPU Central Processing Unit
  • the Overlay module may acquire a plurality of layers to be synthesized corresponding to the first screen and a plurality of layers to be synthesized corresponding to the second screen.
  • the GPU or the hardware synthesizer may combine the multiple layers to be synthesized corresponding to the first screen to form a first image.
  • the first image corresponds to four layers to be synthesized, wherein when the contents in the first layer and the second layer are unchanged, the contents in the third layer and the fourth layer are changed at any time, such that
  • the GPU can be used to synthesize the first layer and the second layer, the third layer and the fourth layer are synthesized using a hardware synthesizer, and then the GPU synthesized image and hardware synthesizer are synthesized using a hardware synthesizer.
  • the image is finally synthesized to obtain the first image.
  • the method for synthesizing the first image is not limited, and is specifically determined according to actual needs.
  • the obtaining process of the second image is the same as the acquiring process of the first image, and the description of the first image is not described herein.
  • the first image is transmitted to the first screen for display through a hardware synthesizer in the dual screen terminal, and the second image is transmitted to the second screen for display.
  • the dual screen terminal may send the first image to the first screen for display by using a hardware synthesizer (HW overlay), and send the second image to the second screen for display.
  • HW overlay hardware synthesizer
  • the synthesis function of the hardware synthesizer in this step is turned off and is in the channel mode.
  • the hardware synthesizer directly transmits the synthesized first image or the second image to the first screen or the second screen. display. If the first image and the second image are synthesized by the GPU, the hardware synthesizer acquires the first image and the second image synthesized by the GPU, and transmits the first image to the first display screen for display using different channels, and the second image The image is transmitted to the second display for display.
  • the solution of the embodiment of the present invention may be applicable to a scenario in which the first screen and the second screen are simultaneously displayed.
  • the dual screen terminal can also adopt the method of displaying an image on the first screen or the second screen described in the present scheme.
  • the method for displaying an image obtained by the embodiment of the present invention obtains a plurality of to-be-synthesized corresponding to the first screen respectively. a plurality of layers to be combined corresponding to the second layer and the second screen; combining the plurality of layers to be synthesized corresponding to the first screen to form a first image, and corresponding to the second screen
  • the layer is synthesized to form a second image; the first image is transmitted to the first screen for display through the hardware synthesizer in the dual screen terminal, and the second image is transmitted to the second screen for display, thereby realizing two of the dual screen terminals
  • the screen also displays an image with multiple layers.
  • the multiple layers to be synthesized corresponding to the first screen are combined to form a first image, and the method includes:
  • each of the plurality of layers to be combined corresponding to the first screen synthesizing a plurality of layers to be synthesized corresponding to the first screen to form The first image.
  • an upper layer application (such as a desktop application or a game application) that triggers a dual screen terminal to display an image may send a composite location corresponding to each layer to a GPU or a hardware synthesizer before synthesizing a plurality of layers.
  • the composite location may be a display location for identifying the layer ultimately in the screen.
  • the GPU or the hardware synthesizer may use multiple GPUs and/or hardware synthesizers according to the composite position corresponding to each layer in the multiple layers.
  • the layers are combined to form a first image. For example, the desktop image displayed by the dual-screen terminal is synthesized by the status bar layer, the wallpaper layer, and the icon layer.
  • the composite position of each layer may be used. It is synthesized to obtain the final desktop image, as shown in Figure 2.
  • the composite location may be a display location in the first screen.
  • the composite location corresponding to each of the multiple layers to be synthesized corresponding to the first screen may include each layer in the layer The display position in the first screen, that is, the display position in the screen (for example, in the upper area of the screen, or the middle area), wherein the display position may be the pixel position of the display area where the layer is located (the pixel position may be The pixel position of two diagonal vertices in the area).
  • the composite location of the layer may also include the number of layers in which the layer is located (eg, may be the second layer in all layers).
  • the multiple layers to be synthesized corresponding to the second screen are combined to form a second image, which includes:
  • the GPU and/or the hardware synthesizer according to the display position of the second screen corresponding to each of the plurality of layers to be synthesized corresponding to the second screen, and the plurality of to-be-composited corresponding to the second screen Layers are synthesized,
  • the second image is formed, and the specific process is the same as the process of synthesizing the first image. Referring to the above description, details are not described herein again.
  • FIG. 3 is a schematic flowchart diagram of Embodiment 2 of a method for displaying an image provided by the present invention.
  • the present embodiment relates to a specific process of acquiring a first image and displaying a first image when the first screen of the embodiment is an ink screen, as shown in FIG. 3, which is the embodiment of the present embodiment.
  • Methods can include:
  • the electronic ink screen is different from the screen of the ordinary color screen, and the driving method is also different, that is, the composite display data of the ordinary color screen is directly output to the color screen for display, and the composite display data of the ink screen needs to be converted into TCON data through software decoding.
  • the ink screen is synthesized by the GPU, and the data synthesized by the GPU can be saved, so that the saved synthesized data can be decoded and processed, and the synthesized data is directly output to the screen by the hardware synthesizer, which cannot be obtained.
  • the final synthesized data is therefore unable to be decoded. Therefore, in this embodiment, when the first screen is an ink screen, the plurality of layers to be combined corresponding to the first screen are acquired by the GPU, as shown in FIG. 3a.
  • the GPU acquires multiple layers to be synthesized corresponding to the first screen, and synthesizes the layers. For example, the GPU is first according to each of the plurality of layers to be synthesized corresponding to the first screen. The display position of the screen is combined with the plurality of layers to be synthesized corresponding to the first screen to form a first image.
  • the synthesized first image may be stored in a storage area corresponding to the first screen, that is, may be stored in the first buffer area, where the first buffer area may be used to store the first screen to be displayed.
  • the memory storage area of the image for example, can be stored in the frame buffer frame buffer of fb_target0.
  • the dual screen terminal may acquire the first image stored in the first buffer area through the first channel in the hardware synthesizer (HW overlay), and then, Send to the first screen for display.
  • the synthesis function of the hardware synthesizer in this step is turned off, in the channel mode, and the first channel may be any channel of the hardware synthesizer that is not currently used.
  • the foregoing S203 may specifically include:
  • Decoding the first image obtaining logical TCON data corresponding to the first image, and driving the first screen to display according to the TCON data.
  • the decoding program in the dual screen terminal reads the first from the first buffer area. And decoding the first image, decoding the first image into TCON data, and driving the ink screen with the TCON data, thereby implementing display of the first image on the first screen.
  • the foregoing S203 may be specifically:
  • the GPU completes the synthesis of the multiple layers, and after storing the synthesized first image in the first buffer area, may send a synthesis completion notification to the hardware synthesizer, and the hardware synthesizer receives the synthesis of the first image.
  • the notification is that, when the dual screen terminal detects the GPU completes the synthesis completion instruction of the first image, the first image stored in the first buffer area may be acquired through the first channel, and the first image is transmitted to the first screen for display. .
  • the first image in the first buffer area may be deleted.
  • the processing may be as follows: when the display completion instruction of the first image is detected, The first image in the first buffer is deleted.
  • the dual-screen terminal may further include a buffer management service, and the dual-screen terminal may manage the first buffer area and the second buffer area by using the buffer management server.
  • the display completion instruction of the first image may be sent to the buffer management service, and the buffer management service receives the first image.
  • the display completion instruction of an image the first image in the first buffer area can be deleted.
  • the method for displaying an image provided by the embodiment of the present invention when the first screen is an ink screen, the plurality of layers to be combined corresponding to the first screen are acquired by the GPU, and the corresponding screen to be synthesized by the GPU is corresponding to the first screen.
  • the plurality of layers are combined to form a first image, the first image is stored in the first buffer area, and finally the first image stored in the first buffer area is acquired by the first channel of the hardware synthesizer, and the first image is transmitted to The first screen is displayed to implement display of the first image on the first screen.
  • FIG. 4 is a schematic flowchart diagram of Embodiment 3 of a method for displaying an image according to the present invention.
  • the present embodiment relates to a specific process of acquiring a second image and displaying a second image when each of the plurality of layers to be synthesized corresponding to the second screen is unchanged.
  • the method in this embodiment may specifically include:
  • the layer when the content of the layer is unchanged, the layer is determined to be a constant layer, and when each layer of the plurality of layers to be synthesized corresponding to the second screen does not change, These layers can be composited using the GPU to form a first image. This is mainly because the image synthesized by the GPU is saved, so that only the invariant layer needs to be synthesized once, and the synthesized second image is placed in the frame buffer frame buffer of fb_target1, and the next frame is displayed.
  • the layer corresponding to the second image does not need to be resynthesized, and the second image can be directly read from the fb_target1 frame buffer frame buffer area, thereby reducing the workload of the GPU and reducing the power consumption of the mobile phone.
  • the dual-screen terminal may acquire a plurality of layers to be synthesized corresponding to the second screen by using the GPU, where the drawing of the layer may be consistent with the method described in S101, and further, the GPU is used to The plurality of layers corresponding to the two screens are combined to obtain a second image that is synthesized and stored in the second buffer area, wherein the second buffer area may be different from the first buffer area for storing the second screen.
  • the memory area of the image to be displayed for example, can be stored in the frame buffer frame buffer of fb_target1, as shown in Figure 4a.
  • the dual screen terminal may acquire the second image through the second channel of the hardware synthesizer, and transmit the second image to the second screen for display, where the second The channel may be any channel of the hardware synthesizer different from the first channel and not used, and the display flow of the first image and the second image is as shown in FIG. 4b.
  • the specific implementation in the process of displaying the second image is similar to the process of displaying the first image, and details are not described herein.
  • the foregoing S303 may be specifically:
  • the GPU completes the synthesis of multiple layers, and stores the synthesized second image in the second buffer area.
  • the synthesis completion notification may be sent to the hardware synthesizer.
  • the hardware synthesizer receives the notification of the completion of the synthesis of the second image, that is, when the dual screen terminal detects the synthesis completion instruction of the second image by the GPU, the second channel may obtain the second channel.
  • the second image stored in the second buffer area and the second image is transmitted to the second screen for display.
  • the second image in the second buffer area may be deleted.
  • the processing may be as follows: when the display completion instruction of the second image is detected, The second image in the second buffer area is deleted.
  • the dual-screen terminal may further include a buffer management service, and the dual-screen terminal may manage the first buffer area and the second buffer area by using the buffer management server.
  • the display completion instruction of the second image may be sent to the buffer management service, and the buffer management service receives the first image.
  • the second image in the second buffer area can be deleted.
  • the method for displaying an image according to the embodiment of the present invention when each of the plurality of layers to be synthesized corresponding to the second screen does not change, the GPU acquires multiple layers to be synthesized corresponding to the second screen. And synthesizing the plurality of layers to be synthesized corresponding to the second screen by the GPU to form a second image, storing the second image in the second buffer area, and finally acquiring the second buffer area through the second channel of the hardware synthesizer The stored second image is transmitted to the second screen for display, thereby implementing display of the second image on the second screen.
  • FIG. 5 is a schematic flowchart diagram of Embodiment 4 of a method for displaying an image provided by the present invention.
  • the present embodiment relates to a specific process of acquiring a second image and displaying a second image when each of the plurality of layers to be synthesized corresponding to the second screen changes.
  • the method in this embodiment may specifically include:
  • the one channel of the hardware synthesizer acquires a layer, and the number of layers of the plurality of layers to be synthesized corresponding to the second screen is less than or equal to the number of channels of the hardware synthesizer minus one.
  • this embodiment uses a hardware synthesizer for synthesis.
  • the hardware synthesizer of the dual-screen terminal has 4 channels, and the channel 1 is used for the first screen, then the second screen can only use the channel 2 to Channel 4 is the three channels.
  • one layer corresponds to one channel, that is, one channel can only acquire one layer. Therefore, in this embodiment, if the number of channels of the hardware synthesizer is n, the corresponding screen of the second screen is to be synthesized. The number of multiple layers is m, then m is less than or equal to n-1, so as to ensure that the hardware synthesizer obtains each of the plurality of layers to be synthesized corresponding to the second screen. In this embodiment, the remaining channels of the hardware synthesizer except the first channel acquire a plurality of layers to be synthesized corresponding to the second screen, as shown in FIG. 5a.
  • the layers are combined to form a second image, and the synthesis process is performed.
  • the hardware synthesizer synthesizes the second image
  • the second image is not saved, but is directly sent to the second screen for display.
  • the hardware synthesizer merges the layers corresponding to the next frame graphic to form a new second image, and directly sends the new second image to the second screen for display.
  • the power consumption of the second image of the change of the dual screen terminal processing is saved.
  • the method for displaying an image when each of the plurality of layers to be synthesized corresponding to the second screen changes, acquiring a second screen through a channel other than the first channel in the hardware synthesizer Corresponding multiple layers to be combined, and synthesizing a plurality of layers corresponding to the second screen corresponding to the second screen by a hardware synthesizer to form a second image, and transmitting the second image to the second screen for display, thereby implementing The display of the second image on the second screen reduces the power consumption of the dual screen terminal.
  • FIG. 6 is a schematic flowchart diagram of Embodiment 5 of a method for displaying an image according to the present invention.
  • the embodiment relates to acquiring the second image and displaying the second image when the plurality of layers to be combined corresponding to the second screen include both the change layer and the unchanged layer.
  • the specific process. As shown in FIG. 6, the method in this embodiment may specifically include:
  • one channel in the hardware synthesizer acquires a layer
  • the number of layers in the second set is less than or equal to the number of channels of the hardware synthesizer minus 2.
  • the mobile phone usually has several layers on the standby interface, and the status bar (the signal quality is displayed at the top of the screen). Pool power), navigation bar (virtual button at the bottom of the screen), wallpaper, launcher (APP icon), when the screen is bright, these layers have not changed, in this case, all layers can be GPU synthesized, because No change in the layer only needs to be synthesized once.
  • the status bar, navigation bar and wallpaper are unchanged layers, only the launcher icon changes, then you can use mixed composition, the status bar, navigation bar and wallpaper are synthesized by GPU, the result of the synthesis Together with the launcher layer, it is sent to the hardware synthesizer for resynthesis.
  • the plurality of layers to be synthesized corresponding to the second screen include both the changed layer and the unchanged layer, and the layer that does not change is attributed to the first layer set for easy distinction.
  • the changed layer is reduced to a second layer set.
  • one channel in the hardware synthesizer acquires one layer
  • one channel of the hardware synthesizer for example, the first channel
  • one channel of the hardware synthesizer for example, the second channel
  • the synthesized image is such that, assuming that the hardware synthesizer has n channels, the channels for acquiring the layers in the second layer set are n-2. Therefore, in order to ensure complete acquisition of each layer in the second layer set by the hardware synthesizer, the number of layers in the second layer set should not exceed n-2, as shown in FIG. 6a.
  • the GPU obtains each layer in the first layer set, and the layers are unchanged layers, and the second picture is obtained through the remaining channels of the hardware synthesizer except the first channel and the second channel. Layers of each change in the layer set.
  • the GPU acquires the layers that do not change in the first layer set, and combines the layers to form a third image.
  • the specific composition process is described in the foregoing embodiment, for example, according to each layer in the first layer set.
  • the specific positions on the second screen are combined to form a third image.
  • the third image is saved to the second buffer area, wherein the second buffer area is used to store the second image or an image related to the second image.
  • the GPU may send a synthesis completion notification to the hardware synthesizer, and the hardware synthesizer receives the notification of the completion of the synthesis of the third image, that is, When the dual screen terminal detects the GPU completes the synthesis completion instruction of the third image, the third image stored in the second buffer area may be acquired through the second channel.
  • the hardware synthesizer acquires a third image in the second buffer area through the second channel, and each layer in the second layer set obtained by the remaining channels except the first channel and the second channel, the hardware synthesizer pair The three images and the layers in the second layer set are merged to form a second image, and the second image is directly transmitted to the second screen for display.
  • the hardware synthesizer may synthesize each layer in the third image and the second layer set at the same time, or may synthesize each layer in the second layer set to form a fourth The image is then combined with the third image and the fourth image to generate a second image.
  • the method for displaying an image according to the embodiment of the present invention when a plurality of layers to be synthesized corresponding to the second screen includes a change layer and a non-change layer, the GPU obtains each image in the first layer set.
  • the layer obtains each layer in the second layer set through the remaining channels except the first channel and the second channel in the hardware synthesizer, and synthesizes each layer in the first layer set through the GPU to form a third layer.
  • And storing the third image in the second buffer area acquiring the third image stored in the second buffer area through the second channel of the hardware synthesizer, and using each layer in the second layer set by the hardware synthesizer And synthesizing with the third image to form a second image. That is, in this embodiment, the GPU is used to synthesize the unchanged layers, and the synthesis of the changed layers is performed by the hardware synthesizer, thereby achieving accurate acquisition of the second image and preparing for display of the second image.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
  • FIG. 7 is a schematic structural diagram of a dual screen terminal according to an embodiment of the present invention.
  • the dual screen terminal 600 includes: a memory 120, a processor 110, a GPU 130, a hardware synthesizer 151, a first screen 161, a second screen 162, and is stored on the memory 120 and can be in the a program running on the processor 110, the processor 110 is respectively connected to the memory 120, the hardware synthesizer 151 and the GPU 130, and the GPU 130 is connected to the memory 120, and the hardware synthesizer 151 respectively
  • the memory 120, the first screen 161 and the second screen 162 are connected, and the processor 110 can be used to implement the method for displaying an image provided in the above embodiments.
  • the memory 120 can be used to store software programs and modules, and the processor 110 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store the root Data (such as audio data, phone book, etc.) created according to the use of the dual screen terminal 600.
  • memory 120 can include high speed random access memory 120, and can also include non-volatile memory 120, such as at least one disk storage 120 piece, flash memory device, or other volatile solid state memory 120 piece. Accordingly, memory 120 may also include a memory 120 controller to provide processor 110 access to memory 120.
  • the processor 110 is the control center of the dual screen terminal 600, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling stored in the memory 120.
  • the data performs various functions and processing data of the dual screen terminal 600, thereby performing overall monitoring of the mobile phone.
  • the processor 110 may include one or more processing cores; preferably, the processor 110 may integrate the application processor 110 and the modem processor 110, wherein the application processor 110 mainly processes an operating system, a user interface, and The application processor or the like, the modem processor 110 mainly processes wireless communication. It can be understood that the above-mentioned modem processor 110 may not be integrated into the processor 110.
  • the GPU 130 and the hardware synthesizer 151 are used to synthesize a layer, and the hardware synthesizer 151 is further configured to transmit the synthesized picture to the display unit 160 to cause the first screen 161 or the second screen 162 in the display unit 160 to display.
  • the hardware synthesizer 151 of the present embodiment belongs to the display controller 150 of the dual screen terminal 600, and the first screen 161 and the second screen 162 belong to the display unit 160, wherein the display controller 150 is connected to the display unit 160.
  • the processor 110, the memory 120, and the display controller 150 of the present embodiment are both connected to the system bus 140, and data can be transmitted through the system bus 140.
  • the GPU 130 is connected to the memory 120, and can read data from the memory 120 or write the data into the memory 120.
  • the hardware synthesizer 151 in the display controller 150 reads the data in the memory 120 through the system bus 140.
  • the dual-screen terminal 600 may further include an RF (Radio Frequency) circuit 210 , an input unit 220 , a sensor 170 , an audio circuit 180 , and a WiFi (Wireless Fidelity) module 190 . , power supply 200 and other components.
  • RF Radio Frequency
  • the dual screen terminal 600 structure shown in FIG. 11 does not constitute a limitation of the dual screen terminal, and may include more or less components than those illustrated, or may combine some components, or different. Assembly of parts. among them:
  • the RF circuit 210 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving downlink information of the base station, and processing it by one or more processors 110; in addition, transmitting data related to the uplink to the base station.
  • the RF circuit 210 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • SIM Subscriber Identity Module
  • the RF circuit 210 can also communicate with the wireless The network communicates with other devices.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the input unit 220 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 220 can include touch-sensitive surface 221 as well as other input devices 222.
  • Touch-sensitive surface 221, also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 221 or on the touch-sensitive surface 221 The operation near the touch-sensitive surface 221) and driving the corresponding connecting device according to a preset program.
  • the touch sensitive surface 221 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 110 is provided and can receive commands from the processor 110 and execute them.
  • the touch-sensitive surface 221 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 220 can also include other input devices 222.
  • other input devices 222 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 160 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the dual screen terminal 600, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 160 may include a first screen 161 and a second screen 162.
  • the second screen may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. 162.
  • the first screen 161 can be an ink screen.
  • touch-sensitive surface 221 can cover the display unit 160, and when the touch-sensitive surface 221 detects a touch operation thereon or nearby, it is transmitted to the processor 110 to determine the type of the touch event, and then the processor 110 according to the touch event The type provides a corresponding visual output on display unit 160.
  • touch-sensitive surface 221 and display unit 160 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 221 can be integrated with display unit 160 for input. And output function.
  • the dual screen terminal 600 can also include at least one type of sensor 170, such as a light sensor, a motion sensor, and His sensor.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display unit 160 according to the brightness of the ambient light, and the proximity sensor may close the display unit when the dual screen terminal 600 moves to the ear. 160 and / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the dual-screen terminal 600, it can also be configured with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. This will not be repeated here.
  • the audio circuit 180, the speaker 181, and the microphone 182 can provide an audio interface between the user and the dual screen terminal 600.
  • the audio circuit 180 can transmit the converted electrical data of the received audio data to the speaker 181 for conversion to the sound signal output by the speaker 181; on the other hand, the microphone 182 converts the collected sound signal into an electrical signal by the audio circuit 180. After receiving, it is converted into audio data, and then processed by the audio data output processor 110, transmitted to the terminal, for example, via the RF circuit 210, or outputted to the memory 120 for further processing.
  • the audio circuit 180 may also include an earbud jack to provide communication of the peripheral earphones with the dual screen terminal 600.
  • WiFi is a short-range wireless transmission technology
  • the dual-screen terminal 600 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 190, which provides wireless broadband Internet access for users.
  • FIG. 8 shows the WiFi module 190, it can be understood that it does not belong to the essential configuration of the dual screen terminal 600, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the dual screen terminal 600 also includes a power source 200 (such as a battery) for powering various components.
  • the power source 200 can be logically coupled to the processor 110 through the power source management system to manage charging, discharging, and power through the power management system. Consumption management and other functions.
  • the power supply 200 can also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the dual screen terminal 600 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • the display unit 160 of the dual screen terminal 600 is a touch screen display
  • the dual screen terminal 600 further includes a memory 120, and one or more programs, wherein one or more programs are stored in the memory 120, and The one or more programs described above are configured to be executed by one or more processors 110, which are implemented when the processor 110 executes the program:
  • the first image is transmitted to the first screen for display by a hardware synthesizer in the dual screen terminal, and the second image is transmitted to the second screen for display.
  • the step of synthesizing the plurality of layers to be synthesized corresponding to the first screen to form a first image is performed, and the step includes:
  • the step of synthesizing the plurality of layers to be combined corresponding to the second screen to form a second image is further implemented, the step comprising:
  • the first screen is an ink screen
  • the processor 110 executes the program, the step of acquiring multiple layers to be synthesized corresponding to the first screen is implemented, and the step includes:
  • the step includes:
  • the step of transmitting the first image to the first screen for display by using a hardware synthesizer in the dual screen terminal is further implemented, the step comprising:
  • the processor 110 when each of the plurality of layers to be synthesized corresponding to the second screen does not change, the processor 110, when executing the program, obtains the to-be-synthesized corresponding to the second screen.
  • the steps of multiple layers, this step includes:
  • the step of synthesizing the plurality of layers to be combined corresponding to the second screen to form a second image is further implemented, the step comprising:
  • the step of transmitting the second image to the second screen for display by the hardware synthesizer is further implemented, and the step includes:
  • this step includes:
  • the channel other than the first channel the plurality of layers to be synthesized corresponding to the second screen, where one channel in the hardware synthesizer acquires a layer, the second screen
  • the number of corresponding multiple layers to be synthesized is less than or equal to the number of channels of the hardware synthesizer minus one;
  • the step of synthesizing the plurality of layers to be combined corresponding to the second screen to form a second image is further implemented, the step comprising:
  • the processor 110 when the plurality of layers to be synthesized corresponding to the second screen includes a first layer set and a second layer set, the processor 110 implements a layer in the first layer set when executing the program.
  • the steps of the multiple layers in the second layer set are changed, and the multiple layers corresponding to the second screen are acquired.
  • the steps include:
  • the step of synthesizing the plurality of layers to be combined corresponding to the second screen to form a second image is further implemented, the step comprising:
  • each layer in the second layer set and the third image to form the second image.
  • the processor 110 executes the program
  • the first channel stored in the first buffer area is acquired by the first channel of the hardware synthesizer, and the first image is transmitted to the first image.
  • the screen displays the steps, which include:
  • This step includes:
  • processor 110 also implements when executing the program:
  • the processor 110 executes the program
  • the first image stored in the first buffer area is acquired by the first channel of the hardware synthesizer, and the first image is transmitted to the first A screen for displaying steps, the steps including:
  • Decoding the first image obtaining logical TCON data corresponding to the first image, and driving the first screen to display according to the TCON data.
  • the dual-screen terminal of this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the embodiment provides a computer readable non-volatile storage medium, where the program is stored in the non-volatile storage medium, and when the program is executed, the method step of displaying the image is Execution, its implementation principle and technical effect are similar, and will not be described here.
  • FIG. 9 is a schematic flowchart diagram of Embodiment 1 of an apparatus for displaying an image provided by the present invention.
  • the device of this embodiment can It is implemented by software, hardware or a combination of software and hardware.
  • the apparatus of this embodiment may include:
  • the obtaining module 410 is configured to respectively acquire a plurality of layers to be synthesized corresponding to the first screen and a plurality of layers to be combined corresponding to the second screen.
  • the compositing module 420 is configured to synthesize a plurality of layers to be synthesized corresponding to the first screen to form a first image, and synthesize the plurality of layers to be synthesized corresponding to the second screen to form a second image.
  • the display module 430 is configured to transmit the first image to the first screen for display through a hardware synthesizer in the dual screen terminal, and transmit the second image to the second screen for display.
  • the device in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the synthesizing module 420 is configured to display, according to the first screen, a display position of each of the plurality of layers to be synthesized corresponding to the first screen. And synthesizing a plurality of layers to be synthesized corresponding to the first screen to form the first image; each of the plurality of layers to be synthesized corresponding to the second screen is in the a display position of the second screen, and synthesizing a plurality of layers to be synthesized corresponding to the second screen to form the second image.
  • the obtaining module 410 is configured to acquire, by the graphics processor GPU in the dual-screen terminal, a plurality of layers to be synthesized corresponding to the first screen when the first screen is an ink screen.
  • the synthesizing module 420 is configured to synthesize a plurality of layers to be synthesized corresponding to the first screen by using the GPU to form the first image, and store the first image in a first buffer area.
  • the display module 430 is configured to acquire a first image stored in the first buffer area by using a first channel of the hardware synthesizer, and transmit the first image to the first screen for display.
  • the obtaining module 410 is configured to acquire, by the GPU, the to-be-synthesized corresponding to the first screen by using the GPU when each of the plurality of layers to be synthesized corresponding to the second screen does not change. Layers.
  • the synthesizing module 420 is configured to synthesize a plurality of layers to be synthesized corresponding to the second screen by using the GPU to form the second image, and store the second image in a second buffer area.
  • the display module 430 is configured to acquire a second image stored in the second buffer area by using a second channel of the hardware synthesizer, and transmit the second image to the second screen for display.
  • the obtaining module 410 is configured to obtain, by using, a channel other than the first channel in the hardware synthesizer when each of the plurality of layers to be synthesized corresponding to the second screen changes The plurality of layers to be synthesized corresponding to the second screen, wherein one channel in the hardware synthesizer acquires a layer, and the number of the plurality of layers to be synthesized corresponding to the second screen is less than or equal to the hardware The number of channels in the synthesizer is reduced by 1.
  • the synthesizing module 420 is configured to synthesize a plurality of layers to be synthesized corresponding to the second screen by using the hardware synthesizer to form the second image.
  • the obtaining module 410 is configured to: when the multiple layers to be synthesized corresponding to the second screen include the first layer set and the second layer set, obtain the first layer set by using the GPU Each layer of the second layer set is acquired by the remaining channels of the hardware synthesizer except the first channel and the second channel; wherein one channel in the hardware synthesizer acquires a layer The number of layers in the second set is less than or equal to the number of channels of the hardware synthesizer minus 2.
  • the synthesizing module 420 is configured to synthesize each layer in the first layer set by the GPU to form a third image, and store the third image in a second buffer area.
  • the obtaining module 410 is further configured to acquire, by using the second channel of the hardware synthesizer, the third image stored in the second buffer area.
  • the synthesizing module 420 is further configured to synthesize each layer in the second layer set and the third image by using the hardware synthesizer to form the second image.
  • the display module 430 is configured to acquire, by using the first channel of the hardware synthesizer in the dual-screen terminal, the first buffer area when detecting the synthesis completion instruction of the GPU by the GPU And storing the first image, and transmitting the first image to the first screen for display; when detecting the synthesis completion instruction of the second image by the GPU, passing the second of the hardware synthesizer The channel acquires the second image stored in the second buffer area, and transmits the second image to the second screen for display.
  • the device in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 10 is a schematic flowchart diagram of Embodiment 2 of an apparatus for displaying an image provided by the present invention. Based on the above embodiment, as shown in FIG. 10, the apparatus further includes a deletion module 440:
  • the deleting module 440 is configured to: when the display completion instruction of the first image is detected, the first The first image in the buffer area is deleted; when the display completion instruction of the second image is detected, the second image in the second buffer area is deleted.
  • the device in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 11 is a schematic flowchart diagram of Embodiment 3 of an apparatus for displaying an image according to the present invention. Based on the above embodiment, as shown in FIG. 11, the apparatus further includes a decoding module 450:
  • the obtaining module 410 is further configured to acquire, by using the first channel of the hardware synthesizer, the first image stored in the first buffer area.
  • the decoding module 450 is configured to decode the first image, obtain logical TCON data corresponding to the first image, and drive the first screen to display according to the TCON data.
  • the device in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Image Processing (AREA)

Abstract

Disclosed in the embodiments of the present invention are an image display method, a dual screen terminal and a computer readable non-volatile storage medium. The method comprises: respectively acquiring a plurality of image layers to be merged corresponding to a first screen and a plurality of image layers to be merged corresponding to a second screen; merging the plurality of image layers to be merged corresponding to the first screen to form a first image, and merging the plurality of image layers to be merged corresponding to the second screen to form a second image; by means of a hardware synthesiser in the dual screen terminal, transmitting the first image to the first screen for display and transmitting the second image to the second screen for display, thereby implementing simultaneous display of images comprising multiple image layers on both screens of the dual screen terminal.

Description

一种显示图像的方法、双屏终端和计算机可读的非易失性存储介质Method for displaying image, dual screen terminal and computer readable non-volatile storage medium

本申请要求于2017年03月09日提交中国专利局、申请号为201710138031.7、发明名称为“一种显示图像的方法和装置”的CN专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to the CN Patent Application, the disclosure of which is hereby incorporated by reference in its entirety in its entirety in its entirety in in.

技术领域Technical field

本发明涉及电子技术领域,特别涉及一种显示图像的方法、双屏终端和计算机可读的非易失性存储介质。The present invention relates to the field of electronic technologies, and in particular, to a method for displaying an image, a dual screen terminal, and a computer readable nonvolatile storage medium.

背景技术Background technique

随着电子技术的发展,各种各样的终端得到了广泛的应用,比如,具有显示功能的手机等终端。目前,用户所使用的终端中只设置有一个屏幕,用户可以通过终端屏幕显示的图像与终端进行交互,目前终端大多仅支持单一屏幕的显示,终端上有两个屏幕同时显示图像需要考虑的因素较多。With the development of electronic technology, various terminals have been widely used, for example, terminals such as mobile phones with display functions. At present, only one screen is set in the terminal used by the user, and the user can interact with the terminal through the image displayed on the terminal screen. At present, most of the terminals only support the display of a single screen, and there are two factors on the terminal for simultaneously displaying images. More.

发明内容Summary of the invention

本发明实施例提供了一种显示图像的方法、双屏终端和计算机可读的非易失性存储介质。Embodiments of the present invention provide a method of displaying an image, a dual screen terminal, and a computer readable nonvolatile storage medium.

第一方面,本发明实施例提供了一种显示图像的方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for displaying an image, where the method includes:

分别获取第一屏幕对应的待合成的多个图层和第二屏幕对应的待合成的多个图层;Obtaining, respectively, a plurality of layers to be synthesized corresponding to the first screen and a plurality of layers to be synthesized corresponding to the second screen;

对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像,对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像;Synthesizing a plurality of layers to be synthesized corresponding to the first screen to form a first image, and synthesizing a plurality of layers to be synthesized corresponding to the second screen to form a second image;

通过双屏终端中的硬件合成器将所述第一图像传输至所述第一屏幕进行显示,将所述第二图像传输至所述第二屏幕进行显示。The first image is transmitted to the first screen for display by a hardware synthesizer in the dual screen terminal, and the second image is transmitted to the second screen for display.

在一些实施方式中,所述对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像,包括:In some implementations, the synthesizing the plurality of layers to be synthesized corresponding to the first screen to form a first image includes:

根据所述第一屏幕对应的待合成的多个图层中的每个图层在所述第一屏幕的显示位置,对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像; And forming, according to the display position of the first screen, each of the plurality of layers to be combined corresponding to the first screen, synthesizing a plurality of layers to be synthesized corresponding to the first screen to form The first image;

所述对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像,包括:And synthesizing the plurality of layers to be synthesized corresponding to the second screen to form a second image, including:

根据所述第二屏幕对应的待合成的多个图层中的每个图层在所述第二屏幕的显示位置,对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。And synthesizing a plurality of layers to be synthesized corresponding to the second screen according to a display position of the second screen corresponding to each layer of the plurality of layers to be synthesized corresponding to the second screen The second image.

在一些实施方式中,所述第一屏幕为墨水屏,所述获取所述第一屏幕对应的待合成的多个图层,包括:In some embodiments, the first screen is an ink screen, and the acquiring a plurality of layers to be synthesized corresponding to the first screen includes:

通过所述双屏终端中的图形处理器GPU获取所述第一屏幕对应的待合成的多个图层;Acquiring, by the graphics processor GPU in the dual-screen terminal, a plurality of layers to be synthesized corresponding to the first screen;

所述对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像包括:And synthesizing the plurality of layers to be synthesized corresponding to the first screen, and forming the first image includes:

通过所述GPU对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像,将所述第一图像存储在第一缓存区;And synthesizing, by the GPU, a plurality of layers to be synthesized corresponding to the first screen to form the first image, and storing the first image in a first buffer area;

所述通过所述双屏终端中的硬件合成器将所述第一图像传输至所述第一屏幕进行显示,包括:Transmitting, by the hardware synthesizer in the dual screen terminal, the first image to the first screen for display, including:

通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示。Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer, and transmitting the first image to the first screen for display.

在一些实施方式中,当所述第二屏幕对应的待合成的多个图层中的每个图层均不变化时,获取所述第二屏幕对应的待合成的多个图层包括:In some embodiments, when each of the plurality of layers to be synthesized corresponding to the second screen does not change, acquiring the plurality of layers to be synthesized corresponding to the second screen includes:

通过所述GPU获取所述第二屏幕对应的待合成的多个图层;Acquiring, by the GPU, a plurality of layers to be synthesized corresponding to the second screen;

所述对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像包括:And synthesizing the plurality of layers to be synthesized corresponding to the second screen, and forming the second image includes:

通过所述GPU对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像,将所述第二图像存储在第二缓存区;And synthesizing, by the GPU, a plurality of layers to be synthesized corresponding to the second screen to form the second image, and storing the second image in a second buffer area;

所述通过所述硬件合成器将所述第二图像传输至所述第二屏幕进行显示,包括:Transmitting, by the hardware synthesizer, the second image to the second screen for display, including:

通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。Acquiring the second image stored in the second buffer area through the second channel of the hardware synthesizer, and transmitting the second image to the second screen for display.

在一些实施方式中,当所述第二屏幕对应的待合成的多个图层中的每个图层均变化时,获取所述第二屏幕对应的待合成的多个图层包括:In some embodiments, when each of the plurality of layers to be synthesized corresponding to the second screen is changed, acquiring the plurality of layers to be synthesized corresponding to the second screen includes:

通过所述硬件合成器中除所述第一通道外的通道获取所述第二屏幕对应的待合成的多个图层,其中所述硬件合成器中的一个通道获取一个图层,所述第二屏幕对应的待合成的多个图层的图层数目小于或等于所述硬件合成器的通道数减1;Obtaining, by the channel other than the first channel, the plurality of layers to be synthesized corresponding to the second screen, wherein one channel of the hardware synthesizer acquires a layer, where the The number of layers of the plurality of layers to be synthesized corresponding to the two screens is less than or equal to the number of channels of the hardware synthesizer minus one;

所述对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像,包括:And synthesizing the plurality of layers to be synthesized corresponding to the second screen to form a second image, including:

通过所述硬件合成器对所述第二屏幕对应的待合成的多个图层进行合成,形成所 述第二图像。Synthesizing a plurality of layers to be synthesized corresponding to the second screen by the hardware synthesizer to form a The second image is described.

在一些实施方式中,当所述第二屏幕对应的待合成的多个图层包括第一图层集合和第二图层集合时,所述第一图层集合中图层均不变化,所述第二图层集合中的图层均变化,获取所述第二屏幕对应的待合成的多个图层,包括:In some embodiments, when the plurality of layers to be synthesized corresponding to the second screen includes the first layer set and the second layer set, the layers in the first layer set do not change. The layers in the second layer set are all changed, and the multiple layers to be synthesized corresponding to the second screen are obtained, including:

通过所述GPU获取所述第一图层集合中的各图层,通过所述硬件合成器中除第一通道和第二通道外的剩余通道获取所述第二图层集合中的各图层;其中硬件合成器中的一个通道获取一个图层,所述第二集合中的图层的数目小于或等于所述硬件合成器的通道数减2;Acquiring each layer in the first layer set by using the GPU, and acquiring each layer in the second layer set by using the remaining channels except the first channel and the second channel in the hardware synthesizer Wherein a channel in the hardware synthesizer acquires a layer, the number of layers in the second set is less than or equal to the number of channels of the hardware synthesizer minus 2;

所述对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像,包括:And synthesizing the plurality of layers to be synthesized corresponding to the second screen to form a second image, including:

通过所述GPU对所述第一图层集合中的各图层进行合成,形成第三图像,并将所述第三图像存储在第二缓存区;And synthesizing each layer in the first layer set by the GPU to form a third image, and storing the third image in a second buffer area;

通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第三图像;Obtaining, by the second channel of the hardware synthesizer, the third image stored in the second buffer area;

通过所述硬件合成器对所述第二图层集合中的各图层和所述第三图像进行合成,形成所述第二图像。And forming, by the hardware synthesizer, each layer in the second layer set and the third image to form the second image.

在一些实施方式中,所述通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示,包括:In some embodiments, the first channel stored in the first buffer area is acquired by the first channel of the hardware synthesizer, and the first image is transmitted to the first screen for display, including :

当检测到所述GPU对所述第一图像的合成完成指令时,通过所述双屏终端中的硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示;Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer in the dual screen terminal when detecting the synthesis completion instruction of the first image by the GPU, and Transmitting the first image to the first screen for display;

所述通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示,包括:Obtaining, by the second channel of the hardware synthesizer, the second image stored in the second buffer area, and transmitting the second image to the second screen for display, including:

当检测到所述GPU对所述第二图像的合成完成指令时,通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。Acquiring the second image stored in the second buffer area through the second channel of the hardware synthesizer when the GPU completes the synthesis completion instruction of the second image, and transmitting the second image Display to the second screen.

在一些实施方式中,所述方法还包括:In some embodiments, the method further includes:

当检测到所述第一图像的显示完成指令时,将所述第一缓存区中的第一图像删除;Deleting the first image in the first buffer area when detecting the display completion instruction of the first image;

当检测到所述第二图像的显示完成指令时,将所述第二缓存区中的第二图像删除。When the display completion instruction of the second image is detected, the second image in the second buffer area is deleted.

在一些实施方式中,通过所述硬件合成器的第一通道获取所述第一缓存区中存储 的第一图像,并将所述第一图像传输至所述第一屏幕进行显示,包括:In some embodiments, the first buffer is stored in the first channel of the hardware synthesizer And transmitting the first image to the first screen for display, including:

通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像;Obtaining, by the first channel of the hardware synthesizer, the first image stored in the first buffer area;

对所述第一图像进行解码,获得所述第一图像对应的逻辑TCON数据,并根据所述TCON数据驱动所述第一屏幕进行显示。Decoding the first image, obtaining logical TCON data corresponding to the first image, and driving the first screen to display according to the TCON data.

第二方面,本发明实施例提供一种双屏终端,包括:所述双屏终端包括:存储器、处理器、GPU、硬件合成器、第一屏幕、第二屏幕以及存储在所述存储器上并可以在所述处理器上运行的程序,所述处理器分别与所述存储器、所述硬件合成器和所述GPU连接,所述GPU与所述存储器连接,所述硬件合成器分别与所述存储器、所述第一屏幕和第二屏幕连接,所述处理器执行所述程序时实现:In a second aspect, an embodiment of the present invention provides a dual screen terminal, including: the dual screen terminal includes: a memory, a processor, a GPU, a hardware synthesizer, a first screen, a second screen, and are stored on the memory and a program executable on the processor, the processor being respectively coupled to the memory, the hardware synthesizer, and the GPU, the GPU being coupled to the memory, the hardware synthesizer separately and the The memory, the first screen and the second screen are connected, and the processor implements the program when:

分别获取第一屏幕对应的待合成的多个图层和第二屏幕对应的待合成的多个图层;Obtaining, respectively, a plurality of layers to be synthesized corresponding to the first screen and a plurality of layers to be synthesized corresponding to the second screen;

对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像,对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像;Synthesizing a plurality of layers to be synthesized corresponding to the first screen to form a first image, and synthesizing a plurality of layers to be synthesized corresponding to the second screen to form a second image;

通过双屏终端中的硬件合成器将所述第一图像传输至所述第一屏幕进行显示,将所述第二图像传输至所述第二屏幕进行显示。The first image is transmitted to the first screen for display by a hardware synthesizer in the dual screen terminal, and the second image is transmitted to the second screen for display.

在一些实施方式中,所述处理器执行所述程序时实现:In some embodiments, the processor implements the program when:

根据所述第一屏幕对应的待合成的多个图层中的每个图层在所述第一屏幕的显示位置,对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像;And forming, according to the display position of the first screen, each of the plurality of layers to be combined corresponding to the first screen, synthesizing a plurality of layers to be synthesized corresponding to the first screen to form The first image;

根据所述第二屏幕对应的待合成的多个图层中的每个图层在所述第二屏幕的显示位置,对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。And synthesizing a plurality of layers to be synthesized corresponding to the second screen according to a display position of the second screen corresponding to each layer of the plurality of layers to be synthesized corresponding to the second screen The second image.

在一些实施方式中,所述第一屏幕为墨水屏,所述处理器执行所述程序时实现:In some embodiments, the first screen is an ink screen, and when the processor executes the program, the implementation is:

通过所述双屏终端中的图形处理器GPU获取所述第一屏幕对应的待合成的多个图层;Acquiring, by the graphics processor GPU in the dual-screen terminal, a plurality of layers to be synthesized corresponding to the first screen;

通过所述GPU对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像,将所述第一图像存储在第一缓存区;And synthesizing, by the GPU, a plurality of layers to be synthesized corresponding to the first screen to form the first image, and storing the first image in a first buffer area;

通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示。Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer, and transmitting the first image to the first screen for display.

在一些实施方式中,当所述第二屏幕对应的待合成的多个图层中的每个图层均不变化时,所述处理器执行所述程序时实现:In some embodiments, when each of the plurality of layers to be synthesized corresponding to the second screen does not change, the processor executes the program:

通过所述GPU获取所述第二屏幕对应的待合成的多个图层; Acquiring, by the GPU, a plurality of layers to be synthesized corresponding to the second screen;

通过所述GPU对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像,将所述第二图像存储在第二缓存区;And synthesizing, by the GPU, a plurality of layers to be synthesized corresponding to the second screen to form the second image, and storing the second image in a second buffer area;

通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。Acquiring the second image stored in the second buffer area through the second channel of the hardware synthesizer, and transmitting the second image to the second screen for display.

在一些实施方式中,当所述第二屏幕对应的待合成的多个图层中的每个图层均变化时,所述处理器执行所述程序时实现:In some embodiments, when each of the plurality of layers to be synthesized corresponding to the second screen changes, the processor executes the program:

通过所述硬件合成器中除所述第一通道外的通道获取所述第二屏幕对应的待合成的多个图层,其中所述硬件合成器中的一个通道获取一个图层,所述第二屏幕对应的待合成的多个图层的图层数目小于或等于所述硬件合成器的通道数减1;Obtaining, by the channel other than the first channel, the plurality of layers to be synthesized corresponding to the second screen, wherein one channel of the hardware synthesizer acquires a layer, where the The number of layers of the plurality of layers to be synthesized corresponding to the two screens is less than or equal to the number of channels of the hardware synthesizer minus one;

通过所述硬件合成器对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。Forming, by the hardware synthesizer, a plurality of layers to be synthesized corresponding to the second screen to form the second image.

在一些实施方式中,当所述第二屏幕对应的待合成的多个图层包括第一图层集合和第二图层集合时,所述处理器执行所述程序时实现:In some implementations, when the plurality of layers to be synthesized corresponding to the second screen includes a first layer set and a second layer set, the processor implements the program when:

通过所述GPU获取所述第一图层集合中的各图层,通过所述硬件合成器中除第一通道和第二通道外的剩余通道获取所述第二图层集合中的各图层;其中硬件合成器中的一个通道获取一个图层,所述第二集合中的图层的数目小于或等于所述硬件合成器的通道数减2;Acquiring each layer in the first layer set by using the GPU, and acquiring each layer in the second layer set by using the remaining channels except the first channel and the second channel in the hardware synthesizer Wherein a channel in the hardware synthesizer acquires a layer, the number of layers in the second set is less than or equal to the number of channels of the hardware synthesizer minus 2;

通过所述GPU对所述第一图层集合中的各图层进行合成,形成第三图像,并将所述第三图像存储在第二缓存区;And synthesizing each layer in the first layer set by the GPU to form a third image, and storing the third image in a second buffer area;

通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第三图像;Obtaining, by the second channel of the hardware synthesizer, the third image stored in the second buffer area;

通过所述硬件合成器对所述第二图层集合中的各图层和所述第三图像进行合成,形成所述第二图像。And forming, by the hardware synthesizer, each layer in the second layer set and the third image to form the second image.

在一些实施方式中,所述处理器执行所述程序时实现:In some embodiments, the processor implements the program when:

当检测到所述GPU对所述第一图像的合成完成指令时,通过所述双屏终端中的硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示;Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer in the dual screen terminal when detecting the synthesis completion instruction of the first image by the GPU, and Transmitting the first image to the first screen for display;

当检测到所述GPU对所述第二图像的合成完成指令时,通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。Acquiring the second image stored in the second buffer area through the second channel of the hardware synthesizer when the GPU completes the synthesis completion instruction of the second image, and transmitting the second image Display to the second screen.

在一些实施方式中,所述处理器执行所述程序时还实现: In some embodiments, the processor when executing the program further implements:

当检测到所述第一图像的显示完成指令时,将所述第一缓存区中的第一图像删除;Deleting the first image in the first buffer area when detecting the display completion instruction of the first image;

当检测到所述第二图像的显示完成指令时,将所述第二缓存区中的第二图像删除。When the display completion instruction of the second image is detected, the second image in the second buffer area is deleted.

在一些实施方式中,所述处理器执行所述程序时实现:In some embodiments, the processor implements the program when:

通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像;Obtaining, by the first channel of the hardware synthesizer, the first image stored in the first buffer area;

对所述第一图像进行解码,获得所述第一图像对应的逻辑TCON数据,并根据所述TCON数据驱动所述第一屏幕进行显示。Decoding the first image, obtaining logical TCON data corresponding to the first image, and driving the first screen to display according to the TCON data.

第三方面,本发明实施例提供一种计算机可读的非易失性存储介质,所述非易失性存储介质中存储程序,所述程序在执行时,所述第一方面的方法步骤被执行。In a third aspect, an embodiment of the present invention provides a computer readable non-volatile storage medium, where the non-volatile storage medium stores a program, and when the program is executed, the method step of the first aspect is carried out.

第四方面,本发明实施例提供一种显示图像的装置,包括:In a fourth aspect, an embodiment of the present invention provides an apparatus for displaying an image, including:

获取模块,用于分别获取第一屏幕对应的待合成的多个图层和第二屏幕对应的待合成的多个图层;An acquiring module, configured to respectively acquire a plurality of layers to be synthesized corresponding to the first screen and multiple layers to be synthesized corresponding to the second screen;

合成模块,用于对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像,对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像;a synthesizing module, configured to synthesize a plurality of layers to be synthesized corresponding to the first screen to form a first image, and synthesize the plurality of layers to be synthesized corresponding to the second screen to form a second image ;

显示模块,用于通过双屏终端中的硬件合成器将所述第一图像传输至所述第一屏幕进行显示,将所述第二图像传输至所述第二屏幕进行显示。And a display module, configured to transmit the first image to the first screen for display through a hardware synthesizer in the dual screen terminal, and transmit the second image to the second screen for display.

在一些实施方式中,所述合成模块,用于根据所述第一屏幕对应的待合成的多个图层中的每个图层在所述第一屏幕的显示位置,对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像;根据所述第二屏幕对应的待合成的多个图层中的每个图层在所述第二屏幕的显示位置,对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。In some embodiments, the synthesizing module is configured to display, according to the display position of the first screen, each of the plurality of layers to be synthesized corresponding to the first screen, to the first screen Corresponding multiple layers to be combined are combined to form the first image; according to the display position of each of the plurality of layers to be synthesized corresponding to the second screen at the second screen, And synthesizing a plurality of layers to be synthesized corresponding to the second screen to form the second image.

在一些实施方式中,所述获取模块,用于当所述第一屏幕为墨水屏时,通过所述双屏终端中的图形处理器GPU获取所述第一屏幕对应的待合成的多个图层;In some embodiments, the acquiring module is configured to acquire, by the graphics processor GPU in the dual screen terminal, a plurality of graphics to be synthesized corresponding to the first screen, when the first screen is an ink screen. Floor;

所述合成模块,用于通过所述GPU对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像,将所述第一图像存储在第一缓存区;The synthesizing module is configured to synthesize a plurality of layers to be synthesized corresponding to the first screen by using the GPU to form the first image, and store the first image in a first buffer area;

所述显示模块,用于通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示。The display module is configured to acquire a first image stored in the first buffer area by using a first channel of the hardware synthesizer, and transmit the first image to the first screen for display.

在一些实施方式中,所述获取模块,用于当所述第二屏幕对应的待合成的多个图层中的每个图层均不变化时,通过所述GPU获取所述第一屏幕对应的待合成的多个 图层;In some implementations, the acquiring module is configured to acquire, by the GPU, the first screen correspondingly when each of the plurality of layers to be synthesized corresponding to the second screen does not change. Multiple to be synthesized Layer

所述合成模块,用于通过所述GPU对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像,将所述第二图像存储在第二缓存区;The synthesizing module is configured to synthesize a plurality of layers to be synthesized corresponding to the second screen by using the GPU to form the second image, and store the second image in a second buffer area;

所述显示模块,用于通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。The display module is configured to acquire a second image stored in the second buffer area by using a second channel of the hardware synthesizer, and transmit the second image to the second screen for display.

在一些实施方式中,所述获取模块,用于当所述第二屏幕对应的待合成的多个图层中的每个图层均变化时,通过所述硬件合成器中除所述第一通道外的通道获取所述第二屏幕对应的待合成的多个图层,其中硬件合成器中的一个通道获取一个图层,所述第二屏幕对应的待合成的多个图层的数目小于或等于所述硬件合成器的通道数减1;In some implementations, the acquiring module is configured to remove, by the hardware synthesizer, the first one when each of the plurality of layers to be synthesized corresponding to the second screen changes The channel outside the channel acquires multiple layers to be synthesized corresponding to the second screen, where one channel in the hardware synthesizer acquires a layer, and the number of multiple layers to be synthesized corresponding to the second screen is smaller than Or equal to the number of channels of the hardware synthesizer minus one;

所述合成模块,用于通过所述硬件合成器对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。The synthesizing module is configured to synthesize a plurality of layers to be synthesized corresponding to the second screen by using the hardware synthesizer to form the second image.

在一些实施方式中,所述获取模块,用于当所述第二屏幕对应的待合成的多个图层包括第一图层集合和第二图层集合时,通过所述GPU获取所述第一图层集合中的各图层,通过所述硬件合成器中除第一通道和第二通道外的剩余通道获取所述第二图层集合中的各图层;其中硬件合成器中的一个通道获取一个图层,所述第二集合中的图层的数目小于或等于所述硬件合成器的通道数减2;In some implementations, the acquiring module is configured to acquire, by the GPU, when the multiple layers to be synthesized corresponding to the second screen include a first layer set and a second layer set Each layer in a set of layers acquires each layer in the second set of layers through the remaining channels of the hardware synthesizer except the first channel and the second channel; wherein one of the hardware synthesizers The channel acquires a layer, the number of layers in the second set is less than or equal to the number of channels of the hardware synthesizer minus 2;

所述合成模块,用于通过所述GPU对所述第一图层集合中的各图层进行合成,形成第三图像,并将所述第三图像存储在第二缓存区;The synthesizing module is configured to synthesize each layer in the first layer set by the GPU to form a third image, and store the third image in a second buffer area;

所述获取模块,还用于通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第三图像;The acquiring module is further configured to acquire, by using a second channel of the hardware synthesizer, a third image stored in the second buffer area;

所述合成模块,还用于通过所述硬件合成器对所述第二图层集合中的各图层和所述第三图像进行合成,形成所述第二图像。The synthesizing module is further configured to synthesize each layer in the second layer set and the third image by using the hardware synthesizer to form the second image.

在一些实施方式中,所述显示模块,具体用于当检测到所述GPU对所述第一图像的合成完成指令时,通过所述双屏终端中的硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示;当检测到所述GPU对所述第二图像的合成完成指令时,通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。In some embodiments, the display module is configured to acquire, by the first channel of the hardware synthesizer in the dual screen terminal, when the GPU completes the synthesis completion instruction of the first image. a first image stored in the first buffer area, and transmitting the first image to the first screen for display; when detecting a synthesis completion instruction of the second image by the GPU, passing the hardware The second channel of the synthesizer acquires the second image stored in the second buffer area and transmits the second image to the second screen for display.

在一些实施方式中,所述装置还包括删除模块, In some embodiments, the apparatus further includes a deletion module,

所述删除模块,用于当检测到所述第一图像的显示完成指令时,将所述第一缓存区中的第一图像删除;当检测到所述第二图像的显示完成指令时,将所述第二缓存区中的第二图像删除。The deleting module is configured to: when the display completion instruction of the first image is detected, delete the first image in the first buffer area; when detecting the display completion instruction of the second image, The second image in the second buffer area is deleted.

在一些实施方式中,所述装置还包括解码模块,In some embodiments, the apparatus further includes a decoding module,

所述获取模块,还用于通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像;The acquiring module is further configured to acquire, by using the first channel of the hardware synthesizer, the first image stored in the first buffer area;

所述解码模块,用于对所述第一图像进行解码,获得所述第一图像对应的逻辑TCON数据,并根据所述TCON数据驱动所述第一屏幕进行显示。The decoding module is configured to decode the first image, obtain logical TCON data corresponding to the first image, and drive the first screen to display according to the TCON data.

附图说明DRAWINGS

为了更清楚地说明本发明方法实施例的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明方法的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solution of the method embodiment of the present invention, a brief description of the drawings to be used in the description of the embodiments will be briefly introduced. It is obvious that the drawings in the following description are some embodiments of the method of the present invention. Other drawings may also be obtained from those skilled in the art based on these drawings without paying any creative effort.

图1为本发明提供的显示图像的方法实施例一的流程示意图;1 is a schematic flow chart of Embodiment 1 of a method for displaying an image provided by the present invention;

图2为本发明实施例提供的一种图层合成示意图;2 is a schematic diagram of layer composition according to an embodiment of the present invention;

图3为本发明提供的显示图像的方法实施例二的流程示意图;FIG. 3 is a schematic flowchart diagram of Embodiment 2 of a method for displaying an image according to the present invention;

图3a为本发明实施例二提供的一种图层合成示意图;FIG. 3a is a schematic diagram of layer synthesis according to Embodiment 2 of the present invention; FIG.

图4为本发明提供的显示图像的方法实施例三的流程示意图;4 is a schematic flow chart of a third embodiment of a method for displaying an image according to the present invention;

图4a为本发明实施例三提供的一种图层合成示意图;4a is a schematic diagram of layer synthesis according to Embodiment 3 of the present invention;

图4b为第一图像和第二图像的显示流程示意图;4b is a schematic diagram showing a display flow of the first image and the second image;

图5为本发明提供的显示图像的方法实施例四的流程示意图;FIG. 5 is a schematic flowchart diagram of Embodiment 4 of a method for displaying an image according to the present invention;

图5a为本发明实施例四提供的一种图层合成示意图;FIG. 5a is a schematic diagram of layer composition according to Embodiment 4 of the present invention; FIG.

图6为本发明提供的显示图像的方法实施例五的流程示意图;FIG. 6 is a schematic flowchart diagram of Embodiment 5 of a method for displaying an image according to the present invention;

图6a为本发明实施例五提供的一种图层合成示意图;FIG. 6a is a schematic diagram of layer composition according to Embodiment 5 of the present invention; FIG.

图7是本发明实施例提供的一种终端的结构示意图;FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;

图8是本发明实施例提供的一种终端的结构示意图;FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;

图9为本发明提供的显示图像的装置实施例一的流程示意图;FIG. 9 is a schematic flowchart diagram of Embodiment 1 of an apparatus for displaying an image according to the present invention;

图10为本发明提供的显示图像的装置实施例二的流程示意图;FIG. 10 is a schematic flowchart diagram of Embodiment 2 of an apparatus for displaying an image according to the present invention;

图11为本发明提供的显示图像的装置实施例三的流程示意图。 FIG. 11 is a schematic flowchart diagram of Embodiment 3 of an apparatus for displaying an image according to the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

本发明实施例提供了一种显示图像的方法,该方法的执行主体为双屏终端。其中,该双屏终端可以是具有显示功能的任一终端,比如可以是双屏手机等。该双屏终端中可以设置有图形处理器、存储器、硬件合成器、屏幕,图形处理器可以用于对多个图层进行合成的相关处理,存储器可以用于存储下述处理过程中需要和产生的数据,硬件合成器可以用于多个图层进行合成的相关处理,并可以用于获取存储在缓存区的图像,并将其传输至屏幕,屏幕可以用于显示图像。The embodiment of the invention provides a method for displaying an image, and the execution body of the method is a dual screen terminal. The dual-screen terminal may be any terminal having a display function, such as a dual-screen mobile phone. The dual-screen terminal may be provided with a graphics processor, a memory, a hardware synthesizer, a screen, and the graphics processor may be used for processing related processes of synthesizing a plurality of layers, and the memory may be used to store the following processes required and generated. The data synthesizer can be used for correlation processing of multiple layers for synthesis, and can be used to acquire images stored in the buffer area and transfer them to the screen, which can be used to display images.

下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.

图1为本发明提供的显示图像的方法实施例一的流程示意图。本实施例的执行主体是双屏终端,具体可以是双屏终端中具有显示图像功能的装置。如图1所示,本实施例的方法可以包括:FIG. 1 is a schematic flowchart diagram of Embodiment 1 of a method for displaying an image provided by the present invention. The execution body of this embodiment is a dual screen terminal, and specifically may be a device having a display image function in a dual screen terminal. As shown in FIG. 1, the method in this embodiment may include:

S101,分别获取第一屏幕对应的待合成的多个图层和第二屏幕对应的待合成的多个图层。S101. Acquire, respectively, a plurality of layers to be synthesized corresponding to the first screen and a plurality of layers to be synthesized corresponding to the second screen.

需要说明的是,在一些实施方式中,第一屏幕待显示的图像的合成方法与第二屏幕待显示的图像的合成方法类似,下面将以第一屏幕为例结合具体实施方式。It should be noted that, in some embodiments, the method for synthesizing the image to be displayed on the first screen is similar to the method for synthesizing the image to be displayed on the second screen, and the first screen will be taken as an example in conjunction with the specific embodiment.

在实施中,某些情况下(比如双屏终端的主界面和某些游戏界面等),双屏终端显示的图像是由多个图层合成得到,即在显示图像前,双屏终端往往先对屏幕将要显示的图像包含的多个图层进行合成,操作智能终端时显示内容和场景会不断变化,图层数量也会跟着不断变化,要在屏上显示出想要的内容必须将这些图层合成为一张最终的图。一般带显示的智能终端都会有GPU和硬件合成器,图层的合成就是由这两个模块来完成的。其中,硬件合成器合成时功耗较低,GPU合成是指将图层根据图层的大小和起始位置按照从上到下的顺序对图层进行合并。In the implementation, in some cases (such as the main interface of the dual-screen terminal and some game interfaces, etc.), the image displayed by the dual-screen terminal is synthesized by multiple layers, that is, the dual-screen terminal is often used before the image is displayed. Synthesize multiple layers contained in the image to be displayed on the screen. When the smart terminal is operated, the display content and the scene will change constantly, and the number of layers will change constantly. To display the desired content on the screen, these images must be displayed. The layers are combined into a final picture. Generally, smart terminals with display will have GPU and hardware synthesizer, and the synthesis of layers is done by these two modules. Among them, the hardware synthesizer consumes less power when synthesized. GPU synthesis refers to merging layers according to the size and starting position of the layer in order from top to bottom.

具体的,获取到待绘制图层的数据后,双屏终端可以通过GPU(Graphics Processing  Unit,图形处理器)或CPU(Central Processing Unit,中央处理器)绘制图层,或者由上层应用程序绘制图层,得到第一屏幕对应的待合成的多个图层后,GPU或者硬件合成器(例如Overlay模块)可以获取第一屏幕对应的待合成的多个图层和第二屏幕对应的待合成的多个图层。Specifically, after obtaining the data of the layer to be drawn, the dual screen terminal can pass the GPU (Graphics Processing) Unit, graphics processor or CPU (Central Processing Unit) draws the layer, or draws the layer by the upper application to get the multiple layers corresponding to the first screen, GPU or hardware synthesizer (For example, the Overlay module) may acquire a plurality of layers to be synthesized corresponding to the first screen and a plurality of layers to be synthesized corresponding to the second screen.

S102,对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像,对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像。S102. Synthesize a plurality of layers to be synthesized corresponding to the first screen to form a first image, and synthesize the plurality of layers to be synthesized corresponding to the second screen to form a second image.

在实施中,GPU或硬件合成器获取到第一屏幕对应的待合成的多个图层后,可以对多个图层进行合成,形成第一图像。可选的,还可以是GPU和硬件合成器对第一屏幕对应的待合成的多个图层进行合成,形成第一图像。例如,第一图像对应的待合成的图层为4个,其中,当第一图层和第二图层中的内容不变,第三图层和第四图层中的内容随时变化,这样,可以使用GPU对第一图层和第二图层进行合成,使用硬件合成器对第三图层和第四图层进行合成,然后再使用硬件合成器对GPU合成的图像和硬件合成器合成的图像进行最后合成,获得第一图像。本实施例对第一图像的合成方法不做限制,具体根据实际需要进行确定。In an implementation, after the GPU or the hardware synthesizer acquires multiple layers to be synthesized corresponding to the first screen, multiple layers may be combined to form a first image. Optionally, the GPU and the hardware synthesizer may combine the multiple layers to be synthesized corresponding to the first screen to form a first image. For example, the first image corresponds to four layers to be synthesized, wherein when the contents in the first layer and the second layer are unchanged, the contents in the third layer and the fourth layer are changed at any time, such that The GPU can be used to synthesize the first layer and the second layer, the third layer and the fourth layer are synthesized using a hardware synthesizer, and then the GPU synthesized image and hardware synthesizer are synthesized using a hardware synthesizer. The image is finally synthesized to obtain the first image. In this embodiment, the method for synthesizing the first image is not limited, and is specifically determined according to actual needs.

其中,第二图像的获取过程与第一图像的获取过程相同,参照上述第一图像的获取描述,在此不再赘述。The obtaining process of the second image is the same as the acquiring process of the first image, and the description of the first image is not described herein.

S103,通过双屏终端中的硬件合成器将所述第一图像传输至所述第一屏幕进行显示,将所述第二图像传输至所述第二屏幕进行显示。S103. The first image is transmitted to the first screen for display through a hardware synthesizer in the dual screen terminal, and the second image is transmitted to the second screen for display.

在实施中,获取第一图像和第二图像后,双屏终端可以通过硬件合成器(HW overlay)可以将第一图像发送至第一屏幕进行显示,将第二图像发送至第二屏幕进行显示。其中,本步骤中的硬件合成器的合成功能被关闭,处于通道模式。In an implementation, after acquiring the first image and the second image, the dual screen terminal may send the first image to the first screen for display by using a hardware synthesizer (HW overlay), and send the second image to the second screen for display. . The synthesis function of the hardware synthesizer in this step is turned off and is in the channel mode.

本发明的技术方案,如果本实施例的第一图像或第二图像为硬件合成器合成的,则硬件合成器将合成的第一图像或第二图像直接发送给第一屏幕或第二屏幕进行显示。若第一图像和第二图像为GPU合成的,则硬件合成器获取GPU合成的第一图像和第二图像,并使用不同的通道将第一图像传输给第一显示屏进行显示,将第二图像传输给第二显示屏进行显示。According to the technical solution of the present invention, if the first image or the second image of the embodiment is synthesized by the hardware synthesizer, the hardware synthesizer directly transmits the synthesized first image or the second image to the first screen or the second screen. display. If the first image and the second image are synthesized by the GPU, the hardware synthesizer acquires the first image and the second image synthesized by the GPU, and transmits the first image to the first display screen for display using different channels, and the second image The image is transmitted to the second display for display.

本发明实施例的方案可以适用于第一屏幕和第二屏幕同时进行显示的情景,当双屏终端的第一屏幕和第二屏幕没有同时进行显示时,即同一时刻只有一个屏幕进行显示时,双屏终端也可以采用本方案中所述的第一屏幕或第二屏幕显示图像的方法。The solution of the embodiment of the present invention may be applicable to a scenario in which the first screen and the second screen are simultaneously displayed. When the first screen and the second screen of the dual screen terminal are not simultaneously displayed, that is, only one screen is displayed at the same time, The dual screen terminal can also adopt the method of displaying an image on the first screen or the second screen described in the present scheme.

本发明实施例提供的显示图像的方法,通过分别获取第一屏幕对应的待合成的多 个图层和第二屏幕对应的待合成的多个图层;对第一屏幕对应的待合成的多个图层进行合成,形成第一图像,对第二屏幕对应的待合成的多个图层进行合成,形成第二图像;通过双屏终端中的硬件合成器将第一图像传输至第一屏幕进行显示,将第二图像传输至第二屏幕进行显示,进而实现双屏终端的两个屏幕同时显示包含多个图层的图像。The method for displaying an image provided by the embodiment of the present invention obtains a plurality of to-be-synthesized corresponding to the first screen respectively. a plurality of layers to be combined corresponding to the second layer and the second screen; combining the plurality of layers to be synthesized corresponding to the first screen to form a first image, and corresponding to the second screen The layer is synthesized to form a second image; the first image is transmitted to the first screen for display through the hardware synthesizer in the dual screen terminal, and the second image is transmitted to the second screen for display, thereby realizing two of the dual screen terminals The screen also displays an image with multiple layers.

在本发明实施例的一种实现方式中,上述S102中对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像,包括:In an implementation manner of the embodiment of the present invention, the multiple layers to be synthesized corresponding to the first screen are combined to form a first image, and the method includes:

根据所述第一屏幕对应的待合成的多个图层中的每个图层在所述第一屏幕的显示位置,对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像。And forming, according to the display position of the first screen, each of the plurality of layers to be combined corresponding to the first screen, synthesizing a plurality of layers to be synthesized corresponding to the first screen to form The first image.

在实施中,在对多个图层合成前,触发双屏终端显示图像的上层应用程序(比如桌面应用程序、游戏类应用程序)可以向GPU或硬件合成器发送每个图层对应的合成位置,其中,合成位置可以是用于标识图层最终在屏幕中的显示位置。GPU或硬件合成器接收到多个图层中的每个图层对应的合成位置后,可以根据多个图层中的每个图层对应的合成位置,通过GPU和/或硬件合成器对多个图层进行合成,形成第一图像。例如,双屏终端显示的桌面图像是由状态栏图层、壁纸图层和图标图层合成得到的,GPU和/或硬件合成器获取到各个图层后,可以根据各个图层的合成位置,对其进行合成,得到最终的桌面图像,如图2所示。In an implementation, an upper layer application (such as a desktop application or a game application) that triggers a dual screen terminal to display an image may send a composite location corresponding to each layer to a GPU or a hardware synthesizer before synthesizing a plurality of layers. Wherein, the composite location may be a display location for identifying the layer ultimately in the screen. After receiving the composite position corresponding to each layer in the multiple layers, the GPU or the hardware synthesizer may use multiple GPUs and/or hardware synthesizers according to the composite position corresponding to each layer in the multiple layers. The layers are combined to form a first image. For example, the desktop image displayed by the dual-screen terminal is synthesized by the status bar layer, the wallpaper layer, and the icon layer. After the GPU and/or the hardware synthesizer obtain the respective layers, the composite position of each layer may be used. It is synthesized to obtain the final desktop image, as shown in Figure 2.

可选的,合成位置可以是在第一屏幕中的显示位置,在实施中,第一屏幕对应的待合成的多个图层中的每个图层对应的合成位置可以包括每个图层在第一屏幕中的显示位置,即在屏幕中的显示位置(比如,位于屏幕的上方区域、或者中间区域),其中,显示位置可以是图层所在显示区域的像素点位置(像素点位置可以是区域中两个对角顶点的像素点位置)。另外,图层的合成位置还可以包括该图层所在的层数(比如,可以是位于所有图层中的第二层)。Optionally, the composite location may be a display location in the first screen. In an implementation, the composite location corresponding to each of the multiple layers to be synthesized corresponding to the first screen may include each layer in the layer The display position in the first screen, that is, the display position in the screen (for example, in the upper area of the screen, or the middle area), wherein the display position may be the pixel position of the display area where the layer is located (the pixel position may be The pixel position of two diagonal vertices in the area). In addition, the composite location of the layer may also include the number of layers in which the layer is located (eg, may be the second layer in all layers).

在本发明实施例的另一种实现方式中,上述S102中对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像,包括:In another implementation manner of the embodiment of the present invention, the multiple layers to be synthesized corresponding to the second screen are combined to form a second image, which includes:

根据所述第二屏幕对应的待合成的多个图层中的每个图层在所述第二屏幕的显示位置,对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。And synthesizing a plurality of layers to be synthesized corresponding to the second screen according to a display position of the second screen corresponding to each layer of the plurality of layers to be synthesized corresponding to the second screen The second image.

针对第二图像,GPU和/或硬件合成器根据第二屏幕对应的待合成的多个图层中的每个图层在第二屏幕的显示位置,对第二屏幕对应的待合成的多个图层进行合成, 形成第二图像,其具体过程与上述第一图像的合成过程相同,参照上述描述,在此不再赘述。For the second image, the GPU and/or the hardware synthesizer according to the display position of the second screen corresponding to each of the plurality of layers to be synthesized corresponding to the second screen, and the plurality of to-be-composited corresponding to the second screen Layers are synthesized, The second image is formed, and the specific process is the same as the process of synthesizing the first image. Referring to the above description, details are not described herein again.

图3为本发明提供的显示图像的方法实施例二的流程示意图。在上述实施例的基础上,本实施例涉及的是当本实施例的第一屏幕为墨水屏时,获取第一图像且显示第一图像的具体过程,如图3所示,本实施例的方法可以包括:FIG. 3 is a schematic flowchart diagram of Embodiment 2 of a method for displaying an image provided by the present invention. On the basis of the above-mentioned embodiments, the present embodiment relates to a specific process of acquiring a first image and displaying a first image when the first screen of the embodiment is an ink screen, as shown in FIG. 3, which is the embodiment of the present embodiment. Methods can include:

S201、通过所述双屏终端中的图形处理器GPU获取所述第一屏幕对应的待合成的多个图层。S201. Acquire, by the graphics processor GPU in the dual-screen terminal, multiple layers to be synthesized corresponding to the first screen.

电子墨水屏和普通彩色屏的屏不同,驱动的方式也不同,即普通彩色屏的合成显示数据直接输出到彩色屏进行显示就可以,而墨水屏的合成显示数据需要经过软件解码转换为TCON数据来驱动墨水屏。因此,墨水屏采用GPU来进行合成,而GPU合成后的数据可以进行保存,这样便于将保存的合成数据进行解码处理,而采用硬件合成器将合成好的数据会直接输出到屏上,无法获取到最终的合成数据,因此也就无法进行解码处理。因此,本实施例,当第一屏幕为墨水屏时,通过GPU获取所述第一屏幕对应的待合成的多个图层,如图3a所示。The electronic ink screen is different from the screen of the ordinary color screen, and the driving method is also different, that is, the composite display data of the ordinary color screen is directly output to the color screen for display, and the composite display data of the ink screen needs to be converted into TCON data through software decoding. To drive the ink screen. Therefore, the ink screen is synthesized by the GPU, and the data synthesized by the GPU can be saved, so that the saved synthesized data can be decoded and processed, and the synthesized data is directly output to the screen by the hardware synthesizer, which cannot be obtained. The final synthesized data is therefore unable to be decoded. Therefore, in this embodiment, when the first screen is an ink screen, the plurality of layers to be combined corresponding to the first screen are acquired by the GPU, as shown in FIG. 3a.

S202、通过所述GPU对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像,将所述第一图像存储在第一缓存区。S202. Synthesize a plurality of layers to be synthesized corresponding to the first screen by using the GPU to form the first image, and store the first image in a first buffer area.

具体的,GPU获取第一屏幕对应的待合成的多个图层,对这些图层进行合成,例如,GPU根据第一屏幕对应的待合成的多个图层中的每个图层在第一屏幕的显示位置,对第一屏幕对应的待合成的多个图层进行合成,形成第一图像。Specifically, the GPU acquires multiple layers to be synthesized corresponding to the first screen, and synthesizes the layers. For example, the GPU is first according to each of the plurality of layers to be synthesized corresponding to the first screen. The display position of the screen is combined with the plurality of layers to be synthesized corresponding to the first screen to form a first image.

接着,可以将合成后的第一图像存储到对应第一屏幕的存储区域中,即可以将其存储到第一缓存区,其中,第一缓存区可以是用于存储第一屏幕最终将要显示的图像的内存存储区域,比如,可以将其存储到fb_target0这个frame buffer帧缓存区内。Then, the synthesized first image may be stored in a storage area corresponding to the first screen, that is, may be stored in the first buffer area, where the first buffer area may be used to store the first screen to be displayed. The memory storage area of the image, for example, can be stored in the frame buffer frame buffer of fb_target0.

S203、通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示。S203. Acquire a first image stored in the first buffer area by using a first channel of the hardware synthesizer, and transmit the first image to the first screen for display.

在实施中,将第一图像存储到第一缓存区后,双屏终端可以通过硬件合成器(HW overlay)中的第一通道获取第一缓存区中存储的第一图像,然后,可以将其发送至第一屏幕进行显示。其中,本步骤中的硬件合成器的合成功能被关闭,处于通道模式,第一通道可以是硬件合成器的目前未被使用的任一通道。In an implementation, after storing the first image in the first buffer area, the dual screen terminal may acquire the first image stored in the first buffer area through the first channel in the hardware synthesizer (HW overlay), and then, Send to the first screen for display. The synthesis function of the hardware synthesizer in this step is turned off, in the channel mode, and the first channel may be any channel of the hardware synthesizer that is not currently used.

在本实施例中,由于第一屏幕为墨水屏,则上述S203具体可以包括: In this embodiment, since the first screen is an ink screen, the foregoing S203 may specifically include:

通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像。Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer.

对所述第一图像进行解码,获得所述第一图像对应的逻辑TCON数据,并根据所述TCON数据驱动所述第一屏幕进行显示。Decoding the first image, obtaining logical TCON data corresponding to the first image, and driving the first screen to display according to the TCON data.

其具体原因参照上述,由于墨水屏需要TCON数据来驱动,因此,需要将CPU合成的第一图像解码成TCON数据,具体是,双屏终端中的解码程序从第一缓存区中读取第一图像,并对第一图像进行解码处理,将第一图像解码成TCON数据,用该TCON数据来驱动墨水屏,进而实现第一图像在第一屏幕上的显示。For the specific reason, referring to the above, since the ink screen needs TCON data to be driven, it is necessary to decode the first image synthesized by the CPU into TCON data, specifically, the decoding program in the dual screen terminal reads the first from the first buffer area. And decoding the first image, decoding the first image into TCON data, and driving the ink screen with the TCON data, thereby implementing display of the first image on the first screen.

在本实施例的一种实现方式中,上述S203具体可以是:In an implementation manner of this embodiment, the foregoing S203 may be specifically:

当检测到所述GPU对所述第一图像的合成完成指令时,通过所述双屏终端中的硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示。Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer in the dual screen terminal when detecting the synthesis completion instruction of the first image by the GPU, and The first image is transmitted to the first screen for display.

在实施中,GPU对多个图层合成完成,将合成后的第一图像存储到第一缓存区后,可以向硬件合成器发送合成完成通知,硬件合成器接收到对第一图像的合成完成通知时,即当双屏终端检测到GPU对第一图像的合成完成指令时,可以通过第一通道获取第一缓存区中存储的第一图像,并将第一图像传输至第一屏幕进行显示。In the implementation, the GPU completes the synthesis of the multiple layers, and after storing the synthesized first image in the first buffer area, may send a synthesis completion notification to the hardware synthesizer, and the hardware synthesizer receives the synthesis of the first image. When the notification is that, when the dual screen terminal detects the GPU completes the synthesis completion instruction of the first image, the first image stored in the first buffer area may be acquired through the first channel, and the first image is transmitted to the first screen for display. .

可选的,当第一屏幕将要显示下一帧图像时,可以将第一缓存区中的第一图像删除,相应的,处理过程可以如下:当检测到第一图像的显示完成指令时,将第一缓存区中的第一图像删除。Optionally, when the first screen is to display the next frame image, the first image in the first buffer area may be deleted. Correspondingly, the processing may be as follows: when the display completion instruction of the first image is detected, The first image in the first buffer is deleted.

在实施中,双屏终端还可以包括缓存区管理服务,双屏终端可以通过缓存区管理服务器对第一缓存区和第二缓存区进行管理。具体的,对于第一缓存区,当硬件合成器显示完第一图像,将要显示下一帧图像时,可以向该缓存区管理服务发送第一图像的显示完成指令,缓存区管理服务接收到第一图像的显示完成指令时,可以将第一缓存区中的第一图像删除。In an implementation, the dual-screen terminal may further include a buffer management service, and the dual-screen terminal may manage the first buffer area and the second buffer area by using the buffer management server. Specifically, for the first buffer area, when the hardware synthesizer displays the first image and the next frame image is to be displayed, the display completion instruction of the first image may be sent to the buffer management service, and the buffer management service receives the first image. When the display completion instruction of an image, the first image in the first buffer area can be deleted.

本发明实施例提供的显示图像的方法,当第一屏幕为墨水屏时,通过GPU获取所述第一屏幕对应的待合成的多个图层,并通过GPU对第一屏幕对应的待合成的多个图层进行合成形成第一图像,将第一图像存储在第一缓存区,最后通过硬件合成器的第一通道获取第一缓存区中存储的第一图像,并将第一图像传输至第一屏幕进行显示,进而实现对第一图像在第一屏幕上的显示。The method for displaying an image provided by the embodiment of the present invention, when the first screen is an ink screen, the plurality of layers to be combined corresponding to the first screen are acquired by the GPU, and the corresponding screen to be synthesized by the GPU is corresponding to the first screen. The plurality of layers are combined to form a first image, the first image is stored in the first buffer area, and finally the first image stored in the first buffer area is acquired by the first channel of the hardware synthesizer, and the first image is transmitted to The first screen is displayed to implement display of the first image on the first screen.

图4为本发明提供的显示图像的方法实施例三的流程示意图。在上述实施例的基 础上,本实施例涉及的是当第二屏幕对应的待合成的多个图层中的每个图层均不变时,获取第二图像以及显示第二图像的具体过程。如图4所示,本实施例的方法具体可以包括:FIG. 4 is a schematic flowchart diagram of Embodiment 3 of a method for displaying an image according to the present invention. In the base of the above embodiment The present embodiment relates to a specific process of acquiring a second image and displaying a second image when each of the plurality of layers to be synthesized corresponding to the second screen is unchanged. As shown in FIG. 4, the method in this embodiment may specifically include:

S301、通过所述GPU获取所述第二屏幕对应的待合成的多个图层。S301. Acquire, by the GPU, multiple layers to be synthesized corresponding to the second screen.

S302、通过所述GPU对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像,将所述第二图像存储在第二缓存区。S302. Synthesize a plurality of layers to be synthesized corresponding to the second screen by using the GPU to form the second image, and store the second image in a second buffer area.

在本实施例中,当图层的内容不变时,确定该图层为不变的图层,当第二屏幕对应的待合成的多个图层中的每个图层均不变化时,可以使用GPU来对这些图层进行合成,形成第一图像。这主要是因为,GPU合成的图像会进行保存,这样,只需要对不变的图层进行一次合成,将合成后的第二图像放到fb_target1这个frame buffer帧缓存区内,下一帧显示第二图像时,第二图像对应的图层不用重新合成,可以直接从fb_target1这个frame buffer帧缓存区内读取第二图像,进而降低的GPU的工作量,降低手机的功耗。In this embodiment, when the content of the layer is unchanged, the layer is determined to be a constant layer, and when each layer of the plurality of layers to be synthesized corresponding to the second screen does not change, These layers can be composited using the GPU to form a first image. This is mainly because the image synthesized by the GPU is saved, so that only the invariant layer needs to be synthesized once, and the synthesized second image is placed in the frame buffer frame buffer of fb_target1, and the next frame is displayed. In the case of the second image, the layer corresponding to the second image does not need to be resynthesized, and the second image can be directly read from the fb_target1 frame buffer frame buffer area, thereby reducing the workload of the GPU and reducing the power consumption of the mobile phone.

在实施中,对于第二屏幕,双屏终端可以通过GPU获取第二屏幕对应的待合成的多个图层,其中,图层的绘制可以与S101所述的方法一致,进而,通过GPU对第二屏幕对应的多个图层进行合成,得到合成后的第二图像,并将其存储到第二缓存区,其中,第二缓存区可以是不同于第一缓存区的用于存储第二屏幕的待显示图像的内存区域,比如,可以将其存储到fb_target1这个frame buffer帧缓存区内,如图4a所示。In an implementation, for the second screen, the dual-screen terminal may acquire a plurality of layers to be synthesized corresponding to the second screen by using the GPU, where the drawing of the layer may be consistent with the method described in S101, and further, the GPU is used to The plurality of layers corresponding to the two screens are combined to obtain a second image that is synthesized and stored in the second buffer area, wherein the second buffer area may be different from the first buffer area for storing the second screen. The memory area of the image to be displayed, for example, can be stored in the frame buffer frame buffer of fb_target1, as shown in Figure 4a.

S303、通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。S303. Acquire a second image stored in the second buffer area by using a second channel of the hardware synthesizer, and transmit the second image to the second screen for display.

在实施中,将第二图像存储到第二缓存区后,双屏终端可以通过硬件合成器的第二通道获取第二图像,并将第二图像传输至第二屏幕进行显示,其中,第二通道可以是硬件合成器的不同于第一通道且未被使用的任一通道,第一图像和第二图像的显示流程示意图如图4b所示。在显示第二图像的过程中的具体实现与显示第一图像的过程类似,此处不再进行赘述。In an implementation, after storing the second image in the second buffer area, the dual screen terminal may acquire the second image through the second channel of the hardware synthesizer, and transmit the second image to the second screen for display, where the second The channel may be any channel of the hardware synthesizer different from the first channel and not used, and the display flow of the first image and the second image is as shown in FIG. 4b. The specific implementation in the process of displaying the second image is similar to the process of displaying the first image, and details are not described herein.

在本实施例的一种实现方式中,上述S303具体可以是:In an implementation manner of this embodiment, the foregoing S303 may be specifically:

当检测到所述GPU对所述第二图像的合成完成指令时,通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。Acquiring the second image stored in the second buffer area through the second channel of the hardware synthesizer when the GPU completes the synthesis completion instruction of the second image, and transmitting the second image Display to the second screen.

在实施中,GPU对多个图层合成完成,将合成后的第二图像存储到第二缓存区后, 可以向硬件合成器发送合成完成通知,硬件合成器接收到对第二图像的合成完成通知时,即当双屏终端检测到GPU对第二图像的合成完成指令时,可以通过第二通道获取第二缓存区中存储的第二图像,并将第二图像传输至第二屏幕进行显示。In an implementation, the GPU completes the synthesis of multiple layers, and stores the synthesized second image in the second buffer area. The synthesis completion notification may be sent to the hardware synthesizer. When the hardware synthesizer receives the notification of the completion of the synthesis of the second image, that is, when the dual screen terminal detects the synthesis completion instruction of the second image by the GPU, the second channel may obtain the second channel. The second image stored in the second buffer area and the second image is transmitted to the second screen for display.

可选的,当第二屏幕将要显示下一帧图像时,可以将第二缓存区中的第二图像删除,相应的,处理过程可以如下:当检测到第二图像的显示完成指令时,将第二缓存区中的第二图像删除。Optionally, when the second screen is about to display the next frame image, the second image in the second buffer area may be deleted. Correspondingly, the processing may be as follows: when the display completion instruction of the second image is detected, The second image in the second buffer area is deleted.

在实施中,双屏终端还可以包括缓存区管理服务,双屏终端可以通过缓存区管理服务器对第一缓存区和第二缓存区进行管理。具体的,对于第二缓存区,当硬件合成器显示完第二图像,将要显示下一帧图像时,可以向该缓存区管理服务发送第二图像的显示完成指令,缓存区管理服务接收到第二图像的显示完成指令时,可以将第二缓存区中的第二图像删除。In an implementation, the dual-screen terminal may further include a buffer management service, and the dual-screen terminal may manage the first buffer area and the second buffer area by using the buffer management server. Specifically, for the second buffer area, when the hardware synthesizer displays the second image and the next frame image is to be displayed, the display completion instruction of the second image may be sent to the buffer management service, and the buffer management service receives the first image. When the display of the two images is completed, the second image in the second buffer area can be deleted.

本发明实施例提供的显示图像的方法,当第二屏幕对应的待合成的多个图层中的每个图层均不变化时,通过GPU获取第二屏幕对应的待合成的多个图层,并通过GPU对第二屏幕对应的待合成的多个图层进行合成形成第二图像,将第二图像存储在第二缓存区,最后通过硬件合成器的第二通道获取第二缓存区中存储的第二图像,并将第二图像传输至第二屏幕进行显示,进而实现对第二图像在第二屏幕上的显示。The method for displaying an image according to the embodiment of the present invention, when each of the plurality of layers to be synthesized corresponding to the second screen does not change, the GPU acquires multiple layers to be synthesized corresponding to the second screen. And synthesizing the plurality of layers to be synthesized corresponding to the second screen by the GPU to form a second image, storing the second image in the second buffer area, and finally acquiring the second buffer area through the second channel of the hardware synthesizer The stored second image is transmitted to the second screen for display, thereby implementing display of the second image on the second screen.

图5为本发明提供的显示图像的方法实施例四的流程示意图。在上述实施例的基础上,本实施例涉及的是当第二屏幕对应的待合成的多个图层中的每个图层均变化时,获取第二图像以及显示第二图像的具体过程。如图5所示,本实施例的方法具体可以包括:FIG. 5 is a schematic flowchart diagram of Embodiment 4 of a method for displaying an image provided by the present invention. On the basis of the foregoing embodiment, the present embodiment relates to a specific process of acquiring a second image and displaying a second image when each of the plurality of layers to be synthesized corresponding to the second screen changes. As shown in FIG. 5, the method in this embodiment may specifically include:

S401、通过所述硬件合成器中除所述第一通道外的通道获取所述第二屏幕对应的待合成的多个图层。S401. Acquire a plurality of layers to be synthesized corresponding to the second screen by using a channel other than the first channel in the hardware synthesizer.

其中所述硬件合成器中的一个通道获取一个图层,所述第二屏幕对应的待合成的多个图层的图层数目小于或等于所述硬件合成器的通道数减1。The one channel of the hardware synthesizer acquires a layer, and the number of layers of the plurality of layers to be synthesized corresponding to the second screen is less than or equal to the number of channels of the hardware synthesizer minus one.

由于硬件合成器进行图层合成时,其功耗低,因此,对于处于变化的图层,本实施例使用硬件合成器进行合成。Since the hardware synthesizer performs layer synthesis, its power consumption is low, and therefore, for a layer that is changing, this embodiment uses a hardware synthesizer for synthesis.

在实际使用时,由于第一屏幕为墨水屏时已近占用了硬件合成器的一个通道,因此硬件合成器剩余的通道才能用于第二图像对应的各图层的合成。例如双屏终端的硬件合成器共有4个通道,通道1分给第一屏幕使用,那么第二屏幕只能使用通道2到 通道4这三个通道。In actual use, since the first screen is an ink screen, one channel of the hardware synthesizer is occupied, so the remaining channels of the hardware synthesizer can be used for the synthesis of the layers corresponding to the second image. For example, the hardware synthesizer of the dual-screen terminal has 4 channels, and the channel 1 is used for the first screen, then the second screen can only use the channel 2 to Channel 4 is the three channels.

在硬件合成器获取图层时,一个图层对应一个通道,即一个通道只能获取一个图层,因此,本实施例中假设硬件合成器的通道数为n时,第二屏幕对应的待合成的多个图层的数目为m,则m小于或等于n-1,这样才能保证硬件合成器获得第二屏幕对应的待合成的多个图层中每个图层。本实施例中,硬件合成器中除第一通道之外的其余通道获取第二屏幕对应的待合成的多个图层,如图5a所示。When the layer is acquired by the hardware synthesizer, one layer corresponds to one channel, that is, one channel can only acquire one layer. Therefore, in this embodiment, if the number of channels of the hardware synthesizer is n, the corresponding screen of the second screen is to be synthesized. The number of multiple layers is m, then m is less than or equal to n-1, so as to ensure that the hardware synthesizer obtains each of the plurality of layers to be synthesized corresponding to the second screen. In this embodiment, the remaining channels of the hardware synthesizer except the first channel acquire a plurality of layers to be synthesized corresponding to the second screen, as shown in FIG. 5a.

S402、通过所述硬件合成器对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。S402. Synthesize a plurality of layers to be synthesized corresponding to the second screen by using the hardware synthesizer to form the second image.

在实施中,硬件合成器中除第一通道的剩余通道获取第二屏幕对应的待合成的多个图层中每个图层后,对这些图层进行合成,形成第二图像,其合成过程与上述实施例的描述相同,参照上述实施例。在本实施例中,硬件合成器合成第二图像后,对第二图像不进行保存,而是直接发送给第二屏幕进行显示。这样,当下一帧显示图形发生变化时,硬件合成器对下一帧图形对应的图层进行合并,形成新的第二图像,并直接对新的第二图像送至第二屏幕进行显示,进而节约了双屏终端处理变化的第二图像的功耗。In an implementation, after the remaining channels of the first channel acquire each of the plurality of layers to be synthesized corresponding to the second screen in the hardware synthesizer, the layers are combined to form a second image, and the synthesis process is performed. The same as the description of the above embodiment, reference is made to the above embodiment. In this embodiment, after the hardware synthesizer synthesizes the second image, the second image is not saved, but is directly sent to the second screen for display. In this way, when the display pattern of the next frame changes, the hardware synthesizer merges the layers corresponding to the next frame graphic to form a new second image, and directly sends the new second image to the second screen for display. The power consumption of the second image of the change of the dual screen terminal processing is saved.

本发明实施例提供的显示图像的方法,当第二屏幕对应的待合成的多个图层中的每个图层均变化时,通过硬件合成器中除第一通道外的通道获取第二屏幕对应的待合成的多个图层,并通过硬件合成器对第二屏幕对应的待合成的多个图层进行合成形成第二图像,将第二图像传输至第二屏幕进行显示,进而实现对第二图像在第二屏幕上的显示,且降低了双屏终端的功耗。The method for displaying an image according to an embodiment of the present invention, when each of the plurality of layers to be synthesized corresponding to the second screen changes, acquiring a second screen through a channel other than the first channel in the hardware synthesizer Corresponding multiple layers to be combined, and synthesizing a plurality of layers corresponding to the second screen corresponding to the second screen by a hardware synthesizer to form a second image, and transmitting the second image to the second screen for display, thereby implementing The display of the second image on the second screen reduces the power consumption of the dual screen terminal.

图6为本发明提供的显示图像的方法实施例五的流程示意图。在上述实施例的基础上,本实施例涉及的是当第二屏幕对应的待合成的多个图层中既包括变化图层又包括不变化图层时,获取第二图像以及显示第二图像的具体过程。如图6所示,本实施例的方法具体可以包括:FIG. 6 is a schematic flowchart diagram of Embodiment 5 of a method for displaying an image according to the present invention. On the basis of the foregoing embodiment, the embodiment relates to acquiring the second image and displaying the second image when the plurality of layers to be combined corresponding to the second screen include both the change layer and the unchanged layer. The specific process. As shown in FIG. 6, the method in this embodiment may specifically include:

S501、通过所述GPU获取所述第一图层集合中的各图层,通过所述硬件合成器中除第一通道和第二通道外的剩余通道获取所述第二图层集合中的各图层。S501. Acquire each layer in the first layer set by using the GPU, and obtain, by using the remaining channels of the hardware synthesizer except the first channel and the second channel, each of the second layer set. Layer.

其中,硬件合成器中的一个通道获取一个图层,所述第二集合中的图层的数目小于或等于所述硬件合成器的通道数减2。Wherein, one channel in the hardware synthesizer acquires a layer, and the number of layers in the second set is less than or equal to the number of channels of the hardware synthesizer minus 2.

例如手机在待机界面上一般有这么几个图层,状态栏(屏幕顶部显示信号质量电 池电量)、导航栏(屏幕底部虚拟按键)、壁纸,launcher(APP图标),当亮屏屏幕时,这几个图层都没有变化,此时就可以让所有的图层采用GPU合成,由于图层无变化只需要合成一次就可以了。当滑动操作时,通常状态栏、导航栏和壁纸是不变的图层,只有launcher图标再变化,这时就可以采用混合合成,将状态栏、导航栏和壁纸采用GPU合成,合成完的结果和launcher图层一起送到硬件合成器中进行再次合成。For example, the mobile phone usually has several layers on the standby interface, and the status bar (the signal quality is displayed at the top of the screen). Pool power), navigation bar (virtual button at the bottom of the screen), wallpaper, launcher (APP icon), when the screen is bright, these layers have not changed, in this case, all layers can be GPU synthesized, because No change in the layer only needs to be synthesized once. When sliding, usually the status bar, navigation bar and wallpaper are unchanged layers, only the launcher icon changes, then you can use mixed composition, the status bar, navigation bar and wallpaper are synthesized by GPU, the result of the synthesis Together with the launcher layer, it is sent to the hardware synthesizer for resynthesis.

在本实施例中,第二屏幕对应的待合成的多个图层既包括变化的图层又包括不变化的图层,为了便于区分,将不变化的图层归结为第一图层集合,将变化的图层归结为第二图层集合。使用GPU对不变化的图层进行合并,使用硬件合成器对变化的图层进行合并。In this embodiment, the plurality of layers to be synthesized corresponding to the second screen include both the changed layer and the unchanged layer, and the layer that does not change is attributed to the first layer set for easy distinction. The changed layer is reduced to a second layer set. Use the GPU to merge layers that do not change, and use a hardware synthesizer to merge the changed layers.

其中,硬件合成器中的一个通道获取一个图层,而硬件合成器的一个通道(例如第一通道)用于传输第一图像,硬件合成器的一个通道(例如第二通道)用于传输GPU合成的图像,这样,假设硬件合成器具有n个通道,则用于获取第二图层集合中各图层的通道为n-2个。因此,为了保证硬件合成器对第二图层集合中各图层的完整获取,则第二图层集合中图层的数目应该不超过n-2个,如图6a所示。Wherein one channel in the hardware synthesizer acquires one layer, and one channel of the hardware synthesizer (for example, the first channel) is used to transmit the first image, and one channel of the hardware synthesizer (for example, the second channel) is used to transmit the GPU. The synthesized image is such that, assuming that the hardware synthesizer has n channels, the channels for acquiring the layers in the second layer set are n-2. Therefore, in order to ensure complete acquisition of each layer in the second layer set by the hardware synthesizer, the number of layers in the second layer set should not exceed n-2, as shown in FIG. 6a.

在实施时,通过GPU获取第一图层集合中的各图层,这些图层均为不变化的图层,通过硬件合成器中除第一通道和第二通道外的剩余通道获取第二图层集合中的各变化的图层。In implementation, the GPU obtains each layer in the first layer set, and the layers are unchanged layers, and the second picture is obtained through the remaining channels of the hardware synthesizer except the first channel and the second channel. Layers of each change in the layer set.

S502、通过所述GPU对所述第一图层集合中的各图层进行合成,形成第三图像,并将所述第三图像存储在第二缓存区。S502. Synthesize each layer in the first layer set by using the GPU to form a third image, and store the third image in a second buffer area.

GPU获取第一图层集合中各不变化的图层,对这些图层进行合成,形成第三图像,其具体合成过程参照上述实施例的描述,例如根据第一图层集合中各图层在第二屏幕上的具体位置进行合成,形成第三图像。接着,将第三图像保存至第二缓存区中,其中第二缓存区用于存放第二图像或者与第二图像相关的图像。The GPU acquires the layers that do not change in the first layer set, and combines the layers to form a third image. The specific composition process is described in the foregoing embodiment, for example, according to each layer in the first layer set. The specific positions on the second screen are combined to form a third image. Next, the third image is saved to the second buffer area, wherein the second buffer area is used to store the second image or an image related to the second image.

S503、通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第三图像。S503. Acquire a third image stored in the second buffer area by using a second channel of the hardware synthesizer.

可选的,在实施中,GPU将合成后的第三图像存储到第二缓存区后,可以向硬件合成器发送合成完成通知,硬件合成器接收到对第三图像的合成完成通知时,即当双屏终端检测到GPU对第三图像的合成完成指令时,可以通过第二通道获取第二缓存区中存储的第三图像。Optionally, in an implementation, after the GPU stores the synthesized third image in the second buffer area, the GPU may send a synthesis completion notification to the hardware synthesizer, and the hardware synthesizer receives the notification of the completion of the synthesis of the third image, that is, When the dual screen terminal detects the GPU completes the synthesis completion instruction of the third image, the third image stored in the second buffer area may be acquired through the second channel.

S504、通过所述硬件合成器对所述第二图层集合中的各图层和所述第三图像进行合成,形成所述第二图像。 S504. Synthesize each layer in the second layer set and the third image by using the hardware synthesizer to form the second image.

硬件合成器通过第二通道获取第二缓存区中的第三图像,通过除第一通道和第二通道之外的剩余通道获得的第二图层集合中的各图层,硬件合成器对第三图像以及第二图层集合中各图层进行合并,形成第二图像,并将第二图像直接传输给第二屏幕进行显示。The hardware synthesizer acquires a third image in the second buffer area through the second channel, and each layer in the second layer set obtained by the remaining channels except the first channel and the second channel, the hardware synthesizer pair The three images and the layers in the second layer set are merged to form a second image, and the second image is directly transmitted to the second screen for display.

在本实施例中,硬件合成器可以同时对第三图像和第二图层集合中的各图层进行合成,还可以是对第二图层集合中的各图层先进行合成,形成第四图像,再将第三图像和第四图像进行合成,生成第二图像。In this embodiment, the hardware synthesizer may synthesize each layer in the third image and the second layer set at the same time, or may synthesize each layer in the second layer set to form a fourth The image is then combined with the third image and the fourth image to generate a second image.

本发明实施例提供的显示图像的方法,当第二屏幕对应的待合成的多个图层中即包括变化图层又包括不变化图层时,通过GPU获取第一图层集合中的各图层,通过硬件合成器中除第一通道和第二通道外的剩余通道获取第二图层集合中的各图层,通过GPU对第一图层集合中的各图层进行合成,形成第三图像,并将第三图像存储在第二缓存区,通过硬件合成器的第二通道获取第二缓存区中存储的第三图像,并通过硬件合成器对第二图层集合中的各图层和第三图像进行合成形成第二图像。即本实施例通过GPU对不变化的图层进行合成,通过硬件合成器对变化图层的合成,进而实现对第二图像的准确获得,为第二图像的显示做好准备。The method for displaying an image according to the embodiment of the present invention, when a plurality of layers to be synthesized corresponding to the second screen includes a change layer and a non-change layer, the GPU obtains each image in the first layer set. The layer obtains each layer in the second layer set through the remaining channels except the first channel and the second channel in the hardware synthesizer, and synthesizes each layer in the first layer set through the GPU to form a third layer. And storing the third image in the second buffer area, acquiring the third image stored in the second buffer area through the second channel of the hardware synthesizer, and using each layer in the second layer set by the hardware synthesizer And synthesizing with the third image to form a second image. That is, in this embodiment, the GPU is used to synthesize the unchanged layers, and the synthesis of the changed layers is performed by the hardware synthesizer, thereby achieving accurate acquisition of the second image and preparing for display of the second image.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

图7为本发明实施例所涉及的双屏终端的结构示意图。如图7所示,所述双屏终端600包括:存储器120、处理器110、GPU130、硬件合成器151、第一屏幕161、第二屏幕162以及存储在所述存储器120上并可以在所述处理器110上运行的程序,所述处理器110分别与所述存储器120、所述硬件合成器151和所述GPU130连接,所述GPU130与所述存储器120连接,所述硬件合成器151分别与所述存储器120、所述第一屏幕161和第二屏幕162连接,所述处理器110可以用于实施上述实施例中提供的显示图像的方法。FIG. 7 is a schematic structural diagram of a dual screen terminal according to an embodiment of the present invention. As shown in FIG. 7, the dual screen terminal 600 includes: a memory 120, a processor 110, a GPU 130, a hardware synthesizer 151, a first screen 161, a second screen 162, and is stored on the memory 120 and can be in the a program running on the processor 110, the processor 110 is respectively connected to the memory 120, the hardware synthesizer 151 and the GPU 130, and the GPU 130 is connected to the memory 120, and the hardware synthesizer 151 respectively The memory 120, the first screen 161 and the second screen 162 are connected, and the processor 110 can be used to implement the method for displaying an image provided in the above embodiments.

其中,存储器120可用于存储软件程序以及模块,处理器110通过运行存储在存储器120的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根 据双屏终端600的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器120,还可以包括非易失性存储器120,例如至少一个磁盘存储器120件、闪存器件、或其他易失性固态存储器120件。相应地,存储器120还可以包括存储器120控制器,以提供处理器110对存储器120的访问。The memory 120 can be used to store software programs and modules, and the processor 110 executes various functional applications and data processing by running software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store the root Data (such as audio data, phone book, etc.) created according to the use of the dual screen terminal 600. Moreover, memory 120 can include high speed random access memory 120, and can also include non-volatile memory 120, such as at least one disk storage 120 piece, flash memory device, or other volatile solid state memory 120 piece. Accordingly, memory 120 may also include a memory 120 controller to provide processor 110 access to memory 120.

处理器110是双屏终端600的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行双屏终端600的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器110可包括一个或多个处理核心;优选的,处理器110可集成应用处理器110和调制解调处理器110,其中,应用处理器110主要处理操作系统、用户界面和应用程序等,调制解调处理器110主要处理无线通信。可以理解的是,上述调制解调处理器110也可以不集成到处理器110中。The processor 110 is the control center of the dual screen terminal 600, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling stored in the memory 120. The data performs various functions and processing data of the dual screen terminal 600, thereby performing overall monitoring of the mobile phone. Optionally, the processor 110 may include one or more processing cores; preferably, the processor 110 may integrate the application processor 110 and the modem processor 110, wherein the application processor 110 mainly processes an operating system, a user interface, and The application processor or the like, the modem processor 110 mainly processes wireless communication. It can be understood that the above-mentioned modem processor 110 may not be integrated into the processor 110.

GPU130和硬件合成器151用于合成图层,硬件合成器151还用于将合成的图片发送给显示单元160,以使显示单元160中的第一屏幕161或第二屏幕162进行显示。如图7所示,本实施例的硬件合成器151属于双屏终端600的显示控制器150,第一屏幕161和第二屏幕162属于显示单元160,其中显示控制器150与显示单元160连接。The GPU 130 and the hardware synthesizer 151 are used to synthesize a layer, and the hardware synthesizer 151 is further configured to transmit the synthesized picture to the display unit 160 to cause the first screen 161 or the second screen 162 in the display unit 160 to display. As shown in FIG. 7, the hardware synthesizer 151 of the present embodiment belongs to the display controller 150 of the dual screen terminal 600, and the first screen 161 and the second screen 162 belong to the display unit 160, wherein the display controller 150 is connected to the display unit 160.

继续参照图7所示,本实施例的处理器110、存储器120和显示控制器150均与系统总线140连接,可通过系统总线140进行数据的传输。GPU130与存储器120连接,可以从存储器120中读取数据,也可以将数据写入存储器120中。显示控制器150中的硬件合成器151通过系统总线140读取存储器120中的数据。Continuing to refer to FIG. 7, the processor 110, the memory 120, and the display controller 150 of the present embodiment are both connected to the system bus 140, and data can be transmitted through the system bus 140. The GPU 130 is connected to the memory 120, and can read data from the memory 120 or write the data into the memory 120. The hardware synthesizer 151 in the display controller 150 reads the data in the memory 120 through the system bus 140.

可选的,如图8所示,该双屏终端600还可以包括RF(Radio Frequency,射频)电路210、输入单元220、传感器170、音频电路180、WiFi(wireless fidelity,无线保真)模块190、电源200等部件。本领域技术人员可以理解,图11中示出的双屏终端600结构并不构成对双屏终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Optionally, as shown in FIG. 8 , the dual-screen terminal 600 may further include an RF (Radio Frequency) circuit 210 , an input unit 220 , a sensor 170 , an audio circuit 180 , and a WiFi (Wireless Fidelity) module 190 . , power supply 200 and other components. It will be understood by those skilled in the art that the dual screen terminal 600 structure shown in FIG. 11 does not constitute a limitation of the dual screen terminal, and may include more or less components than those illustrated, or may combine some components, or different. Assembly of parts. among them:

RF电路210可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器110处理;另外,将涉及上行的数据发送给基站。通常,RF电路210包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路210还可以通过无线通信与 网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The RF circuit 210 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving downlink information of the base station, and processing it by one or more processors 110; in addition, transmitting data related to the uplink to the base station. . Generally, the RF circuit 210 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc. In addition, the RF circuit 210 can also communicate with the wireless The network communicates with other devices. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.

输入单元220可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元220可包括触敏表面221以及其他输入设备222。触敏表面221,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面221上或在触敏表面221附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面221可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,并能接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面221。除了触敏表面221,输入单元220还可以包括其他输入设备222。具体地,其他输入设备222可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 220 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input unit 220 can include touch-sensitive surface 221 as well as other input devices 222. Touch-sensitive surface 221, also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 221 or on the touch-sensitive surface 221 The operation near the touch-sensitive surface 221) and driving the corresponding connecting device according to a preset program. Alternatively, the touch sensitive surface 221 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 110 is provided and can receive commands from the processor 110 and execute them. In addition, the touch-sensitive surface 221 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 221, the input unit 220 can also include other input devices 222. Specifically, other input devices 222 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.

显示单元160可用于显示由用户输入的信息或提供给用户的信息以及双屏终端600的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元160可包括第一屏幕161和第二屏幕162,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置第二屏幕162,第一屏幕161可以为墨水屏。进一步的,触敏表面221可覆盖显示单元160,当触敏表面221检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示单元160上提供相应的视觉输出。虽然在图8中,触敏表面221与显示单元160是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面221与显示单元160集成而实现输入和输出功能。The display unit 160 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the dual screen terminal 600, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 160 may include a first screen 161 and a second screen 162. Alternatively, the second screen may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. 162. The first screen 161 can be an ink screen. Further, the touch-sensitive surface 221 can cover the display unit 160, and when the touch-sensitive surface 221 detects a touch operation thereon or nearby, it is transmitted to the processor 110 to determine the type of the touch event, and then the processor 110 according to the touch event The type provides a corresponding visual output on display unit 160. Although in FIG. 8, touch-sensitive surface 221 and display unit 160 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 221 can be integrated with display unit 160 for input. And output function.

双屏终端600还可包括至少一种传感器170,比如光传感器、运动传感器以及其 他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示单元160的亮度,接近传感器可在双屏终端600移动到耳边时,关闭显示单元160和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于双屏终端600还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The dual screen terminal 600 can also include at least one type of sensor 170, such as a light sensor, a motion sensor, and His sensor. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display unit 160 according to the brightness of the ambient light, and the proximity sensor may close the display unit when the dual screen terminal 600 moves to the ear. 160 and / or backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the dual-screen terminal 600, it can also be configured with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. This will not be repeated here.

音频电路180、扬声器181,传声器182可提供用户与双屏终端600之间的音频接口。音频电路180可将接收到的音频数据转换后的电信号,传输到扬声器181,由扬声器181转换为声音信号输出;另一方面,传声器182将收集的声音信号转换为电信号,由音频电路180接收后转换为音频数据,再将音频数据输出处理器110处理后,经RF电路210以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路180还可能包括耳塞插孔,以提供外设耳机与双屏终端600的通信。The audio circuit 180, the speaker 181, and the microphone 182 can provide an audio interface between the user and the dual screen terminal 600. The audio circuit 180 can transmit the converted electrical data of the received audio data to the speaker 181 for conversion to the sound signal output by the speaker 181; on the other hand, the microphone 182 converts the collected sound signal into an electrical signal by the audio circuit 180. After receiving, it is converted into audio data, and then processed by the audio data output processor 110, transmitted to the terminal, for example, via the RF circuit 210, or outputted to the memory 120 for further processing. The audio circuit 180 may also include an earbud jack to provide communication of the peripheral earphones with the dual screen terminal 600.

WiFi属于短距离无线传输技术,双屏终端600通过WiFi模块190可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块190,但是可以理解的是,其并不属于双屏终端600的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the dual-screen terminal 600 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 190, which provides wireless broadband Internet access for users. Although FIG. 8 shows the WiFi module 190, it can be understood that it does not belong to the essential configuration of the dual screen terminal 600, and may be omitted as needed within the scope of not changing the essence of the invention.

双屏终端600还包括给各个部件供电的电源200(比如电池),优选的,电源200可以通过电源200管理系统与处理器110逻辑相连,从而通过电源200管理系统实现管理充电、放电、以及功耗管理等功能。电源200还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The dual screen terminal 600 also includes a power source 200 (such as a battery) for powering various components. Preferably, the power source 200 can be logically coupled to the processor 110 through the power source management system to manage charging, discharging, and power through the power management system. Consumption management and other functions. The power supply 200 can also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.

尽管未示出,双屏终端600还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,双屏终端600的显示单元160是触摸屏显示器,双屏终端600还包括有存储器120,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器120中,且经配置由一个或者一个以上处理器110执行上述一个或者一个以上程序,处理器110执行程序时实现:Although not shown, the dual screen terminal 600 may further include a camera, a Bluetooth module, and the like, and details are not described herein. Specifically, in the embodiment, the display unit 160 of the dual screen terminal 600 is a touch screen display, the dual screen terminal 600 further includes a memory 120, and one or more programs, wherein one or more programs are stored in the memory 120, and The one or more programs described above are configured to be executed by one or more processors 110, which are implemented when the processor 110 executes the program:

分别获取第一屏幕对应的待合成的多个图层和第二屏幕对应的待合成的多个图层;Obtaining, respectively, a plurality of layers to be synthesized corresponding to the first screen and a plurality of layers to be synthesized corresponding to the second screen;

对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像,对所述第二 屏幕对应的待合成的多个图层进行合成,形成第二图像;Combining a plurality of layers to be synthesized corresponding to the first screen to form a first image, for the second The plurality of layers to be synthesized corresponding to the screen are combined to form a second image;

通过双屏终端中的硬件合成器将所述第一图像传输至所述第一屏幕进行显示,将所述第二图像传输至所述第二屏幕进行显示。The first image is transmitted to the first screen for display by a hardware synthesizer in the dual screen terminal, and the second image is transmitted to the second screen for display.

在一些实现方式中,处理器110执行程序时实现对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像的步骤,该步骤包括:In some implementations, when the processor 110 executes the program, the step of synthesizing the plurality of layers to be synthesized corresponding to the first screen to form a first image is performed, and the step includes:

根据所述第一屏幕对应的待合成的多个图层中的每个图层在所述第一屏幕的显示位置,对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像;And forming, according to the display position of the first screen, each of the plurality of layers to be combined corresponding to the first screen, synthesizing a plurality of layers to be synthesized corresponding to the first screen to form The first image;

处理器110执行程序时还实现对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像的步骤,该步骤包括:When the processor 110 executes the program, the step of synthesizing the plurality of layers to be combined corresponding to the second screen to form a second image is further implemented, the step comprising:

根据所述第二屏幕对应的待合成的多个图层中的每个图层在所述第二屏幕的显示位置,对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。And synthesizing a plurality of layers to be synthesized corresponding to the second screen according to a display position of the second screen corresponding to each layer of the plurality of layers to be synthesized corresponding to the second screen The second image.

在一些实现方式中,第一屏幕为墨水屏,处理器110执行程序时实现获取所述第一屏幕对应的待合成的多个图层的步骤,该步骤包括:In some implementations, the first screen is an ink screen, and when the processor 110 executes the program, the step of acquiring multiple layers to be synthesized corresponding to the first screen is implemented, and the step includes:

通过所述双屏终端中的图形处理器GPU获取所述第一屏幕对应的待合成的多个图层;Acquiring, by the graphics processor GPU in the dual-screen terminal, a plurality of layers to be synthesized corresponding to the first screen;

处理器110执行程序时还实现对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像的步骤,该步骤包括:When the processor 110 executes the program, the step of synthesizing the plurality of layers to be combined corresponding to the first screen to form a first image is performed. The step includes:

通过所述GPU对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像,将所述第一图像存储在第一缓存区;And synthesizing, by the GPU, a plurality of layers to be synthesized corresponding to the first screen to form the first image, and storing the first image in a first buffer area;

处理器110执行程序时还实现通过所述双屏终端中的硬件合成器将所述第一图像传输至所述第一屏幕进行显示的步骤,该步骤包括:When the processor 110 executes the program, the step of transmitting the first image to the first screen for display by using a hardware synthesizer in the dual screen terminal is further implemented, the step comprising:

通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示。Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer, and transmitting the first image to the first screen for display.

在一些实现方式中,当所述第二屏幕对应的待合成的多个图层中的每个图层均不变化时,处理器110执行程序时实现获取所述第二屏幕对应的待合成的多个图层的步骤,该步骤包括:In some implementations, when each of the plurality of layers to be synthesized corresponding to the second screen does not change, the processor 110, when executing the program, obtains the to-be-synthesized corresponding to the second screen. The steps of multiple layers, this step includes:

通过所述GPU获取所述第二屏幕对应的待合成的多个图层;Acquiring, by the GPU, a plurality of layers to be synthesized corresponding to the second screen;

处理器110执行程序时还实现对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像的步骤,该步骤包括:When the processor 110 executes the program, the step of synthesizing the plurality of layers to be combined corresponding to the second screen to form a second image is further implemented, the step comprising:

通过所述GPU对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第 二图像,将所述第二图像存储在第二缓存区;Forming, by the GPU, a plurality of layers to be synthesized corresponding to the second screen to form the first a second image, storing the second image in a second buffer area;

处理器110执行程序时还实现通过所述硬件合成器将所述第二图像传输至所述第二屏幕进行显示的步骤,该步骤包括:When the processor 110 executes the program, the step of transmitting the second image to the second screen for display by the hardware synthesizer is further implemented, and the step includes:

通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。Acquiring the second image stored in the second buffer area through the second channel of the hardware synthesizer, and transmitting the second image to the second screen for display.

在一些实现方式中,当所述第二屏幕对应的待合成的多个图层中的每个图层均变化时,处理器110执行程序时实现获取所述第二屏幕对应的待合成的多个图层的步骤,该步骤包括:In some implementations, when each of the plurality of layers to be synthesized corresponding to the second screen changes, the processor 110, when executing the program, obtains the plurality of to-be-synthesized corresponding to the second screen. Steps of a layer, this step includes:

通过所述硬件合成器中除所述第一通道外的通道获取所述第二屏幕对应的待合成的多个图层,其中硬件合成器中的一个通道获取一个图层,所述第二屏幕对应的待合成的多个图层的数目小于或等于所述硬件合成器的通道数减1;Obtaining, by the channel other than the first channel, the plurality of layers to be synthesized corresponding to the second screen, where one channel in the hardware synthesizer acquires a layer, the second screen The number of corresponding multiple layers to be synthesized is less than or equal to the number of channels of the hardware synthesizer minus one;

处理器110执行程序时还实现对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像的步骤,该步骤包括:When the processor 110 executes the program, the step of synthesizing the plurality of layers to be combined corresponding to the second screen to form a second image is further implemented, the step comprising:

通过所述硬件合成器对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。Forming, by the hardware synthesizer, a plurality of layers to be synthesized corresponding to the second screen to form the second image.

在一些实现方式中,当所述第二屏幕对应的待合成的多个图层包括第一图层集合和第二图层集合时,处理器110执行程序时实现第一图层集合中图层均不变化,所述第二图层集合中的图层均变化,获取所述第二屏幕对应的待合成的多个图层的步骤,该步骤包括:In some implementations, when the plurality of layers to be synthesized corresponding to the second screen includes a first layer set and a second layer set, the processor 110 implements a layer in the first layer set when executing the program. The steps of the multiple layers in the second layer set are changed, and the multiple layers corresponding to the second screen are acquired. The steps include:

通过所述GPU获取所述第一图层集合中的各图层,通过所述硬件合成器中除第一通道和第二通道外的剩余通道获取所述第二图层集合中的各图层;其中硬件合成器中的一个通道获取一个图层,所述第二集合中的图层的数目小于或等于所述硬件合成器的通道数减2;Acquiring each layer in the first layer set by using the GPU, and acquiring each layer in the second layer set by using the remaining channels except the first channel and the second channel in the hardware synthesizer Wherein a channel in the hardware synthesizer acquires a layer, the number of layers in the second set is less than or equal to the number of channels of the hardware synthesizer minus 2;

处理器110执行程序时还实现对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像的步骤,该步骤包括:When the processor 110 executes the program, the step of synthesizing the plurality of layers to be combined corresponding to the second screen to form a second image is further implemented, the step comprising:

通过所述GPU对所述第一图层集合中的各图层进行合成,形成第三图像,并将所述第三图像存储在第二缓存区;And synthesizing each layer in the first layer set by the GPU to form a third image, and storing the third image in a second buffer area;

通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第三图像;Obtaining, by the second channel of the hardware synthesizer, the third image stored in the second buffer area;

通过所述硬件合成器对所述第二图层集合中的各图层和所述第三图像进行合成,形成所述第二图像。 And forming, by the hardware synthesizer, each layer in the second layer set and the third image to form the second image.

在一些实现方式中,处理器110执行程序时实现通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示的步骤,该步骤包括:In some implementations, when the processor 110 executes the program, the first channel stored in the first buffer area is acquired by the first channel of the hardware synthesizer, and the first image is transmitted to the first image. The screen displays the steps, which include:

当检测到所述GPU对所述第一图像的合成完成指令时,通过所述双屏终端中的硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示;Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer in the dual screen terminal when detecting the synthesis completion instruction of the first image by the GPU, and Transmitting the first image to the first screen for display;

处理器110执行程序时实现通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示的步骤,该步骤包括:When the processor 110 executes the program, the step of acquiring the second image stored in the second buffer area by using the second channel of the hardware synthesizer, and transmitting the second image to the second screen for display, is implemented. This step includes:

当检测到所述GPU对所述第二图像的合成完成指令时,通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。Acquiring the second image stored in the second buffer area through the second channel of the hardware synthesizer when the GPU completes the synthesis completion instruction of the second image, and transmitting the second image Display to the second screen.

在一些实现方式中,处理器110执行程序时还实现:In some implementations, processor 110 also implements when executing the program:

当检测到所述第一图像的显示完成指令时,将所述第一缓存区中的第一图像删除;Deleting the first image in the first buffer area when detecting the display completion instruction of the first image;

当检测到所述第二图像的显示完成指令时,将所述第二缓存区中的第二图像删除。When the display completion instruction of the second image is detected, the second image in the second buffer area is deleted.

在一些实现方式中,处理器110执行程序时还实现通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示的步骤,该步骤包括:In some implementations, when the processor 110 executes the program, the first image stored in the first buffer area is acquired by the first channel of the hardware synthesizer, and the first image is transmitted to the first A screen for displaying steps, the steps including:

通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像;Obtaining, by the first channel of the hardware synthesizer, the first image stored in the first buffer area;

对所述第一图像进行解码,获得所述第一图像对应的逻辑TCON数据,并根据所述TCON数据驱动所述第一屏幕进行显示。Decoding the first image, obtaining logical TCON data corresponding to the first image, and driving the first screen to display according to the TCON data.

本实施例的双屏终端,可以用于执行上述所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The dual-screen terminal of this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.

在本发明的一些实现方式中,本实施例提供一种计算机可读非易失性存储介质,该非易失性存储介质中存储程序,所述程序在执行时,上述显示图像的方法步骤被执行,其实现原理和技术效果类似,此处不再赘述。In some implementations of the present invention, the embodiment provides a computer readable non-volatile storage medium, where the program is stored in the non-volatile storage medium, and when the program is executed, the method step of displaying the image is Execution, its implementation principle and technical effect are similar, and will not be described here.

图9为本发明提供的显示图像的装置实施例一的流程示意图。本实施例的装置可 以通过软件、硬件或软硬结合的方式实现。如图9所示,本实施例的装置可以包括:FIG. 9 is a schematic flowchart diagram of Embodiment 1 of an apparatus for displaying an image provided by the present invention. The device of this embodiment can It is implemented by software, hardware or a combination of software and hardware. As shown in FIG. 9, the apparatus of this embodiment may include:

获取模块410,用于分别获取第一屏幕对应的待合成的多个图层和第二屏幕对应的待合成的多个图层。The obtaining module 410 is configured to respectively acquire a plurality of layers to be synthesized corresponding to the first screen and a plurality of layers to be combined corresponding to the second screen.

合成模块420,用于对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像,对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像。The compositing module 420 is configured to synthesize a plurality of layers to be synthesized corresponding to the first screen to form a first image, and synthesize the plurality of layers to be synthesized corresponding to the second screen to form a second image.

显示模块430,用于通过双屏终端中的硬件合成器将所述第一图像传输至所述第一屏幕进行显示,将所述第二图像传输至所述第二屏幕进行显示。The display module 430 is configured to transmit the first image to the first screen for display through a hardware synthesizer in the dual screen terminal, and transmit the second image to the second screen for display.

本实施例的装置,可以用于执行上述所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.

在本发明实施例的一种实现方式中,所述合成模块420,用于根据所述第一屏幕对应的待合成的多个图层中的每个图层在所述第一屏幕的显示位置,对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像;根据所述第二屏幕对应的待合成的多个图层中的每个图层在所述第二屏幕的显示位置,对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。In an implementation manner of the embodiment of the present invention, the synthesizing module 420 is configured to display, according to the first screen, a display position of each of the plurality of layers to be synthesized corresponding to the first screen. And synthesizing a plurality of layers to be synthesized corresponding to the first screen to form the first image; each of the plurality of layers to be synthesized corresponding to the second screen is in the a display position of the second screen, and synthesizing a plurality of layers to be synthesized corresponding to the second screen to form the second image.

在本发明实施例的另一种实现方式中,In another implementation manner of the embodiment of the present invention,

所述获取模块410,用于当所述第一屏幕为墨水屏时,通过所述双屏终端中的图形处理器GPU获取所述第一屏幕对应的待合成的多个图层。The obtaining module 410 is configured to acquire, by the graphics processor GPU in the dual-screen terminal, a plurality of layers to be synthesized corresponding to the first screen when the first screen is an ink screen.

所述合成模块420,用于通过所述GPU对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像,将所述第一图像存储在第一缓存区。The synthesizing module 420 is configured to synthesize a plurality of layers to be synthesized corresponding to the first screen by using the GPU to form the first image, and store the first image in a first buffer area.

所述显示模块430,用于通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示。The display module 430 is configured to acquire a first image stored in the first buffer area by using a first channel of the hardware synthesizer, and transmit the first image to the first screen for display.

在本发明实施例的另一种实现方式中,In another implementation manner of the embodiment of the present invention,

所述获取模块410,用于当所述第二屏幕对应的待合成的多个图层中的每个图层均不变化时,通过所述GPU获取所述第一屏幕对应的待合成的多个图层。The obtaining module 410 is configured to acquire, by the GPU, the to-be-synthesized corresponding to the first screen by using the GPU when each of the plurality of layers to be synthesized corresponding to the second screen does not change. Layers.

所述合成模块420,用于通过所述GPU对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像,将所述第二图像存储在第二缓存区。The synthesizing module 420 is configured to synthesize a plurality of layers to be synthesized corresponding to the second screen by using the GPU to form the second image, and store the second image in a second buffer area.

所述显示模块430,用于通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。The display module 430 is configured to acquire a second image stored in the second buffer area by using a second channel of the hardware synthesizer, and transmit the second image to the second screen for display.

在本发明实施例的另一种实现方式中, In another implementation manner of the embodiment of the present invention,

所述获取模块410,用于当所述第二屏幕对应的待合成的多个图层中的每个图层均变化时,通过所述硬件合成器中除所述第一通道外的通道获取所述第二屏幕对应的待合成的多个图层,其中硬件合成器中的一个通道获取一个图层,所述第二屏幕对应的待合成的多个图层的数目小于或等于所述硬件合成器的通道数减1。The obtaining module 410 is configured to obtain, by using, a channel other than the first channel in the hardware synthesizer when each of the plurality of layers to be synthesized corresponding to the second screen changes The plurality of layers to be synthesized corresponding to the second screen, wherein one channel in the hardware synthesizer acquires a layer, and the number of the plurality of layers to be synthesized corresponding to the second screen is less than or equal to the hardware The number of channels in the synthesizer is reduced by 1.

所述合成模块420,用于通过所述硬件合成器对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。The synthesizing module 420 is configured to synthesize a plurality of layers to be synthesized corresponding to the second screen by using the hardware synthesizer to form the second image.

在本发明实施例的另一种实现方式中,In another implementation manner of the embodiment of the present invention,

所述获取模块410,用于当所述第二屏幕对应的待合成的多个图层包括第一图层集合和第二图层集合时,通过所述GPU获取所述第一图层集合中的各图层,通过所述硬件合成器中除第一通道和第二通道外的剩余通道获取所述第二图层集合中的各图层;其中硬件合成器中的一个通道获取一个图层,所述第二集合中的图层的数目小于或等于所述硬件合成器的通道数减2。The obtaining module 410 is configured to: when the multiple layers to be synthesized corresponding to the second screen include the first layer set and the second layer set, obtain the first layer set by using the GPU Each layer of the second layer set is acquired by the remaining channels of the hardware synthesizer except the first channel and the second channel; wherein one channel in the hardware synthesizer acquires a layer The number of layers in the second set is less than or equal to the number of channels of the hardware synthesizer minus 2.

所述合成模块420,用于通过所述GPU对所述第一图层集合中的各图层进行合成,形成第三图像,并将所述第三图像存储在第二缓存区。The synthesizing module 420 is configured to synthesize each layer in the first layer set by the GPU to form a third image, and store the third image in a second buffer area.

所述获取模块410,还用于通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第三图像。The obtaining module 410 is further configured to acquire, by using the second channel of the hardware synthesizer, the third image stored in the second buffer area.

所述合成模块420,还用于通过所述硬件合成器对所述第二图层集合中的各图层和所述第三图像进行合成,形成所述第二图像。The synthesizing module 420 is further configured to synthesize each layer in the second layer set and the third image by using the hardware synthesizer to form the second image.

在本发明实施例的另一种实现方式中,In another implementation manner of the embodiment of the present invention,

所述显示模块430,具体用于当检测到所述GPU对所述第一图像的合成完成指令时,通过所述双屏终端中的硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示;当检测到所述GPU对所述第二图像的合成完成指令时,通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。The display module 430 is configured to acquire, by using the first channel of the hardware synthesizer in the dual-screen terminal, the first buffer area when detecting the synthesis completion instruction of the GPU by the GPU And storing the first image, and transmitting the first image to the first screen for display; when detecting the synthesis completion instruction of the second image by the GPU, passing the second of the hardware synthesizer The channel acquires the second image stored in the second buffer area, and transmits the second image to the second screen for display.

本实施例的装置,可以用于执行上述所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.

图10为本发明提供的显示图像的装置实施例二的流程示意图。在上述实施例的基础上,如图10所示,所述装置还包括删除模块440:FIG. 10 is a schematic flowchart diagram of Embodiment 2 of an apparatus for displaying an image provided by the present invention. Based on the above embodiment, as shown in FIG. 10, the apparatus further includes a deletion module 440:

所述删除模块440,用于当检测到所述第一图像的显示完成指令时,将所述第一 缓存区中的第一图像删除;当检测到所述第二图像的显示完成指令时,将所述第二缓存区中的第二图像删除。The deleting module 440 is configured to: when the display completion instruction of the first image is detected, the first The first image in the buffer area is deleted; when the display completion instruction of the second image is detected, the second image in the second buffer area is deleted.

本实施例的装置,可以用于执行上述所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.

图11为本发明提供的显示图像的装置实施例三的流程示意图。在上述实施例的基础上,如图11所示,所述装置还包括解码模块450:FIG. 11 is a schematic flowchart diagram of Embodiment 3 of an apparatus for displaying an image according to the present invention. Based on the above embodiment, as shown in FIG. 11, the apparatus further includes a decoding module 450:

所述获取模块410,还用于通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像。The obtaining module 410 is further configured to acquire, by using the first channel of the hardware synthesizer, the first image stored in the first buffer area.

所述解码模块450,用于对所述第一图像进行解码,获得所述第一图像对应的逻辑TCON数据,并根据所述TCON数据驱动所述第一屏幕进行显示。The decoding module 450 is configured to decode the first image, obtain logical TCON data corresponding to the first image, and drive the first screen to display according to the TCON data.

本实施例的装置,可以用于执行上述所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (19)

一种显示图像的方法,其特征在于,所述方法包括:A method of displaying an image, the method comprising: 分别获取第一屏幕对应的待合成的多个图层和第二屏幕对应的待合成的多个图层;Obtaining, respectively, a plurality of layers to be synthesized corresponding to the first screen and a plurality of layers to be synthesized corresponding to the second screen; 对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像,对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像;Synthesizing a plurality of layers to be synthesized corresponding to the first screen to form a first image, and synthesizing a plurality of layers to be synthesized corresponding to the second screen to form a second image; 通过双屏终端中的硬件合成器将所述第一图像传输至所述第一屏幕进行显示,将所述第二图像传输至所述第二屏幕进行显示。The first image is transmitted to the first screen for display by a hardware synthesizer in the dual screen terminal, and the second image is transmitted to the second screen for display. 根据权利要求1所述的方法,其特征在于,所述对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像,包括:The method according to claim 1, wherein the synthesizing the plurality of layers to be synthesized corresponding to the first screen to form a first image comprises: 根据所述第一屏幕对应的待合成的多个图层中的每个图层在所述第一屏幕的显示位置,对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像;And forming, according to the display position of the first screen, each of the plurality of layers to be combined corresponding to the first screen, synthesizing a plurality of layers to be synthesized corresponding to the first screen to form The first image; 所述对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像,包括:And synthesizing the plurality of layers to be synthesized corresponding to the second screen to form a second image, including: 根据所述第二屏幕对应的待合成的多个图层中的每个图层在所述第二屏幕的显示位置,对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。And synthesizing a plurality of layers to be synthesized corresponding to the second screen according to a display position of the second screen corresponding to each layer of the plurality of layers to be synthesized corresponding to the second screen The second image. 根据权利要求1所述的方法,其特征在于,所述第一屏幕为墨水屏,所述获取所述第一屏幕对应的待合成的多个图层,包括:The method according to claim 1, wherein the first screen is an ink screen, and the acquiring a plurality of layers to be synthesized corresponding to the first screen comprises: 通过所述双屏终端中的图形处理器GPU获取所述第一屏幕对应的待合成的多个图层;Acquiring, by the graphics processor GPU in the dual-screen terminal, a plurality of layers to be synthesized corresponding to the first screen; 所述对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像包括:And synthesizing the plurality of layers to be synthesized corresponding to the first screen, and forming the first image includes: 通过所述GPU对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像,将所述第一图像存储在第一缓存区;And synthesizing, by the GPU, a plurality of layers to be synthesized corresponding to the first screen to form the first image, and storing the first image in a first buffer area; 所述通过所述双屏终端中的硬件合成器将所述第一图像传输至所述第一屏幕进行显示,包括:Transmitting, by the hardware synthesizer in the dual screen terminal, the first image to the first screen for display, including: 通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示。Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer, and transmitting the first image to the first screen for display. 根据权利要求3所述的方法,其特征在于,当所述第二屏幕对应的待合成的多个图层中的每个图层均不变化时,获取所述第二屏幕对应的待合成的多个图层包括:The method according to claim 3, wherein when each of the plurality of layers to be synthesized corresponding to the second screen does not change, the corresponding corresponding to the second screen is acquired. Multiple layers include: 通过所述GPU获取所述第二屏幕对应的待合成的多个图层; Acquiring, by the GPU, a plurality of layers to be synthesized corresponding to the second screen; 所述对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像包括:And synthesizing the plurality of layers to be synthesized corresponding to the second screen, and forming the second image includes: 通过所述GPU对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像,将所述第二图像存储在第二缓存区;And synthesizing, by the GPU, a plurality of layers to be synthesized corresponding to the second screen to form the second image, and storing the second image in a second buffer area; 所述通过所述硬件合成器将所述第二图像传输至所述第二屏幕进行显示,包括:Transmitting, by the hardware synthesizer, the second image to the second screen for display, including: 通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。Acquiring the second image stored in the second buffer area through the second channel of the hardware synthesizer, and transmitting the second image to the second screen for display. 根据权利要求3所述的方法,其特征在于,当所述第二屏幕对应的待合成的多个图层中的每个图层均变化时,获取所述第二屏幕对应的待合成的多个图层包括:The method according to claim 3, wherein when each of the plurality of layers to be synthesized corresponding to the second screen changes, acquiring the plurality of to-be-synthesized corresponding to the second screen The layers include: 通过所述硬件合成器中除所述第一通道外的通道获取所述第二屏幕对应的待合成的多个图层,其中所述硬件合成器中的一个通道获取一个图层,所述第二屏幕对应的待合成的多个图层的图层数目小于或等于所述硬件合成器的通道数减1;Obtaining, by the channel other than the first channel, the plurality of layers to be synthesized corresponding to the second screen, wherein one channel of the hardware synthesizer acquires a layer, where the The number of layers of the plurality of layers to be synthesized corresponding to the two screens is less than or equal to the number of channels of the hardware synthesizer minus one; 所述对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像,包括:And synthesizing the plurality of layers to be synthesized corresponding to the second screen to form a second image, including: 通过所述硬件合成器对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。Forming, by the hardware synthesizer, a plurality of layers to be synthesized corresponding to the second screen to form the second image. 根据权利要求3所述的方法,其特征在于,当所述第二屏幕对应的待合成的多个图层包括第一图层集合和第二图层集合时,所述第一图层集合中图层均不变化,所述第二图层集合中的图层均变化,获取所述第二屏幕对应的待合成的多个图层,包括:The method according to claim 3, wherein when the plurality of layers to be synthesized corresponding to the second screen comprise a first layer set and a second layer set, the first layer set is The layers in the second layer set are all changed, and the plurality of layers to be synthesized corresponding to the second screen are obtained, including: 通过所述GPU获取所述第一图层集合中的各图层,通过所述硬件合成器中除第一通道和第二通道外的剩余通道获取所述第二图层集合中的各图层;其中硬件合成器中的一个通道获取一个图层,所述第二集合中的图层的数目小于或等于所述硬件合成器的通道数减2;Acquiring each layer in the first layer set by using the GPU, and acquiring each layer in the second layer set by using the remaining channels except the first channel and the second channel in the hardware synthesizer Wherein a channel in the hardware synthesizer acquires a layer, the number of layers in the second set is less than or equal to the number of channels of the hardware synthesizer minus 2; 所述对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像,包括:And synthesizing the plurality of layers to be synthesized corresponding to the second screen to form a second image, including: 通过所述GPU对所述第一图层集合中的各图层进行合成,形成第三图像,并将所述第三图像存储在第二缓存区;And synthesizing each layer in the first layer set by the GPU to form a third image, and storing the third image in a second buffer area; 通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第三图像;Obtaining, by the second channel of the hardware synthesizer, the third image stored in the second buffer area; 通过所述硬件合成器对所述第二图层集合中的各图层和所述第三图像进行合成,形成所述第二图像。And forming, by the hardware synthesizer, each layer in the second layer set and the third image to form the second image. 根据权利要求4所述的方法,其特征在于,所述通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕 进行显示,包括:The method according to claim 4, wherein the first image stored in the first buffer area is acquired by the first channel of the hardware synthesizer, and the first image is transmitted to the First screen Display, including: 当检测到所述GPU对所述第一图像的合成完成指令时,通过所述双屏终端中的硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示;Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer in the dual screen terminal when detecting the synthesis completion instruction of the first image by the GPU, and Transmitting the first image to the first screen for display; 所述通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示,包括:Obtaining, by the second channel of the hardware synthesizer, the second image stored in the second buffer area, and transmitting the second image to the second screen for display, including: 当检测到所述GPU对所述第二图像的合成完成指令时,通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。Acquiring the second image stored in the second buffer area through the second channel of the hardware synthesizer when the GPU completes the synthesis completion instruction of the second image, and transmitting the second image Display to the second screen. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises: 当检测到所述第一图像的显示完成指令时,将所述第一缓存区中的第一图像删除;Deleting the first image in the first buffer area when detecting the display completion instruction of the first image; 当检测到所述第二图像的显示完成指令时,将所述第二缓存区中的第二图像删除。When the display completion instruction of the second image is detected, the second image in the second buffer area is deleted. 根据权利要求3所述的方法,其特征在于,通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示,包括:The method according to claim 3, wherein the first image stored in the first buffer area is acquired by the first channel of the hardware synthesizer, and the first image is transmitted to the first The screen is displayed, including: 通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像;Obtaining, by the first channel of the hardware synthesizer, the first image stored in the first buffer area; 对所述第一图像进行解码,获得所述第一图像对应的逻辑TCON数据,并根据所述TCON数据驱动所述第一屏幕进行显示。Decoding the first image, obtaining logical TCON data corresponding to the first image, and driving the first screen to display according to the TCON data. 一种双屏终端,其特征在于,所述双屏终端包括:存储器、处理器、GPU、硬件合成器、第一屏幕、第二屏幕以及存储在所述存储器上并可以在所述处理器上运行的程序,所述处理器分别与所述存储器、所述硬件合成器和所述GPU连接,所述GPU与所述存储器连接,所述硬件合成器分别与所述存储器、所述第一屏幕和第二屏幕连接,所述处理器执行所述程序时实现:A dual screen terminal, comprising: a memory, a processor, a GPU, a hardware synthesizer, a first screen, a second screen, and stored on the memory and on the processor a running program, the processor is respectively connected to the memory, the hardware synthesizer and the GPU, the GPU is connected to the memory, and the hardware synthesizer is respectively connected to the memory and the first screen Connected to the second screen, when the processor executes the program: 分别获取第一屏幕对应的待合成的多个图层和第二屏幕对应的待合成的多个图层;Obtaining, respectively, a plurality of layers to be synthesized corresponding to the first screen and a plurality of layers to be synthesized corresponding to the second screen; 对所述第一屏幕对应的待合成的多个图层进行合成,形成第一图像,对所述第二屏幕对应的待合成的多个图层进行合成,形成第二图像;Synthesizing a plurality of layers to be synthesized corresponding to the first screen to form a first image, and synthesizing a plurality of layers to be synthesized corresponding to the second screen to form a second image; 通过双屏终端中的硬件合成器将所述第一图像传输至所述第一屏幕进行显示,将 所述第二图像传输至所述第二屏幕进行显示。Transmitting the first image to the first screen for display by a hardware synthesizer in a dual screen terminal The second image is transmitted to the second screen for display. 根据权利要求10所述的双屏终端,其特征在于,所述处理器执行所述程序时实现:The dual screen terminal according to claim 10, wherein said processor executes said program to: 根据所述第一屏幕对应的待合成的多个图层中的每个图层在所述第一屏幕的显示位置,对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像;And forming, according to the display position of the first screen, each of the plurality of layers to be combined corresponding to the first screen, synthesizing a plurality of layers to be synthesized corresponding to the first screen to form The first image; 根据所述第二屏幕对应的待合成的多个图层中的每个图层在所述第二屏幕的显示位置,对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。And synthesizing a plurality of layers to be synthesized corresponding to the second screen according to a display position of the second screen corresponding to each layer of the plurality of layers to be synthesized corresponding to the second screen The second image. 根据权利要求10所述的双屏终端,其特征在于,所述第一屏幕为墨水屏,所述处理器执行所述程序时实现:The dual screen terminal according to claim 10, wherein the first screen is an ink screen, and the processor executes the program to: 通过所述双屏终端中的图形处理器GPU获取所述第一屏幕对应的待合成的多个图层;Acquiring, by the graphics processor GPU in the dual-screen terminal, a plurality of layers to be synthesized corresponding to the first screen; 通过所述GPU对所述第一屏幕对应的待合成的多个图层进行合成,形成所述第一图像,将所述第一图像存储在第一缓存区;And synthesizing, by the GPU, a plurality of layers to be synthesized corresponding to the first screen to form the first image, and storing the first image in a first buffer area; 通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示。Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer, and transmitting the first image to the first screen for display. 根据权利要求12所述的双屏终端,其特征在于,当所述第二屏幕对应的待合成的多个图层中的每个图层均不变化时,所述处理器执行所述程序时实现:The dual-screen terminal according to claim 12, wherein when the processor performs the program when each of the plurality of layers to be synthesized corresponding to the second screen does not change achieve: 通过所述GPU获取所述第二屏幕对应的待合成的多个图层;Acquiring, by the GPU, a plurality of layers to be synthesized corresponding to the second screen; 通过所述GPU对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像,将所述第二图像存储在第二缓存区;And synthesizing, by the GPU, a plurality of layers to be synthesized corresponding to the second screen to form the second image, and storing the second image in a second buffer area; 通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。Acquiring the second image stored in the second buffer area through the second channel of the hardware synthesizer, and transmitting the second image to the second screen for display. 根据权利要求12所述的双屏终端,其特征在于,当所述第二屏幕对应的待合成的多个图层中的每个图层均变化时,所述处理器执行所述程序时实现:The dual-screen terminal according to claim 12, wherein when each of the plurality of layers to be synthesized corresponding to the second screen changes, the processor implements the program : 通过所述硬件合成器中除所述第一通道外的通道获取所述第二屏幕对应的待合成的多个图层,其中所述硬件合成器中的一个通道获取一个图层,所述第二屏幕对应的待合成的多个图层的图层数目小于或等于所述硬件合成器的通道数减1;Obtaining, by the channel other than the first channel, the plurality of layers to be synthesized corresponding to the second screen, wherein one channel of the hardware synthesizer acquires a layer, where the The number of layers of the plurality of layers to be synthesized corresponding to the two screens is less than or equal to the number of channels of the hardware synthesizer minus one; 通过所述硬件合成器对所述第二屏幕对应的待合成的多个图层进行合成,形成所述第二图像。Forming, by the hardware synthesizer, a plurality of layers to be synthesized corresponding to the second screen to form the second image. 根据权利要求12所述的双屏终端,其特征在于,当所述第二屏幕对应的待 合成的多个图层包括第一图层集合和第二图层集合时,所述处理器执行所述程序时实现:The dual screen terminal according to claim 12, wherein when said second screen corresponds to When the synthesized multiple layers include the first layer set and the second layer set, the processor implements the program when: 通过所述GPU获取所述第一图层集合中的各图层,通过所述硬件合成器中除第一通道和第二通道外的剩余通道获取所述第二图层集合中的各图层;其中硬件合成器中的一个通道获取一个图层,所述第二集合中的图层的数目小于或等于所述硬件合成器的通道数减2;Acquiring each layer in the first layer set by using the GPU, and acquiring each layer in the second layer set by using the remaining channels except the first channel and the second channel in the hardware synthesizer Wherein a channel in the hardware synthesizer acquires a layer, the number of layers in the second set is less than or equal to the number of channels of the hardware synthesizer minus 2; 通过所述GPU对所述第一图层集合中的各图层进行合成,形成第三图像,并将所述第三图像存储在第二缓存区;And synthesizing each layer in the first layer set by the GPU to form a third image, and storing the third image in a second buffer area; 通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第三图像;Obtaining, by the second channel of the hardware synthesizer, the third image stored in the second buffer area; 通过所述硬件合成器对所述第二图层集合中的各图层和所述第三图像进行合成,形成所述第二图像。And forming, by the hardware synthesizer, each layer in the second layer set and the third image to form the second image. 根据权利要求13所述的双屏终端,其特征在于,所述处理器执行所述程序时实现:The dual screen terminal according to claim 13, wherein said processor executes said program to: 当检测到所述GPU对所述第一图像的合成完成指令时,通过所述双屏终端中的硬件合成器的第一通道获取所述第一缓存区中存储的第一图像,并将所述第一图像传输至所述第一屏幕进行显示;Acquiring the first image stored in the first buffer area through the first channel of the hardware synthesizer in the dual screen terminal when detecting the synthesis completion instruction of the first image by the GPU, and Transmitting the first image to the first screen for display; 当检测到所述GPU对所述第二图像的合成完成指令时,通过所述硬件合成器的第二通道获取所述第二缓存区中存储的第二图像,并将所述第二图像传输至所述第二屏幕进行显示。Acquiring the second image stored in the second buffer area through the second channel of the hardware synthesizer when the GPU completes the synthesis completion instruction of the second image, and transmitting the second image Display to the second screen. 根据权利要求13所述的双屏终端,其特征在于,所述处理器执行所述程序时还实现:The dual screen terminal according to claim 13, wherein the processor further implements when the program is executed: 当检测到所述第一图像的显示完成指令时,将所述第一缓存区中的第一图像删除;Deleting the first image in the first buffer area when detecting the display completion instruction of the first image; 当检测到所述第二图像的显示完成指令时,将所述第二缓存区中的第二图像删除。When the display completion instruction of the second image is detected, the second image in the second buffer area is deleted. 根据权利要求12所述的双屏终端,其特征在于,所述处理器执行所述程序时实现:The dual screen terminal according to claim 12, wherein said processor executes said program to: 通过所述硬件合成器的第一通道获取所述第一缓存区中存储的第一图像;Obtaining, by the first channel of the hardware synthesizer, the first image stored in the first buffer area; 对所述第一图像进行解码,获得所述第一图像对应的逻辑TCON数据,并根据所述TCON数据驱动所述第一屏幕进行显示。 Decoding the first image, obtaining logical TCON data corresponding to the first image, and driving the first screen to display according to the TCON data. 一种计算机可读的非易失性存储介质,其特征在于,所述非易失性存储介质中存储程序,所述程序在执行时,上述权利要求1至权利要求9中任一项所述的方法步骤被执行。 A computer-readable non-volatile storage medium, wherein the non-volatile storage medium stores a program, when the program is executed, the method of any one of claims 1 to 9 The method steps are executed.
PCT/CN2017/102896 2017-03-09 2017-09-22 Image display method, dual screen terminal and computer readable non-volatile storage medium Ceased WO2018161534A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710138031.7 2017-03-09
CN201710138031.7A CN106933525B (en) 2017-03-09 2017-03-09 A kind of method and apparatus showing image

Publications (1)

Publication Number Publication Date
WO2018161534A1 true WO2018161534A1 (en) 2018-09-13

Family

ID=59433823

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/102896 Ceased WO2018161534A1 (en) 2017-03-09 2017-09-22 Image display method, dual screen terminal and computer readable non-volatile storage medium

Country Status (2)

Country Link
CN (1) CN106933525B (en)
WO (1) WO2018161534A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885271A (en) * 2019-03-18 2019-06-14 青岛海信电器股份有限公司 Data display and treating method, device and electronic equipment

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933525B (en) * 2017-03-09 2019-09-20 青岛海信移动通信技术股份有限公司 A kind of method and apparatus showing image
CN107728988B (en) * 2017-10-12 2020-11-06 青岛海信移动通信技术股份有限公司 Content display method and device for ink screen
CN107678825A (en) * 2017-10-16 2018-02-09 青岛海信电器股份有限公司 A kind of rendering intent and electronic whiteboard applied to electronic whiteboard
CN107783749A (en) * 2017-11-09 2018-03-09 青岛海信移动通信技术股份有限公司 A kind of display methods of view data, device and mobile terminal
CN108563413A (en) * 2018-03-13 2018-09-21 安徽思帕德信息技术有限公司 Computer realizes the system and method for Layering manifestation
CN109324915A (en) * 2018-09-26 2019-02-12 努比亚技术有限公司 A kind of information processing method, terminal and computer readable storage medium
CN110022445B (en) * 2019-02-26 2022-01-28 维沃软件技术有限公司 Content output method and terminal equipment
CN110641382B (en) * 2019-09-10 2023-06-16 沈阳中科创达软件有限公司 Vehicle-mounted interface display method and device, electronic equipment and storage medium
CN112083905A (en) * 2020-09-16 2020-12-15 青岛海信移动通信技术股份有限公司 Electronic equipment and layer drawing method thereof
CN113625983B (en) * 2021-08-10 2024-08-27 Oppo广东移动通信有限公司 Image display method, device, computer equipment and storage medium
CN113986162B (en) * 2021-09-22 2022-11-11 荣耀终端有限公司 Layer composition method, device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184720A (en) * 2010-06-22 2011-09-14 上海盈方微电子有限公司 A method and a device for image composition display of multi-layer and multi-format input
CN103294453A (en) * 2012-02-24 2013-09-11 华为技术有限公司 Image processing method and image processing device
CN104423946A (en) * 2013-08-30 2015-03-18 联想(北京)有限公司 Image processing method and electronic device
CN104994276A (en) * 2015-06-26 2015-10-21 三星电子(中国)研发中心 Photographing method and device
CN106933525A (en) * 2017-03-09 2017-07-07 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of display image

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4722784B2 (en) * 2006-07-05 2011-07-13 パイオニア株式会社 Electronic blackboard apparatus, image processing method in electronic blackboard apparatus, and program thereof
CN202217260U (en) * 2011-09-08 2012-05-09 福州瑞芯微电子有限公司 Multiple screen display controller
CN103686304B (en) * 2013-12-09 2017-02-01 华为技术有限公司 Method, device and terminal device for layer composition
CN104850327B (en) * 2015-05-27 2019-07-16 小米科技有限责任公司 The screenshot method and device of mobile terminal, electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184720A (en) * 2010-06-22 2011-09-14 上海盈方微电子有限公司 A method and a device for image composition display of multi-layer and multi-format input
CN103294453A (en) * 2012-02-24 2013-09-11 华为技术有限公司 Image processing method and image processing device
CN104423946A (en) * 2013-08-30 2015-03-18 联想(北京)有限公司 Image processing method and electronic device
CN104994276A (en) * 2015-06-26 2015-10-21 三星电子(中国)研发中心 Photographing method and device
CN106933525A (en) * 2017-03-09 2017-07-07 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of display image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885271A (en) * 2019-03-18 2019-06-14 青岛海信电器股份有限公司 Data display and treating method, device and electronic equipment

Also Published As

Publication number Publication date
CN106933525B (en) 2019-09-20
CN106933525A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
US11861161B2 (en) Display method and apparatus
WO2018161534A1 (en) Image display method, dual screen terminal and computer readable non-volatile storage medium
CN110602321B (en) Application switching method, device, electronic device and storage medium
KR102776206B1 (en) Method for sharing applications, first electronic device and computer-readable storage medium
CN114741012B (en) Manage multiple free windows in the notification bar drop-down menu
JP2021525430A (en) Display control method and terminal
CN108021321B (en) Application running state control method and mobile terminal
CN108762881B (en) Interface drawing method and device, terminal and storage medium
CN110989882B (en) Control method, electronic device and computer readable storage medium
JP6202345B2 (en) Display control apparatus, display control method, and program
CN106293375B (en) Scene switching method and device
KR102090745B1 (en) Method and apparatus for performing multi-tasking using external display device in electronic device
CN113129417B (en) Image rendering method in panoramic application and terminal equipment
WO2018006841A1 (en) Qr code information transmission method, device and apparatus
CN103488450A (en) Method, device and terminal equipment for projecting picture
CN109003194A (en) Comment on sharing method, terminal and storage medium
CN110460894A (en) A video image display method and terminal equipment
WO2018137304A1 (en) Method for displaying 2d application in vr device, and terminal
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
CN106502608A (en) Display methods, device and terminal device
CN110045890A (en) The display methods and terminal device of application identities
CN107479799B (en) Method and device for displaying window
CN111240551A (en) Application program control method and electronic equipment
WO2015014138A1 (en) Method, device, and equipment for displaying display frame
CN110493451B (en) Data transmission method, electronic equipment and terminal

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: 17899701

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/12/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17899701

Country of ref document: EP

Kind code of ref document: A1