CN111736790B - Multi-screen display method, device and system and host equipment - Google Patents

Multi-screen display method, device and system and host equipment Download PDF

Info

Publication number
CN111736790B
CN111736790B CN202010755846.1A CN202010755846A CN111736790B CN 111736790 B CN111736790 B CN 111736790B CN 202010755846 A CN202010755846 A CN 202010755846A CN 111736790 B CN111736790 B CN 111736790B
Authority
CN
China
Prior art keywords
display
resolution
target video
parameter
main display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010755846.1A
Other languages
Chinese (zh)
Other versions
CN111736790A (en
Inventor
李宇庭
丁振江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Opening Of Biomedical Technology Wuhan Co ltd
Original Assignee
Opening Of Biomedical Technology Wuhan Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Opening Of Biomedical Technology Wuhan Co ltd filed Critical Opening Of Biomedical Technology Wuhan Co ltd
Priority to CN202010755846.1A priority Critical patent/CN111736790B/en
Publication of CN111736790A publication Critical patent/CN111736790A/en
Application granted granted Critical
Publication of CN111736790B publication Critical patent/CN111736790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application provides a multi-screen display method, a multi-screen display device, a host device and a multi-screen display system, wherein the method comprises the following steps: receiving a configuration request of an external display, wherein the configuration request comprises a target video output type and a target video resolution; according to the configuration request, configuring the resolution of the display card interface corresponding to the target video output type as the target video resolution; comparing the target video resolution with the main display resolution of the main display to obtain a comparison result; and projecting the target interval image of the main display onto the external display based on the comparison result. The auxiliary display receives the configuration request in this application to dispose the display card interface according to the configuration request, realize the nimble configuration of the display card interface of different resolutions, through the main comparative result that shows the resolution ratio of target video resolution ratio and main display, project the main target interval image that shows the image of main display to external display, external display equipment that can the different resolutions of adaptation realizes many screen display.

Description

Multi-screen display method, device and system and host equipment
Technical Field
The present disclosure relates to the field of display technologies, and in particular, to a multi-screen display method, a multi-screen display apparatus, a host device, and a multi-screen display system.
Background
The Linux operating system is a freely-propagated and free Unix-like operating system, a mature video output configuration tool xrandr is already arranged in the Linux system, and the configuration of multi-screen multi-resolution output display can be directly carried out on the Linux 11 library in the Linux system; in the aspect of hot plug of a display, currently, a tool srandrd written based on libX11 is used for monitoring the video interface state of a display card in real time in a Linux system, and related actions of hot plug are realized according to a script configured by a user; in the aspect of user visual operation, the QT is a good development platform, integrates rich control resources, is convenient to develop, has a friendly interface display, and more importantly has the advantage of cross-platform compatibility with respect to the MFC.
In the ultrasonic equipment widely used in the field of medical instruments, in order to meet the observability of doctors in different places on a diagnosis process, a screen replication extensible function needs to be added to the ultrasonic equipment, but in the conventional ultrasonic equipment system supporting multi-screen display, the problem that the external display resolution cannot be completely adapted to a main display image area exists.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a multi-screen display method, a multi-screen display device, a host device and a multi-screen display system, which can be adapted to external display devices with different resolutions to realize multi-screen display. The specific scheme is as follows:
the application provides a multi-screen display method, which comprises the following steps:
receiving a configuration request of an external display, wherein the configuration request comprises a target video output type and a target video resolution;
according to the configuration request, configuring the resolution of a display card interface corresponding to the target video output type as the target video resolution;
comparing the target video resolution with the main display resolution of the main display to obtain a comparison result;
and projecting the target interval image of the main display onto the external display based on the comparison result.
Preferably, the configuring, according to the configuration request, the resolution of the graphics card interface corresponding to the target video output type to the target video resolution includes:
acquiring a corresponding target video configuration script from a video resolution configuration library according to the configuration request;
and executing the target video configuration script, and configuring the resolution of the display card interface corresponding to the target video output type as the target video resolution.
Preferably, the receiving a configuration request of the external display includes:
when the video output type in the video output type list is detected to be selected, displaying a video resolution list corresponding to the target video output type;
and when the target video resolution in the video resolution list is detected to be selected, acquiring the configuration request.
Preferably, the projecting the target interval image of the main display onto the external display based on the comparison result includes:
and when the comparison result is that the target video resolution is equal to the width parameter of the main display resolution, copying the video image of the main display into the external display.
Preferably, the copying the video image of the main display to the external display when the comparison result is that the target video resolution is equal to the width parameter of the main display resolution comprises:
and when the comparison result shows that the width parameter of the target video resolution is equal to that of the main display resolution and the height parameter of the target video resolution is greater than or equal to the height of a preset interval on the main display, copying the video image of the main display into the external display.
Preferably, the projecting the target interval image of the main display onto the external display based on the comparison result includes:
when the comparison result shows that the parameter corresponding to the target video resolution is smaller than the parameter corresponding to the main display resolution, completing screen expansion by using a video configuration script, wherein the parameters comprise a height parameter and a width parameter;
starting an external display process, and intercepting the target interval image to the external display based on the external display process.
Preferably, when the sub-display is a touch display, further comprising:
determining a touch calibration proportion parameter based on the height parameter of the secondary display, the height parameter of the main display and the height parameter of the external display;
and realizing screen calibration of the secondary display according to the touch calibration proportion parameter.
Preferably, the method further comprises the following steps:
judging the connection state of the external display by using a daemon process;
if the connection state is disconnected and the parameter corresponding to the target video resolution is smaller than the parameter corresponding to the main display resolution, closing the external display;
stopping the external display process and resetting the auxiliary display;
and if the connection state is disconnected and the width parameter of the target video resolution is equal to that of the main display resolution, closing the external display.
Preferably, the resetting the sub-display includes:
acquiring a height parameter of the auxiliary display and a height parameter of a system display coordinate range;
determining a calibration reset parameter based on the height parameter of the secondary display and the height parameter of the system display coordinate range;
and obtaining a calibration reset instruction based on the calibration reset parameter, and executing the calibration reset instruction so as to reset the auxiliary display.
The application provides a multi-screen display device, includes:
the configuration request receiving module is used for receiving a configuration request of an external display, wherein the configuration request comprises a target video output type and a target video resolution;
the interface configuration module is used for configuring the resolution of the display card interface corresponding to the target video output type into the target video resolution according to the configuration request;
the comparison module is used for comparing the target video resolution with the main display resolution of the main display to obtain a comparison result;
and the projection module is used for projecting the target interval image of the main display to the external display based on the comparison result.
The application provides a host device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the multi-screen display method when executing the computer program.
The application provides a multi-screen display system, includes:
the main display, the external display, the secondary display and the host equipment.
The application provides a multi-screen display method, which comprises the following steps: receiving a configuration request of an external display, wherein the configuration request comprises a target video output type and a target video resolution; according to the configuration request, configuring the resolution of the display card interface corresponding to the target video output type as the target video resolution; comparing the target video resolution with the main display resolution of the main display to obtain a comparison result; and projecting the target interval image of the main display onto the external display based on the comparison result.
Therefore, the auxiliary display receives the configuration request and configures the display card interface according to the configuration request, flexible configuration of the display card interfaces with different resolutions is achieved, and the target interval image of the main display is projected to the external display through the comparison result of the target video resolution and the main display resolution of the main display, so that the external display equipment with different resolutions can be adapted to achieve multi-screen display.
This application still provides a many screen display device, host computer equipment and many screen display system simultaneously, all has above-mentioned beneficial effect, no longer gives unnecessary details here.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a multi-screen display method according to an embodiment of the present disclosure;
FIG. 2 is a schematic illustration of an interface display provided by an embodiment of the present application;
fig. 3 is a schematic flowchart of daemon process detection according to an embodiment of the present disclosure;
FIG. 4 is a diagram illustrating an exemplary implementation of a medical display output of the Linux system according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a multi-panel display apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a host device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the ultrasonic equipment widely used in the field of medical instruments, in order to meet the observability of doctors in different places on a diagnosis process, a screen replication extensible function needs to be added to the ultrasonic equipment, but in the conventional ultrasonic equipment system supporting multi-screen display, the problem that the external display resolution cannot be completely adapted to a main display image area exists.
Based on the foregoing technical problem, this embodiment provides a multi-screen display method, which can be adapted to external display devices with different resolutions to implement multi-screen display, and please refer to fig. 1 specifically, where fig. 1 is a flowchart of the multi-screen display method provided in this embodiment, and the method specifically includes:
s101, receiving a configuration request of an external display, wherein the configuration request comprises a target video output type and a target video resolution;
the multi-screen display method in the embodiment is mainly applied to the host equipment. In the multi-screen display system, a main display, a secondary display, an external display and a host device are included. The resolution of the main display is generally 1920 × 1200, the resolution of the sub-display is 1920 × 1080, and the external display may be any one of 1920 × 1200, 1920 × 1080, and 1280 × 1024. The host device receives a configuration request for the external display, including but not limited to a target video output type and a target video resolution. The target Video output type includes but is not limited to any one of S-Video/Video, HDMI/DVI and VGA, and the target Video resolution includes but is not limited to any one of 1920 x 1200, 1920 x 1080 and 1280 x 1024.
The receiving mode of the configuration request is not limited, and the configuration request may be manually sent after the user determines the target video output type and the target video resolution corresponding to the external display; or when the external display is connected with the auxiliary display, the host equipment automatically receives the configuration request after reading the target video output type and the target video resolution of the external display; or after the external display is connected with the main display, generating a configuration request after reading the target video output type and the target video resolution of the external display, and sending the configuration request to the host equipment.
In an implementable embodiment, in order to improve the flexibility of configuration, the user experience is summarized, step S101, comprising: when the video output type in the video output type list is detected to be selected, displaying a video resolution list corresponding to the target video output type; and when the target video resolution in the video resolution list is selected, acquiring the configuration request.
In this embodiment, the video output type list and the video resolution list may be provided in the configuration interface of the QT interface configuration module. In particular, the configuration interface may be displayed on a secondary display (e.g., a touch screen); referring to fig. 2, fig. 2 is a schematic view of an interface display provided in an embodiment of the present application.
It can be understood that the QT interface configuration module is mainly used for monitoring touch interface selection of a user, the user selects one or more types of video output interfaces, i.e., video output types, in a video output type list of the interface, selects a target video resolution configuration for each output interface, and after clicking application, obtains a configuration request, and further, the corresponding video output interface outputs an image signal corresponding to the target video resolution. The configuration interface of the QT interface configuration module may be composed of Video output interfaces corresponding to three Video output types of S-Video/Video, HDMI/DVI, and VGA, where S-Video/Video is a medical Video output interface, and signal output is realized by customizing a display card, for example, as shown in fig. 2, a P standard may be selected to realize Video output, and the two output interfaces HDMI and DVI are the same signal in terms of signal. A specific target video output type is selected first and then a specific target video resolution is selectable via a subsequent drop-down box video resolution list option. The drop-down box video resolution list options consist of the video resolution configuration library file name corresponding to the output signal, e.g., there are three configuration files 1920 x 1200, 1920 x 1080, 1280 x 1024 under the VGA directory of the video resolution configuration library, so the VGA type drop-down box displays the corresponding three resolution options.
In summary, in the embodiment, the video output type list and the video resolution list are set, and when the target video output type and the target video resolution are sequentially selected by the two lists, the configuration request is obtained.
S102, configuring the resolution of a display card interface corresponding to the target video output type as the target video resolution according to the configuration request;
and setting the resolution of the display card interface corresponding to the target video output type according to the configuration request. For example, the target video output type VGA corresponds to the VGA video card interface, and the resolution of the VGA video card interface is set to the target video resolution 1280 × 1024.
In order to quickly implement configuration of the video interface, step S102 includes: acquiring a corresponding target video configuration script from a video resolution configuration library according to a configuration request; and executing the target video configuration script, and configuring the resolution of the display card interface corresponding to the target video output type as the target video resolution.
It can be understood that a plurality of video configuration scripts are preset in the video resolution configuration library, and the video configuration scripts are used for configuring the video card interface. The target video configuration script may be determined according to the target video output type and the target video resolution of the configuration request, for example, the video resolution configuration library includes video configuration scripts c1 corresponding to the video output type a1 and the video resolution b 1; video configuration script c2 corresponding to video output type a1 and video resolution b 2; video configuration script c3 corresponding to video output type a1 and video resolution b 3; video configuration script c4 corresponding to video output type a2 and video resolution b 1; video configuration script c5 corresponding to video output type a2 and video resolution b 2; video configuration script c6 corresponding to video output type a2 and video resolution b 3; video configuration script c7 corresponding to video output type a3 and video resolution b 1; video configuration script c8 corresponding to video output type a3 and video resolution b 2; video output type a3 and video resolution b 3. When the configuration request comprises a target video output type a1 and a target video resolution b3, the obtained script is a target video configuration script c3, and the video card interface is configured according to the video configuration script c 3.
It is understood that the video configuration script in the video resolution configuration library is a video configuration command set composed of xrandr, taking VGA video output configuration 1280 × 1024 resolution script file as an example, the configuration script is shown as follows, and the script configures the VGA video card interface to 1280 × 1024 resolution through xrandr commands and is placed at 1920 × 1080 positions (below the touch screen position coordinates) of the virtual screen coordinate system. Specifically, when receiving that a user modifies the configuration of an external display, a QT interface configuration module firstly stores configuration information in an xml configuration file, then copies a corresponding configuration file from a video resolution configuration library to a current display resolution configuration directory, and then executes a shell script Run _ video _ config.sh to configure a specific video output interface. The shell script Run _ video _ config.sh comprises a video configuration script. It can be understood that the shell script can perform reset operation, kill all hot plug and screen copy processes, and restore the touch screen coordinates to the original state (no screen expansion state) and close all external display output interfaces; the hot plug monitoring process can be opened, and the subsequent execution of the current video configuration script is monitored; and the current video configuration scripts DVI and VGA which are copied from the video resolution configuration library and renamed can be executed, the hot plug monitoring process detects a hot plug event after the execution is finished, and the corresponding rule script is executed.
Therefore, in the embodiment, the corresponding target video configuration script is obtained from the video resolution configuration library, and the video card interface is configured through the target video configuration script, so that the configuration of the video interface can be quickly executed, and the interface configuration efficiency is improved.
S103, comparing the target video resolution with the main display resolution of the main display to obtain a comparison result;
the main display resolution is not limited in the embodiment, and the user can customize the setting as long as the purpose of the embodiment can be achieved. The resolution of a general main display is 1920 × 1200, the main display has no touch function, is mainly used for displaying medical system images, measurement data, patient information and the like, and cannot be subjected to hot plug. The external display is a display device connected by a user according to needs, and is used for displaying medical images in real time to a plurality of places of an operation, namely copying an image area of a main display, wherein the resolution can be set as one supported by the display device, and the resolution is set as three resolutions of a display device commonly used in a hospital: 1920 by 1200, 1920 by 1080 and 1280 by 1024, and hot plugging can be carried out according to needs. The secondary display may be a touch screen with 1920 × 1080 resolution, located at the right of the main display, for displaying various operation menus of the medical system, including: image acquisition, patient information setting, image playback, storage and export and the like, and hot plugging cannot be carried out.
It will be appreciated that the resolution of the external display is different from the resolution of the main display, and thus the target zone image projected from the main display to the external display is different.
And S104, projecting the target interval image of the main display to the external display based on the comparison result.
The external display screen copying tool is a program based on a QT platform, and realizes the timed screenshot of a main display appointed image area and the timed screenshot of the main display appointed image area through a QSgreen webWindow interface and a timer event under the QT platform and draws the screenshot into an area of a target video resolution corresponding to the external display.
In one implementation, step S104 includes: and when the comparison result is that the target video resolution is equal to the width parameter of the main display resolution, copying the video image of the main display into the external display.
When the main display resolution of the main display is 1920 × 1200, if the target video resolution of the external display is configured to be 1920 × 1200 resolution, the external display is completely consistent with the main display image, and the video image of the main display is directly copied to the external display; however, when the target video resolution of the external display is configured to 1920 × 1080 resolution, the height parameter of the external display image is deleted, and the width parameter is unchanged, but because the arrangement of the UI is reasonable, no image is cut off, and the external display image can be accepted through clinical evaluation, if the target video resolution of the external display is 1920 × 1200 or 1920 × 1080, the external display can be configured to the same position as the main display by directly using xrandr, so that the requirement can be met, and the current video configuration script is directly used for completing the copying of the video image of the main display.
Further, when the comparison result is that the target video resolution is equal to the width parameter of the main display resolution, copying the video image of the main display to the external display may include:
and when the comparison result shows that the width parameter of the target video resolution is equal to that of the main display resolution and the height parameter of the target video resolution is greater than or equal to the height of the preset interval on the main display, copying the video image of the main display into the external display.
It can be understood that, when the width parameter of the target video resolution is equal to the width parameter of the main display resolution, and the height parameter of the target video resolution is greater than or equal to the height parameter of the preset interval on the main display, the height parameter of the external display image is deleted, and the height parameter of the target video resolution is greater than or equal to the height of the preset interval on the main display, but since the UI is arranged reasonably, no image in the preset interval is truncated, and the video image can be displayed correctly through clinical evaluation.
In another implementation, S104 includes: when the comparison result shows that the parameter corresponding to the target video resolution is smaller than the parameter corresponding to the main display resolution, completing screen expansion by using the video configuration script, wherein the parameters comprise a height parameter and a width parameter; starting an external display process, and intercepting a target interval image to an external display based on the external display process.
When the parameter corresponding to the target video resolution is smaller than the parameter corresponding to the main display resolution, although the image area can be displayed, the image is cut off. The virtual screen of the external display must be placed below or to the right of the position coordinates of the touch screen, and an external image display process extra display is required to intercept and project the target interval image specified by the main display image on the external display in real time.
For example, when the main display resolution of the main display is 1920 × 1200, if the resolution of the external display is 1280 × 1024, the current video configuration script is first used to complete screen expansion, that is, the virtual screen of the external display is placed below the touch screen, then the external display process external display is started, and the captured main display target interval image may be an image area in a range of 1024 × 1024 and is drawn on the external display.
Further, when the sub-display is a touch display, in order to solve the problem of the coordinate offset of the touch screen caused by the screen expansion, the method further includes: determining a touch calibration proportion parameter based on the height parameter of the auxiliary display, the height parameter of the main display and the height parameter of the external display; and realizing screen calibration of the secondary display according to the touch calibration proportion parameter.
It can be understood that the touch calibration proportion parameter is obtained based on the height parameter of the main display and the height parameter of the external display of the height parameter of the secondary display, meanwhile, the touch screen driving proportion parameter, namely the touch calibration proportion parameter, is set by using the program Hal _ Test 1-video, and the screen calibration of the secondary display is realized according to the touch calibration proportion parameter. Therefore, the calibration of the touch display is realized through the obtained touch calibration proportion parameter, and the problem of coordinate offset of the touch screen caused by screen expansion is solved.
Based on the above technical solution, in this embodiment, a configuration request is received, and a display card interface is configured according to the configuration request, so that flexible configuration of display card interfaces with different resolutions is achieved, and a target interval image of a main display is projected to an external display through a comparison result between a target video resolution and the main display resolution of the main display, so that the external display device can be adapted to external display devices with different resolutions, and multi-screen display is achieved.
Based on any of the above embodiments, in order to monitor hot plug of the external display, the multi-screen display method further includes:
s105, judging the connection state of the external display by using a daemon process;
it can be understood that, in the embodiment, an srandrd hot plug monitor module is provided, where the srandrd hot plug monitor module is a video interface hot plug event monitor module that takes a daemon process srandrd as a center and is assisted by a rule script. The srandrd is a display card interface state detection daemon written based on libX11, and the working principle of the srandrd is as follows: when the state of a certain display card interface is detected to be changed, the appointed rule script is actively called, and the action pre-designed by a developer is completed. The connection state of the external display comprises connection and disconnection. Specifically, when the connection state of the external display is detected to be connected, executing a config _ display.sh script; and when the connection state of the external display is disconnected, executing the unpruged. And finishing the pre-designed action by executing the corresponding script.
For the connection, it is done to project the target zone image of the main display onto the external display.
S106, if the connection state is disconnected and the parameter corresponding to the target video resolution is smaller than the parameter corresponding to the main display resolution, closing the external display;
s107, stopping the external display process and resetting the auxiliary display;
further, resetting the sub-display includes: acquiring a height parameter of a secondary display and a height parameter of a system display coordinate range; determining a calibration reset parameter based on the height parameter of the auxiliary display and the height parameter of the system display coordinate range; and obtaining a calibration reset instruction based on the calibration reset parameter, and executing the calibration reset instruction so as to reset the auxiliary display.
When the connection state is disconnected and the parameter corresponding to the target video resolution is smaller than the parameter corresponding to the main display resolution, the external display is closed by utilizing xrandr-off, the external display process of the external display is closed, and meanwhile, in order to solve the problem of coordinate offset of the touch screen caused by screen expansion, Hal _ Test 1-video is utilized to reset the driving proportion parameter of the touch screen, namely, the reset parameter is calibrated. When the primary display resolution of the primary display is 1920 × 1200, the resolution of the external display is 1280 × 1024, and the resolution of the secondary display is 1920 × 1080, the calibration reset parameter is 1080/1200.
And S108, if the connection state is disconnected and the target video resolution is equal to the width parameter of the main display resolution, closing the external display.
If the connection state is disconnected, and the width parameters of the target video resolution and the main display resolution are equal. For example, when the resolution of the main display is 1920 × 1200, if the resolution of the display is 1920 × 1200 or 1920 × 1080, the external display is directly turned off by xrandr-off.
It can be understood that the touch screen calibration tool Hal _ Test is provided in the present embodiment to implement calibration and calibration reset. The Hal _ Test is an executable program capable of dynamically setting the reporting proportion of the touch events of the touch screen, and when the coordinate proportion of the touch screen needs to be calibrated, the Hal _ Test can be realized by executing the following commands. Since the touch coordinate system of the touch screen and the system display coordinate system have a mapping relationship, the touch coordinate calibration needs to be performed by modifying the reported parameters of the touch screen coordinates, where the height parameter of the touch screen and the height parameter of the system display coordinate range are used to represent the ratio of the height of the touch screen to the height of the system display range, such as the input calibration reset parameter 1080/1200 in the aforementioned touch screen coordinate calibration reset instruction.
The touch screen calibration tool Hal _ Test is specifically realized through interaction of a user process Hal _ Test and a kernel driver ts _ config. After the module is registered in the kernel, a user process Hal _ Test calls a ts _ config _ write interface through a system call write, sets a kernel parameter ts _ params _ zi as a height parameter of the auxiliary display, sets a kernel parameter ts _ params _ mu as a height parameter of a system display range, and finally directly influences the coordinates of the touch screen reporting events.
When the user process Hal _ Test sets the touch screen proportion, the character device ts _ config is firstly opened, and then the calibration reset parameter to be set is written into the device by using the system call write.
Specifically, please refer to fig. 3, where fig. 3 is a schematic flowchart of a daemon process detection provided in an embodiment of the present application. Specifically, the method includes connecting connected and disconnecting disconnected.
When connected, the resolution of the main display video of the main display is 1920 × 1200; when the target video resolution of the external display is 1920 x 1200 or 1920 x 1080, the video image of the main display is copied to the external display by using the xrandr video configuration tool. When the target video resolution of the external display is 1280 x 1024, firstly, the external display is expanded, namely, the screen expansion is completed by using the video configuration script, then, the external display process is automatically performed, and finally, the touch screen driving proportion parameter, namely, the touch calibration proportion parameter is set, so that the touch screen correction is realized.
When disconnected, the primary display resolution of the primary display is 1920 × 1200; and when the target video resolution of the external display is 1920 × 1200 or 1920 × 1080, turning off the external display by using xrandr-off. And when the target video resolution of the external display is 1280 x 1024, closing the external display by utilizing xrandr-off, closing the external display process, resetting the driving proportion parameter of the touch screen, namely the calibration reset parameter, and resetting the auxiliary display based on the calibration reset parameter.
Based on any of the above embodiments, please refer to fig. 4, where fig. 4 is a schematic diagram of a specific implementation of medical display output of a Linux system according to an embodiment of the present application, including: the system comprises a QT interface configuration module, a srandrd hot plug monitoring module and a video control module. The QT interface configuration module is mainly used for monitoring touch interface selection of a user, the user selects one or more types of video output interfaces on the interface, a resolution configuration is selected for each output interface, and after clicking application, the corresponding video output interface outputs an image signal with a corresponding resolution. The srandrd hot plug monitoring module is used for monitoring the hot plug state of the display interface and finishing different hot plug actions according to the current display configuration. The video control module is located at the bottommost layer and is called by the two, so that the direct operation of the video is realized, and the method specifically comprises the following steps: the method comprises three video operations of video interface configuration, touch screen calibration and external display screen copying.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a multi-screen display device according to an embodiment of the present disclosure, where the multi-screen display device includes:
a configuration request receiving module 201, configured to receive a configuration request of an external display, where the configuration request includes a target video output type and a target video resolution;
the interface configuration module 202 is configured to configure, according to the configuration request, a resolution of the graphics card interface corresponding to the target video output type as a target video resolution;
the comparison module 203 is configured to compare the target video resolution with the main display resolution of the main display to obtain a comparison result;
and the projection module 204 is configured to project the target interval image of the main display onto the external display based on the comparison result.
Preferably, the interface configuration module 202 includes:
the target video configuration script acquisition unit is used for acquiring a corresponding target video configuration script from a video resolution configuration library according to the configuration request;
and the configuration unit is used for executing the target video configuration script and configuring the resolution of the display card interface corresponding to the target video output type into the target video resolution.
Preferably, the configuration request receiving module 201 includes:
the display unit is used for displaying a video resolution list corresponding to the target video output type after the video output type in the video output type list is detected to be selected;
and the configuration request acquisition unit is used for acquiring the configuration request after detecting that the target video resolution in the video resolution list is selected.
Preferably, the projection module 204 includes:
and the first projection unit is used for copying the video image of the main display into the external display when the comparison result shows that the target video resolution is equal to the width parameter of the main display resolution.
Preferably, the first projection unit includes:
and the first projection subunit is used for copying the video image of the main display into the external display when the comparison result shows that the width parameter of the target video resolution is equal to that of the main display resolution and the height parameter of the target video resolution is greater than or equal to the height of a preset interval on the main display.
Preferably, the projection module 204 includes:
the extension unit is used for utilizing the video configuration script to complete screen extension when the comparison result shows that the parameter corresponding to the target video resolution is smaller than the parameter corresponding to the main display resolution, and the parameters comprise a height parameter and a width parameter;
and the second projection unit is used for starting an external display process and intercepting the target interval image to an external display based on the external display process.
Preferably, when the sub-display is a touch display, the projection module 204 further includes:
the touch calibration proportion parameter determining unit is used for determining a touch calibration proportion parameter based on the height parameter of the auxiliary display, the height parameter of the main display and the height parameter of the external display;
and the calibration unit is used for realizing the screen calibration of the secondary display according to the touch calibration proportion parameter.
Preferably, the method further comprises the following steps:
the judging module is used for judging the connection state of the external display by utilizing the daemon process;
the first closing module is used for closing the external display if the connection state is disconnected and the parameter corresponding to the target video resolution is smaller than the parameter corresponding to the main display resolution;
the stopping and resetting module is used for stopping the external display process and resetting the auxiliary display;
and the second closing module is used for closing the external display if the connection state is disconnected and the width parameter of the target video resolution is equal to the width parameter of the main display resolution.
Preferably, the stop and reset module comprises:
the acquisition unit is used for acquiring the height parameter of the auxiliary display and the height parameter of the system display coordinate range;
the calibration reset parameter determining unit is used for determining a calibration reset parameter based on the height parameter of the auxiliary display and the height parameter of the system display coordinate range;
and the resetting unit is used for obtaining a calibration resetting instruction based on the calibration resetting parameter and executing the calibration resetting instruction so as to reset the auxiliary display.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a host device according to an embodiment of the present disclosure, where the host device and the method described above are referred to correspondingly, and the host device includes:
a memory 301 for storing a computer program;
a processor 302 for implementing the steps of the above method when executing the computer program.
Since the embodiment of the host device portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the host device portion, which is not repeated here.
In the following, a multi-screen display system provided by the embodiments of the present application is introduced, and the multi-screen display system described below and the method described above are referred to correspondingly.
The application provides a multi-screen display system, includes:
the main display, the external display, the sub-display and the host device.
Specifically, three types of display devices, namely a main display, a sub-display and an external display, can be controlled by the NVIDIA display card interface output signal, and the various types of display devices function as:
a main display: the resolution is 1920 × 1200, and a general display device (no touch function) is used for displaying medical system images, measurement data, patient information and the like, and hot plugging cannot be performed.
A sub-display: the touch screen with 1920 x 1080 resolution is positioned at the right of the main display and is used for displaying various operation menus of the medical system, including: image acquisition, patient information setting, image playback, storage and export and the like, and hot plugging cannot be carried out.
Connecting an external display: the external display is a display device connected by a user as required, and is used for displaying medical images to a plurality of sites in real time, namely, an image area of the main display is copied, the resolution of the image area can be set to one supported by the display device, three resolutions-1920 x 1200, 1920 x 1080 and 1280 x 1024 of the display device commonly used in hospitals are set here, and hot plugging can be performed as required.
Since the embodiment of the multi-screen display system portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the multi-screen display system portion, which is not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The multi-screen display method, the multi-screen display apparatus, the host device and the multi-screen display system provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A multi-screen display method, comprising:
receiving a configuration request of an external display, wherein the configuration request comprises a target video output type and a target video resolution;
according to the configuration request, configuring the resolution of a display card interface corresponding to the target video output type as the target video resolution;
comparing the target video resolution with the main display resolution of the main display to obtain a comparison result;
projecting the target interval image of the main display onto the external display based on the comparison result;
wherein the projecting the target interval image of the main display onto the external display based on the comparison result comprises:
when the comparison result is that the target video resolution is equal to the width parameter of the main display resolution, copying the video image of the main display into the external display;
when the comparison result shows that the parameter corresponding to the target video resolution is smaller than the parameter corresponding to the main display resolution, completing screen expansion by using a video configuration script, wherein the parameters comprise a height parameter and a width parameter; starting an external display process, and intercepting the target interval image to the external display based on the external display process.
2. A multi-screen display method as recited in claim 1, wherein the configuring, according to the configuration request, the resolution of the graphics card interface corresponding to the target video output type to the target video resolution includes:
acquiring a corresponding target video configuration script from a video resolution configuration library according to the configuration request;
and executing the target video configuration script, and configuring the resolution of the display card interface corresponding to the target video output type as the target video resolution.
3. A multi-screen display method as recited in claim 1, wherein receiving a configuration request from an external display includes:
when the video output type in the video output type list is detected to be selected, displaying a video resolution list corresponding to the target video output type;
and when the target video resolution in the video resolution list is detected to be selected, acquiring the configuration request.
4. A multi-screen display method as recited in claim 1, wherein when the comparison result indicates that the target video resolution is equal to the width parameter of the main display resolution, then copying the video image of the main display to the external display comprises:
and when the comparison result shows that the width parameter of the target video resolution is equal to that of the main display resolution and the height parameter of the target video resolution is greater than or equal to the height of a preset interval on the main display, copying the video image of the main display into the external display.
5. A multi-display method as recited in claim 1, wherein when the secondary display is a touch display, further comprising:
determining a touch calibration proportion parameter based on the height parameter of the secondary display, the height parameter of the main display and the height parameter of the external display;
and realizing screen calibration of the secondary display according to the touch calibration proportion parameter.
6. A multi-screen display method according to any one of claims 1-5, further comprising:
judging the connection state of the external display by using a daemon process;
if the connection state is disconnected and the parameter corresponding to the target video resolution is smaller than the parameter corresponding to the main display resolution, closing the external display;
stopping the external display process and resetting the auxiliary display;
and if the connection state is disconnected and the width parameter of the target video resolution is equal to that of the main display resolution, closing the external display.
7. A multi-display method as recited in claim 6, wherein the resetting the secondary display comprises:
acquiring a height parameter of the auxiliary display and a height parameter of a system display coordinate range;
determining a calibration reset parameter based on the height parameter of the secondary display and the height parameter of the system display coordinate range;
and obtaining a calibration reset instruction based on the calibration reset parameter, and executing the calibration reset instruction so as to reset the auxiliary display.
8. A multi-display apparatus, comprising:
the configuration request receiving module is used for receiving a configuration request of an external display, wherein the configuration request comprises a target video output type and a target video resolution;
the interface configuration module is used for configuring the resolution of the display card interface corresponding to the target video output type into the target video resolution according to the configuration request;
the comparison module is used for comparing the target video resolution with the main display resolution of the main display to obtain a comparison result;
the projection module is used for projecting the target interval image of the main display to the external display based on the comparison result;
wherein the projection module comprises:
a first projection unit, for copying the video image of the main display to the external display when the comparison result is that the target video resolution is equal to the width parameter of the main display resolution;
the extension unit is used for utilizing the video configuration script to complete screen extension when the comparison result shows that the parameter corresponding to the target video resolution is smaller than the parameter corresponding to the main display resolution, and the parameters comprise a height parameter and a width parameter; and the second projection unit is used for starting an external display process after the screen expansion is finished, and intercepting the target interval image to an external display based on the external display process.
9. A host device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the multi-screen display method according to any one of claims 1 to 7 when executing the computer program.
10. A multi-screen display system, comprising:
a main display, an external display, a secondary display and a host device according to claim 9.
CN202010755846.1A 2020-07-31 2020-07-31 Multi-screen display method, device and system and host equipment Active CN111736790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010755846.1A CN111736790B (en) 2020-07-31 2020-07-31 Multi-screen display method, device and system and host equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010755846.1A CN111736790B (en) 2020-07-31 2020-07-31 Multi-screen display method, device and system and host equipment

Publications (2)

Publication Number Publication Date
CN111736790A CN111736790A (en) 2020-10-02
CN111736790B true CN111736790B (en) 2020-12-18

Family

ID=72656691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010755846.1A Active CN111736790B (en) 2020-07-31 2020-07-31 Multi-screen display method, device and system and host equipment

Country Status (1)

Country Link
CN (1) CN111736790B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739453B (en) * 2018-12-24 2021-10-08 威创集团股份有限公司 Splicing wall resolution ratio automatic configuration method and related equipment
CN112650462B (en) * 2020-12-29 2022-11-04 展讯半导体(南京)有限公司 Image processing method and device, electronic device and storage medium
CN115793912B (en) * 2023-02-02 2023-05-26 苏州一目万相科技有限公司 Image display method, image display device, and readable storage medium
CN117032610A (en) * 2023-07-14 2023-11-10 龙芯中科(成都)技术有限公司 Resolution setting method, device, electronic equipment and storage medium
CN116939137B (en) * 2023-09-18 2024-04-12 深圳市东微智能科技股份有限公司 Pluggable device and resolution switching system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077149A (en) * 2014-07-18 2014-10-01 北京智谷睿拓技术服务有限公司 Content sharing method and device
CN104469178A (en) * 2013-09-25 2015-03-25 联想(北京)有限公司 Image display method and electronic device
CN107005624A (en) * 2014-12-14 2017-08-01 深圳市大疆创新科技有限公司 The method and system of Video processing

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201859420U (en) * 2010-11-12 2011-06-08 天津三星电子显示器有限公司 Sideslip double-screen touch display
JP6088127B2 (en) * 2011-10-13 2017-03-01 セイコーエプソン株式会社 Display device, display device control method, and program
US9396519B2 (en) * 2012-12-17 2016-07-19 Intel Corporation Content aware video resizing
JP6398489B2 (en) * 2014-09-04 2018-10-03 株式会社リコー Information processing program, information processing method, and information processing apparatus
US10152295B2 (en) * 2015-06-01 2018-12-11 Mediatek Inc. Methods for displaying image data in a computer system supporting multiple displays
KR102454986B1 (en) * 2017-05-23 2022-10-17 삼성디스플레이 주식회사 Spot detecting apparatus and method of detecting spot using the same
CN108363535B (en) * 2018-02-09 2020-10-27 网易(杭州)网络有限公司 Picture display method and device, storage medium, processor and terminal
KR102508682B1 (en) * 2018-02-26 2023-03-13 엘지전자 주식회사 Display device and image processing method thereof
CN109767447B (en) * 2019-01-04 2021-03-02 腾讯科技(深圳)有限公司 Template matching method, device, equipment and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469178A (en) * 2013-09-25 2015-03-25 联想(北京)有限公司 Image display method and electronic device
CN104077149A (en) * 2014-07-18 2014-10-01 北京智谷睿拓技术服务有限公司 Content sharing method and device
CN107005624A (en) * 2014-12-14 2017-08-01 深圳市大疆创新科技有限公司 The method and system of Video processing

Also Published As

Publication number Publication date
CN111736790A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN111736790B (en) Multi-screen display method, device and system and host equipment
US8316312B2 (en) Method, display system, and computer software for controlling icon appearance
US5463766A (en) System and method for loading diagnostics routines from disk
US6169535B1 (en) Monitor adjustment control
US7246273B2 (en) Method of, apparatus and graphical user interface for automatic diagnostics
US6668370B1 (en) Synchronous execution of object-oriented scripts and procedural code from within an interactive test facility
US8004571B2 (en) Projection-based system, apparatus and program of storing annotated object image
US20050235221A1 (en) Computer, display device setting method, and program
JPH10207700A (en) Programmable medical imaging system
CN111435277B (en) Method, device, terminal and storage medium for displaying content
CN103197875B (en) The display packing of the display picture of electronic equipment and electronic equipment
JP2011076549A (en) System and apparatus for processing information, terminal device and control method thereof
US6822753B1 (en) Computer readable medium for setup and setup method
TWI323843B (en) Method and device for pc component diagnostic test before executing operation system
JPH10222466A (en) Method for executing command with client/server type medical imaging system
JPH10232921A (en) Method for detecting and correcting cell overlap
TW201535107A (en) Backup device and operating method thereof
US8316361B2 (en) Method of enabling a user to update one or more low-level resources of a computer system in a user-friendly manner
US20100312541A1 (en) Program test device and program
CN108399058B (en) Signal display control method and device
KR20030081743A (en) System and method for remote examination of personal hand-held terminal
JP4896909B2 (en) Scenario generation apparatus and program
US6832312B1 (en) Process for automatically installing video display software upon detecting new video display controller
JP3861526B2 (en) Input instruction apparatus and program recording medium thereof
CN114579424A (en) Application debugging method and related equipment

Legal Events

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