A screen projection method, a mobile terminal, and a computer storage medium
By re-dividing virtual pixels at the receiving end according to the screen parameters of the casting end, the display abnormality problem when casting from a mobile terminal to a computer or TV is solved, and a better casting effect is achieved.
Patent Information
- Application Number
- CN202110289958.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-18
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2041-03-18
AI Technical Summary
In existing technologies, when a mobile terminal projects its screen onto a computer or TV, the inconsistent screen size ratios can cause stretching or background filling, leading to abnormal display and affecting the projection effect.
By acquiring the screen parameters of the projection end, the physical pixels of the receiving end's screen are reclassified into virtual pixels to make them similar to the pixel distribution of the projection end, and the projection screen is displayed using virtual pixels.
It improves the screen projection display effect, avoids stretching or display abnormalities, and enhances the quality of the projected image.
Smart Images

Figure CN112965679B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and in particular to a screen projection method, a mobile terminal, and a computer storage medium. Background Technology
[0002] Many third-party apps downloaded from app stores, after being installed on mobile devices, encounter compatibility issues or screen size mismatches when cast to displays such as computers or TVs. Current common solutions to this problem involve proportional stretching or pure background filling to adapt to larger screens, leading to abnormal display or poor casting quality. Existing technologies have a problem: stretched or filled backgrounds result in distorted or suboptimal display quality, negatively impacting the viewing experience. Summary of the Invention
[0003] This application provides a screen projection method, a mobile terminal, and a computer storage medium to optimize the screen projection display effect and avoid stretching or display abnormalities.
[0004] The first aspect of this application provides a screen projection method applied at a receiving end, the method comprising:
[0005] Obtain the screen parameters of the projection device;
[0006] The virtual pixels are formed by dividing the physical pixels of the screen of the receiving end according to the screen parameters of the projection end, wherein the virtual pixels include at least one of the physical pixels of the screen.
[0007] The projection screen of the projection terminal is displayed based on the virtual pixels.
[0008] Optionally, the step of dividing the physical pixels of the receiving end's screen into virtual pixels based on the screen parameters of the projection end includes:
[0009] Obtain the physical pixel arrangement parameters of the screen of the receiving end, wherein the arrangement parameters include the number of physical pixel rows and the number of physical pixel columns of the screen;
[0010] Based on the screen parameters of the projection terminal and the arrangement parameters, at least one physical pixel in the same division region among the physical pixels of the screen is determined;
[0011] At least one physical pixel within the same partitioned region is defined as a virtual pixel.
[0012] Optionally, the screen parameter is a pixel ratio, which is the row-to-column ratio of pixels.
[0013] Optionally, the pixel ratio of the virtual pixels at the receiving end is the same as or similar to the pixel ratio at the projection end.
[0014] Optionally, the step of determining at least one physical pixel in the same partitioned region among the physical pixels of the screen based on the screen parameters of the projection terminal and the arrangement parameters includes:
[0015] Based on the row and column ratio of the pixels at the projection end, the number of physical pixel rows and columns at the receiving end are evenly divided to form several virtual rows and several virtual columns.
[0016] The screen of the receiving end is divided into several virtual regions by several virtual rows and several virtual columns, wherein each virtual region includes at least one physical pixel.
[0017] Optionally, the step of displaying the projection screen of the projection terminal according to the virtual pixels includes:
[0018] Receive the projected image transmitted by the projection terminal based on the virtual pixels;
[0019] The virtual pixels display the corresponding pixels in the projected image.
[0020] Optionally, before the step of displaying the projection screen of the projection terminal according to the virtual pixels, the method further includes:
[0021] Establish the correspondence between the screen pixels of the projection terminal and the virtual screen pixels of the receiving terminal.
[0022] Optionally, the step of displaying the corresponding pixel in the projected image through the virtual pixel includes:
[0023] The first virtual pixel of the receiving end is determined according to the correspondence relationship;
[0024] Determine the first screen pixel in the projected image that corresponds to the first screen pixel;
[0025] The first image pixels are displayed through the first virtual pixel.
[0026] A second aspect of this application provides a mobile terminal, the mobile terminal including a processor and a memory;
[0027] The memory is used to store executable programs;
[0028] The processor is used to execute the executable program to implement the screen projection method described above.
[0029] A third aspect of this application provides a computer storage medium storing an executable program, which, when executed, implements the screen projection method described above.
[0030] Implementing the embodiments of this application has the following beneficial effects:
[0031] The screen projection method, mobile terminal, and computer storage medium in this application embodiment, during the screen projection process from the projection end to the receiving end, especially when the resolution of the projection end's display device differs from that of the receiving end's display device, re-divides the screen pixels of the projection end according to the projection end's screen parameters. One or more physical pixels of the receiving end's screen are combined into a single virtual pixel. This method ensures that the divided virtual pixel distribution is the same as or similar to that of the projection end's screen pixels. Therefore, after receiving the projected image from the projection end, the receiving end can display the projected image using virtual pixels with the same or similar pixel distribution as the projection end. This method optimizes the screen projection display effect and avoids stretching or display abnormalities. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 A schematic diagram of the hardware structure of a mobile terminal provided in an embodiment of this application;
[0034] Figure 2 This is a schematic diagram of the structure of a wireless communication system for a mobile terminal provided in an embodiment of this application;
[0035] Figure 3 A flowchart illustrating a screen mirroring method provided in this application embodiment;
[0036] Figure 4 A schematic diagram of virtual image pixels provided in an embodiment of this application;
[0037] Figure 5 This is a schematic diagram of the structure of a mobile terminal provided in an embodiment of this application. Detailed Implementation
[0038] It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of the application. In the following description, suffixes such as “module,” “part,” or “unit” used to denote elements are used solely for illustrative purposes and have no specific meaning in themselves. Therefore, “module,” “part,” or “unit” can be used interchangeably.
[0039] Terminals can be implemented in various forms. For example, the terminals described in this application may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers. The following description will use mobile terminals as examples, and those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to the embodiments of this application can also be applied to fixed-type terminals.
[0040] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of this application. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0041] The following is combined Figure 1 A detailed introduction to each component of the mobile terminal:
[0042] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution).
[0043] WiFi is a short-range wireless transmission technology. Mobile terminals, through the WiFi module 102, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.
[0044] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0045] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0046] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0047] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0048] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.
[0049] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal. The specific implementation is not limited here.
[0050] Interface unit 108 serves as an interface through which at least one external device can connect to mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.
[0051] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0052] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.
[0053] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0054] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.
[0055] To facilitate understanding of the embodiments of this application, the communication network system on which the mobile terminal of this application is based is described below.
[0056] Please see Figure 2 , Figure 2 This application provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and the operator's IP services 204, which are connected in sequence.
[0057] Specifically, UE201 can be the aforementioned terminal 100, which will not be elaborated here.
[0058] E-UTRAN202 includes eNodeB2021 and other eNodeB2022s. Among them, eNodeB2021 can connect to other eNodeB2022s via backhaul (e.g., X2 interface), and eNodeB2021 connects to EPC203. eNodeB2021 can provide UE201 with access to EPC203.
[0059] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gateway) 2034, PGW (Packet Data Network Gateway) 2035, and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 provides registers to manage functions such as the Home Location Register (not shown in the diagram) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).
[0060] IP services 204 may include the Internet, intranet, IMS (IP Multimedia Subsystem), or other IP services.
[0061] Although the above description uses the LTE system as an example, those skilled in the art should understand that this application is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.
[0062] Based on the above-described mobile terminal hardware structure and communication network system, various embodiments of the method of this application are proposed.
[0063] Figure 3 This document provides a flowchart illustrating one implementation of a screen mirroring method according to an embodiment of this application. In this embodiment, the screen mirroring method can be applied to… Figure 1 or Figure 2 As can be understood from the mobile terminal shown, this screen mirroring method can also be applied to electronic devices such as tablets and e-readers. The screen mirroring method includes the following steps:
[0064] Step S310: Obtain the screen parameters of the projection device;
[0065] Step S320: The screen physical pixels of the receiving end are divided into virtual pixels according to the screen parameters of the projection end, wherein the virtual pixels include at least one of the screen physical pixels.
[0066] Step S330: Display the projection screen of the projection terminal according to the virtual pixels.
[0067] Through the above implementation method, during the screen projection process from the projection end to the receiving end, especially when the resolution of the projection end's display device differs from that of the receiving end's display device, the receiving end re-divides its screen pixels according to the projection end's screen parameters. One or more physical pixels of the receiving end's screen are then combined into a single virtual pixel. This method ensures that the distribution of the divided virtual pixels is the same as or similar to that of the projection end's screen pixels. Therefore, after receiving the projected image from the projection end, the receiving end can display the projected image using virtual pixels with the same or similar pixel distribution as the projection end. This method optimizes the projection display effect and avoids stretching or display anomalies.
[0068] Specifically, in step S310, the screen parameters of the projection terminal are obtained. A projection data channel is established between the projection terminal and the receiving terminal. The projection terminal sends projection data to the receiving terminal through the data channel, so that the receiving terminal can convert the received projection data into the corresponding projection screen and display it. In this embodiment, the projection terminal is a mobile terminal, such as a mobile phone or tablet; the receiving terminal is a television or computer. The projection data is the screen corresponding to the display interface of the projection terminal. In this embodiment, the screen parameters are pixel ratios, which are the row and column ratios of pixels. For example, the pixel ratio is 1280x720.
[0069] In the actual implementation process, after the screen projection end and the receiving end establish a connection, the screen projection end will read its screen parameters and send the screen parameters to the receiving end so that the receiving end can obtain the screen parameters of the screen projection end.
[0070] In step S320, as Figure 4As shown, virtual pixels are formed by dividing the physical pixels of the screen at the receiving end according to the screen parameters of the projection end. Each virtual pixel includes at least one physical pixel. Specifically, a physical pixel refers to the actual pixels that make up the screen; for example, a 1280x720 resolution screen is composed of 1280x720 physical pixels. A virtual pixel refers to a screen area consisting of multiple physical pixels, formed by logically dividing the screen. Screen parameters specify the arrangement parameters of the screen pixels. In this embodiment, the screen parameter is a pixel ratio, which is the row-to-column ratio of the pixels. In an alternative embodiment, the pixel ratio of the virtual pixels at the receiving end is the same as or similar to the pixel ratio of the projection end. During the process of dividing the screen pixels at the receiving end into virtual pixels, for the sake of convenience or feasibility, the pixel arrangement of the projection end's screen is not necessarily strictly followed; a similar distribution is sufficient.
[0071] Specifically, step S320 may include the following steps:
[0072] Step S3201: Obtain the physical pixel arrangement parameters of the screen of the receiving end, wherein the arrangement parameters include the number of physical pixel rows and the number of physical pixel columns of the screen;
[0073] Step S3202: Determine at least one physical pixel in the same division region among the physical pixels of the screen based on the screen parameters of the projection terminal and the arrangement parameters;
[0074] Step S3203: Determine at least one physical pixel in the same partitioned region as a virtual pixel.
[0075] Specifically, the number of physical pixel rows of a screen refers to the number of rows of pixels that make up the screen, for example, 100 rows. The number of physical pixel columns of a screen refers to the number of columns of pixels that make up the screen, for example, 100 columns. In other words, the physical pixels of this screen are composed of 100*100 pixels. These physical pixels are divided into several pixel groups to form virtual pixels.
[0076] Step S3202 may include the following steps:
[0077] Step S32021: Based on the row and column ratio of the pixels at the projection end, the number of physical pixel rows and columns at the receiving end are evenly divided to form a number of virtual rows and a number of virtual columns.
[0078] Step S32022: The screen of the receiving end is divided into several virtual regions by several virtual rows and several virtual columns, wherein each virtual region includes at least one physical pixel.
[0079] Specifically, the purpose of this application is to divide the screen pixels of the receiving end according to the screen pixel configuration of the projection end to form virtual pixels similar to those of the projection end. Therefore, after obtaining the pixel row-to-column ratio of the projection end's screen pixels, the rows and columns of the physical pixels of the receiving end's screen are evenly divided into corresponding fractions based on the row-to-column ratio. This division of rows and columns allows the receiving end's screen to be divided into multiple virtual regions. For example, if the pixel row-to-column ratio of the projection end is 51*32, then the number of physical pixel rows of the receiving end's screen is divided into 51 rows, and the number of physical pixel columns is divided into 49 columns. Due to feasibility requirements, the physical pixel rows of the receiving end are divided into 50 virtual rows, each virtual row comprising 2 physical pixel rows; the physical pixel columns of the receiving end are divided into 32 virtual columns, each virtual column comprising 3 physical pixel columns. The remaining undivided physical pixel columns do not constitute part of the virtual pixels. Each virtual region formed by each virtual row and each virtual column after the division comprises 6 physical pixels.
[0080] In step S3203, taking the aforementioned example again, the original receiving end screen is divided into 50 virtual rows and 32 virtual columns, forming a screen composed of 50*32 virtual pixels.
[0081] Through the above implementation method, the virtual pixel composition of the divided screen is very similar to the screen pixel composition of the projection end. This makes the screen ratio used to display the projection image on the projection end almost the same as the projection image, which can effectively avoid image stretching or compression and improve the quality of the projection image.
[0082] Step S330: Display the projection screen of the projection terminal according to the virtual pixels.
[0083] Specifically, step S330 may include the following steps:
[0084] Step S3301: Receive the projection screen transmitted by the projection terminal based on the virtual pixels;
[0085] Step S3302: Display the corresponding screen pixels in the projected image using the virtual pixels.
[0086] In step S3301, the projection terminal sends the corresponding pixel content to the receiving terminal according to the distribution of virtual pixels. Step S3302 may include the following steps:
[0087] The first virtual pixel of the receiving end is determined according to the correspondence relationship;
[0088] Determine the first screen pixel in the projected image that corresponds to the first screen pixel;
[0089] The first image pixels are displayed through the first virtual pixel.
[0090] Specifically, in this embodiment, before sending the projected image to the receiving end, a correspondence is established between the screen pixels of the projecting end and the screen virtual pixels of the receiving end based on the divided virtual pixels. For example, the first physical pixel in the upper left corner of the projecting end's screen pixels corresponds to the first virtual pixel in the upper left corner of the receiving end's screen, which is composed of virtual pixels. Using the aforementioned example, the first physical pixel in the upper left corner of the projecting end's screen pixels corresponds to six physical pixels in the upper left corner area of the receiving end's screen (i.e., the six physical pixels in the first two rows and first three columns in the upper left corner). The projected image is a picture composed of the pixel values of each pixel on the projecting end's screen. Therefore, each pixel of the projected image can be mapped back to one pixel on the projecting end's screen, and then the corresponding virtual pixel can be used to further display the corresponding image pixel through the virtual pixel, thereby realizing the display of the projected image through the display area composed of virtual pixels.
[0091] The above screen mirroring method, during the screen mirroring process from the mirroring end to the receiving end, especially when the resolution of the mirroring end's display device differs from that of the receiving end's display device, re-divides the screen pixels of the mirroring end according to the mirroring end's screen parameters. One or more physical pixels of the receiving end's screen are combined into a single virtual pixel. This method ensures that the distribution of the virtual pixels after division is the same as or similar to that of the mirroring end's screen pixels. Therefore, after receiving the mirrored image from the mirroring end, the receiving end can display the mirrored image using virtual pixels with the same or similar pixel distribution as the mirroring end's screen. This method maximizes the screen mirroring display effect and avoids stretching or display anomalies.
[0092] Figure 5 This is a schematic diagram of the structure of a mobile terminal 100 provided in an embodiment of this application. The mobile terminal 100 includes: a touch panel 1071; a processor 110; and a memory 109 connected to the processor 110. The memory 109 contains control instructions. When the processor 110 reads the control instructions, it controls the mobile terminal 100 to perform the following steps:
[0093] Obtain the screen parameters of the projection device;
[0094] The virtual pixels are formed by dividing the physical pixels of the screen of the receiving end according to the screen parameters of the projection end, wherein the virtual pixels include at least one of the physical pixels of the screen.
[0095] The projection screen of the projection terminal is displayed based on the virtual pixels.
[0096] Optionally, the step of dividing the physical pixels of the receiving end's screen into virtual pixels based on the screen parameters of the projection end includes:
[0097] Obtain the physical pixel arrangement parameters of the screen of the receiving end, wherein the arrangement parameters include the number of physical pixel rows and the number of physical pixel columns of the screen;
[0098] Based on the screen parameters of the projection terminal and the arrangement parameters, at least one physical pixel in the same division region among the physical pixels of the screen is determined;
[0099] At least one physical pixel within the same partitioned region is defined as a virtual pixel.
[0100] Optionally, the screen parameter is a pixel ratio, which is the row-to-column ratio of pixels.
[0101] Optionally, the pixel ratio of the virtual pixels at the receiving end is the same as or similar to the pixel ratio at the projection end.
[0102] Optionally, the step of determining at least one physical pixel in the same partitioned region among the physical pixels of the screen based on the screen parameters of the projection terminal and the arrangement parameters includes:
[0103] Based on the row and column ratio of the pixels at the projection end, the number of physical pixel rows and columns at the receiving end are evenly divided to form several virtual rows and several virtual columns.
[0104] The screen of the receiving end is divided into several virtual regions by several virtual rows and several virtual columns, wherein each virtual region includes at least one physical pixel.
[0105] Optionally, the step of displaying the projection screen of the projection terminal according to the virtual pixels includes:
[0106] Receive the projected image transmitted by the projection terminal based on the virtual pixels;
[0107] The virtual pixels display the corresponding pixels in the projected image.
[0108] Optionally, before the step of displaying the projection screen of the projection terminal according to the virtual pixels, the method further includes:
[0109] Establish the correspondence between the screen pixels of the projection terminal and the virtual screen pixels of the receiving terminal.
[0110] Optionally, the step of displaying the corresponding pixel in the projected image through the virtual pixel includes:
[0111] The first virtual pixel of the receiving end is determined according to the correspondence relationship;
[0112] Determine the first screen pixel in the projected image that corresponds to the first screen pixel;
[0113] The first image pixels are displayed through the first virtual pixel.
[0114] In this embodiment, when a mobile device projects its screen from a projection end to a receiving end, especially when the resolutions of the projection end's display device and the receiving end's display device differ, the receiving end re-divides its screen pixels according to the projection end's screen parameters. One or more physical pixels of the receiving end's screen are combined into a single virtual pixel. This method ensures that the distribution of the divided virtual pixels is the same as or similar to the pixel distribution of the projection end's screen. Therefore, after receiving the projected image from the projection end, the receiving end can display the projected image using virtual pixels with the same or similar pixel distribution. This method optimizes the projection display effect and avoids stretching or display anomalies.
[0115] This application embodiment also provides a computer storage medium storing an executable program, which, when executed, performs the following steps:
[0116] Obtain the screen parameters of the projection device;
[0117] The virtual pixels are formed by dividing the physical pixels of the screen of the receiving end according to the screen parameters of the projection end, wherein the virtual pixels include at least one of the physical pixels of the screen.
[0118] The projection screen of the projection terminal is displayed based on the virtual pixels.
[0119] Optionally, the step of dividing the physical pixels of the receiving end's screen into virtual pixels based on the screen parameters of the projection end includes:
[0120] Obtain the physical pixel arrangement parameters of the screen of the receiving end, wherein the arrangement parameters include the number of physical pixel rows and the number of physical pixel columns of the screen;
[0121] Based on the screen parameters of the projection terminal and the arrangement parameters, at least one physical pixel in the same division region among the physical pixels of the screen is determined;
[0122] At least one physical pixel within the same partitioned region is defined as a virtual pixel.
[0123] Optionally, the screen parameter is a pixel ratio, which is the row-to-column ratio of pixels.
[0124] Optionally, the pixel ratio of the virtual pixels at the receiving end is the same as or similar to the pixel ratio at the projection end.
[0125] Optionally, the step of determining at least one physical pixel in the same partitioned region among the physical pixels of the screen based on the screen parameters of the projection terminal and the arrangement parameters includes:
[0126] Based on the row and column ratio of the pixels at the projection end, the number of physical pixel rows and columns at the receiving end are evenly divided to form several virtual rows and several virtual columns.
[0127] The screen of the receiving end is divided into several virtual regions by several virtual rows and several virtual columns, wherein each virtual region includes at least one physical pixel.
[0128] Optionally, the step of displaying the projection screen of the projection terminal according to the virtual pixels includes:
[0129] Receive the projected image transmitted by the projection terminal based on the virtual pixels;
[0130] The virtual pixels display the corresponding pixels in the projected image.
[0131] Optionally, before the step of displaying the projection screen of the projection terminal according to the virtual pixels, the method further includes:
[0132] Establish the correspondence between the screen pixels of the projection terminal and the virtual screen pixels of the receiving terminal.
[0133] Optionally, the step of displaying the corresponding pixel in the projected image through the virtual pixel includes:
[0134] The first virtual pixel of the receiving end is determined according to the correspondence relationship;
[0135] Determine the first screen pixel in the projected image that corresponds to the first screen pixel;
[0136] The first image pixels are displayed through the first virtual pixel.
[0137] In this embodiment of the computer storage medium, during the screen projection process from the projection end to the receiving end, especially when the resolution of the projection end's display device differs from that of the receiving end's display device, the receiving end re-divides its screen pixels according to the projection end's screen parameters. One or more physical pixels of the receiving end's screen are combined into a single virtual pixel. This method ensures that the divided virtual pixel distribution is the same as or similar to that of the projection end's screen pixels. Therefore, after receiving the projected image from the projection end, the receiving end can display the projected image using virtual pixels with the same or similar pixel distribution as the projection end. This method optimizes the projection display effect and avoids stretching or display abnormalities.
[0138] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0139] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0140] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0141] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims. All of these forms are within the protection scope of this application.
Claims
1. A screen projection method, characterized in that, Applied to the receiving end, the method includes: Obtain the screen parameters of the projection device; The virtual pixels are formed by dividing the physical pixels of the screen of the receiving end according to the screen parameters of the projection end, wherein the virtual pixels include at least one of the physical pixels of the screen. The projection screen of the projection terminal is displayed according to the virtual pixels; The step of dividing the physical pixels of the receiving end's screen into virtual pixels based on the screen parameters of the projection end includes: Obtain the physical pixel arrangement parameters of the screen of the receiving end, wherein the arrangement parameters include the number of physical pixel rows and the number of physical pixel columns of the screen; Based on the screen parameters of the projection terminal and the arrangement parameters, at least one physical pixel in the same division region among the physical pixels of the screen is determined; Define at least one physical pixel that is in the same partitioned region as a virtual pixel; The screen parameter is the pixel ratio, which is the row-to-column ratio of pixels; The step of determining at least one physical pixel in the same partitioned region among the physical pixels of the screen based on the screen parameters of the projection terminal and the arrangement parameters includes: Based on the row-to-column ratio of the pixels at the projection end, the number of physical pixel rows and columns at the receiving end are evenly divided to form several virtual rows and several virtual columns. The screen of the receiving end is divided into several virtual regions by several virtual rows and several virtual columns, wherein each virtual region includes at least one physical pixel; The step of displaying the projection screen of the projection terminal according to the virtual pixels includes: Receive the projected image transmitted by the projection terminal based on the virtual pixels; The virtual pixels display the corresponding pixels in the projected image; Before the step of displaying the projection screen of the projection terminal according to the virtual pixels, the method further includes: Establish the correspondence between the screen pixels of the projection terminal and the virtual screen pixels of the receiving terminal; The step of displaying the corresponding pixels in the projected image using the virtual pixels includes: The first virtual pixel of the receiving end is determined according to the correspondence relationship; Determine the first screen pixel in the projected image that corresponds to the first screen pixel; The first image pixels are displayed through the first virtual pixel.
2. A mobile terminal, characterized in that, The mobile terminal includes a processor and a memory; The memory is used to store executable programs; The processor is used to execute the executable program to implement the screen projection method as described in claim 1.
3. A computer storage medium, characterized in that, The computer storage medium stores an executable program, which, when executed, implements the screen projection method as described in claim 1.
Citation Information
Patent Citations
Method for displaying a remote desktop on a portable touch screen device
US20140267281A1