CN117692693A - Multi-screen display method and related equipment - Google Patents

Multi-screen display method and related equipment Download PDF

Info

Publication number
CN117692693A
CN117692693A CN202310688557.8A CN202310688557A CN117692693A CN 117692693 A CN117692693 A CN 117692693A CN 202310688557 A CN202310688557 A CN 202310688557A CN 117692693 A CN117692693 A CN 117692693A
Authority
CN
China
Prior art keywords
screen
displayed
resolution
content
image
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.)
Pending
Application number
CN202310688557.8A
Other languages
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310688557.8A priority Critical patent/CN117692693A/en
Publication of CN117692693A publication Critical patent/CN117692693A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the application provides a multi-screen display method and related equipment, wherein in the method, electronic equipment can splice the contents to be displayed of a main screen and a secondary screen to obtain a first image, and after the first image is subjected to image processing by a set of configured image processing hardware to obtain a second image, the second image is subjected to splitting processing based on an MIPI protocol to obtain a first display image and a second display image; the first display image may be displayed on the primary screen and the second display image may be displayed on the secondary screen. It can be seen that the present application is capable of performing multi-screen display with an electronic device configured with a set of image processing hardware.

Description

Multi-screen display method and related equipment
Technical Field
The application relates to the technical field of terminals, in particular to a multi-screen display method and related equipment.
Background
With the rapid development of multi-screen technology and folding-screen technology, an electronic device may have a plurality of display screens, and may display contents through each display screen. For example, taking an example that the electronic device includes a main screen and a sub-screen, the electronic device may use the main screen alone to display content, and may use the sub-screen alone to display content; the main screen and the auxiliary screen can be used for content display at the same time.
However, to save costs, the electronic device may be configured with only one set of image processing hardware. In this case, how to complete the multi-screen display is a problem to be solved.
Disclosure of Invention
The embodiment of the application provides a multi-screen display method and related equipment, which can complete multi-screen display under the condition that electronic equipment is configured with one set of image processing hardware.
In a first aspect, an embodiment of the present application provides a multi-screen display method, where the method is applied to an electronic device, and the electronic device includes a main screen and a secondary screen, and the method includes: the method comprises the steps that splicing processing is carried out on the content to be displayed of a main screen and the content to be displayed of a secondary screen to obtain a first image, and image processing is carried out on the first image through a set of configured image processing hardware to obtain a second image; splitting the second image based on a mobile industry processor interface (Mobile Industry Processor Interface, MIPI) protocol to obtain a first display image and a second display image; the first display image is displayed on the primary screen and the second display image is displayed on the secondary screen.
Optionally, the primary screen and the secondary screen are respectively located on two sides of the electronic device. For example, the primary screen is a display screen facing the user, and the secondary screen is a display screen facing away from the user. Alternatively, the primary screen may be a folding screen. Alternatively, the secondary screen may be a folding screen.
In the embodiment of the application, the to-be-displayed contents of the main screen and the auxiliary screen can be spliced to obtain a first image, the first image is subjected to image processing by a set of configured image processing hardware to obtain a second image, and then the second image is subjected to splitting processing based on the MIPI protocol to obtain a first display image and a second display image; the first display image is displayed on the primary screen and the second display image is displayed on the secondary screen. Because the electronic equipment performs image processing on the first image obtained by the splicing processing, the image processing can be performed on the contents to be displayed of the main screen and the auxiliary screen simultaneously by only one set of image processing hardware. Meanwhile, the first display image and the second display image which are obtained based on MIPI protocol splitting can be respectively transmitted to the main screen and the auxiliary screen through a plurality of Lanes corresponding to the DSI interface, and the main screen and the auxiliary screen can be supported to be displayed simultaneously. Therefore, the method can complete multi-screen display under the condition that the electronic equipment is provided with one set of image processing hardware. The cost of a set of image processing hardware is lower, and the electronic equipment can complete multi-screen display while saving cost.
In an alternative embodiment, the image processing of the first image by a set of image processing hardware configured to obtain the second image includes: and performing one or more of white balance processing, noise removal processing, color restoration processing, image brightness processing, image rendering processing, image contrast processing or image compression processing on the first image to obtain a second image. Among other things, image processing hardware includes, but is not limited to, one or more of an image stitching unit (laysixer), a digital signal processing platform (Digital Signal Processor Platform, DSPP), a graphics processor (Graphics Processing Unit, GPU), an image processing unit (Image Signal Processing, ISP), a local tone map (Local Tone Mapping, LTM) processing unit, an image compression transmission (Display Stream Compression, DSC) unit, or a display serial (Display Serial Interface, DSI) interface.
With reference to the first aspect, in an optional implementation manner, the method further includes: judging whether the first resolution is equal to the second resolution; if yes, performing splicing processing on the content to be displayed of the main screen and the auxiliary screen to obtain a first image; if not, adjusting the resolution of the content to be displayed of the main screen and/or the auxiliary screen until the resolution of the content to be displayed of the main screen is equal to that of the auxiliary screen, and executing splicing processing on the content to be displayed of the main screen and the auxiliary screen to obtain a first image; the first resolution refers to the initial resolution of the content to be displayed of the main screen; the second resolution refers to an initial resolution of the content to be displayed of the sub-screen. Therefore, the step of splicing the to-be-displayed contents of the main screen and the auxiliary screen to obtain the first image is executed under the condition that the resolutions of the to-be-displayed contents of the main screen and the auxiliary screen are equal, so that the data size of the first display image and the second display image obtained based on MIPI splitting can be effectively ensured to be equal, and synchronous display of the first display image of the main screen and the second display image of the auxiliary screen can be ensured.
With reference to the first aspect, in an optional implementation manner, adjusting the resolution of the content to be displayed of the primary screen and/or adjusting the resolution of the content to be displayed of the secondary screen until the resolution of the content to be displayed of the primary screen and the resolution of the content to be displayed of the secondary screen are equal, includes:
If the first resolution is larger than the second resolution, reducing the resolution of the content to be displayed of the main screen and/or increasing the resolution of the content to be displayed of the auxiliary screen until the resolutions of the content to be displayed of the main screen and the auxiliary screen are equal;
if the first resolution is smaller than the second resolution, the resolution of the content to be displayed of the main screen is increased, and/or the resolution of the content to be displayed of the auxiliary screen is reduced until the resolutions of the content to be displayed of the main screen and the auxiliary screen are equal.
With reference to the first aspect, in an optional implementation manner, reducing the resolution of the content to be displayed on the primary screen until the resolution of the content to be displayed on the primary screen is equal to the resolution of the content to be displayed on the secondary screen includes:
invoking a resolution compression algorithm to reduce the resolution of the content to be displayed of the main screen until the resolution of the content to be displayed of the main screen is equal to that of the secondary screen; the resolution compression algorithm includes a sub-sampling compression algorithm and/or an interpolation compression algorithm.
With reference to the first aspect, in an optional implementation manner, increasing the resolution of the content to be displayed of the secondary screen until the resolutions of the content to be displayed of the primary screen and the secondary screen are equal includes:
determining an extension region based on the first resolution and the second resolution; the expansion area refers to an area where the content to be displayed with the second resolution is uncovered when the content to be displayed with the first resolution is overlapped with the content to be displayed with the second resolution;
And carrying out image expansion on the content to be displayed of the auxiliary screen based on the expansion area until the resolution of the main screen is equal to that of the content to be displayed of the auxiliary screen.
With reference to the first aspect, in an optional implementation manner, displaying the second display image on the secondary screen includes:
based on the expansion area, performing image clipping on the second display image to obtain a clipped display image;
and displaying the cut display image on the secondary screen.
With reference to the first aspect, in an optional implementation manner, the method further includes:
judging whether the electronic equipment starts a simultaneous display mode of the main screen and the auxiliary screen;
if yes, executing the step of splicing the contents to be displayed of the main screen and the auxiliary screen according to the resolutions of the contents to be displayed of the main screen and the auxiliary screen to obtain a first image.
In a second aspect, embodiments of the present application provide an electronic device including a touch screen, a memory, one or more processors, and one or more programs; wherein the one or more programs are stored in the memory, the touch screen comprising a primary screen and a secondary screen, the one or more processors, when executing the one or more programs, cause the electronic device to implement: the method comprises the steps that splicing processing is carried out on the content to be displayed of a main screen and the content to be displayed of a secondary screen to obtain a first image, and image processing is carried out on the first image through a set of configured image processing hardware to obtain a second image; splitting the second image based on the MIPI protocol to obtain a first display image and a second display image; the first display image is displayed on the primary screen and the second display image is displayed on the secondary screen.
With reference to the second aspect, in an optional implementation manner, the electronic device is further configured to implement:
judging whether the first resolution is equal to the second resolution; the first resolution refers to the initial resolution of the content to be displayed of the main screen; the second resolution refers to the initial resolution of the content to be displayed of the secondary screen;
if yes, performing splicing processing on the content to be displayed of the main screen and the auxiliary screen to obtain a first image;
if not, adjusting the resolution of the content to be displayed of the main screen and/or the auxiliary screen until the resolution of the content to be displayed of the main screen is equal to that of the auxiliary screen, and executing splicing processing on the content to be displayed of the main screen and the auxiliary screen to obtain a first image.
With reference to the second aspect, in an optional implementation manner, the electronic device is configured to implement: adjusting the resolution of the content to be displayed of the main screen and/or the auxiliary screen until the resolution of the content to be displayed of the main screen is equal to that of the auxiliary screen, comprising:
if the first resolution is larger than the second resolution, reducing the resolution of the content to be displayed of the main screen and/or increasing the resolution of the content to be displayed of the auxiliary screen until the resolutions of the content to be displayed of the main screen and the auxiliary screen are equal;
If the first resolution is smaller than the second resolution, the resolution of the content to be displayed of the main screen is increased, and/or the resolution of the content to be displayed of the auxiliary screen is reduced until the resolutions of the content to be displayed of the main screen and the auxiliary screen are equal.
With reference to the second aspect, in an optional implementation manner, the electronic device is configured to implement: the method for reducing the resolution of the content to be displayed of the main screen until the resolution of the content to be displayed of the main screen is equal to that of the secondary screen comprises the following steps:
invoking a resolution compression algorithm to reduce the resolution of the content to be displayed of the main screen until the resolution of the content to be displayed of the main screen is equal to that of the secondary screen; the resolution compression algorithm includes a sub-sampling compression algorithm and/or an interpolation compression algorithm.
With reference to the second aspect, in an optional implementation manner, the electronic device is configured to implement: increasing the resolution of the content to be displayed of the secondary screen until the resolution of the content to be displayed of the primary screen is equal to that of the secondary screen, comprising:
determining an extension region based on the first resolution and the second resolution; the expansion area refers to an area where the content to be displayed with the second resolution is uncovered when the content to be displayed with the first resolution is overlapped with the content to be displayed with the second resolution;
And carrying out image expansion on the content to be displayed of the auxiliary screen based on the expansion area until the resolution of the content to be displayed of the main screen is equal to that of the auxiliary screen.
With reference to the second aspect, in an optional implementation manner, the electronic device is configured to display a second display image on the secondary screen, and specifically includes:
based on the expansion area, performing image clipping on the second display image to obtain a clipped display image;
and displaying the cut display image on the secondary screen.
With reference to the second aspect, in an optional implementation manner, the electronic device is further configured to implement:
judging whether the electronic equipment starts a simultaneous display mode of the main screen and the auxiliary screen;
if yes, executing the step of splicing the contents to be displayed of the main screen and the auxiliary screen according to the resolutions of the contents to be displayed of the main screen and the auxiliary screen to obtain a first image.
It should be noted that, the related beneficial effects may refer to the beneficial effects of the first aspect or any implementation manners of the first aspect, and will not be described again.
In a third aspect, the present embodiments provide a computer program product for, when run on an electronic device, causing the electronic device to perform the method of the first aspect or any implementation of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program, which when executed by a processor, implements the method of the first aspect or any implementation manner of the first aspect.
Drawings
In order to more clearly describe the technical solutions in the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be described below.
FIG. 1a is a schematic diagram of an electronic device provided in accordance with an embodiment of the present application;
FIG. 1b is a schematic diagram of another electronic device provided by an implementation of the present application;
FIG. 2 is a schematic flow chart of a multi-screen display method according to the embodiment of the present application;
FIG. 3 is a flow chart of another multi-screen display method according to the embodiment of the present application;
FIG. 4 is a flow chart of another multi-screen display method according to the embodiment of the present application;
FIGS. 5 a-5 b are schematic illustrations of an extended area provided by an implementation of the present application;
FIG. 6 is a flow chart of another multi-screen display method according to the embodiment of the present application;
fig. 7a to fig. 7c are schematic diagrams of an application scenario provided in the implementation of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of another electronic device according to an embodiment of the present application;
fig. 10 is a schematic diagram of a software architecture according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Wherein, in the description of the embodiments of the present application, "/" means or is meant unless otherwise indicated, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
The multi-screen display method can be applied to electronic equipment. The type of electronic device mentioned in the present application is not particularly limited, and the electronic device may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (personal digitalassistant, PDA), a wearable device, a laptop computer (laptop), and the like. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices that carry iOS, android, microsoft or other operating systems. The portable electronic device described above may also be other portable electronic devices, such as a laptop computer (laptop) or the like having a touch-sensitive surface, e.g. a touch panel. It should also be appreciated that in other embodiments of the present application, the electronic device may not be a portable electronic device, but rather a desktop computer having a touch-sensitive surface (e.g., a touch panel).
In some embodiments of the present application, an electronic device may be configured with two separate display screens, one on each side of the electronic device. One of the two display screens facing the user is a main screen, and the other display screen is a secondary screen. Referring to fig. 1a, fig. 1a is a schematic diagram of an electronic device provided in the implementation of the present application, which shows an electronic device configured with two display screens. When the electronic device is configured with two display screens, the two display screens may have the same configuration or may have different configurations. For example, the two display screens may be made of the same or different materials and may have the same or different screen sizes, e.g., one display screen is a 6 inch OLED screen and one display screen is a 5 inch LCD screen, which is not limited in the embodiments herein. In this embodiment of the present application, when two display screens are provided by the electronic device, one of the display screens may be referred to as a first screen, and the other display screen may be referred to as a second screen. For example, the primary screen may be considered a first screen and the secondary screen may be considered a second screen. It should be noted that, the number of display screens of the electronic device is not limited in the embodiments of the present application, and when the electronic device has more than two display screens, the specific implementation manner is similar to the embodiments of the present application, and will not be described in detail.
Alternatively, the primary screen of the electronic device may include at least one sub-screen, and the secondary screen may include at least one sub-screen. For example, taking an electronic device as a folding screen terminal as an example, a main screen may include two sub-screens, a sub-screen may include one sub-screen, referring to fig. 1b, fig. 1b is a schematic diagram of another electronic device provided by the implementation of the present application, and the main screen may include a sub-screen a and a sub-screen b, and the sub-screen may include a sub-screen c. Wherein. A folding screen terminal refers to a terminal provided with a folding screen. When the display screen of the terminal is made of OLED, AMOLED, FLED or the like, the display screen of the terminal can be bent, i.e. the terminal is provided with a folding screen. Here, the display screen may be bent means that the display screen may be bent at a fixed portion or any portion to any angle and may be held at the angle. Folding screens have two modes: an unfolded state and a folded state. The folding screen can be regarded as being in an unfolding state when the folding angle formed when the folding screen is folded is larger than a preset value, and can be regarded as being in a folding state when the folding angle formed when the folding screen is folded is smaller than the preset value.
However, to save costs, an electronic device having multiple display screens may be configured with only one set of image processing hardware. In this case, how to display is a problem to be solved.
Based on the above, the embodiment of the application provides a multi-screen display method, in which an electronic device may perform a stitching process on contents to be displayed of a main screen and a sub-screen to obtain a first image, perform an image processing on the first image through a set of configured image processing hardware to obtain a second image, and then perform a splitting process on the second image based on an MIPI protocol to obtain a first display image and a second display image; the first display image may be displayed on the primary screen and the second display image may be displayed on the secondary screen. Therefore, the multi-screen display can be completed under the condition that the electronic equipment is provided with one set of image processing hardware.
The following describes a multi-screen display method provided in an embodiment of the present application with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a flow chart of a multi-screen display method according to an embodiment of the present application. As shown in fig. 2, the multi-screen display method includes, but is not limited to, S201-S203:
s201: and performing splicing processing on the content to be displayed of the main screen and the auxiliary screen to obtain a first image, and performing image processing on the first image through a set of configured image processing hardware to obtain a second image.
In an optional implementation manner, the splicing processing is performed on the content to be displayed of the primary screen and the secondary screen to obtain a first image, which includes: and splicing the content to be displayed of the main screen and the auxiliary screen based on the splicing rule to obtain a first image. Among them, the splicing rules include, but are not limited to: 1*2 or 2*1. For example, taking the splicing rule 1*2 as an example, after the splicing processing, the content to be displayed of the main screen is located at the left side of the first image, the content to be displayed of the auxiliary screen is located at the right side of the first image (or the content to be displayed of the auxiliary screen is located at the left side of the first image), and the content to be displayed of the main screen is located at the right side of the first image); for another example, taking the splicing rule 2*1 as an example, after the splicing process, the content to be displayed of the main screen is located on the upper side of the first image, the content to be displayed of the sub-screen is located on the lower side of the first image (or the content to be displayed of the sub-screen is located on the upper side of the first image, the content to be displayed of the main screen is located on the lower side of the first image), and so on.
Alternatively, the content to be displayed mentioned in the present application may be a frame of image. The one-frame image may be an independent image or any one of the images in the image sequence. The image sequence is an image set formed by arranging multiple frames of images according to a sequence; for example, the image sequence may be an animated image, a video image, or the like. In other embodiments, the content to be displayed may be an image sequence, which is not limited. The embodiment of the application takes the content to be displayed as a frame of image as an example for illustration. Alternatively, the content to be displayed may be an image acquired by an image acquisition device, such as an image acquired by a camera in a photographing scene. Alternatively, the resolution of the content to be displayed mentioned in the present application may be any value; for example, the resolution of the content to be displayed may be 720×1280, or 1200×2800, etc. Alternatively, the content to be displayed may be in any format, for example, may be in one or more of Bitmap (BMP) format, (Joint Photographic Experts Group, JPEG) format, portable network graphics (Portable Network Graphics, PNG) format.
The content to be displayed in the embodiment of the application includes content to be displayed in the main screen and/or content to be displayed in the auxiliary screen. In an alternative embodiment, the content to be displayed of the primary screen may be different from the content to be displayed of the secondary screen. For example, the resolution of the content to be displayed of the main screen is different from the resolution of the content to be displayed of the auxiliary screen, for example, the resolution of the content to be displayed of the main screen is 1200×2800, and the resolution of the content to be displayed of the auxiliary screen is 720×1280; for another example, the format of the content to be displayed of the main screen is different from the format of the content to be displayed of the sub-screen, for example, the format of the content to be displayed of the main screen is JPEG format, and the format of the content to be displayed of the sub-screen is PNG format. In another optional implementation manner, the content to be displayed of the primary screen and the content to be displayed of the secondary screen may be the same, which is not described again.
In an alternative embodiment, the image processing of the first image by a set of image processing hardware configured to obtain the second image includes: the second image is obtained by performing one or more of white balance processing, noise removal processing, color reduction processing, image brightness processing, image rendering processing, image contrast processing, or image compression processing on the first image by a set of image processing hardware configured. The first image may refer to original image data, and the second image may refer to image data obtained after image processing.
Optionally, the image processing hardware includes, but is not limited to, one or more of an image stitching unit (laysixer), a Digital Signal processing platform (Digital Signal ProcessorPlatform, DSPP), a graphics processor (Graphics Processing Unit, GPU), an image processing unit (Image Signal Processing, ISP), a local tone map (Local Tone Mapping, LTM) processing unit, an image compression transmission (Display Stream Compression, DSC) unit, or a display serial (DisplaySerial Interface, DSI) interface. The image stitching unit (layixer) can be used for stitching the content to be displayed of the main screen and the content to be displayed of the auxiliary screen to obtain a first image; the LTM processing unit is a processing unit that implements dynamic contrast adjustment at a pixel level by using a local tone mapping algorithm and a pixel level dynamic contrast adjustment technique.
Alternatively, the DSI interface supports extension to multiple MIPI interfaces, e.g., 1 DSI interface may be extended to 2 MIPI interfaces. Alternatively, when the DSI interface is extended to a plurality of MIPI interfaces, a plurality of lanes of the DSI interface may correspond to different MIPI interfaces, respectively. For example, when the DSI interface is extended to 2 MIPI interfaces and the DSI interface includes 4 lanes, each MIPI interface may correspond to 2 lanes, respectively.
S202: and splitting the second image based on the MIPI protocol to obtain a first display image and a second display image.
Wherein the MIPI protocol is an open standard established by MIPI alliance for mobile application processors. Optionally, the split step based on the MIPI protocol is related to the number of MIPI interfaces extended by the DSI interface. For example, when the DSI interface is extended to 2 MIPI interfaces, 2 display images may be split based on MIPI protocols.
Alternatively, the electronic device may specifically include an application layer, a group coating layer, a protocol layer, or a physical layer. The multi-screen display method described in fig. 2 is described in detail below in connection with an application layer, group clad layer, protocol layer, or physical layer. The application layer is used for performing splicing processing on the content to be displayed of the main screen and the auxiliary screen to obtain a first image, and performing image processing on the first image to obtain a second image. The group coating is used for data segmentation and/or recombination of the images, for example, the group coating can be used for splitting the second image to obtain a first display image and a second display image. The protocol layer is configured to generate a packet header according to a data type and generate a check sequence forming a packet tail according to data content, combine the packet header, the data itself, and the packet tail to obtain a data packet, and send the data packet to the DSI interface, for example, the protocol layer may process the first display image and the second display image respectively to obtain a data packet corresponding to the first display image and a data packet corresponding to the second display image, and send the data packet corresponding to the first display image and the data packet corresponding to the second display image to the DSI interface. The physical layer is used for transmitting the data packet to the display screen through Lane corresponding to the DSI interface. For example, the DSI interface corresponds to 2 lanes (which may be named as a first Lane and a second Lane), and the physical layer is configured to transmit a data packet corresponding to the first display image to the primary screen through the first Lane, and transmit a data packet corresponding to the second display image to the secondary screen through the second Lane. Alternatively, the data packets transmitted by the physical layer may be compressed packets.
S203: the first display image is displayed on the primary screen and the second display image is displayed on the secondary screen.
In an alternative embodiment, step S203 specifically includes: the first display image is displayed on the main screen when the first display image is transmitted to the main screen, and the second display image is displayed on the sub-screen when the second display image is transmitted to the sub-screen. Optionally, if the display screen receives the compressed packet, when the display screen receives the compressed packet, the compressed packet may be decompressed to obtain the first display image, where the display screen includes a main screen and/or a sub-screen.
Referring to fig. 3, fig. 3 is a flow chart of another multi-screen display method according to an embodiment of the present application. As shown in fig. 3, the method specifically may include: s301, performing stitching processing on the content to be displayed of the main screen (namely an image A) and the content to be displayed of the auxiliary screen (namely an image B) to obtain a first image 31, and performing image processing on the first image 31 to obtain a second image 32; s302, splitting the second image 32 based on MIPI protocol to obtain a first display image 32-1 and a second display image 32-2; s303, displaying a first display image 32-1 on the main screen and displaying a second display image 32-2 on the auxiliary screen.
In the embodiment of the application, the to-be-displayed contents of the main screen and the auxiliary screen can be spliced to obtain a first image, the first image is subjected to image processing by a set of configured image processing hardware to obtain a second image, and then the second image is subjected to splitting processing based on the MIPI protocol to obtain a first display image and a second display image; the first display image is displayed on the primary screen and the second display image is displayed on the secondary screen. Because the electronic equipment performs image processing on the first image obtained by the splicing processing, the image processing can be performed on the contents to be displayed of the main screen and the auxiliary screen simultaneously by only one set of image processing hardware. Meanwhile, the first display image and the second display image which are obtained based on MIPI protocol splitting can be respectively transmitted to the main screen and the auxiliary screen through a plurality of Lanes corresponding to the DSI interface, and the main screen and the auxiliary screen can be supported to be displayed simultaneously. Therefore, the method can complete multi-screen display under the condition that the electronic equipment is provided with one set of image processing hardware. The cost of a set of image processing hardware is lower, and the electronic equipment can complete multi-screen display while saving cost.
Referring to fig. 4, fig. 4 is a flow chart illustrating another multi-screen display method. Compared with the multi-screen display method shown in fig. 2, the multi-screen display method shown in fig. 4 further needs to determine whether the resolutions of the contents to be displayed on the main screen and the sub-screen are equal. As shown in fig. 4, the method includes, but is not limited to, S401-S404:
S401: and judging whether the first resolution is equal to the second resolution, wherein the first resolution refers to the initial resolution of the content to be displayed of the main screen, and the second resolution refers to the initial resolution of the content to be displayed of the main screen.
In an alternative embodiment, if the first resolution is equal to the second resolution, step S402 is directly performed; if the first resolution is not equal to the second resolution, the resolution of the content to be displayed on the main screen is adjusted, and/or the resolution of the content to be displayed on the sub-screen is adjusted until the resolutions of the content to be displayed on the main screen and the sub-screen are equal, and then step S402 is executed. In this embodiment, the step of performing the stitching processing on the content to be displayed of the main screen and the sub-screen to obtain the first image may be performed under the condition that the resolutions of the content to be displayed of the main screen and the sub-screen are equal, which is beneficial to ensuring synchronous display of the first display image of the main screen and the second display image of the sub-screen.
It should be noted that, for the case where the first resolution is not equal to the second resolution, the first resolution may be greater than the second resolution or may be less than the second resolution. In an alternative implementation manner, if the first resolution is greater than the second resolution, the resolution of the content to be displayed on the main screen is reduced, and/or the resolution of the content to be displayed on the auxiliary screen is increased until the resolutions of the content to be displayed on the main screen and the auxiliary screen are equal. In another alternative implementation manner, if the first resolution is smaller than the second resolution, the resolution of the content to be displayed on the main screen is increased, and/or the resolution of the content to be displayed on the auxiliary screen is reduced until the resolutions of the content to be displayed on the main screen and the auxiliary screen are equal. For convenience of description, the following embodiments will be exemplarily described by taking an example in which the first resolution is greater than the second resolution.
Optionally, reducing the resolution of the content to be displayed of the primary screen until the resolution of the content to be displayed of the primary screen is equal to the resolution of the content to be displayed of the secondary screen, including: and calling a resolution compression algorithm to reduce the resolution of the content to be displayed of the main screen until the resolution of the content to be displayed of the main screen is equal to that of the secondary screen. The resolution compression algorithm includes, but is not limited to, a sub-sampling compression algorithm and/or an interpolation compression algorithm. The sub-sampling compression algorithm is to reduce the original image in equal proportion on the premise of keeping the aspect ratio of the image unchanged. The interpolation compression algorithm refers to that new pixels are inserted between image pixels by using interpolation technology, so that more pixels are arranged around each original pixel to describe more balanced transition.
Optionally, increasing the resolution of the content to be displayed of the secondary screen until the resolution of the content to be displayed of the primary screen is equal to the resolution of the content to be displayed of the secondary screen, including: determining an extension region based on the first resolution and the second resolution; and carrying out image expansion on the content to be displayed of the auxiliary screen based on the expansion area until the resolution of the content to be displayed of the main screen is equal to that of the auxiliary screen. The extended area refers to an area where the content to be displayed with the second resolution is uncovered when the content to be displayed with the first resolution overlaps the content to be displayed with the second resolution. Referring to fig. 5a and 5b, fig. 5a and 5b are schematic diagrams illustrating an extended area provided by the implementation of the present application. Fig. 5a and 5b illustrate exemplary extended regions with a first resolution of 720 x 1280 and a second resolution of 1200 x 2800. Fig. 5a and 5b show, in gray areas, areas where the content to be displayed of the first resolution and the content to be displayed of the second resolution are simultaneously covered (i.e., areas where the content to be displayed of the main screen and the content to be displayed of the sub-screen are simultaneously covered), white areas show areas where the content to be displayed of the first resolution is covered, and the content to be displayed of the second resolution is not covered (i.e., extended areas). As shown in fig. 5a, a schematic diagram is shown in which the content to be displayed of the second resolution is overlapped with the content to be displayed of the first resolution at the upper left side. As shown in fig. 5b, a schematic diagram is shown in which the content to be displayed of the second resolution is overlapped with the content to be displayed of the first resolution at the upper right side. In other embodiments, the two may overlap in other manners, which is not limited by the embodiment of the present application. When the image expansion is performed on the content to be displayed of the secondary screen based on the expansion area, the values of the pixel points in the expansion area can be the same (for example, the values of the pixel points are all 0,0 and 0; namely, black images are added in the expansion area); the values of the pixel points in the extension area can also be different, and the extension area is not limited.
It should be noted that, correspondingly, the related embodiments in which the first resolution is smaller than the second resolution may refer to the foregoing embodiments, and will not be described again.
In other embodiments, before step S402, the method further includes: judging whether the first refresh rate is equal to the second refresh rate, if so, executing step S402; if the first refresh rate is not equal to the second refresh rate, the refresh rate of the content to be displayed of the main screen is adjusted, and/or the refresh rate of the content to be displayed of the auxiliary screen is adjusted until the refresh rates of the content to be displayed of the main screen and the auxiliary screen are equal, and then step S402 is executed. The first refresh rate is the initial refresh rate of the content to be displayed of the main screen, and the second refresh rate is the initial refresh rate of the content to be displayed of the auxiliary screen. In this embodiment, the step of performing the stitching processing on the content to be displayed of the main screen and the sub-screen to obtain the first image may be performed under the condition that the refresh rates of the content to be displayed of the main screen and the sub-screen are equal, which is beneficial to ensuring synchronous display of the first display image of the main screen and the second display image of the sub-screen.
In other embodiments, before step S402, the method further includes: if the first resolution is equal to the second resolution and the first refresh rate is equal to the second refresh rate, step S402 is performed. It is understood that if the first resolution is not equal to the second resolution, and/or the first refresh rate is not equal to the second refresh rate, the step S402 may be executed after the first refresh rate is adjusted to be equal to the second refresh rate based on the foregoing method. And will not be described in detail. In this embodiment, the step of performing the stitching processing on the content to be displayed of the main screen and the sub-screen to obtain the first image may be performed under the condition that the resolution and the refresh rate of the content to be displayed of the main screen and the sub-screen are equal, which is beneficial to ensuring synchronous display of the first display image of the main screen and the second display image of the sub-screen.
S402: and performing splicing processing on the content to be displayed of the main screen and the auxiliary screen to obtain a first image, and performing image processing on the first image through a set of configured image processing hardware to obtain a second image.
S403: and splitting the second image based on the MIPI protocol to obtain a first display image and a second display image.
S404: the first display image is displayed on the primary screen and the second display image is displayed on the secondary screen.
In an alternative embodiment, step S401 includes: when the resolution compression algorithm is called to reduce the resolution of the content to be displayed of the main screen, the resolution of the first display image is reduced, and at this time, the resolution of the main screen is higher than the resolution of the first display image. Then, when the main screen displays the first display image, the first display image covers part or all of the display area of the main screen. It should be noted that, if the first display image is transmitted in a compressed packet manner, the resolution corresponding to the image compression and/or the image decompression is also the reduced resolution, which will not be described in detail.
In another alternative embodiment, step S401 includes: in the case of image expansion of the content to be displayed of the sub-screen based on the expansion area, the resolution of the second display image is also increased, and at this time, the resolution of the sub-screen is lower than that of the second display image. Then, when the sub-screen displays the second display image, specifically including: and performing image clipping on the second display image based on the expansion area to obtain a clipped display image, and displaying the clipped display image on the auxiliary screen. It can be seen that with this embodiment, the electronic device can trim out the filled pixels.
It should be noted that, if the second display image is transmitted in a compressed packet manner, the resolution corresponding to the image compression and/or the image decompression is also the resolution after the increase, which will not be described in detail.
In an alternative embodiment, before the secondary screen displays the second display image, the method further comprises: judging whether the storage space of the auxiliary screen reaches a preset space, and if not, increasing the storage space of the auxiliary screen to the preset space. Optionally, the preset space is associated with the second display image of which the resolution of the sub-screen has been increased, i.e. the preset space supports storing the second display image of which the resolution has been increased.
For other related descriptions of step S402 to step S404, please refer to the related embodiment of fig. 2, and the description is omitted.
Therefore, in the embodiment of the application, the step of performing the splicing processing on the content to be displayed of the main screen and the auxiliary screen to obtain the first image can be performed under the condition that the resolution and/or the refresh rate of the content to be displayed of the main screen and the auxiliary screen are equal, so that the data size of the first display image and the second display image obtained based on MIPI splitting can be effectively ensured to be equal, and synchronous display of the first display image of the main screen and the second display image of the auxiliary screen can be ensured.
Referring to fig. 6, fig. 6 is a flow chart illustrating another multi-screen display method. Compared with the multi-screen display method shown in fig. 2, the multi-screen display method shown in fig. 6 also needs to determine the display mode of the electronic device that is turned on, and adopts different display methods according to different display modes. As shown in fig. 6, the method includes, but is not limited to, S601-S611:
s601: and determining a display mode of the electronic device.
The electronic device may include three display modes: a primary screen display mode, a secondary screen display mode, and a simultaneous display mode of the primary screen and the secondary screen. Specifically, when the electronic equipment starts a main screen display mode, the electronic equipment uses a main screen to display content; when the electronic equipment starts a secondary screen display mode, the electronic equipment uses a secondary screen to display content; when the electronic equipment starts the simultaneous display mode of the main screen and the auxiliary screen, the electronic equipment simultaneously uses the main screen and the auxiliary screen to display contents.
In an alternative embodiment, determining a display mode in which the electronic device is turned on includes: judging whether the electronic equipment starts the simultaneous display mode of the main screen and the auxiliary screen, if so, determining that the electronic equipment starts the simultaneous display mode of the main screen and the auxiliary screen; if not, judging whether the electronic equipment starts the auxiliary screen display mode, if so, determining that the electronic equipment starts the auxiliary screen display mode, and if not, determining that the electronic equipment starts the main screen display mode. It should be noted that the judging sequence of the three modes is not limited, for example, whether the electronic device is turned on the secondary screen display mode may be judged first, whether the electronic device is turned on the simultaneous display mode of the primary screen and the secondary screen may be judged, whether the primary screen display mode is turned on may be judged finally, and so on.
S602: if the electronic device starts the simultaneous display mode of the main screen and the auxiliary screen, executing step S603 to step S605; if the electronic device starts the secondary screen display mode, executing step S606, or executing steps S607 to S608; if the electronic device turns on the home screen display mode, step S609 or steps S610 to S611 are performed.
It should be noted that, when the electronic device turns on the secondary screen display mode, whether to specifically perform step S606 or perform step S607 and step S608 may be determined based on the resolution and/or the refresh rate of the content to be displayed of the secondary screen. Alternatively, it may be said that, when the electronic device turns on the sub-screen display mode, whether the channel mode or the split mode of the sub-screen is specifically executed may be determined based on the resolution and/or the refresh rate of the content to be displayed of the sub-screen.
It should be noted that, when the electronic device turns on the home screen display mode, whether to specifically perform step S609 or to perform step S610 and step S611 may be determined based on the resolution and/or the refresh rate of the content to be displayed on the home screen. Alternatively, it may be said that, when the electronic device turns on the main screen display mode, the channel mode or split mode in which the main screen is specifically executed may be determined based on the resolution and/or refresh rate of the content to be displayed of the main screen.
S603: and performing splicing processing on the content to be displayed of the main screen and the auxiliary screen to obtain a first image, and performing image processing on the first image through a set of configured image processing hardware to obtain a second image.
S604: and splitting the second image based on the MIPI protocol to obtain a first display image and a second display image.
S605: the first display image is displayed on the primary screen and the second display image is displayed on the secondary screen.
For the description of step S603 to step S605, please refer to the related embodiment of fig. 2, and the description is omitted.
Alternatively, the DSI interface may be extended to 2 MIPI interfaces, one MIPI interface for transmitting the first display image and the other MIPI interface for transmitting the second display image, when performing steps S603 to S605. For example, when the DSI interface corresponds to 4 lanes and the DSI interface is extended to 2 MIPI interfaces, 2 lanes corresponding to one MIPI interface are used to transmit the first display image and 2 lanes corresponding to the other MIPI interface are used to transmit the second display image.
S606: and carrying out image processing on the content to be displayed of the secondary screen through the configured set of image processing hardware to obtain a second display image, and displaying the second display image on the secondary screen.
Optionally, when step S606 is performed, the DSI interface is not expanded, and a plurality of lanes corresponding to the DSI interface are all used for transmitting the second display image. For example, when the DSI interface corresponds to 4 lanes, each of the 4 lanes is used to transmit the second display image. It can be seen that, in this embodiment, the transmission rate of the second display image can be increased when the channel mode is adopted, which is beneficial to transmitting the second display image with a larger resolution and/or a higher refresh rate.
S607: and performing stitching processing on two continuous frames of images corresponding to the content to be displayed of the secondary screen to obtain a third image, and performing image processing on the third image through a set of configured image processing hardware to obtain a fourth image.
Wherein, optionally, the two continuous frames of images comprise the current content to be displayed of the secondary screen and the last frame of content thereof; or, the two continuous frames of images comprise the current content to be displayed of the secondary screen and the next frame of content.
It should be noted that, for the relevant description of the stitching process and the image processing, refer to step S201, and the description thereof is omitted.
S608: and splitting the fourth image based on the MIPI protocol to obtain a second display image, and displaying the second display image on the secondary screen.
When splitting the fourth image based on the MIPI protocol, a second display image and a third display image may be obtained, where the second display image is associated with the current content to be displayed on the sub-screen, and the third display image is associated with the previous frame of display content or the next frame of display content on the sub-screen.
Alternatively, the DSI interface may be extended to 2 MIPI interfaces, one MIPI interface for transmitting the second display image and the other MIPI interface for transmitting the third display image, when performing steps S607 to S608. For example, when the DSI interface corresponds to 4 lanes and the DSI interface is extended to 2 MIPI interfaces, 2 lanes corresponding to one MIPI interface are used to transmit the second display image and 2 lanes corresponding to the other MIPI interface are used to transmit the third display image.
It should be noted that the third display image and the second display image may be transmitted to the secondary screen at the same time, or may not be transmitted to the secondary screen at the same time, and the method is not limited.
S609: and carrying out image processing on the content to be displayed of the main screen through a set of configured image processing hardware to obtain a first display image, and displaying the first display image on the main screen.
It should be noted that, for the related description of the image processing, refer to step S201, and the description thereof is omitted.
Optionally, when step S609 is performed, the DSI interface is not expanded, and a plurality of lanes corresponding to the DSI interface are all used to transmit the first display image. For example, when the DSI interface corresponds to 4 lanes, each of the 4 lanes is used to transmit the first display image. It can be seen that, in this embodiment, the transmission rate of the first display image may be increased when the channel mode is adopted, which is beneficial for transmitting the first display image with a larger resolution and/or a higher refresh rate.
S610: and performing stitching processing on two continuous frames of images corresponding to the content to be displayed of the main screen to obtain a fifth image, and performing image processing on the fifth image through a set of configured image processing hardware to obtain a sixth image.
Wherein, optionally, the two continuous frames of images comprise the current content to be displayed of the main screen and the last frame of content thereof; or, the two continuous frames of images comprise the current content to be displayed of the main screen and the next frame of content.
It should be noted that, for the relevant description of the stitching process and the image processing, refer to step S201, and the description thereof is omitted.
S611: and splitting the sixth image based on the MIPI protocol to obtain a first display image, and displaying the first display image on the main screen.
When splitting the sixth image based on the MIPI protocol, a first display image and a fourth display image may be obtained, where the first display image is related to the current content to be displayed on the main screen, and the fourth display image is related to the last frame of display content or the next frame of display content on the main screen.
Alternatively, in performing steps S610 to S611, the DSI interface may be extended to 2 MIPI interfaces, one MIPI interface for transmitting the first display image and the other MIPI interface for transmitting the fourth display image. For example, when the DSI interface corresponds to 4 lanes and the DSI interface is extended to 2 MIPI interfaces, 2 lanes corresponding to one MIPI interface are used to transmit the first display image and 2 lanes corresponding to the other MIPI interface are used to transmit the fourth display image.
It should be noted that the fourth display image and the first display image may be transmitted to the main screen at the same time, or may not be transmitted to the main screen at the same time, and the method is not limited.
In an alternative embodiment, the electronic device may automatically select the display mode or the user manually adjusts the display mode. Taking a photographing scene as an example, an application scene of a plurality of display modes of the electronic device is illustrated in conjunction with fig. 7a to 7 c. Referring to fig. 7a, a user 1 may use an electronic device to take a picture for a user 2, and in a case where the electronic device starts a main screen display mode, a picture taking preview interface displayed on the main screen may be provided for the user 1 to view. Referring to fig. 7b, the user 2 may use the electronic device to perform self-timer shooting, and in the case that the electronic device starts the secondary screen display mode, the photographing preview interface displayed on the secondary screen may be provided for the user 2 to view. Referring to fig. 7c, a user 1 may use an electronic device to take a picture for a user 2, and in a case where the electronic device opens a primary screen and a secondary screen and displays a mode at the same time, a picture taking preview interface displayed on the primary screen is provided for the user 1 to view, and a picture taking preview interface displayed on the secondary screen is provided for the user 2 to view.
In some embodiments of the present application, when the display modes of the electronic device turned on are different, the corresponding hardware paths are different. Referring to fig. 8, fig. 8 shows a schematic structural diagram of an electronic device. In fig. 8, step S607 and step S608 are taken as examples when the secondary screen display mode is taken as examples, and step S609 is taken as examples when the primary screen display mode is taken as examples, and the hardware path of the electronic device is exemplarily described, and as shown in fig. 8, the hardware path can be controlled by the switch 1 and the switch 2. Wherein the switch 1 comprises two modes: a channel mode and a split mode; when the switch 1 is in the channel mode, the image transmitted to the switch 1 may be directly transmitted to the next node (i.e., the switch 2 shown in fig. 8); when the switch 1 is in the split mode, the image transmitted to the switch 1 may be split into a plurality of display images and transmitted to the next node (i.e., the sub-screen and the switch 2 shown in fig. 8), respectively. The switch 2 includes two modes: an on mode and an off mode; when the switch 2 is in the on mode, the image transmitted to the switch 2 may be transmitted to the next node (i.e., the main screen shown in fig. 8); when the switch 2 is in the off mode, the image transmitted to the switch 2 cannot be transmitted to the next node (i.e., the main screen shown in fig. 8). The corresponding hardware pathways are described below in connection with the display mode in which the electronic device is turned on. Alternatively, in the case where the electronic device turns on the main screen display mode, switch 1 is in the channel mode and switch 2 is in the on mode, the image may be directly transmitted to the main screen via switch 1 and switch 2 (e.g., the first display image may be transmitted to the main screen via switch 1 and switch 2). Alternatively, in the case where the electronic device turns on the secondary screen display mode, the switch 1 is in the split mode, and the switch 2 is in the off mode, when the image is transmitted to the switch 1, the image may be split into two parts (e.g., the fourth image may be split into the second display image and the third display image), wherein one part may be directly transmitted to the secondary screen, another part may not be transmitted through the switch 2, e.g., the second display image may be transmitted to the secondary screen, and the third display image may not be transmitted (i.e., the third display image may not be transmitted to the secondary screen simultaneously with the second display image). Alternatively, in the case where the electronic device turns on the simultaneous display mode of the main screen and the sub-screen, the switch 1 is in the split mode, and the switch 2 is in the on mode, when an image is transmitted to the switch 1, the image may be split into two parts (e.g., a second image may be split into a first display image and a second display image), one part may be directly transmitted to the sub-screen, and the other part may be transmitted to the main screen through the switch 2 (e.g., the second display image may be transmitted to the sub-screen, and the first display image may be transmitted to the main screen through the switch 2).
It can be seen that in this embodiment, the electronic device with multiple display screens has multiple display modes, and the corresponding display method can be adaptively selected according to the opened display modes, which is favorable for the electronic device configured with a set of image processing hardware to realize content display in multiple display modes, so that the electronic device has stronger flexibility, wider application scenario and better user experience.
Fig. 9 shows a schematic structural diagram of the electronic device 100. The electronic device 100 may be the electronic device in the above embodiment, and is not limited thereto.
The embodiment will be specifically described below taking the electronic device 100 as an example. It should be understood that the electronic device 100 shown in fig. 9 is only one example, and that the electronic device 100 may have more or fewer components than shown in fig. 9, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 9 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
Referring to fig. 9, fig. 9 shows a schematic structural diagram of an electronic device 100 according to an embodiment of the present application.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processingunit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (displayserial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wirelesslocal area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2. In some embodiments of the present application, the electronic device may obtain the current location information through the wireless communication module 160.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (codedivision multiple access, CDMA), wideband code division multiple access (wideband code division multipleaccess, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidounavigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellitesystem, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon. In other embodiments of the present application, the pressure sensor 180A may also be disposed on the bezel of the electronic device 100. The electronic device 100 may calculate a touch point where a user touches the electronic device 100 through the pressure detected by the pressure sensor 180A.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes. In some embodiments of the present application, the electronic device 100 may determine whether the electronic device is flipped back and forth by a user, in a vertical posture, etc. through the gyro sensor 180B.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications. In some embodiments of the present application, the electronic device 100 may determine whether the electronic device is flipped back and forth by a user, in a vertical posture, etc. through the acceleration sensor 180E.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 10 is a software configuration block diagram of the electronic device 100 of the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 10, the application package may include applications such as a camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, file browser, etc.
The application framework layer provides an application programming interface (applicationprogramming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 10, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. In the embodiment of the present application, the window manager may acquire the sizes of the two display screens provided by the electronic device 100, and uniformly manage the content displayed by the two display screens.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The workflow of the electronic device 100 software and hardware is illustrated below in connection with capturing a photo scene.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the input event. Taking the touch operation as a touch click operation, taking a control corresponding to the click operation as an example of a control of a camera application icon, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera driver by calling a kernel layer, and captures a still image or video by the camera 193.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A multi-screen display method, which is applied to an electronic device, wherein the electronic device comprises a main screen and a secondary screen, and the method comprises the following steps:
the method comprises the steps that the content to be displayed of a main screen and the content to be displayed of a secondary screen are spliced to obtain a first image, and the first image is subjected to image processing through a set of configured image processing hardware to obtain a second image;
splitting the second image based on a mobile industry processor interface MIPI protocol to obtain a first display image and a second display image;
the first display image is displayed on the primary screen, and the second display image is displayed on the secondary screen.
2. The method of claim 1, wherein the method further comprises:
Judging whether the first resolution is equal to the second resolution; the first resolution refers to the initial resolution of the content to be displayed of the main screen; the second resolution refers to the initial resolution of the content to be displayed of the secondary screen;
if yes, executing the step of splicing the content to be displayed of the main screen and the auxiliary screen to obtain a first image;
if not, adjusting the resolution of the content to be displayed of the main screen and/or the auxiliary screen until the resolution of the content to be displayed of the main screen is equal to that of the auxiliary screen, and executing the splicing processing on the content to be displayed of the main screen and the auxiliary screen to obtain a first image.
3. The method of claim 2, wherein the adjusting the resolution of the content to be displayed of the primary screen and/or the secondary screen until the resolution of the content to be displayed of the primary screen and the secondary screen are equal comprises:
if the first resolution is larger than the second resolution, reducing the resolution of the content to be displayed of the main screen and/or increasing the resolution of the content to be displayed of the auxiliary screen until the resolutions of the content to be displayed of the main screen and the auxiliary screen are equal;
If the first resolution is smaller than the second resolution, increasing the resolution of the content to be displayed of the main screen and/or reducing the resolution of the content to be displayed of the auxiliary screen until the resolutions of the content to be displayed of the main screen and the auxiliary screen are equal.
4. A method as recited in claim 3, wherein the reducing the resolution of the content to be displayed of the primary screen until the resolution of the content to be displayed of the primary screen and the secondary screen are equal comprises:
invoking a resolution compression algorithm to reduce the resolution of the content to be displayed of the main screen until the resolution of the content to be displayed of the main screen is equal to that of the secondary screen; the resolution compression algorithm includes a sub-sampling compression algorithm and/or an interpolation compression algorithm.
5. The method of claim 3, wherein the increasing the resolution of the content to be displayed of the secondary screen until the resolution of the content to be displayed of the primary screen and the secondary screen are equal comprises:
determining an extension region based on the first resolution and the second resolution; the expansion area refers to an area where the content to be displayed of the second resolution is uncovered when the content to be displayed of the first resolution overlaps the content to be displayed of the second resolution;
And carrying out image expansion on the content to be displayed of the auxiliary screen based on the expansion area until the resolution of the content to be displayed of the main screen is equal to that of the content to be displayed of the auxiliary screen.
6. The method of claim 5, wherein displaying the second display image on the secondary screen comprises:
based on the expansion area, performing image clipping on the second display image to obtain a clipped display image;
and displaying the cut display image on the secondary screen.
7. The method of any one of claims 1 to 6, further comprising:
judging whether the electronic equipment starts a simultaneous display mode of the main screen and the auxiliary screen;
if yes, executing the step of splicing the to-be-displayed contents of the main screen and the auxiliary screen according to the resolutions of the to-be-displayed contents of the main screen and the auxiliary screen to obtain a first image.
8. An electronic device includes a touch screen, a memory, one or more processors, one or more programs; wherein the one or more programs are stored in the memory, the touch screen comprising a primary screen and a secondary screen, wherein the one or more processors, when executing the one or more programs, cause the electronic device to implement the method of any of claims 1-7.
9. A computer program product, characterized in that the computer program product, when run on an electronic device, causes the electronic device to perform the method of any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method according to any of claims 1 to 7.
CN202310688557.8A 2023-06-09 2023-06-09 Multi-screen display method and related equipment Pending CN117692693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310688557.8A CN117692693A (en) 2023-06-09 2023-06-09 Multi-screen display method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310688557.8A CN117692693A (en) 2023-06-09 2023-06-09 Multi-screen display method and related equipment

Publications (1)

Publication Number Publication Date
CN117692693A true CN117692693A (en) 2024-03-12

Family

ID=90135922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310688557.8A Pending CN117692693A (en) 2023-06-09 2023-06-09 Multi-screen display method and related equipment

Country Status (1)

Country Link
CN (1) CN117692693A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020078273A1 (en) * 2018-10-15 2020-04-23 华为技术有限公司 Photographing method, and electronic device
CN111613186A (en) * 2020-06-22 2020-09-01 京东方科技集团股份有限公司 Display system and driving method thereof
CN115237361A (en) * 2022-06-17 2022-10-25 深圳传音控股股份有限公司 Display driving circuit, folding screen, display method, intelligent terminal and storage medium
CN116132608A (en) * 2023-02-17 2023-05-16 维沃移动通信有限公司 Image processing circuit, image processing method, and electronic apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020078273A1 (en) * 2018-10-15 2020-04-23 华为技术有限公司 Photographing method, and electronic device
CN111613186A (en) * 2020-06-22 2020-09-01 京东方科技集团股份有限公司 Display system and driving method thereof
CN115237361A (en) * 2022-06-17 2022-10-25 深圳传音控股股份有限公司 Display driving circuit, folding screen, display method, intelligent terminal and storage medium
CN116132608A (en) * 2023-02-17 2023-05-16 维沃移动通信有限公司 Image processing circuit, image processing method, and electronic apparatus

Similar Documents

Publication Publication Date Title
US11669242B2 (en) Screenshot method and electronic device
AU2018430381B2 (en) Flexible screen display method and terminal
WO2021017889A1 (en) Display method of video call appliced to electronic device and related apparatus
CN115866121B (en) Application interface interaction method, electronic device and computer readable storage medium
CN115473957B (en) Image processing method and electronic equipment
CN109559270B (en) Image processing method and electronic equipment
CN113448382B (en) Multi-screen display electronic device and multi-screen display method of electronic device
CN116360725B (en) Display interaction system, display method and device
CN114089932B (en) Multi-screen display method, device, terminal equipment and storage medium
CN114077464A (en) Display control method and device
CN116048358B (en) Method and related device for controlling suspension ball
CN113641271A (en) Application window management method, terminal device and computer readable storage medium
WO2020233593A1 (en) Method for displaying foreground element, and electronic device
CN115967851A (en) Quick photographing method, electronic device and computer readable storage medium
WO2022143180A1 (en) Collaborative display method, terminal device, and computer readable storage medium
CN115119048B (en) Video stream processing method and electronic equipment
CN116389884B (en) Thumbnail display method and terminal equipment
CN116048831B (en) Target signal processing method and electronic equipment
CN114691248B (en) Method, device, equipment and readable storage medium for displaying virtual reality interface
CN117692693A (en) Multi-screen display method and related equipment
CN116051351B (en) Special effect processing method and electronic equipment
CN116709018B (en) Zoom bar segmentation method and electronic equipment
CN116233599B (en) Video mode recommendation method and electronic equipment
CN116095512B (en) Photographing method of terminal equipment and related device
EP4276618A1 (en) Image processing method, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination