CN107332914B - Terminal display method and device - Google Patents
Terminal display method and device Download PDFInfo
- Publication number
- CN107332914B CN107332914B CN201710536357.5A CN201710536357A CN107332914B CN 107332914 B CN107332914 B CN 107332914B CN 201710536357 A CN201710536357 A CN 201710536357A CN 107332914 B CN107332914 B CN 107332914B
- Authority
- CN
- China
- Prior art keywords
- picture
- horizontal
- vertical
- resolution
- threshold
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
- H04L67/5651—Reducing the amount or size of exchanged application data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/04—Protocols for data compression, e.g. ROHC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Controls And Circuits For Display Device (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a terminal display method and device. The method comprises the following steps: determining a picture for displaying a terminal screen; compressing the picture, wherein the horizontal resolution of the compressed picture is less than or equal to a horizontal threshold and the vertical resolution is less than or equal to a vertical threshold; and sending the compressed picture to a user side for displaying the compressed picture by the user side according to the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold. Because the horizontal resolution of the picture is compressed to be less than or equal to the horizontal threshold and the vertical resolution is compressed to be less than or equal to the vertical threshold, the picture for displaying the terminal screen can be completely displayed by adopting the same display proportion, the display effect is improved, and the problems in the prior art are solved.
Description
Technical Field
The application relates to the technical field of remote real machine testing, in particular to a terminal display method and device.
Background
In the remote real machine testing system, a user is remotely connected to a server through software installed on a PC, and the server is connected with a real remote terminal (such as a mobile phone and the like). The user can upload the Application (APP) that awaits measuring to the server through the software on the PC to install this APP at remote terminal through the server, thereby can test this APP at remote terminal, and in the testing process, in order to facilitate the user in time to know the test result, the server can also show remote terminal's screen on this software in real time.
In practical application, the server is often connected with a plurality of remote terminals of different models or types, so that a user can conveniently test the APP on the remote terminals respectively in sequence. However, since the screen sizes or resolutions of the different models or types of remote terminals are usually different, when the server sequentially displays the screens on the software of the user PC, different remote terminals need to adjust different display scales to completely display the screens, which affects the display effect.
Disclosure of Invention
The embodiment of the application provides a terminal display method and device, which can be used for solving the problems in the prior art.
The embodiment of the application provides a terminal display method, which comprises the following steps:
determining a picture for displaying a terminal screen;
compressing the picture, wherein the horizontal resolution of the compressed picture is less than or equal to a horizontal threshold and the vertical resolution is less than or equal to a vertical threshold;
and sending the compressed picture to a user side for displaying the compressed picture by the user side according to the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold.
Preferably, compressing the picture specifically includes:
determining a horizontal compression rate according to the horizontal resolution of the picture, wherein the horizontal compression rate is used for indicating that the horizontal resolution of the picture is compressed to be less than or equal to a horizontal threshold value;
and compressing the picture according to the horizontal compression ratio and the aspect ratio.
Preferably, compressing the picture specifically includes:
determining a vertical compression rate according to the vertical resolution of the picture, wherein the vertical compression rate is used for indicating that the vertical resolution of the picture is compressed to be less than or equal to a vertical threshold value;
and compressing the picture according to the vertical compression ratio and the aspect ratio.
Preferably, compressing the picture specifically includes:
determining a horizontal compression rate according to the horizontal resolution of the picture, wherein the horizontal compression rate is used for indicating that the horizontal resolution of the picture is compressed to be less than or equal to a horizontal threshold value;
determining a vertical compression rate according to the vertical resolution of the picture, wherein the vertical compression rate is used for indicating that the vertical resolution of the picture is compressed to be less than or equal to a horizontal threshold value;
and compressing the picture according to the horizontal compression rate and the vertical compression rate.
Preferably, determining a picture for displaying a terminal screen specifically includes:
and the controller receives the picture, wherein the picture is sent by a terminal connected with the controller through an Agent program Agent.
Preferably, the sending the compressed picture to the user side specifically includes:
and sending the compressed picture to a user side in a video stream or fixed frame rate mode.
Preferably, displaying the compressed picture with the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold by the user side specifically includes:
and displaying the compressed picture by the web browser of the user side according to the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold.
The embodiment of the present application further provides a terminal display device, and the device includes: a determination unit, a compression unit and a transmission unit, wherein:
the determining unit is used for determining a picture for displaying a terminal screen;
the compression unit compresses the picture, wherein the horizontal resolution of the compressed picture is less than or equal to a horizontal threshold and the vertical resolution is less than or equal to a vertical threshold;
and the sending unit is used for sending the compressed picture to a user side and displaying the compressed picture by the user side according to the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold.
Preferably, compressing the picture specifically includes:
determining a horizontal compression rate according to the horizontal resolution of the picture, wherein the horizontal compression rate is used for indicating that the horizontal resolution of the picture is compressed to be less than or equal to a horizontal threshold value;
and compressing the picture according to the horizontal compression ratio and the aspect ratio.
Preferably, displaying the compressed picture with the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold by the user side specifically includes:
and displaying the compressed picture by the web browser of the user side according to the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
by the terminal display method provided by the embodiment of the application, after the picture for displaying the terminal screen is determined, the picture is compressed, so that the horizontal resolution of the compressed picture is less than or equal to the horizontal threshold and the vertical resolution is less than or equal to the vertical threshold, and then the compressed picture is sent to the user side for displaying the compressed picture through the user side according to the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold. Therefore, when the screens of different terminals are displayed on the software of the client PC, even if the screen sizes or resolutions between the screens are different, the pictures for displaying the terminal screens can be completely displayed by adopting the same display proportion because the horizontal resolution of the pictures is compressed to be less than or equal to the horizontal threshold and the vertical resolution is compressed to be less than or equal to the vertical threshold, so that the display effect is improved, and the problems in the prior art are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic structural diagram of a remote real machine testing system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a specific terminal display method according to an embodiment of the present disclosure;
fig. 3 is a schematic view of a scene in which a terminal screen is displayed in a web browser in the terminal display method according to the embodiment of the present application;
fig. 4 is a schematic flowchart of a terminal display method in a specific application according to an embodiment of the present application
Fig. 5 is a schematic structural diagram of a terminal display device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the 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.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
As mentioned above, in practical applications, a server is often connected to a plurality of remote terminals of different models or types, the screen sizes and resolutions of the remote terminals are usually different, and when the APPs are respectively tested on the remote terminals, the server usually adjusts different display scales in order to fully display the screen of the remote terminal on the software of the user PC.
For example, due to the difference between the screen sizes and resolutions of the remote terminal 1 and the remote terminal 2, the resolution of the picture showing the screen of the remote terminal 1 is 3000 × 4000, the resolution of the picture showing the screen of the remote terminal 2 is 3500 × 5000, and the resolution on the user PC is 1024 × 1024; in order to fully present the screen of the remote terminal 1 and the screen of the remote terminal 2, different display scales are generally adjusted. Wherein the adjusted horizontal ratio is about 1/3 and the vertical ratio is about 1/4 when the screen of the remote terminal 1 is displayed, and the adjusted horizontal ratio is about 1/3.5 and the vertical ratio is about 1/5 when the screen of the remote terminal 2 is displayed.
Based on this, the embodiment of the present application provides a terminal display method, which can be used for the problems in the prior art. In order to facilitate understanding of the terminal display method provided by the application, a simple introduction can be firstly made to the remote real machine test system. As shown in fig. 1, the system 10 is a schematic structural diagram of the system 10, and the system 10 includes a user side 11 and a server side 12, where the server side 12 includes a server 121, a controller 122, and a plurality of terminals (including a terminal 1, a terminal 2, and a terminal n) connected to the controller 122.
In the system 10, the user terminal 10 may be a PC (personal computer), a mobile phone, a tablet, etc. used by the user for testing, and the screen of the terminal may be displayed on the software of the user terminal 10. Where the software may typically be a web browser or other application, etc.
The plurality of terminals included in the server 12 may be mobile phones, computers, tablets, or the like, and the terminals are installed with Agent agents, and data of a screen can be obtained from a terminal memory through the Agent agents, and the data can be used to generate a picture, and the picture can show the screen of the terminal.
For example, the terminal 1 is installed with an Agent, and the Agent can obtain data of the screen of the terminal 1 from the memory of the terminal 1, so as to generate a picture according to the data, so as to display the screen of the terminal 1.
And a controller 122 in the server 12, wherein the controller 122 is connected to the server 121 at one end, is connected to a plurality of terminals at the other end, and can be used for receiving pictures generated and sent by each terminal through the Agent program Agent. In practical applications, the server 12 may include a plurality of controllers 122, and the controllers 122 are respectively connected to the server 121 and a plurality of terminals.
The server 121 is connected to the user terminal 11 and the controller 122, and can obtain the picture from the controller 122 and send the obtained picture to the user terminal 11. In addition, the server 121 may also install the APP to be tested on the terminal of the model or type selected by the user according to the selection of the user, where the terminal on which the APP to be tested is installed is the terminal to be displayed; of course, if the user does not select to test on a certain terminal, the server 121 may also randomly select to install the APP to be tested on the certain terminal, or determine the certain terminal according to a preset priority order or other rules, and install the APP to be tested on the certain terminal.
For example, the terminals 1 to n are mobile phones of different models, and the user needs to test the APP on the terminal 2; at this time, the user can upload the APP to the server 121 through the user terminal 11, and select the terminal 2 as a test terminal, and after the server 121 receives the APP, the APP is installed in the terminal 2 according to the selection of the user, so as to perform a test.
The above is a brief introduction to the system 10, and the terminal display method provided by the embodiment of the present application can be specifically described below with reference to fig. 1 and fig. 2. As shown in fig. 2, the method comprises the following specific steps:
step S21: and determining a picture for displaying a terminal screen.
The picture is generated by acquiring data in a memory of the terminal according to an Agent program Agent on the terminal to be displayed (which may be any one of the terminal 1 to the terminal n), wherein the data can reflect the brightness and color specifically displayed by each pixel on the screen of the terminal, and therefore, the picture for displaying the screen of the terminal can be generated through the data.
In addition, the picture determined to be used for displaying the terminal screen may be an Agent on the terminal to be displayed in the server 12, the Agent acquires data from a memory of the terminal to be displayed and generates a picture according to the data, and after the Agent generates the picture, the Agent may send the picture to the controller 122, so that the server 121 can acquire the picture from the controller 122. In this way, the Agent on the terminal to be displayed generates a picture, and transfers the picture to the server 12 to connect with the controller 122 of the terminal to be displayed. Of course, the picture for displaying the terminal screen is determined, and the server 121 in the server 12 may also obtain the picture from the terminal to be displayed through the controller 122.
Step S22: compressing the picture, wherein the horizontal resolution of the compressed picture is less than or equal to a horizontal threshold and the vertical resolution is less than or equal to a vertical threshold.
The image compression method may generally be in various manners, for example, the image may be compressed by using image processing software such as ACDS, Photoshop, and the like, and may also be compressed by using other manners, where the specific manner used for compressing the image is not limited, and only the horizontal resolution of the compressed image is less than or equal to the horizontal threshold, and the vertical resolution is less than or equal to the vertical threshold.
It should be noted that, the sizes of the horizontal threshold and the vertical threshold may be preset and modified, in the specific setting and modifying process, the network transmission speed of the user may be detected first, and then the sizes of the horizontal threshold and the vertical threshold are determined according to the network transmission speed of the user, for example, when the network transmission speed is fast, a relatively large horizontal threshold and a relatively large vertical threshold may be set, so that the compressed picture is relatively large, the display effect on the terminal screen is good, and when the network transmission speed is slow, a relatively small horizontal threshold and a relatively small vertical threshold may be set, so that the compressed picture is relatively small and is easier to transmit.
The horizontal threshold and the vertical threshold may be set to fixed values as needed, for example, the horizontal threshold may be set to 750, and the vertical threshold may be set to 1024 (of course, other values may be used). Generally, the horizontal threshold and the vertical threshold are both set to be fixed values, which is more convenient for displaying in a fixed area of the user terminal, for example, the user terminal may display a compressed picture through a web browser, the picture is usually displayed in a fixed area allocated in a web of the web browser, and the horizontal threshold and the vertical threshold are both set to be fixed values, which is more convenient for dividing the fixed area, so as to display the picture. Of course, the fixed values of the horizontal threshold and the vertical threshold may be determined according to a/B test or the like.
In order to make the horizontal resolution of the compressed picture equal to or less than the horizontal threshold and the vertical resolution equal to or less than the vertical threshold, the compression may be performed while keeping the aspect ratio or may be performed without keeping the aspect ratio.
When the aspect ratio is kept compressed and the compressed lines are compressed, there are various ways, such as determining a horizontal compression ratio according to the horizontal resolution of the picture, wherein the horizontal compression ratio is used for indicating that the horizontal resolution of the picture is compressed to be less than or equal to a horizontal threshold, and after determining the horizontal compression ratio, compressing the picture according to the horizontal compression ratio under the condition of keeping the aspect ratio; or determining a vertical compression rate according to the vertical resolution of the picture before compression, wherein the vertical compression rate is used for indicating that the vertical resolution of the picture is compressed to be less than or equal to a vertical threshold, and after determining the vertical compression rate, compressing the picture according to the vertical compression rate under the condition of keeping the aspect ratio. When aspect ratio compression is usually maintained, the compressed picture is not easily distorted.
Of course, the compression may be performed without maintaining the aspect ratio, and at this time, a horizontal compression rate may be determined according to the horizontal resolution of the picture, and a vertical compression rate may be determined according to the vertical resolution of the picture, where the horizontal compression rate is used to instruct to compress the horizontal resolution of the picture to equal to or less than a horizontal threshold, the vertical compression rate is used to instruct to compress the vertical resolution of the picture to equal to or less than a horizontal threshold, and after the horizontal compression rate and the vertical compression rate are determined, the picture is compressed according to the horizontal compression rate and the vertical compression rate. Compression without maintaining aspect ratio is generally more flexible since the horizontal compression ratio and the vertical compression ratio can be set independently.
The compressing of the picture may be performed by the server 121 in the server 12, or may be performed by the controller 122. For example, when it is determined that the picture for displaying the terminal screen is specifically, the server 121 in the server 12 obtains the picture from the terminal to be displayed through the controller 122 (the picture is generated by the terminal to be displayed through the Agent), the server 121 performs the step of compressing the picture in step S22; when it is determined that the picture for displaying the terminal screen is specifically, when the controller 122 in the server 12 receives the picture from the terminal to be displayed, the step of compressing the picture by the controller 122 may be performed, or the step of compressing the picture by the server 121 may also be performed, and if the server 121 compresses the picture at this time, the server 121 should further obtain the picture from the controller 122.
Step S23: and sending the compressed picture to a user terminal 11 for displaying the compressed picture with the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold through the user terminal 11.
The compressed picture can be sent to the user terminal 11 through the server 121 in the server 12, and when the server 121 sends the compressed picture, a plurality of different sending modes can be adopted, for example, the compressed picture can be sent to the user terminal 11 in a video streaming (streaming media) mode, so that the user terminal can display the compressed picture through an application program such as a video streaming player or a web browser; of course, the compressed picture may also be sent to the user end 11 in a fixed frame rate (sending a fixed number of pictures per second); of course, in practical applications, the server 121 may also send the compressed picture to the user end 11 in other manners, which is not described herein again.
Of course, after receiving the compressed picture sent by the server 121, the user terminal 11 may display the corresponding terminal screen by displaying the picture. The way of the user end 11 displaying the compressed picture may be various, for example, the compressed picture may be displayed through a web browser, and in order to display the compressed picture at a fixed position of the web browser, the horizontal threshold may be used as a horizontal resolution, and the vertical threshold may be used as a vertical resolution to display the compressed picture.
Fig. 3 is a schematic diagram of the user terminal 11 displaying the compressed picture through a web browser. In fig. 3, the user terminal 11 is specifically a PC, the terminal is a mobile phone, and the user performs APP test on a remote mobile phone through the PC and displays a screen of the mobile phone through a web browser on the PC. As can be seen from fig. 3, the left side is a mobile phone screen displayed on a web browser, multiple APPs such as "music", "mail", and the like are displayed on the mobile phone screen, a terminal identifier (including a model of the mobile phone, and the like) is provided above the mobile phone screen, and the left side of the terminal identifier can adjust displayed definition (including modes such as high definition, smoothness, and the like) and a button for displaying a horizontal screen or a vertical screen of the mobile phone screen; the right side of the web browser comprises a space, for example, the user can click an 'upload local application' under the 'application' to upload an APP to be tested, and the lower part comprises a plurality of information display labels.
By adopting the terminal display method provided by the embodiment of the application, after the picture for displaying the terminal screen is determined, the picture is compressed, so that the horizontal resolution of the compressed picture is less than or equal to the horizontal threshold and the vertical resolution is less than or equal to the vertical threshold, and then the compressed picture is sent to the user side for displaying the compressed picture through the user side according to the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold. Therefore, when the screens of different terminals are displayed on the software of the client PC, even if the screen sizes or resolutions are different, the pictures for displaying the terminal screens can be completely displayed by adopting the same display proportion because the horizontal resolution of the pictures is compressed to be less than or equal to the horizontal threshold and the vertical resolution is compressed to be less than or equal to the vertical threshold, thereby improving the display effect. In addition, after the picture is compressed, the size of the picture file can be reduced, and occupied network transmission resources can be reduced when the picture file is sent to the user side.
It should be noted that all execution main bodies of the steps of the terminal display method provided in the embodiment of the present application may be the same device, or all the steps of the method may also be executed by different devices. For example, the execution subjects of step S21 and step S22 may be the apparatus 1; for another example, the execution subject of step S21 may be device 1, and the execution subjects of steps S22 and S2; and so on.
The foregoing is a specific description of the terminal display method provided in the embodiments of the present application, and for convenience of understanding, the method may be further described with reference to specific examples. In this example, the user side is specifically a PC, the software for displaying the terminal screen on the user side PC is specifically a web browser, the terminal of the server side is specifically a mobile phone (including mobile phones 1 to n), and the mobile phone is installed with an Agent. The user uploads the APP to be tested to the server through the web browser, selects a mobile phone (which may be any one of the mobile phones 1 to n, and is referred to as a target mobile phone) specifically used for testing, and then the server installs the APP to be tested into the target mobile phone according to the selection of the user. The whole testing process is shown in fig. 4, and comprises the following steps:
step S31: a user uploads an APP to be tested through a PC (personal computer), and selects a target mobile phone as a mobile phone for testing;
step S32: the server receives the APP to be tested and installs the APP to be tested on the target mobile phone according to the selection of the user;
step S33: an Agent on the target mobile phone acquires data in the memory, generates a picture and sends the picture to the controller;
the data acquired by the Agent program Agent from the memory can reflect the specific displayed brightness and color of each pixel on the screen of the target mobile phone.
Step S34: the controller compresses the received picture, wherein the horizontal resolution of the compressed picture is less than or equal to a horizontal threshold and the vertical resolution is less than or equal to a vertical threshold;
step S35: the server acquires a compressed picture from the controller;
step S36: the server sends the compressed picture to a PC of a user;
step S37: and the user PC displays the compressed picture through a web browser at the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold.
Based on the same inventive concept as the terminal display method provided by the embodiment of the present application, the embodiment of the present application also provides a terminal display device, which can also be used to solve the problems in the prior art, wherein for the embodiment of the device, if there is an unclear point, reference may be made to the corresponding method embodiment. As shown in fig. 5, the apparatus 50 includes: a determination unit 501, a compression unit 502, and a transmission unit 503, wherein:
the determining unit 501 determines a picture for displaying a terminal screen;
the compression unit 502 compresses the picture, wherein the horizontal resolution of the compressed picture is less than or equal to a horizontal threshold and the vertical resolution is less than or equal to a vertical threshold;
the sending unit 503 sends the compressed picture to the user side, and is configured to display the compressed picture with the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold through the user side.
Since the device 50 adopts the same inventive concept as the terminal display method provided in the present application, the problems in the prior art can also be solved, and the detailed description is omitted here. In addition, in practical applications, the apparatus 50 may be combined with specific hardware devices to achieve other implementation effects, and is also within the protection scope of the present application.
In practical applications, the compressing unit 502 compresses the picture, which may be determining a horizontal compression rate according to a horizontal resolution of the picture, where the horizontal compression rate is used to instruct to compress the horizontal resolution of the picture to be less than or equal to a horizontal threshold, and then compressing the picture according to the horizontal compression rate and maintaining the aspect ratio; or determining a vertical compression rate according to the vertical resolution of the picture, wherein the vertical compression rate is used for indicating that the vertical resolution of the picture is compressed to be less than or equal to a vertical threshold value, and then compressing the picture according to the vertical compression rate and maintaining the aspect ratio; it is also possible to determine a horizontal compression rate according to a horizontal resolution of the picture, the horizontal compression rate being used to instruct compression of the horizontal resolution of the picture to be equal to or less than a horizontal threshold, determine a vertical compression rate according to a vertical resolution of the picture, the vertical compression rate being used to instruct compression of the vertical resolution of the picture to be equal to or less than a horizontal threshold, and then compress the picture according to the horizontal compression rate and the vertical compression rate. Other compression schemes are of course possible.
The determining unit 501 determines a picture for displaying a terminal screen, where the picture is received by a controller, and the picture is sent by a terminal connected to the controller through an Agent; or the server acquires the picture from the terminal to be displayed through the controller.
The sending unit 503 sends the compressed picture to the user end, or sends the compressed picture to the user end in a video stream or a fixed frame rate manner.
In addition, the compressed picture is displayed by the user side at the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold, or the compressed picture is displayed by the web browser of the user side at the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (6)
1. A terminal display method is characterized by comprising the following steps:
determining a picture for displaying a terminal screen, specifically comprising: the controller receives the picture; the image is sent by a terminal connected with the controller through an Agent program Agent, the Agent program Agent acquires data from a memory of the terminal to be displayed, the data reflects the brightness and color specifically displayed by each pixel on a terminal screen, the image used for displaying the terminal screen is generated through the data, the Agent program Agent sends the image to the controller after the image is generated, and the server can acquire the image from the controller;
compressing the picture, wherein the horizontal resolution of the compressed picture is less than or equal to a horizontal threshold and the vertical resolution is less than or equal to a vertical threshold; firstly, detecting the network transmission speed of a user, and then determining the size of a horizontal threshold and a vertical threshold according to the network transmission speed of the user; compressing the picture is performed by a server or a controller;
sending the compressed picture to a user side for displaying the compressed picture by the user side with the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold, specifically comprising: and sending the compressed picture to a user side in a video stream or fixed frame rate mode, and displaying the compressed picture with the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold through a web browser of the user side.
2. The method of claim 1, wherein compressing the picture comprises:
determining a horizontal compression rate according to the horizontal resolution of the picture, wherein the horizontal compression rate is used for indicating that the horizontal resolution of the picture is compressed to be less than or equal to a horizontal threshold value;
and compressing the picture according to the horizontal compression ratio and the aspect ratio.
3. The method of claim 1, wherein compressing the picture comprises:
determining a vertical compression rate according to the vertical resolution of the picture, wherein the vertical compression rate is used for indicating that the vertical resolution of the picture is compressed to be less than or equal to a vertical threshold value;
and compressing the picture according to the vertical compression ratio and the aspect ratio.
4. The method of claim 1, wherein compressing the picture comprises:
determining a horizontal compression rate according to the horizontal resolution of the picture, wherein the horizontal compression rate is used for indicating that the horizontal resolution of the picture is compressed to be less than or equal to a horizontal threshold value;
determining a vertical compression rate according to the vertical resolution of the picture, wherein the vertical compression rate is used for indicating that the vertical resolution of the picture is compressed to be less than or equal to a horizontal threshold value;
and compressing the picture according to the horizontal compression rate and the vertical compression rate.
5. A terminal display device, comprising: a determination unit, a compression unit and a transmission unit, wherein:
the determining unit is used for determining a picture for displaying a terminal screen; wherein the controller receives the picture; the image is sent by a terminal connected with the controller through an Agent program Agent, the Agent program Agent acquires data from a memory of the terminal to be displayed, the data reflects the specific display brightness and color of each pixel on a terminal screen, the image used for displaying the terminal screen is generated through the data, the Agent program Agent sends the image to the controller after the image is generated, and the server can acquire the image from the controller;
the compression unit compresses the picture, wherein the horizontal resolution of the compressed picture is less than or equal to a horizontal threshold and the vertical resolution is less than or equal to a vertical threshold; firstly, detecting the network transmission speed of a user, and then determining the size of a horizontal threshold and a vertical threshold according to the network transmission speed of the user; compressing the picture is performed by a server or a controller;
the sending unit is configured to send the compressed picture to a user side, and is configured to display the compressed picture with the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold through the user side, and specifically is configured to: and sending the compressed picture to a user side in a video stream or fixed frame rate mode, and displaying the compressed picture with the horizontal resolution of the horizontal threshold and the vertical resolution of the vertical threshold through a web browser of the user side.
6. The apparatus of claim 5, wherein compressing the picture comprises:
determining a horizontal compression rate according to the horizontal resolution of the picture, wherein the horizontal compression rate is used for indicating that the horizontal resolution of the picture is compressed to be less than or equal to a horizontal threshold value;
and compressing the picture according to the horizontal compression ratio and the aspect ratio.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710536357.5A CN107332914B (en) | 2017-07-04 | 2017-07-04 | Terminal display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710536357.5A CN107332914B (en) | 2017-07-04 | 2017-07-04 | Terminal display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107332914A CN107332914A (en) | 2017-11-07 |
CN107332914B true CN107332914B (en) | 2020-09-01 |
Family
ID=60199078
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710536357.5A Active CN107332914B (en) | 2017-07-04 | 2017-07-04 | Terminal display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107332914B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111381749A (en) * | 2018-12-28 | 2020-07-07 | 广州市百果园信息技术有限公司 | Image display and processing method, device, equipment and storage medium |
CN109961438A (en) * | 2019-04-08 | 2019-07-02 | 武汉华工激光工程有限责任公司 | A kind of light spot image analysis method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0780826A3 (en) * | 1995-12-18 | 1997-07-30 | International Business Machines Corporation | Driving method of liquid crystal display device |
CN102141957A (en) * | 2010-10-21 | 2011-08-03 | 华为技术有限公司 | Auxiliary test method, device and system for remote real machine |
CN104376090A (en) * | 2014-11-20 | 2015-02-25 | 北京安奇智联科技有限公司 | Screen synchronization equipment of browser in computing equipment and mobile terminal |
CN105872542A (en) * | 2016-05-27 | 2016-08-17 | 北京金山安全软件有限公司 | Image compression method and device and electronic equipment |
CN106599023A (en) * | 2016-11-01 | 2017-04-26 | 乐视控股(北京)有限公司 | Picture display optimization method and apparatus |
CN106681745A (en) * | 2015-11-09 | 2017-05-17 | 五八同城信息技术有限公司 | Picture loading method and terminal |
CN103399802B (en) * | 2013-07-30 | 2018-02-16 | Tcl集团股份有限公司 | A kind of picture pre-add support method and device |
-
2017
- 2017-07-04 CN CN201710536357.5A patent/CN107332914B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0780826A3 (en) * | 1995-12-18 | 1997-07-30 | International Business Machines Corporation | Driving method of liquid crystal display device |
CN102141957A (en) * | 2010-10-21 | 2011-08-03 | 华为技术有限公司 | Auxiliary test method, device and system for remote real machine |
CN103399802B (en) * | 2013-07-30 | 2018-02-16 | Tcl集团股份有限公司 | A kind of picture pre-add support method and device |
CN104376090A (en) * | 2014-11-20 | 2015-02-25 | 北京安奇智联科技有限公司 | Screen synchronization equipment of browser in computing equipment and mobile terminal |
CN106681745A (en) * | 2015-11-09 | 2017-05-17 | 五八同城信息技术有限公司 | Picture loading method and terminal |
CN105872542A (en) * | 2016-05-27 | 2016-08-17 | 北京金山安全软件有限公司 | Image compression method and device and electronic equipment |
CN106599023A (en) * | 2016-11-01 | 2017-04-26 | 乐视控股(北京)有限公司 | Picture display optimization method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN107332914A (en) | 2017-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9615112B2 (en) | Method, system, player and mobile terminal for online video playback | |
CN108924582B (en) | Video recording method, computer readable storage medium and recording and playing system | |
WO2017202170A1 (en) | Method and device for video compression and electronic device | |
TWI717317B (en) | Method and device for taking screenshot of display image of display device | |
CN113434101A (en) | Device control method, device, storage medium, and electronic apparatus | |
CN114286172B (en) | Data processing method and device | |
CN105827484A (en) | Synchronous test image display method and system | |
CN110234005B (en) | Method, device, medium and electronic equipment for evaluating video quality | |
CN107332914B (en) | Terminal display method and device | |
CN109068165B (en) | Dynamic graph display method and device | |
US10205940B1 (en) | Determining calibration settings for displaying content on a monitor | |
US20220308821A1 (en) | Dividing method, distribution method, medium, server, system | |
CN108124273A (en) | A kind of method of acquisition of information, equipment and medium | |
CN114466228B (en) | Method, equipment and storage medium for improving smoothness of screen projection display | |
CN107395692B (en) | Terminal screen methods of exhibiting and device | |
CN111013131A (en) | Delayed data acquisition method, electronic device, and storage medium | |
CN115701627A (en) | Display device image quality debugging method and device, debugging device and debugging system | |
KR20120127067A (en) | Apparatus and method for determining screen equivalency to test compatibility | |
CN111221444A (en) | Split screen special effect processing method and device, electronic equipment and storage medium | |
CN116193189A (en) | Frame loss rate testing method, device and system, electronic equipment and storage medium | |
CN116149773A (en) | Oblique photography model display method and device and electronic equipment | |
CN104125497A (en) | Webpage video recording method and device | |
CN110189388B (en) | Animation detection method, readable storage medium, and computer device | |
CN106131145B (en) | A kind of projecting method of mobile terminal | |
CN113114955B (en) | Video generation method and device and electronic 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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210720 Address after: 100016 no.4301, No.52 Jiuxianqiao hospital, Chaoyang District, Beijing Patentee after: BEIJING TESTIN INFORMATION TECHNOLOGY Co.,Ltd. Address before: 100041 room 9579, building 3, 3 Xijing Road, Badachu hi tech park, Shijingshan District, Beijing Patentee before: BEIJING TESTIN NETWORK TECHNOLOGY Co.,Ltd. |