Multi-screen display method, device, program product and storage medium
The multi-screen display method addresses the challenge of displaying on multiple screens with a single set of image processing hardware by splicing and splitting images using the MIPI protocol, achieving synchronized display while reducing costs.
Patent Information
- Application Number
- CN202310688557.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-09
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2043-06-09
AI Technical Summary
Electronic devices with multiple display screens face the challenge of completing multi-screen display while being equipped with only one set of image processing hardware, necessitating cost-effective solutions.
A multi-screen display method that splices content across screens, processes the combined image with a single set of image processing hardware, and splits the image using the MIPI protocol to display on multiple screens.
Enables simultaneous multi-screen display with reduced hardware costs by utilizing a single set of image processing hardware for both screens, ensuring synchronized display.
Smart Images

Figure CN117692693B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a multi-screen display method, device, program product and storage medium. Background Art
[0002] With the rapid development of multi-screen technology and folding screen technology, electronic devices can have multiple display screens and can display content through each display screen. For example, taking an electronic device including a main screen and a secondary screen as an example, the electronic device can use the main screen alone to display content, or use the secondary screen alone to display content; it can also use the main screen and the secondary screen at the same time to display content.
[0003] However, in order to save costs, electronic devices may only be equipped with one set of image processing hardware. In this case, how to complete multi-screen display is an urgent problem to be solved. Summary of the invention
[0004] The embodiments of the present application provide a multi-screen display method, device, program product, and storage medium, which can complete multi-screen display when an electronic device is equipped with a set of image processing hardware.
[0005] In a first aspect, an embodiment of the present application provides a multi-screen display method, which is applied to an electronic device, wherein the electronic device includes a main screen and a sub-screen, and the method includes: splicing the content to be displayed on the main screen and the sub-screen to obtain a first image, and performing image processing on the first image through a configured set of image processing hardware to obtain a second image; splitting the second image based on the Mobile Industry Processor Interface (MIPI) protocol to obtain a first display image and a second display image; displaying the first display image on the main screen, and displaying the second display image on the sub-screen.
[0006] Optionally, the main screen and the secondary screen are located on two sides of the electronic device. For example, the main screen is a display screen facing the user, and the secondary screen is a display screen facing away from the user. Optionally, the main screen can be a folding screen. Optionally, the secondary screen can also be a folding screen.
[0007] It can be seen that in the embodiment of the present application, the contents to be displayed on the main screen and the secondary screen can be spliced to obtain a first image, and after the first image is processed by a set of configured image processing hardware to obtain a second image, the second image is split based on the MIPI protocol to obtain a first display image and a second display image; the first display image is displayed on the main screen, and the second display image is displayed on the secondary screen. Since the electronic device performs image processing on the first image obtained by splicing, only one set of image processing hardware is needed to simultaneously perform image processing on the contents to be displayed on the main screen and the secondary screen. At the same time, the first display image and the second display image obtained by splitting based on the MIPI protocol can be transmitted to the main screen and the secondary screen respectively through multiple Lanes corresponding to the DSI interface, and can support the simultaneous display of the main screen and the secondary screen. Therefore, the method described in the embodiment of the present application can complete multi-screen display when the electronic device is configured with a set of image processing hardware. A set of image processing hardware has a lower cost, and the electronic device can complete multi-screen display while saving costs.
[0008] In an optional implementation, a second image is obtained by performing image processing on the first image through a set of configured image processing hardware, including: 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 the second image. The image processing hardware includes but is not limited to one or more of an image splicing unit (laymixer), 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 mapping (Local Tone Mapping, LTM) processing unit, an image compression transmission (Display Stream Compression, DSC) unit or a display serial (Display Serial Interface, DSI) interface.
[0009] In combination with the first aspect, in an optional implementation, the method further includes: determining whether the first resolution and the second resolution are equal; if so, executing the step of splicing the contents to be displayed on the main screen and the secondary screen to obtain a first image; if not, adjusting the resolution of the contents to be displayed on the main screen and / or the secondary screen until the resolutions of the contents to be displayed on the main screen and the secondary screen are equal, executing the step of splicing the contents to be displayed on the main screen and the secondary screen to obtain a first image; wherein the first resolution refers to the initial resolution of the contents to be displayed on the main screen; the second resolution refers to the initial resolution of the contents to be displayed on the secondary screen. It can be seen that executing the step of splicing the contents to be displayed on the main screen and the secondary screen to obtain the first image when the resolutions of the contents to be displayed on the main screen and the secondary screen are equal can effectively ensure that the data volume of the first display image and the second display image obtained after MIPI splitting is equal, which is conducive to ensuring the synchronous display of the first display image of the main screen and the second display image of the secondary screen.
[0010] In combination with the first aspect, in an optional implementation, adjusting the resolution of the content to be displayed on the main screen and / or adjusting the resolution of the content to be displayed on the secondary screen until the resolution of the content to be displayed on the main screen and the secondary screen is equal includes:
[0011] If the first resolution is greater than the second resolution, reducing the resolution of the content to be displayed on the primary screen, and / or increasing the resolution of the content to be displayed on the secondary screen, until the resolutions of the content to be displayed on the primary screen and the secondary screen are equal;
[0012] 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 secondary screen is reduced until the resolutions of the content to be displayed on the main screen and the secondary screen are equal.
[0013] In combination with the first aspect, in an optional implementation manner, reducing the resolution of the content to be displayed on the main screen until the resolution of the content to be displayed on the main screen and the secondary screen is equal includes:
[0014] A resolution compression algorithm is called to reduce the resolution of the content to be displayed on the main screen until the resolution of the content to be displayed on the main screen and the sub-screen is equal; the resolution compression algorithm includes a sub-sampling compression algorithm and / or an interpolation compression algorithm.
[0015] In combination with the first aspect, in an optional implementation, increasing the resolution of the content to be displayed on the secondary screen until the resolution of the content to be displayed on the main screen and the secondary screen is equal includes:
[0016] Determine an extended area based on the first resolution and the second resolution; the extended area refers to an area not covered by the content to be displayed at the second resolution when the content to be displayed at the first resolution overlaps with the content to be displayed at the second resolution;
[0017] The image of the content to be displayed on the secondary screen is expanded based on the expansion area until the resolution of the content to be displayed on the main screen is equal to that of the content to be displayed on the secondary screen.
[0018] In combination with the first aspect, in an optional implementation manner, displaying the second display image on the secondary screen includes:
[0019] Based on the extended area, cropping the second display image to obtain a cropped display image;
[0020] The cropped display image is displayed on the secondary screen.
[0021] In combination with the first aspect, in an optional implementation, the method further includes:
[0022] Determine whether the electronic device has turned on the simultaneous display mode of the main screen and the secondary screen;
[0023] If so, the step of performing splicing processing on the contents to be displayed on the main screen and the sub-screen according to the resolutions of the contents to be displayed on the main screen and the sub-screen to obtain a first image is executed.
[0024] In a second aspect, an embodiment of the present application provides an electronic device, comprising 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 comprises a main screen and a sub-screen, and when the one or more processors execute the one or more programs, the electronic device implements: splicing the contents to be displayed on the main screen and the sub-screen to obtain a first image, and performing image processing on the first image through a configured set of 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; displaying the first display image on the main screen, and displaying the second display image on the sub-screen.
[0025] In conjunction with the second aspect, in an optional implementation manner, the electronic device is further used to implement:
[0026] Determine whether the first resolution and the second resolution are equal; wherein the first resolution refers to the initial resolution of the content to be displayed on the main screen; and the second resolution refers to the initial resolution of the content to be displayed on the secondary screen;
[0027] If yes, the step of splicing the contents to be displayed on the main screen and the sub-screen to obtain a first image is performed;
[0028] If not, adjust the resolution of the content to be displayed on the main screen and / or the secondary screen until the resolution of the content to be displayed on the main screen and the secondary screen is equal, and perform the step of splicing the content to be displayed on the main screen and the secondary screen to obtain the first image.
[0029] In conjunction with the second aspect, in an optional implementation, the electronic device is used to implement: adjusting the resolution of the content to be displayed on the main screen and / or adjusting the resolution of the content to be displayed on the secondary screen until the resolution of the content to be displayed on the main screen and the secondary screen is equal, including:
[0030] If the first resolution is greater than the second resolution, the resolution of the content to be displayed on the primary screen is reduced, and / or the resolution of the content to be displayed on the secondary screen is increased, until the resolutions of the content to be displayed on the primary screen and the secondary screen are equal;
[0031] 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 secondary screen is reduced until the resolutions of the content to be displayed on the main screen and the secondary screen are equal.
[0032] In conjunction with the second aspect, in an optional implementation, the electronic device is used to implement: reducing the resolution of the content to be displayed on the main screen until the resolution of the content to be displayed on the main screen and the secondary screen is equal, including:
[0033] A resolution compression algorithm is called to reduce the resolution of the content to be displayed on the main screen until the resolution of the content to be displayed on the main screen and the sub-screen is equal; the resolution compression algorithm includes a sub-sampling compression algorithm and / or an interpolation compression algorithm.
[0034] In conjunction with the second aspect, in an optional implementation, the electronic device is used to implement: increasing the resolution of the content to be displayed on the secondary screen until the resolution of the content to be displayed on the main screen and the secondary screen is equal, including:
[0035] Determine an extended area based on the first resolution and the second resolution; the extended area refers to an area not covered by the content to be displayed at the second resolution when the content to be displayed at the first resolution overlaps with the content to be displayed at the second resolution;
[0036] The image of the content to be displayed on the secondary screen is expanded based on the expansion area until the resolution of the content to be displayed on the main screen and the secondary screen is equal.
[0037] In conjunction with the second aspect, in an optional implementation, the electronic device is used to display the second display image on the secondary screen, specifically including:
[0038] Based on the extended area, cropping the second display image to obtain a cropped display image;
[0039] The cropped display image is displayed on the secondary screen.
[0040] In conjunction with the second aspect, in an optional implementation manner, the electronic device is further used to implement:
[0041] Determine whether the electronic device has turned on the simultaneous display mode of the main screen and the secondary screen;
[0042] If so, the step of performing splicing processing on the contents to be displayed on the main screen and the sub-screen according to the resolutions of the contents to be displayed on the main screen and the sub-screen to obtain a first image is executed.
[0043] It should be noted that the relevant beneficial effects can be referred to the beneficial effects of the first aspect or any embodiment of the first aspect, and will not be described in detail.
[0044] In a third aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the method of the first aspect or any one of the implementations of the first aspect.
[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method of the first aspect or any one of the implementation methods of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments of the present application will be described below.
[0047] Figure 1a It is a schematic diagram of an electronic device provided by the implementation of the present application;
[0048] Figure 1b is a schematic diagram of another electronic device provided by the present application;
[0049] Figure 2 It is a flowchart of a multi-screen display method provided by the present application;
[0050] Figure 3 It is a flowchart of another multi-screen display method provided by the present application;
[0051] Figure 4 It is a flowchart of another multi-screen display method provided by the present application;
[0052] Figure 5a-Figure 5b It is a schematic diagram of an expansion area provided by the implementation of this application;
[0053] Figure 6 It is a flowchart of another multi-screen display method provided by the present application;
[0054] Figure 7a-7c It is a schematic diagram of an application scenario provided by the implementation of this application;
[0055] Figure 8 It is a structural schematic diagram of an electronic device provided by the implementation of this application;
[0056] Fig. 9 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application;
[0057] Fig.10 A schematic diagram of a software architecture provided for an embodiment of the present application. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0059] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0060] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0061] The multi-screen display method of the embodiment of the present application can be applied to electronic devices. The present application does not specifically limit the type of electronic device mentioned, and the electronic device may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with iOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic devices may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present application, the electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0062] In some embodiments of the present application, the electronic device may be configured with two independent display screens, which are located on two sides of the electronic device. The display screen facing the user is the main screen, and the other display screen is the secondary screen. Figure 1a , Figure 1aIt is a schematic diagram of an electronic device provided by 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 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. For example, one display screen is a 6-inch OLED screen and the other display screen is a 5-inch LCD screen. This is not limited in the embodiments of the present application. It should be noted that in the embodiments of the present application, when the electronic device provides two display screens, one of the display screens may be referred to as the first screen and the other display screen may be referred to as the second screen. Exemplarily, the main screen may be regarded as the first screen and the secondary screen may be regarded as the second screen. It should be noted that the embodiments of the present application do not limit the number of display screens of the electronic device. When the electronic device has more than two display screens, the specific implementation method is similar to the embodiments of the present application and will not be repeated.
[0063] Optionally, the main screen of the electronic device may include at least one sub-screen, and the sub-screen may include at least one sub-screen. For example, taking the electronic device as a folding screen terminal as an example, the main screen may include two sub-screens, and the sub-screen may include one sub-screen. Figure 1b As shown, Figure 1b It is a schematic diagram of another electronic device provided by the implementation of the present application, and the main screen may include sub-screen a and sub-screen b, and the sub-screen may include sub-screen c. Among them. A folding screen terminal refers to a terminal equipped with a folding screen. When the display screen of the terminal adopts materials such as OLED, AMOLED, FLED, etc., the display screen of the terminal can be bent, that is, the terminal is equipped with a folding screen. Here, the display screen can be bent, which means that the display screen can be bent to any angle at a fixed position or any position, and can be maintained at the angle. The folding screen has two modes: an unfolded state and a folded state. Among them, when the bending angle formed when the folding screen is bent is greater than a preset value, it can be regarded as being in an unfolded state, and when the bending angle formed when the folding screen is bent is less than a preset value, it can be regarded as being in a folded state.
[0064] However, in order to save costs, electronic devices with multiple display screens may only be equipped with one set of image processing hardware. In this case, how to display is an urgent problem to be solved.
[0065] Based on this, the embodiment of the present application provides a multi-screen display method, in which the electronic device can splice the contents to be displayed on the main screen and the secondary screen to obtain a first image, and after performing image processing on the first image by a set of configured image processing hardware to obtain a second image, the second image is split based on the MIPI protocol to obtain a first display image and a second display image; the first display image can be displayed on the main screen, and the second display image can be displayed on the secondary screen. It can be seen that the present application solution can complete multi-screen display when the electronic device is configured with a set of image processing hardware.
[0066] The multi-screen display method provided by the embodiment of the present application is described below in conjunction with the accompanying drawings.
[0067] See also Figure 2 , Figure 2 is a flow chart of a multi-screen display method provided by an embodiment of the present application. Figure 2 As shown, the multi-screen display method includes but is not limited to S201-S203:
[0068] S201: splicing the contents to be displayed on the main screen and the sub-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.
[0069] In an optional implementation, the contents to be displayed on the main screen and the sub-screen are spliced to obtain the first image, including: splicing the contents to be displayed on the main screen and the sub-screen based on a splicing rule to obtain the first image. The splicing rule includes, but is not limited to, 1*2 or 2*1. For example, taking the splicing rule of 1*2 as an example, after the splicing process, the contents to be displayed on the main screen are located on the left side of the first image, and the contents to be displayed on the sub-screen are located on the right side of the first image (or the contents to be displayed on the sub-screen are located on the left side of the first image, and the contents to be displayed on the main screen are located on the right side of the first image); for another example, taking the splicing rule of 2*1 as an example, after the splicing process, the contents to be displayed on the main screen are located on the upper side of the first image, and the contents to be displayed on the sub-screen are located on the lower side of the first image (or the contents to be displayed on the sub-screen are located on the upper side of the first image, and the contents to be displayed on the main screen are located on the lower side of the first image), and so on.
[0070] Optionally, the content to be displayed mentioned in the present application may be a frame of image. The frame of image may be an independent frame of image, or any frame of image in an image sequence. Among them, an image sequence refers to an image set composed of multiple frames of image arranged in a sequential order; for example, the image sequence may be an animated image, a video image, and the like. It should be noted that in other embodiments, the content to be displayed may also be an image sequence, without limitation. The embodiment of the present application is exemplified by taking the content to be displayed as a frame of image as an example. Optionally, the content to be displayed mentioned in the present application may be an image captured by an image acquisition device, such as an image captured by a camera in a photo scene. Optionally, 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, and the like. Optionally, the content to be displayed mentioned in the present application may be in any format, for example, it may be one or more of a bitmap (Bitmap, BMP) format, a (Joint Photographic Experts Group, JPEG) format, and a portable network graphics (Portable Network Graphics, PNG) format.
[0071] Among them, the content to be displayed mentioned in the embodiments of the present application includes the content to be displayed on the main screen, and / or the content to be displayed on the secondary screen. In an optional embodiment, the content to be displayed on the main screen may be different from the content to be displayed on the secondary screen. For example, the resolution of the content to be displayed on the main screen is different from the resolution of the content to be displayed on the secondary screen, such as the resolution of the content to be displayed on the main screen is 1200*2800, and the resolution of the content to be displayed on the secondary screen is 720*1280; for another example, the format of the content to be displayed on the main screen is different from the format of the content to be displayed on the secondary screen, such as the format of the content to be displayed on the main screen is JPEG format, and the format of the content to be displayed on the secondary screen is PNG format. In another optional embodiment, the content to be displayed on the main screen and the content to be displayed on the secondary screen may also be the same, which will not be repeated.
[0072] In an optional implementation, performing image processing on the first image by a set of configured image processing hardware to obtain the second image includes: 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 by a set of configured image processing hardware to obtain the second image. The first image may refer to original image data, and the second image refers to image data obtained after image processing.
[0073] Optionally, the image processing hardware includes but is not limited to one or more of an image splicing unit (laymixer), 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 mapping (Local Tone Mapping, LTM) processing unit, an image compression transmission (Display Stream Compression, DSC) unit or a display serial interface (Display Serial Interface, DSI) interface. Among them, the image splicing unit (laymixer) can be used to splice the content to be displayed on the main screen and the content to be displayed on the secondary screen to obtain a first image; among them, the LTM processing unit refers to a processing unit that uses a local tone mapping algorithm and a pixel-level dynamic contrast adjustment technology to achieve pixel-level dynamic contrast adjustment.
[0074] Optionally, the DSI interface supports expansion to multiple MIPI interfaces, for example, one DSI interface can be expanded to two MIPI interfaces. Optionally, when the DSI interface is expanded to multiple MIPI interfaces, multiple Lanes of the DSI interface can correspond to different MIPI interfaces respectively. For example, when the DSI interface is expanded to two MIPI interfaces and the DSI interface includes four Lanes, each MIPI interface can correspond to two Lanes respectively.
[0075] S202: Split the second image based on the MIPI protocol to obtain a first display image and a second display image.
[0076] The MIPI protocol is an open standard initiated by the MIPI Alliance for mobile application processors. Optionally, the splitting 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 two MIPI interfaces, two display images can be obtained by splitting based on the MIPI protocol.
[0077] Optionally, the electronic device may specifically include an application layer, a packet layer, a protocol layer or a physical layer. The following is a detailed description of the application layer, the packet layer, the protocol layer or the physical layer. Figure 2The multi-screen display method. The application layer is used to splice the contents to be displayed on the main screen and the secondary screen to obtain the first image, and to perform image processing on the first image to obtain the second image. The packet assembly layer is used to perform data segmentation and / or reorganization on the image. For example, the packet assembly layer can be used to split the second image to obtain the first display image and the second display image. The protocol layer is used to generate a packet header according to the data type and a check sequence constituting a packet tail according to the data content, and to 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 can 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 to transmit the data packet to the display screen through the Lane corresponding to the DSI interface. For example, the DSI interface corresponds to 2 Lanes (which can be named the first Lane and the second Lane), and the physical layer is used to transmit the data packet corresponding to the first display image to the main screen through the first Lane, and to transmit the data packet corresponding to the second display image to the secondary screen through the second Lane. Optionally, the data packet transmitted at the physical layer may be a compressed packet.
[0078] S203: Displaying a first display image on the main screen, and displaying a second display image on the sub-screen.
[0079] In an optional implementation, step S203 specifically includes: when the first display image is transmitted to the main screen, the first display image is displayed on the main screen, and when the second display image is transmitted to the secondary screen, the second display image is displayed on the secondary screen. Optionally, if the display screen receives a compressed package, then when the display screen receives the compressed package, the compressed package can be decompressed to obtain the first display image, and the display screen includes the main screen and / or the secondary screen.
[0080] See also Figure 3 , Figure 3 FIG. 1 is a flow chart of another multi-screen display method provided by an embodiment of the present application. Figure 3 As shown, it may specifically include: S301, splicing the content to be displayed on the main screen (i.e., image A) and the content to be displayed on the sub-screen (i.e., 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 the MIPI protocol to obtain a first display image 32-1 and a second display image 32-2; S303, displaying the first display image 32-1 on the main screen, and displaying the second display image 32-2 on the sub-screen.
[0081] It can be seen that in the embodiment of the present application, the contents to be displayed on the main screen and the secondary screen can be spliced to obtain a first image, and after the first image is processed by a set of configured image processing hardware to obtain a second image, the second image is split based on the MIPI protocol to obtain a first display image and a second display image; the first display image is displayed on the main screen, and the second display image is displayed on the secondary screen. Since the electronic device performs image processing on the first image obtained by splicing, only one set of image processing hardware is needed to simultaneously perform image processing on the contents to be displayed on the main screen and the secondary screen. At the same time, the first display image and the second display image obtained by splitting based on the MIPI protocol can be transmitted to the main screen and the secondary screen respectively through multiple Lanes corresponding to the DSI interface, and can support the simultaneous display of the main screen and the secondary screen. Therefore, the method described in the embodiment of the present application can complete multi-screen display when the electronic device is configured with a set of image processing hardware. A set of image processing hardware has a lower cost, and the electronic device can complete multi-screen display while saving costs.
[0082] See also Figure 4 , Figure 4 A schematic flow chart of another multi-screen display method is shown. Figure 4 The multi-screen display method and Figure 2 Compared with the multi-screen display method, Figure 4 The multi-screen display method also needs to determine whether the resolutions of the contents to be displayed on the main screen and the secondary screen are equal. Figure 4 As shown, the method includes but is not limited to S401-S404:
[0083] S401: Determine whether a first resolution is equal to a second resolution, wherein the first resolution refers to an initial resolution of the content to be displayed on the main screen, and the second resolution refers to an initial resolution of the content to be displayed on the main screen.
[0084] In an optional implementation, if the first resolution is equal to the second resolution, step S402 is directly executed; 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 secondary screen is adjusted until the resolutions of the content to be displayed on the main screen and the secondary screen are equal, and then step S402 is executed. In this implementation, the step of splicing the content to be displayed on the main screen and the secondary screen to obtain the first image can be executed when the resolutions of the content to be displayed on the main screen and the secondary screen are equal, which is conducive to ensuring the synchronous display of the first display image of the main screen and the second display image of the secondary screen.
[0085] 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 optional implementation, 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 secondary screen is increased, until the resolutions of the content to be displayed on the main screen and the secondary screen are equal. In another optional implementation, if the first resolution is less 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 secondary screen is reduced, until the resolutions of the content to be displayed on the main screen and the secondary screen are equal. For ease of description, the subsequent embodiments are exemplified by taking the case where the first resolution is greater than the second resolution as an example.
[0086] Optionally, the resolution of the content to be displayed on the main screen is reduced until the resolution of the content to be displayed on the main screen is equal to that of the content to be displayed on the secondary screen, including: calling a resolution compression algorithm to reduce the resolution of the content to be displayed on the main screen until the resolution of the content to be displayed on the main screen is equal to that of the content to be displayed on 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 refers to proportionally reducing the original image while keeping the aspect ratio of the image unchanged. The interpolation compression algorithm refers to using interpolation technology to insert new pixels between image pixels so that each original pixel is surrounded by more pixels to describe a more balanced transition.
[0087] Optionally, increasing the resolution of the content to be displayed on the secondary screen until the resolutions of the content to be displayed on the primary screen and the secondary screen are equal, including: determining an extended area based on the first resolution and the second resolution; and performing image expansion on the content to be displayed on the secondary screen based on the extended area until the resolutions of the content to be displayed on the primary screen and the secondary screen are equal. The extended area refers to an area not covered by the content to be displayed at the second resolution when the content to be displayed at the first resolution overlaps with the content to be displayed at the second resolution. See Figure 5a and Figure 5b , Figure 5a and Figure 5b A schematic diagram of an expansion area provided by an implementation of the present application is shown. Figure 5a and Figure 5b Taking the first resolution of 720*1280 and the second resolution of 1200*2800 as an example, a schematic diagram of the extended area is exemplified. Figure 5a and Figure 5b The gray area represents the area covered by the content to be displayed at the first resolution and the content to be displayed at the second resolution (i.e., the area covered by the content to be displayed on the main screen and the content to be displayed on the secondary screen), and the white area represents the area covered by the content to be displayed at the first resolution but not covered by the content to be displayed at the second resolution (i.e., the extended area). Figure 5aAs shown in FIG. 1 , a schematic diagram is shown of overlapping the content to be displayed at the second resolution with the upper left content of the content to be displayed at the first resolution. Figure 5b As shown, a schematic diagram of overlapping the content to be displayed at the second resolution with the upper right content of the content to be displayed at the first resolution is shown. It should be noted that in other implementations, the overlap can also be in other ways, which is not limited in the embodiments of the present application. It should be noted that when the image of the content to be displayed on the secondary screen is expanded based on the extended area, the values of each pixel in the extended area may be the same (such as the values of each pixel are 0, 0, 0; that is, the black image is filled in the extended area); the values of each pixel in the extended area may also be different, which is not limited.
[0088] It should be noted that, correspondingly, the relevant embodiments in which the first resolution is smaller than the second resolution can be referred to the aforementioned embodiments and will not be described in detail.
[0089] It should be noted that, in other embodiments, before step S402, the method further includes: determining whether the first refresh rate is equal to the second refresh rate, if the first refresh rate is equal to the second refresh rate, executing step S402; if the first refresh rate is not equal to the second refresh rate, adjusting the refresh rate of the content to be displayed on the main screen, and / or adjusting the refresh rate of the content to be displayed on the secondary screen, until the refresh rates of the content to be displayed on the main screen and the secondary screen are equal, and then executing step S402. Among them, the first refresh rate is the initial refresh rate of the content to be displayed on the main screen, and the second refresh rate is the initial refresh rate of the content to be displayed on the secondary screen. In this embodiment, the step of splicing the content to be displayed on the main screen and the secondary screen to obtain the first image can be performed when the refresh rates of the content to be displayed on the main screen and the secondary screen are equal, which is conducive to ensuring the synchronous display of the first display image of the main screen and the second display image of the secondary screen.
[0090] It should be noted that, 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, then step S402 is executed. It can be 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, they can be adjusted to be equal based on the aforementioned method before executing step S402. No further details are given. In this embodiment, the step of splicing the content to be displayed on the main screen and the sub-screen to obtain the first image can be performed when the resolution and refresh rate of the content to be displayed on the main screen and the sub-screen are equal, which is conducive to ensuring the synchronous display of the first display image of the main screen and the second display image of the sub-screen.
[0091] S402: splicing the contents to be displayed on the main screen and the sub-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.
[0092] S403: Split the second image based on the MIPI protocol to obtain a first display image and a second display image.
[0093] S404: Displaying a first display image on the main screen, and displaying a second display image on the sub-screen.
[0094] In an optional implementation, step S401 includes: when a resolution compression algorithm is called to reduce the resolution of the content to be displayed on the main screen, the resolution of the first display image is also reduced. 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 the form of a compressed package, the corresponding resolution during image compression and / or image decompression is also the reduced resolution, which will not be described in detail.
[0095] In another optional implementation, step S401 includes: when the image of the content to be displayed on the secondary screen is expanded based on the expansion area, the resolution of the second display image is also increased. At this time, the resolution of the secondary screen is lower than the resolution of the second display image. Then, when the secondary screen displays the second display image, it specifically includes: cropping the second display image based on the expansion area to obtain a cropped display image, and displaying the cropped display image on the secondary screen. It can be seen that through this implementation, the electronic device can crop the filled pixels.
[0096] It should be noted that if the second display image is transmitted in a compressed package, the corresponding resolution during image compression and / or image decompression is also the increased resolution, which will not be described in detail.
[0097] In an optional implementation, before the secondary screen displays the second display image, the method further includes: determining whether the storage space of the secondary screen reaches a preset space, and if not, increasing the storage space of the secondary screen to the preset space. Optionally, the preset space is related to the second display image of the secondary screen with increased resolution, that is, the preset space supports the storage of the second display image with increased resolution.
[0098] It should be noted that for other related descriptions of steps S402 to S404, please refer to Figure 2 The related embodiments are not described in detail.
[0099] It can be seen that in the embodiment of the present application, the step of splicing the content to be displayed on the main screen and the sub-screen to obtain the first image can be performed when the resolution and / or refresh rate of the content to be displayed on the main screen and the sub-screen are equal, which can effectively ensure that the data amount of the first display image and the second display image obtained after MIPI splitting is equal, which is conducive to ensuring the synchronous display of the first display image of the main screen and the second display image of the sub-screen.
[0100] See also Figure 6 , Figure 6 A schematic flow chart of another multi-screen display method is shown. Figure 6 The multi-screen display method and Figure 2 Compared with the multi-screen display method, Figure 6 The multi-screen display method also needs to determine the display mode of the electronic device, and adopt different display methods according to different display modes. Figure 6 As shown, the method includes but is not limited to S601-S611:
[0101] S601: Determine the display mode of the electronic device.
[0102] Among them, the electronic device may include three display modes: main screen display mode, secondary screen display mode, and main screen and secondary screen simultaneous display mode. Specifically, when the electronic device turns on the main screen display mode, the electronic device uses the main screen to display content; when the electronic device turns on the secondary screen display mode, the electronic device uses the secondary screen to display content; when the electronic device turns on the main screen and secondary screen simultaneous display mode, the electronic device uses the main screen and the secondary screen at the same time to display content.
[0103] In an optional implementation, determining the display mode turned on by the electronic device includes: determining whether the electronic device has turned on the simultaneous display mode of the main screen and the secondary screen, and if so, determining that the electronic device has turned on the simultaneous display mode of the main screen and the secondary screen; if not, determining whether the electronic device has turned on the secondary screen display mode, and if so, determining that the electronic device has turned on the secondary screen display mode, and if not, determining that the electronic device has turned on the main screen display mode. It should be noted that the order of judging the three modes is not limited. For example, it is also possible to first determine whether the electronic device has turned on the secondary screen display mode, then determine whether the electronic device has turned on the simultaneous display mode of the main screen and the secondary screen, and finally determine whether the main screen display mode is turned on, and so on.
[0104] S602: If the electronic device turns on the simultaneous display mode of the main screen and the secondary screen, execute steps S603 to S605; if the electronic device turns on the secondary screen display mode, execute step S606, or execute steps S607 to S608; if the electronic device turns on the main screen display mode, execute step S609 or execute steps S610 to S611.
[0105] It should be noted that when the electronic device turns on the secondary screen display mode, whether to specifically execute step S606 or step S607 and step S608 can be determined based on the resolution and / or refresh rate of the content to be displayed on the secondary screen. Alternatively, it can be said that when the electronic device turns on the secondary screen display mode, whether to specifically execute the channel mode or the split mode of the secondary screen can be determined based on the resolution and / or refresh rate of the content to be displayed on the secondary screen.
[0106] It should be noted that when the electronic device turns on the main screen display mode, whether to specifically execute step S609 or step S610 and step S611 can be determined based on the resolution and / or refresh rate of the content to be displayed on the main screen. Alternatively, it can be said that when the electronic device turns on the main screen display mode, whether to specifically execute the channel mode or the split mode of the main screen can be determined based on the resolution and / or refresh rate of the content to be displayed on the main screen.
[0107] S603: splicing the contents to be displayed on the main screen and the sub-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.
[0108] S604: Split the second image based on the MIPI protocol to obtain a first display image and a second display image.
[0109] S605: Displaying a first display image on the main screen, and displaying a second display image on the sub-screen.
[0110] It should be noted that for the relevant description of steps S603 to S605, please refer to Figure 2 The related embodiments are not described in detail.
[0111] Optionally, when executing step S603 to step S605, the DSI interface can be expanded to two MIPI interfaces, one MIPI interface is used to transmit the first display image, and the other MIPI interface is used to transmit the second display image. For example, the DSI interface corresponds to four Lanes, and when the DSI interface is expanded to two MIPI interfaces, two Lanes corresponding to one MIPI interface are used to transmit the first display image, and two Lanes corresponding to the other MIPI interface are used to transmit the second display image.
[0112] S606: performing image processing on the content to be displayed on the secondary screen through a configured set of image processing hardware to obtain a second display image, and displaying the second display image on the secondary screen.
[0113] Optionally, when executing step S606, the DSI interface is not expanded, and the multiple Lanes corresponding to the DSI interface are all used to transmit the second display image. For example, when the DSI interface corresponds to 4 Lanes, the 4 Lanes are all used to transmit the second display image. It can be seen that in this embodiment, when the channel mode is adopted, the transmission rate of the second display image can be improved, which is conducive to transmitting the second display image with a larger resolution and / or a higher refresh rate.
[0114] S607: splicing two consecutive frames of images corresponding to the content to be displayed on 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.
[0115] Optionally, two consecutive image frames include the current content to be displayed on the secondary screen and its previous frame content; or, two consecutive image frames include the current content to be displayed on the secondary screen and its next frame content.
[0116] It should be noted that the relevant description on the stitching process and the image processing can be found in step S201 and will not be repeated here.
[0117] S608: Split the fourth image based on the MIPI protocol to obtain a second display image, and display the second display image on the secondary screen.
[0118] It should be noted that when the fourth image is split based on the MIPI protocol, a second display image and a third display image can be obtained. The second display image is associated with the current content to be displayed on the secondary screen, and the third display image is associated with the previous frame display content or the next frame display content of the secondary screen.
[0119] Optionally, when executing step S607 to step S608, the DSI interface can be expanded to two MIPI interfaces, one MIPI interface is used to transmit the second display image, and the other MIPI interface is used to transmit the third display image. For example, the DSI interface corresponds to four Lanes, and when the DSI interface is expanded to two MIPI interfaces, two Lanes corresponding to one MIPI interface are used to transmit the second display image, and two Lanes corresponding to the other MIPI interface are used to transmit the third display image.
[0120] 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 at different times, without limitation.
[0121] S609: performing image processing on the content to be displayed on the main screen by using a set of configured image processing hardware to obtain a first display image, and displaying the first display image on the main screen.
[0122] It should be noted that the relevant description about the image processing can be found in step S201 and will not be repeated here.
[0123] Optionally, when executing step S609, the DSI interface is not expanded, and the multiple 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, the 4 Lanes are all used to transmit the first display image. It can be seen that in this embodiment, when the channel mode is adopted, the transmission rate of the first display image can be improved, which is conducive to transmitting the first display image with a larger resolution and / or a higher refresh rate.
[0124] S610: splicing two consecutive frames of images corresponding to the content to be displayed on 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.
[0125] Optionally, two consecutive image frames include the current content to be displayed on the main screen and its previous frame content; or, two consecutive image frames include the current content to be displayed on the main screen and its next frame content.
[0126] It should be noted that the relevant description on the stitching process and the image processing can be found in step S201 and will not be repeated here.
[0127] S611: 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.
[0128] It should be noted that when the sixth image is split based on the MIPI protocol, a first display image and a fourth display image can be obtained. The first display image is associated with the current content to be displayed on the main screen, and the fourth display image is associated with the previous frame display content or the next frame display content of the main screen.
[0129] Optionally, when executing step S610 to step S611, the DSI interface can be expanded to two MIPI interfaces, one MIPI interface is used to transmit the first display image, and the other MIPI interface is used to transmit the fourth display image. For example, the DSI interface corresponds to four Lanes, and when the DSI interface is expanded to two MIPI interfaces, two Lanes corresponding to one MIPI interface are used to transmit the first display image, and two Lanes corresponding to the other MIPI interface are used to transmit the fourth display image.
[0130] 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 at different times, without limitation.
[0131] In an optional implementation, the electronic device can automatically select the display mode or the user can manually adjust the display mode. Figures 7a to 7c The following is an example of the application scenarios of various display modes of electronic devices. Figure 7a As shown, user 1 can use the electronic device to take a photo for user 2. When the electronic device turns on the main screen display mode, the photo preview interface displayed on the main screen can be viewed by user 1. Figure 7b As shown, user 2 can use the electronic device to take a selfie. When the electronic device turns on the secondary screen display mode, the photo preview interface displayed on the secondary screen can be viewed by user 2. Figure 7c As shown, user 1 can use the electronic device to take a photo for user 2. When the electronic device turns on the simultaneous display mode of the main screen and the sub-screen, the photo preview interface displayed on the main screen is for user 1 to view, and the photo preview interface displayed on the sub-screen is for user 2 to view.
[0132] In some embodiments of the present application, when the display mode of the electronic device is different, the corresponding hardware path is different. Figure 8 , Figure 8 A schematic diagram of the structure of an electronic device is shown. Figure 8 Taking the execution of steps S607 and S608 in the secondary screen display mode as an example, and the execution of step S609 in the primary screen display mode as an example, the hardware path of the electronic device is exemplarily described, such as Figure 8 As shown, the hardware path can be controlled by switch 1 and switch 2. Among them, switch 1 includes two modes: channel mode and split mode; when switch 1 is in channel mode, the image transmitted to switch 1 can be directly transmitted to the next node (i.e. Figure 8 When switch 1 is in split mode, the image transmitted to switch 1 can be split into multiple display images and transmitted to the next node (i.e. Figure 8 The secondary screen and switch 2 are shown in FIG. 1 ). Switch 2 includes two modes: an on mode and an off mode. When switch 2 is in the on mode, the image transmitted to switch 2 can be transmitted to the next node (i.e. Figure 8 When switch 2 is in disconnect mode, the image transmitted to switch 2 cannot be transmitted to the next node (i.e. Figure 8The main screen shown). The corresponding hardware path is explained below in conjunction with the display mode turned on by the electronic device. Optionally, when the electronic device turns on the main screen display mode, switch 1 is in channel mode, and switch 2 is in on mode, and the image can be directly transmitted to the main screen via switch 1 and switch 2 (such as the first display image can be transmitted to the main screen via switch 1 and switch 2). Optionally, when the electronic device turns on the secondary screen display mode, switch 1 is in split mode, and switch 2 is in disconnect mode. When the image is transmitted to switch 1, the image can be split into two parts (such as the fourth image can be split into the second display image and the third display image), one part of which can be directly transmitted to the secondary screen, and the other part cannot be transmitted through switch 2, such as the second display image can be transmitted to the secondary screen, and the third display image cannot be transmitted (that is, the third display image is not transmitted to the secondary screen at the same time as the second display image). Optionally, when the electronic device turns on the simultaneous display mode of the main screen and the sub-screen, switch 1 is in split mode and switch 2 is in on mode. When the image is transmitted to switch 1, the image can be split into two parts (such as the second image can be split into a first display image and a second display image), one part of which can be directly transmitted to the sub-screen, and the other part can be transmitted to the main screen through switch 2 (such as the second display image can be transmitted to the sub-screen, and the first display image can be transmitted to the main screen through switch 2).
[0133] It can be seen that in this embodiment, the electronic device with multiple display screens has multiple display modes, and can adaptively select the corresponding display method according to the turned-on display mode, which is conducive to the electronic device configured with a set of image processing hardware to realize content display in multiple display modes. The electronic device has greater flexibility, wider application scenarios, and better user experience.
[0134] Fig. 9 The schematic diagram of the structure of the electronic device 100 is shown. The electronic device 100 may be the electronic device in the above embodiment, without limitation.
[0135] The following is a detailed description of the embodiment using the electronic device 100 as an example. It should be understood that: Fig. 9 The electronic device 100 shown is only an example, and the electronic device 100 may have more Fig. 9 More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Fig. 9 The various components shown in the EMBODIMENTS 2000 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.
[0136] See also Fig. 9 , Fig. 9 A schematic structural diagram of an electronic device 100 provided in an embodiment of the present application is shown.
[0137] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging 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, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0138] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0139] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0140] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0141] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0142] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuits sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0143] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0144] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0145] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0146] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0147] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0148] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can 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, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0149] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0150] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0151] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0152] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0153] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0154] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0155] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0156] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and may be set in the same device as the mobile communication module 150 or other functional modules.
[0157] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments of the present application, the electronic device can obtain the current location information through the wireless communication module 160.
[0158] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0159] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0160] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0161] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0162] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0163] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0164] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0165] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal 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 other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0166] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0167] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0168] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. NPU can realize applications such as intelligent cognition of electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0169] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0170] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0171] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0172] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0173] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0174] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0175] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0176] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0177] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed. In some other embodiments of the present application, the pressure sensor 180A may also be disposed on the frame of the electronic device 100. The electronic device 100 may calculate the touch point where the user and the electronic device 100 are in contact through the pressure detected by the pressure sensor 180A.
[0178] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes. In some embodiments of the present application, the electronic device 100 can determine whether the electronic device is flipped back and forth by the user, whether it is in a vertical posture, etc. through the gyro sensor 180B.
[0179] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0180] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0181] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device, and is applied to applications such as horizontal and vertical screen switching, pedometers, etc. In some embodiments of the present application, the electronic device 100 can determine whether the electronic device is flipped forward and backward by the user, whether it is in a vertical posture, etc. through the acceleration sensor 180E.
[0182] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0183] 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 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0184] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0185] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0186] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0187] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0188] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0189] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0190] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0191] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0192] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, 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.
[0193] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0194] Fig.10 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0195] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0196] The application layer can include a series of application packages.
[0197] like Fig.10 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, file browser, etc.
[0198] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0199] like Fig.10 As shown, 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.
[0200] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. In the embodiment of the present application, the window manager can obtain the sizes of the two display screens provided by the electronic device 100 and uniformly manage the contents displayed on the two display screens.
[0201] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0202] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0203] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0204] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0205] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0206] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0207] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0208] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0209] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0210] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0211] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0212] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0213] A 2D graphics engine is a drawing engine for 2D drawings.
[0214] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0215] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.
[0216] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera 193.
[0217] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A multi-screen display method, characterized in that: Applied in an electronic device, the electronic device includes a main screen and a sub-screen, the electronic device also includes a hardware path, the hardware path is controlled by a switch 1 and a switch 2, when the display mode turned on by the electronic device is different, the corresponding hardware path is different, when the electronic device turns on the main screen and the sub-screen simultaneous display mode, the switch 1 includes a split mode, the switch 2 includes a connected mode, and the method includes: Splicing the contents to be displayed on the main screen and the secondary 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; The switch 1 is in the split mode, and the second image is split based on the mobile industry processor interface MIPI protocol to obtain a first display image and a second display image; transmitting the first display image to the switch 2, and transmitting the second display image to the secondary screen; When the switch 2 is in the on mode, the first display image transmitted to the switch 2 is transmitted to the main screen; The first display image is displayed on the main screen, and the second display image is displayed on the sub-screen.
2. The method according to claim 1, characterized in that The method further comprises: Determine whether the first resolution and the second resolution are equal; wherein the first resolution refers to the initial resolution of the content to be displayed on the main screen; and the second resolution refers to the initial resolution of the content to be displayed on the secondary screen; If yes, the step of performing splicing processing on the content to be displayed on the main screen and the sub-screen to obtain a first image is performed; If not, adjust the resolution of the content to be displayed on the main screen and / or the secondary screen until the resolution of the content to be displayed on the main screen is equal to that of the secondary screen, and execute the step of splicing the content to be displayed on the main screen and the secondary screen to obtain the first image.
3. The method according to claim 2, characterized in that The adjusting the resolution of the content to be displayed on the main screen and / or the secondary screen until the resolution of the content to be displayed on the main screen is equal to the resolution of the content to be displayed on the secondary screen, comprises: If the first resolution is greater than the second resolution, reducing the resolution of the content to be displayed on the primary screen, and / or increasing the resolution of the content to be displayed on the secondary screen, until the resolutions of the content to be displayed on the primary screen and the secondary screen are equal; 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 secondary screen is reduced until the resolutions of the content to be displayed on the main screen and the secondary screen are equal.
4. The method according to claim 3, characterized in that The step of reducing the resolution of the content to be displayed on the main screen until the resolution of the content to be displayed on the main screen is equal to the resolution of the content to be displayed on the secondary screen, comprises: A resolution compression algorithm is called to reduce the resolution of the content to be displayed on the main screen until the resolution of the content to be displayed on the main screen is equal to the resolution of the content to be displayed on the secondary screen; the resolution compression algorithm includes a sub-sampling compression algorithm and / or an interpolation compression algorithm.
5. The method according to claim 3, characterized in that The step of increasing the resolution of the content to be displayed on the secondary screen until the resolution of the content to be displayed on the main screen is equal to the resolution of the content to be displayed on the secondary screen, comprises: determining an extended area based on the first resolution and the second resolution; the extended area refers to an area not covered by the content to be displayed at the second resolution when the content to be displayed at the first resolution overlaps with the content to be displayed at the second resolution; The image of the content to be displayed on the secondary screen is expanded based on the expansion area until the resolution of the content to be displayed on the main screen and the secondary screen is equal.
6. The method according to claim 5, characterized in that The displaying the second display image on the secondary screen includes: Based on the extended area, cropping the second display image to obtain a cropped display image; The cropped display image is displayed on the secondary screen.
7. The method according to any one of claims 2 to 6, characterized in that: The method further comprises: Determining whether the electronic device has turned on a simultaneous display mode of the main screen and the secondary screen; If so, a step of performing splicing processing on the contents to be displayed on the main screen and the sub-screen according to the resolutions of the contents to be displayed on the main screen and the sub-screen is executed to obtain a first image.
8. An electronic device comprising 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 includes a main screen and a secondary screen, and it is characterized in that when the one or more processors execute the one or more programs, the electronic device implements the method as described in any one of claims 1 to 7.
9. A computer program product, characterized in that When the computer program product is executed on an electronic device, the electronic device is enabled to execute the method according to 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, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
