A screen display and processing method, terminal and storage medium
By implementing the switching method of DP and HDMI OUT signals on the terminal, the flexibility and compatibility problems of dual-screen display in the existing technology are solved, and multiple display modes and Touch event processing of small LCD screens and HDMI display devices are realized. Improved user experience and signal processing efficiency.
Patent Information
- Application Number
- CN201911275511.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-12
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-12-12
AI Technical Summary
The existing technology cannot realize dual-screen display on the same system, lacks flexibility and user experience, and has poor signal source compatibility, making it impossible to realize real event operations and touch interaction functions.
By implementing the switching method of DP and HDMI OUT signals on the terminal, using the small LCD screen interface and signal processing method, the same screen or different screen display is realized, and the coordinates of the Touch event are corresponding and transmitted on the small LCD screen to achieve signal separation. and interactive processing.
It realizes the display and interactive processing between small LCD screens and HDMI display devices, provides multiple display methods, users can customize the display screen, freely switch display modes, and realizes the separated display of DP and HDMI OUT signals and the processing of Touch events. Synchronous processing.
Smart Images

Figure CN111104082B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video display, and relates to a picture display and processing method, in particular to a small liquid crystal screen picture display and processing method, and also to a terminal and a computer-readable storage medium. Background Art
[0002] Dual screens with different displays or dual screens with the same display is a system processing method based on the Android system. Its main function is to manage and distribute the DP (Display Port) and HDMI (High-Definition Multimedia Interface) OUT signals output by the CPU. The small LCD screen is controlled to display different images through the calling method of the upper application.
[0003] Currently, there is no similar fully functional technology on the market. Other known methods of switching DP and HIMI OUT signals can only display the HDMI OUT information on the second display (for example, a TV display or an LCD display), while another system is required to display it on the first display (for example, a small LCD screen). It cannot achieve display on the same system (that is, using the same system to display images on the second display and the first display), and it is even more impossible to switch between the same-screen and different-screen modes. There is no flexibility and lack of user experience.
[0004] There are also some applications that cannot achieve good separation of the DP and HDMI OUT images, and can only display the pitiful signal source of HDMI OUT, with extremely poor compatibility.
[0005] Therefore, the current dual-screen display is simple, has no operability, has poor signal source compatibility, cannot perform real event operations on the display screen, and has no touch (ie, Touch) interactive function, which is the main defect of similar applications. Summary of the invention
[0006] The purpose of the present invention is to overcome the deficiencies of the above-mentioned prior art and provide a method for displaying and processing a picture. The small LCD screen using the method of the present invention has a variety of display effects, can achieve the display effects of the same screen or different screens, and the user's touch operation on the first display screen (such as a small LCD screen) can achieve coordinate correspondence with the second display screen (such as a TV display screen) with different resolutions, and complete the transmission of the small LCD screen Touch event. The method of the present invention can accurately realize the small LCD screen signal display and intelligent processing, and is easy to implement and low cost. The patent application only involves the method of switching the display mode between DP and HDMI OUT, and still uses the existing small LCD screen interface form and signal processing method. In view of the fact that the present invention realizes the display and interactive processing between the small LCD screen and the HDMI display device, the present invention can also be called: a fast interactive small LCD screen and HDMI OUT display and processing method.
[0007] To achieve the above object, the present invention provides a screen display and processing method, which is applied to a terminal side. The screen display and processing method includes a screen display sub-step and a screen processing sub-step:
[0008] The screen display sub-step includes:
[0009] Displaying the first type of signal on the first display screen; or displaying the first type of signal and the second type of signal on the first display screen and the second display screen respectively;
[0010] The picture processing sub-step comprises:
[0011] If a first key event is received, the display modes of the first display screen and the second display screen are switched;
[0012] If a first touch event is received on the first display screen, an operation is performed according to a preset rule.
[0013] Preferably, the displaying of the first type of signal on the first display screen comprises: establishing a connection between the first type of signal and the first display screen, setting display parameters of the first display screen, and displaying the first type of signal on the first display screen;
[0014] The step of switching the display modes of the first display screen and the second display screen if the first key event is received comprises: obtaining mutually independent first-type signals and second-type signals through a signal separation step, monitoring the first key event, and switching the display modes of the first display screen and the second display screen if the first key event is monitored;
[0015] If the first touch event is received on the first display screen, the operation is performed according to the preset rules, specifically: the coordinate correspondence between the first display screen and the second display screen is obtained through coordinate correspondence, the coordinates of the first touch event triggered on the first display screen are returned, and the first touch event is processed.
[0016] Preferably, the specific implementation steps of displaying the first type of signal on the first display screen are as follows:
[0017] Get the first type of signal;
[0018] Establishing a connection between the first type of signal and the first display screen carrier;
[0019] Setting display parameters of the first display screen;
[0020] The first type of signal is displayed on a first display screen.
[0021] Preferably, the first type of signal is a DP signal, and the first display screen is a small LCD screen; the specific steps of obtaining the first type of signal are as follows: obtaining the DP signal output by the processor CPU through a DP signal manager; and outputting the DP signal to the small LCD screen in a direct form.
[0022] More preferably, the DP signal is acquired through DP_TO_MIPI in the DP signal manager.
[0023] Preferably, the step of setting the display parameters of the first display screen is as follows: the display manager DisplayManger parses the DP signal to obtain relevant parameters of the DP, and then converts the DP signal into a MIPI pass-through signal.
[0024] Preferably, the first type of signal is a DP signal, and the second type of signal is an HDMI OUT signal; if the first key event is received, the display mode of the first display screen and the second display screen is switched, and the specific implementation steps are as follows:
[0025] Separate DP signal from HDMI OUT signal processing;
[0026] Carry out data encapsulation processing on the separated DP signal and / or HDMI OUT signal;
[0027] A first key event is monitored, and if the first key event is monitored, the display modes of the first display screen and the second display screen are switched.
[0028] Preferably, the separation of the DP signal and the HDMI OUT signal processing specifically comprises the following steps:
[0029] Through the CPU's external DP and HDMI OUT interfaces, the DP signal and HDMI OUT signal are separated by multiple threads;
[0030] The separated DP signal and HDMI OUT signal are processed separately.
[0031] Preferably, the separated DP signal and / or HDMI OUT signal is subjected to data encapsulation processing, and the specific implementation steps are as follows:
[0032] Step 1: Package the signal to be displayed on the different screen through Presentationp;
[0033] Step 2: Monitor the physical buttons on the terminal to the pressed commands, and determine how to display currently. If it is currently synchronous display, switch to asynchronous display, that is, the DP signal source is switched from Presentationp to the same signal as HDMIOUT; if it is currently asynchronous display, switch to synchronous display, that is, the DP signal source is switched from HDMIOUT to a signal different from Presentationp;
[0034] This enables interface switching.
[0035] Preferably, if the first touch event is received on the first display screen, performing an operation according to a preset rule specifically includes the following steps:
[0036] Coordinate correspondence;
[0037] Coordinate transmission;
[0038] Coordinate response.
[0039] Preferably, the coordinate correspondence specifically includes the following steps: firstly, obtaining reference coordinates, and then obtaining a coordinate correspondence relationship between the first display screen and the second display screen through a mapping relationship between the two.
[0040] Preferably, the coordinate transmission specifically includes the following steps: first, touch the small LCD screen display to obtain the coordinate point, then convert the coordinate point into recognizable data through a matrix algorithm, and then transmit the coordinate point in the form of a Touch data packet to the CPU key system through analog signal transmission.
[0041] Preferably, the coordinate response specifically includes the following steps: after the touch point is sent, when the hand is lifted up, a transmission sequence is required to release the touch point, and the system responds to the click event at the same time.
[0042] It should be noted that: the first display screen can be a small LCD screen; the second display screen can be an HDMI display device, such as a TV display supporting an HDMI interface or an LCD display supporting an HDMI interface; the first type of signal can be a DP signal, and the second type of signal is an HDMI OUT signal.
[0043] The present invention also provides a terminal, comprising:
[0044] A first display screen display module, which is used to display the first type of signal on a first display screen;
[0045] A switching module for synchronous or asynchronous display of the first display screen and the second display screen, which is used to switch the display modes of the first display screen and the second display screen when a first key event is monitored;
[0046] A touch event distribution module is used to transmit the coordinates of the touch event triggered on the first display screen display module to the CPU.
[0047] The present invention also provides a terminal, comprising:
[0048] A host device, the host device comprising a processor CPU, the processor CPU outputting a DP signal and an HDMI OUT signal; wherein the DP signal is one of the first type of signals, and the HDMI OUT signal is one of the second type of signals;
[0049] It also includes a small LCD screen and a TV screen respectively connected to the main device through signal lines, the small LCD screen displays the first type of signal or the second type of signal through the DP channel, and the TV screen is used to display the first type of signal.
[0050] The main device may be a smart device running an Android system.
[0051] It should be pointed out that: when the small LCD screen and the TV screen display the first type of signal at the same time, the two are in synchronous display mode; when the small LCD screen displays the second type of signal and the TV screen displays the first type of signal, the two are in asynchronous display mode.
[0052] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the screen display and processing method as described in any one of the above items are implemented.
[0053] The beneficial effects of the present invention are:
[0054] The biggest feature of the small LCD screen is the multiple display modes. Users can customize the display screen, the same screen or different screens. At the same time, according to different needs, the display screen can be switched freely, and the DP and HDMI OUT signals can be displayed separately.
[0055] The screen display and processing method of the present invention includes three parts: display of a small LCD screen, synchronous or asynchronous display of the small LCD screen and HDMIOUT output, and allocation of small LCD screen key events; wherein, the small LCD screen display is to establish a connection between the input of the small LCD screen and the system, set display parameters at the same time, process the resolution of the small LCD screen, and simultaneously display the small LCD screen picture; the small LCD screen display refers to connecting the small LCD screen to display through the DP to MIPI interface corresponding to the CPU. The GPU drawing is divided into two parts for asynchronous display, or one picture is synchronously displayed on two screens; two display modes are freely switched through one button. The response of the same screen or different screens can be synchronously processed through the Touch event. Users can customize the allocation of Touch events to quickly achieve the desired effect.
[0056] By triggering the display switch key, the CPU display signal is quickly converted, the Touch event is distributed to the new display interface, and the coordinates are remapped, quickly realizing the interface and event synchronization process processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 It is a general schematic diagram of DP and HDMI IN different-screen display implemented by the present invention.
[0058] Figure 2 This is a flow chart of the DP and HDMI IN separation display implemented by the present invention.
[0059] Figure 3 This is a flow chart of the small LCD screen Touch event distribution implemented by the present invention.
[0060] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0061] See also Figure 1 As shown, the present invention provides a screen display and processing method, including three parts: DP signal display, switching operation of synchronous or asynchronous display of a small LCD screen and HDMI OUT, and touch event distribution.
[0062] Specifically: the small LCD screen display is to establish a connection with the DP signal, set the display parameters, and display the DP signal. The small LCD screen switches to display synchronously or asynchronously with HDMI OUT, firstly separates the small LCD screen from HDMI OUT, then responds to key events, and finally redistributes the display freely. The Touch event distribution first performs coordinate correspondence, then transmits the coordinates through the resolution coordinates corresponding to the small LCD screen, and returns them to the CPU for distribution processing.
[0063] Furthermore, the specific implementation steps of the small LCD screen display method are as follows:
[0064] 101. Obtain DP signal;
[0065] After the DP signal is output through the CPU, the signal is obtained through the DP signal manager, and the DP signal is directly obtained without encapsulation and output to the small LCD screen in a straight-through form; the DP signal is obtained through DP_TO_MIPI in the DP signal manager.
[0066] Furthermore, the MIP signal is obtained through an I2C channel of a GPIO (General-purpose input / output, GPIO for short) in a signal manager of the small LCD screen.
[0067] 102. Then, the DP signal is displayed;
[0068] The DP signal is connected to a specific carrier [Display] through DP_TO_MIPI, and the data stream is directly uploaded in the form of Open (i.e., in the form of direct pass); in step 104, the display manager DisplayManger parses the input DP signal to obtain DP related parameters, such as output color space, screen size, refresh rate, etc. Then the DP signal is converted into a direct pass signal of MIPI (Mobile Industry Processor Interface, abbreviated as MIPI, Chinese: Mobile Industry Processor Interface).
[0069] 103. Connect the DP signal to the small LCD screen carrier;
[0070] Connect the DP signal to a specific carrier [Display] through the I2C channel, upload the data stream directly in the form of Open, and open the channel with the carrier.
[0071] 104. Set the small LCD screen display parameters;
[0072] DisplayManger parses the incoming DP signal to obtain the relevant parameters of HDMI OUT. Then it obtains all display resolutions supported by the carrier, that is, the display size options. This allows the display signal and the carrier to have the same refresh rate.
[0073] 105. Display MIPI signals on the small LCD screen.
[0074] After the DP signal is processed, it is converted into a MIPI signal through a small LCD and finally displayed on the screen. The screen is rendered by playing to improve the display quality. The signal is transmitted quickly using the I2C signal to achieve a high frame rate effect.
[0075] Furthermore, the specific implementation steps of switching the small LCD screen to display synchronously or asynchronously with HDMI OUT are as follows:
[0076] See also Figure 2 As shown,
[0077] 201. Separate the DP signal from the HDMI OUT signal processing;
[0078] Through the CPU's external DP and HDMI OUT interfaces, the two signals are separated by multi-threading, and the DP and HDMI OUT signals are processed separately.
[0079] 203. Data encapsulation through specific methods;
[0080] Through the special Dialog of Presentationp, the signals that need to be displayed on the different screens are packaged;
[0081] 203. Change interface;
[0082] The interface changes mainly involve two aspects of operation:
[0083] The first step is to change the carrier. The size and position of the carrier can be changed by distributing TouchEvent events.
[0084] Furthermore, events are monitored and distributed through the system's PhoneWindowsManager class.
[0085] The second step is to use the physical buttons on the machine to monitor the pressed commands and determine how to display the current display. If the current display is synchronous, switch to asynchronous display. The DP signal source is switched from Presentationp to the same signal as HDMI OUT. If the current display is asynchronous, switch to synchronous display. The DP signal source is switched from HDMI OUT to a different signal from Presentationp.
[0086] See also Figure 3 As shown,
[0087] Furthermore, the specific implementation steps of the Touch event distribution are as follows:
[0088] 301. Coordinate correspondence;
[0089] First, the reference coordinates are obtained: x960, y544, and then the mapping relationship between the two display devices is used to finally achieve complete coordinate correspondence. It should be noted that the so-called mapping relationship here refers to the mapping relationship between coordinates.
[0090] 302. Coordinate transmission;
[0091] First, touch the small LCD screen to get the coordinate points, then use the matrix algorithm to convert the coordinate points into recognizable data, and then use analog signal transmission to send the coordinate points back to the CPU key system in the form of Touch data packets;
[0092] 303. Coordinate response.
[0093] After the touch point is sent, when the hand is lifted up, the transmission sequence is needed to release the touch point, and the system responds to the click event at the same time.
[0094] An example of the above Touch event distribution is as follows:
[0095] a) When the small LCD screen and the TV screen are in dual-screen co-display mode. When an icon is touched on the small LCD screen, assuming that the coordinates of the icon are (x1, y1), then (x1, y1) is passed to the CPU, and the CPU converts (x1, y1) into (x2, y2), which is obtained through the coordinate correspondence conversion. Since the two display screens are dual-screen co-display (that is, the two display screens display the same screen), then, touching and clicking an icon on the small LCD screen will be regarded as clicking the same icon on the TV screen. In other words, the coordinates (x2, y2) and the coordinates (x1, y1) correspond to the same icon on the small LCD screen and the TV screen respectively. Of course, due to the difference in display screen size and resolution, the size of the same icon on different display screens may be different. For example, if the user touches and clicks the play icon on the small LCD screen, it is regarded as the user also clicking the play icon on the TV screen. Since the small LCD screen can be a touch screen and the TV screen can be a non-touch screen, the user can indirectly touch and control the TV screen on the small LCD screen, which is very practical.
[0096] b) When the small LCD screen and the TV screen are in dual-screen different display working mode, if the small LCD screen displays the first type of signal and the TV screen displays the second type of signal, the user's touch operation on the small LCD screen is only effective for the small LCD screen, and the TV screen does not respond to the touch event.
[0097] The beneficial effect of the present invention is that the biggest feature of the small LCD screen display is the multiple display modes. The user can customize the display screen, the same screen or different screens.
[0098] At the same time, the display screen can be switched freely according to different needs, and the DP and HDMI OUT signals can be displayed separately.
[0099] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention without departing from the principles and intent of the present invention.
Claims
1. A screen display and processing method, applied to a terminal side, characterized in that: The screen display and processing method comprises a screen display sub-step and a screen processing sub-step: The screen display sub-step includes: Displaying the first type of signal on the first display screen; or displaying the first type of signal and the second type of signal on the first display screen and the second display screen respectively; The picture processing sub-step comprises: If a first key event is received, the display modes of the first display screen and the second display screen are switched; If a first touch event is received on the first display screen, an operation is performed according to a preset rule; The first type of signal is a DP signal, and the second type of signal is an HDMIOUT signal; if a first key event is received, the display modes of the first display screen and the second display screen are switched, and the specific implementation steps are as follows: Separate DP signal from HDMIOUT signal processing; Carry out data encapsulation processing on the separated DP signal and / or HDMIOUT signal; Monitoring a first key event, and switching the display modes of the first display screen and the second display screen if the first key event is monitored; The separation of the DP signal and the HDMIOUT signal processing specifically includes the following steps: Through the CPU's external DP and HDMIOUT interfaces, the DP signal and HDMIOUT signal are separated by multi-threading; The separated DP signal and HDMIOUT signal are processed separately.
2. The screen display and processing method according to claim 1, characterized in that: The specific implementation steps of displaying the first type of signal on the first display screen are as follows: Get the first type of signal; Establishing a connection between the first type of signal and the first display screen carrier; Setting display parameters of the first display screen; The first type of signal is displayed on a first display screen.
3. The screen display and processing method according to claim 2, characterized in that: The first type of signal is a DP signal, and the first display screen is a small LCD screen; the specific steps of obtaining the first type of signal are as follows: obtaining the DP signal output by the processor CPU through the DP signal manager; and outputting the DP signal to the small LCD screen in a direct form; The specific steps of setting the display parameters of the first display screen are as follows: the display manager DisplayManger parses the DP signal to obtain relevant parameters of the DP, and then converts the DP signal into a MIPI pass-through signal.
4. The screen display and processing method according to claim 1, characterized in that: If a first touch event is received on the first display screen, an operation is performed according to a preset rule, which specifically includes the following steps: Coordinate correspondence; Coordinate transmission; Coordinate response.
5. The screen display and processing method according to claim 4, characterized in that: The coordinate correspondence specifically includes the following steps: firstly, a reference coordinate is obtained, and then, through a mapping relationship between the first display screen and the second display screen, a coordinate correspondence relationship between the two is obtained.
6. The screen display and processing method according to claim 4, characterized in that: The coordinate transmission specifically includes the following steps: first, touch the small LCD screen display to obtain the coordinate point, then convert the coordinate point into recognizable data through a matrix algorithm, and then transmit the coordinate point in the form of a Touch data packet to the CPU key system through analog signal transmission; The coordinate response specifically includes the following steps: after the touch point is sent, when the hand is lifted up, a transmission sequence is required to release the touch point, and the system responds to the click event at the same time.
7. A terminal using the screen display and processing method according to any one of claims 1 to 6, characterized in that: The terminal comprises: A first display screen display module, which is used to display the first type of signal on a first display screen; A switching module for synchronous or asynchronous display of the first display screen and the second display screen, which is used to switch the display modes of the first display screen and the second display screen when a first key event is monitored; A touch event distribution module is used to transmit the coordinates of the touch event triggered on the first display screen display module to the CPU.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the screen display and processing method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Interaction system and interaction method for handheld device and television UI (User Interface)
CN102572567A
Projection control method, device and system, terminal device and display device
CN106681632A
Display mode switching method and display control system of virtual reality (VR) display
CN106686367A
Multi-channel independent digital video-to-PAL video conversion device
CN110225268A
Output control method, terminal and multi-device system
CN110399080A
