CN112631490A - Display interface control method and device, computer equipment and storage medium - Google Patents
Display interface control method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN112631490A CN112631490A CN202011615415.1A CN202011615415A CN112631490A CN 112631490 A CN112631490 A CN 112631490A CN 202011615415 A CN202011615415 A CN 202011615415A CN 112631490 A CN112631490 A CN 112631490A
- Authority
- CN
- China
- Prior art keywords
- control instruction
- control
- video area
- display interface
- instruction
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the invention discloses a display interface control method, a display interface control device, computer equipment and a storage medium. The method comprises the following steps: acquiring a first control instruction aiming at a video area in a set time period; and processing the video area according to each first control instruction, and updating a display interface where the video area is located so that the display interface displays the processed video area. The embodiment of the invention can improve the display stability of the display interface and improve the display accuracy of the display interface.
Description
Technical Field
The embodiment of the invention relates to the field of software development, in particular to a display interface control method and device, computer equipment and a storage medium.
Background
In a system supporting control of multiple control terminals, there are multiple users operating a resource object simultaneously. For example, the display control system may support multiple terminals to control the screen simultaneously, and for example, the multiple terminals may change the position information of the same screen object simultaneously.
The display control system can be used for carrying out video acquisition on a plurality of scenes provided with cameras, computer screens, video conference terminal equipment and the like; and the accessed display devices such as a display screen, a television, a projector and the like are controlled, and the video output is controlled through the high-definition hybrid matrix, so that a user can preview the video more intuitively and quickly.
When a plurality of terminals simultaneously change the position information of the same screen object in the display and control system (such as operations of zooming in, zooming out, moving and the like on a screen), each terminal needs to send and receive a large number of control instructions in a short time, and because the operation of each terminal is different, when the terminal refreshes the display position of the screen of the interface according to the control instructions, the screen control is severely shaken, the display position of the screen is abnormal, the interface does not respond and the like.
Disclosure of Invention
The embodiment of the invention provides a display interface control method and device, computer equipment and a storage medium, which can improve the display stability of a display interface and improve the display accuracy of the display interface.
In a first aspect, an embodiment of the present invention provides a display interface control method, including:
acquiring a first control instruction aiming at a video area in a set time period;
and processing the video area according to each first control instruction, and updating a display interface where the video area is located so that the display interface displays the processed video area.
In a second aspect, an embodiment of the present invention further provides a display interface control method, including:
displaying at least one video area on a display interface;
acquiring a control instruction of the video area, and sending the control instruction to a server, wherein the server is used for acquiring the control instruction sent by at least one control device aiming at the video area in a set time period;
and receiving at least one control instruction sent by the server, processing a video area, and updating a display interface where the video area is located so that the display interface displays the processed video area.
In a third aspect, an embodiment of the present invention provides a display interface control apparatus, including:
the first control instruction acquisition module is used for acquiring a first control instruction aiming at a video area in a set time period;
and the display interface updating module is used for processing the video area according to each first control instruction and updating the display interface where the video area is located so that the display interface displays the processed video area.
In a fourth aspect, an embodiment of the present invention provides a display interface control apparatus, including:
the video area display module is used for displaying at least one video area on the display interface;
the control instruction uploading module is used for acquiring a control instruction of the video area and sending the control instruction to a server, and the server is used for acquiring the control instruction sent by at least one control device aiming at the video area in a set time period;
and the display interface updating module is used for receiving at least one control instruction sent by the server, processing the video area and updating the display interface where the video area is located so that the display interface displays the processed video area.
In a fifth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the display interface control method according to any one of the embodiments of the present invention.
In a sixth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the display interface control method according to any one of the embodiments of the present invention.
According to the embodiment of the invention, the first control instruction in the set time period is counted, the video area is processed according to the first control instruction, and the display interface where the video area is located is updated only once according to the processed video area, so that the display error of the display interface caused by the real-time corresponding control instruction can be avoided, the problems of severe jitter, display error and non-response of interface display caused by short-time interface refreshing in the prior art are solved, the display accuracy of the video area in the display interface can be improved, the display stability of the display interface is improved, and the display effect of the video area in the display interface is improved.
Drawings
Fig. 1 is a flowchart of a display interface control method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a display interface control method according to a first embodiment of the present invention;
FIG. 3 is a flowchart of a display interface control method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a display interface control apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a display interface control apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a display interface control method in a first embodiment of the present invention, where this embodiment is applicable to a situation where multiple control terminals simultaneously issue control instructions to a resource object in a computer device, and the method may be executed by a display interface control apparatus provided in the embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, and may be generally integrated into a computer device, for example, a computer device capable of supporting simultaneous control of multiple electronic devices, where the computer device may be understood as a controlled terminal device, and the electronic device may be understood as a control terminal device. As shown in fig. 1, the method of this embodiment specifically includes:
s110, a first control instruction aiming at the video area in a set time period is obtained.
The first control instruction is used for controlling a video area displayed on the controlled end device. The first control instruction is a control instruction generated by at least one control device. The control device may include a controlled end device, and/or a computer device operating independently of the controlled end device.
Typically a first control instruction is used to control a video area. Different first control instructions can control different video areas. The set time period is used to determine a start time and a stop time for collecting the first control instruction. Illustratively, the set time period is 1 second. The first control instruction may include a size control instruction for the video area, a position control instruction for the video area, an add/delete instruction for the video area, and the like.
And S120, processing the video area according to each first control instruction, and updating the display interface where the video area is located so that the display interface displays the processed video area.
The display interface can be a software interface of a display control system in the computer equipment. At least one video area is displayed on the display interface. For each video area, the display interface control method provided by the embodiment of the invention can be used for displaying. The video area can be processed according to the first control instruction, and the processed video area is updated and displayed on the display interface, so that the display interface can be updated only once.
Optionally, the obtaining a first control instruction for the video area in the set time period includes: receiving a second control instruction of the video area within a set time period; and combining the currently received second control instruction and at least one pre-cached control instruction to obtain at least one first control instruction.
The second control instruction and the control instructions of the caches are merged, so that repeated instructions can be reduced, and the processing cost is reduced. The second control instruction may be understood as a control instruction directly generated by the control device. The first control instruction can be understood as combining a large number of control instructions to obtain a small number of control instructions, so that repeated instructions can be reduced, the received second control instructions are combined in advance, and the processing operation of processing the video area according to each received control instruction is reduced.
The second control instruction is a control instruction received in real time, and can be compared with each control instruction cached at present every time a second control instruction is received within a set time period, and when merging processing can be performed, the received second control instruction and the control instruction cached in advance are merged to obtain the first control instruction. And when the second control instruction can be synthesized with any one of the cached control instructions, determining the synthesized new control instruction as the first control instruction. The second control instruction that cannot be synthesized may be directly determined as the first control instruction. And meanwhile, directly determining the control instruction which is not subjected to merging and is cached in advance as a first control instruction. The first control instruction at the current time may be used as a control instruction that is cached in advance when the second control instruction is received next time.
The first control instruction is obtained by merging the second control instructions, so that redundant instructions can be reduced, the video area is processed according to a small number of instructions, and the processing efficiency of the video area can be improved.
Optionally, the merging the currently received second control instruction and the at least one control instruction cached in advance to obtain the at least one first control instruction includes: inquiring a target control instruction with the same control function type as the currently received second control instruction in each pre-cached control instruction; merging the target control instruction and the currently received second control instruction, and determining a merged control instruction corresponding to the control function type; and determining the merged control instruction and the control instruction of the cache except the target control instruction as a first control instruction.
The control function type is used to describe the type of control function. Optionally, the control function types include an area size adjustment type, an area location adjustment type, and an area add/delete type.
And the control instruction corresponding to the control function type is used for realizing the control function. For example, the control instruction corresponding to the area size adjustment type is used to adjust the size of the video area, for example, to enlarge the video area or reduce the video area. The control instruction corresponding to the area position adjustment type is used to adjust the position of the video area, for example, to move the video area to the left, to the right, to the up, or to the down, etc. And the control instruction corresponding to the area adding and deleting type is used for adding the video area or deleting the video area. By configuring control instructions of a plurality of control function types, the control functions of the control instructions can be enriched, the application scenes of the control instructions are increased, and diversified control requirements are met.
And classifying the control instructions according to the control function types to obtain the control instructions corresponding to the control function types respectively. When a second control instruction is received, a target control instruction with the same control function type as the received second control instruction can be inquired in each pre-cached control instruction, and the target control instruction and the currently received second control instruction are combined to obtain a combined control instruction corresponding to the control function type. And determining other pre-cached control instructions which are not subjected to merging processing and merging control instructions as first control instructions. That is, the first control instruction includes a control instruction subjected to merge processing and a control instruction not subjected to merge processing.
And merging the second control instruction and the target control instruction to obtain a merged control instruction corresponding to the control function type. The second control instruction and the target control instruction are merged, and the merging of the control instructions may be performed according to at least one of the same control instruction, the priority of the control device, a control value (for example, an amplification factor, a reduction factor, or a moving distance) of the control instruction, a sequence of the reception time, and the like.
Illustratively, the control instruction corresponding to the region resizing type includes a control instruction to enlarge the video region and/or a control instruction to reduce the video region. In the case where the target control instruction and the currently received second control instruction are the same, the target control instruction or the second control instruction may be determined as the merged control instruction. Under the condition that the target control instruction and the currently received second control instruction are both control instructions of the amplified video area, sequencing according to the sequence of the receiving time, and determining the control instruction at the end of the sequence in a sequencing result as a combined control instruction of the amplified video area; or selecting the control instruction with the maximum magnification or the maximum reduction multiple, and determining the control instruction as a first control instruction for enlarging the video area; or the control instruction of the control device with the highest priority can be selected and determined as the merging control instruction for enlarging the video area. And aiming at the control instruction corresponding to the region size adjustment type, overlapping the multiples under the condition that the target control instruction is different from the currently received second control instruction to obtain a combined control instruction. For example, the magnification factor and the reduction factor are merged to obtain a first control command corresponding to the region size adjustment type, for example, the magnification factor is 3 times and the reduction factor is 2 times, and after merging, the first control command is a control command for enlarging the video region and the magnification factor is 1 time.
Illustratively, the control instruction corresponding to the region position adjustment type includes a control instruction for translating to at least one moving direction. In the case where the target control instruction and the currently received second control instruction are the same, the target control instruction may be determined as the merged control instruction. Under the condition that the target control instruction and the currently received second control instruction are control instructions in the same moving direction, sequencing according to the sequence of the receiving time, and determining the control instruction with the last order in the sequencing result as a combined control instruction in the moving direction; or selecting the control instruction with the maximum moving distance and determining the control instruction as the combined control instruction of the moving direction; or the control instruction of the control device with the highest priority can be selected and determined as the combined control instruction of the moving direction. And under the condition that the moving directions of the target control instruction and the currently received second control instruction are opposite, overlapping the moving distances to obtain a combined control instruction. For example, the second control instruction for left shift and the target control instruction for right shift are merged, that is, the distance for left shift and the distance for right shift are merged to obtain a merged control instruction, for example, the merged control instruction is shifted to the left by 10 units and shifted to the right by 5 units, and after merging, the merged control instruction is a control instruction for left shift of the video area and shifted to the left by 5 units.
Illustratively, the control instruction corresponding to the region adding and deleting type includes a control instruction for adding a video region and/or a control instruction for deleting a video region. In the case where the target control instruction and the currently received second control instruction are the same, the target control instruction may be determined as the merged control instruction. Under the condition that the target control instruction is different from the currently received second control instruction, sequencing can be carried out according to the sequence of the receiving time, and a combined control instruction corresponding to the region adding and deleting type is determined according to the control instruction at the last order in the sequencing result; and selecting the control instruction of the control device with the highest priority, and determining the combined control instruction corresponding to the region adding and deleting type.
The control instructions are classified according to the control function types, and the target control instructions with the same control function types and the currently received second control instructions are merged to obtain merged control instructions corresponding to the control functions, so that the repeated second control instructions can be reduced, the merged control instructions corresponding to the control function types are accurately and respectively merged for each control function type, the merged control instructions corresponding to each control function type are determined, the merging accuracy is improved, the repeated instructions are reduced, meanwhile, the instructions are merged in advance, the video area can be reduced from being processed according to each instruction, the processing speed is increased, and the processing efficiency of the video area can be improved.
Optionally, the display interface control method further includes: establishing a buffer queue; storing the pre-cached control instruction in the cache queue; the querying, in each pre-cached control instruction, a target control instruction having the same control function type as the currently received second control instruction includes: inquiring a target control instruction with the same control function type as the currently received second control instruction in the cache queue; determining the merged control instruction and the control instruction of the cache except the target control instruction as a first control instruction, comprising: and updating the cache queue according to the combined control instruction, and determining the control instruction in the cache queue as a first control instruction.
The buffer queue is used for storing the control instruction of the corresponding video area in the set time period.
Actually, when the second control instruction is received and the control function type of each control instruction in the cache queue is different from the control function type of the currently received second control instruction, the second control instruction is directly stored in the cache queue for storage. And under the condition that the second control instruction is received and a target control instruction with the same control function type as the currently received second control instruction exists in the cache queue, combining the currently received second control instruction and the target control instruction to obtain a combined control instruction, and updating (such as replacing) the target control instruction by adopting the combined control instruction so as to update the cache queue. The updated control instruction may be determined as the first control instruction.
In addition, when the target control instruction identical to the second control instruction is not inquired, the second control instruction is directly added into the cache queue.
By establishing the cache queue and updating the cache in real time according to the received control instruction, the updating real-time performance of the cache queue is improved, and meanwhile, the control instructions aiming at the video area are synchronously merged, so that the merging real-time performance of the control instructions is improved, and the merging processing efficiency of the control instructions is improved.
Optionally, the obtaining the first control instruction in the set time period includes: starting to collect control instructions sent by at least one control device for the video area; when the cache timing notice is detected, determining the currently collected control instruction as a first control instruction in a set time period; after the display interface where the video area is located is updated, the method further comprises the following steps: and starting to receive new control instructions for the video area.
The computer device can display a plurality of video areas simultaneously and collect control commands of each video area respectively. The first control instruction transmitted by the at least one control device can be collected for each video area. And caching the timing notice, wherein the timing notice is used for determining the acquisition time length of the control instruction and determining the updating time length of the display interface. And caching the timing notice, wherein the notice information can be generated when the preset time is up to the preset time.
A cache timing notice is detected indicating that the collection of the first control instruction of the current cycle is complete. And after the display interface where the video area is located is updated, indicating that the collection operation of the first control instruction of the next period is started.
Control instructions transmitted by at least one control device for a video area may be added to a pre-established buffer queue. And when the cache timing notice is detected, determining the control instruction in the current cache queue as a first control instruction in a set time period. And after the display interface where the video area is located is updated, emptying the cache queue and adding a new control instruction.
By detecting the cache timing notice, whether the collection operation of the first control instruction of the current period is finished or not is judged, and after the display interface is updated, a new control instruction is received, so that the first control instruction can be accurately and periodically processed, the first control instruction is prevented from being responded in real time, the first control instruction is responded periodically, the display interface is updated, the display stability of the display interface can be improved, and the display effect is improved.
In a specific example, as shown in fig. 2, the display interface control method may include:
s201, starting software.
The software can be control software of a display control system, and can receive videos sent by at least one video acquisition device, establish at least one video area in a display interface and respectively display the acquired videos.
S202, setting a cache instruction and creating a cache queue.
And the cache instruction is used for screening the control instructions and adding the control instructions needing caching into the cache queue for caching. A buffer queue can be created for each video area, and the buffer queue corresponds to the video area.
S203, a buffer timer is created and started.
The buffer timer is used for timing and generating a buffer timing notice when the accumulated time reaches the preset time.
S204, receiving a control instruction sent by at least one control device.
S205, judging whether the received control instruction needs to be cached, if so, executing S206; otherwise, S212 is executed.
Whether the received control instruction needs to be cached in the cache queue or not can be judged according to a preset caching rule. For example, if the received control instruction is an instruction for enlarging, reducing, moving, adding, deleting and the like of the video area, the received control instruction is determined to be a control instruction needing to be cached, that is, the received control instruction is determined to be the currently received second control instruction.
S206, searching the target control instruction which is the same as the received control instruction from the cache queue.
And S207, merging the same control commands.
The same control instruction may refer to two instructions of the same type of control function.
And when a target control instruction identical to the received control instruction is inquired, combining the received control instruction and the target control instruction to obtain a combined control instruction.
And S208, adding or refreshing the buffer queue.
And when the target control instruction which is the same as the received control instruction is not inquired, adding the control instruction into the cache queue. And when a target control instruction which is the same as the received control instruction is inquired, replacing the target control instruction with the merged control instruction obtained by merging processing in the cache queue, and updating the cache queue. And carrying out error correction calculation such as combination and offset on the target control instruction, generating a new control instruction, determining the new control instruction as a combined control instruction, and finally adding or refreshing the control instruction in the cache queue.
S209, when the statistical duration of the cache timer reaches the preset duration, receiving a cache timing notice.
And S210, stopping the buffer timer, and refreshing the display interface according to the control instruction in the buffer queue.
When the buffer timing notification is received, the first control instruction may be determined from the control instruction buffered in the buffer queue at the current time. And refreshing the display interface according to the first control instruction in the cache queue.
S211, emptying the buffer queue, and returning to continue executing S203.
S212, refreshing the display interface.
S211 and S212 may be executed in parallel.
S213, receiving the software exit notice.
Upon detecting an instruction to shut down software, a software exit notification is received. At this point, the software stops operating.
S214, stopping the timer and emptying the buffer queue.
According to the embodiment of the invention, the first control instruction in the set time period is counted, the video area is processed according to the first control instruction, and the display interface where the video area is located is updated only once according to the processed video area, so that the display error of the display interface caused by the real-time corresponding control instruction can be avoided, the problems of severe jitter, display error and non-response of interface display caused by short-time interface refreshing in the prior art are solved, the display accuracy of the video area in the display interface can be improved, the display stability of the display interface is improved, and the display effect of the video area in the display interface is improved.
Example two
Fig. 3 is a flowchart of a display interface control method in a second embodiment of the present invention, where this embodiment is applicable to a case where multiple control devices simultaneously initiate a control instruction to a resource object in one computer device and display the resource object on one of the control devices, and the method may be executed by a display interface control apparatus provided in the second embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, and may be generally integrated into a computer device, for example, one of multiple control devices, where the computer device may be understood as a controlled-end device, and the control device may be understood as a control-end device. As shown in fig. 3, the method of this embodiment specifically includes:
and S310, displaying at least one video area on the display interface.
The control device can run software of the display control system to generate a display interface and display at least one video area on the display interface, and the video area can display videos acquired by the video acquisition device. In the control device, the user can input a control instruction in the display interface to perform display control on each video area.
S320, acquiring the control instruction of the video area, and sending the control instruction to a server, wherein the server is used for acquiring the control instruction sent by at least one control device aiming at the video area in a set time period.
The control instruction may refer to an instruction input by a user in an input module of the control device, for example, an instruction input through a touch screen of the control device by a gesture, a click, a press, and the like. The control instructions are used to control the video area. The server is used for collecting control instructions aiming at the video area sent by the plurality of control devices. Illustratively, the server may refer to a computer device provided in the first embodiment of the present invention, that is, a controlled end device.
S330, receiving at least one control instruction sent by the server, processing a video area, and updating a display interface where the video area is located so that the display interface displays the processed video area.
The at least one control instruction fed back by the server may refer to a control instruction within a set time period collected by the server, and the fed back control instruction may include a control instruction of the current control device, or may not include a control instruction of the current control device. And at least one control instruction fed back by the server is used for providing the current control device with the control instruction sent by other control devices aiming at the same video area. The current control device can process the video area according to the fed back at least one control instruction, and update the display interface where the video area is located, so that the processed video area is displayed on the display interface, and therefore the display interface of the current control device and the display interface of the display control system at the server end are updated synchronously.
At least one control instruction fed back by the server may be a first control instruction or a second control instruction, and the current control device performs merging processing on the second control instruction to obtain the first control instruction.
In a multi-terminal control mode of a display control system, operations such as screen zooming, zooming out, moving, adding and deleting are easy to generate a large number of operation instructions in a short time, and display abnormality of a display interface is easy to cause, so that the display interface control processing is required to be used for the control instructions.
In a specific example, for a control-end device, when a user logs in a display control system terminal, a current control device generates a display interface for controlling a video area, and when the video area is selected to start operations such as zooming in, zooming out, dragging and the like, the display interface of the current control device is controlled by the following steps: starting operations such as enlarging, reducing and dragging of the video area; stopping the buffer timer; sending a relevant control instruction to a server, and caching operation feedback of the current control equipment and control instruction notifications of other control equipment; stopping operations such as enlarging, reducing and dragging of the video area; obtaining a control instruction in a set time period of cache, and refreshing a display interface; and starting a buffer timer, and regularly refreshing a display interface.
Correspondingly, for the controlled terminal equipment, the display interface control steps of the display control system at the server terminal are as follows: when a notification that the display control system terminal of the control device successfully logs in is received, a cache timer is started, operation instructions such as amplification, reduction, dragging, addition and deletion of a video area are cached, and a cache queue is established; caching the second control instructions sent by the control equipment in a cache queue, and analyzing and refreshing the cache queue; and after receiving the cache timing notice, refreshing the display interface according to the first control instruction in the cache queue.
According to the embodiment of the invention, the control instruction aiming at the video area is sent to the server, and the control instruction sent by the server is received, so that the video area on the display interface can be processed according to the control instruction aiming at least one control device of the video area, the display interface is updated, the display interface is synchronously updated in the control device and the server-side display control system, and the display accuracy of the display interface is improved in the control device, so that a user is helped to input a correct control instruction in the accurate display interface, and the control accuracy of the control device is improved.
EXAMPLE III
Fig. 4 is a schematic diagram of a display interface control device according to a third embodiment of the present invention. The third embodiment is a corresponding device for implementing the display interface control method provided by the above embodiments of the present invention, and the device may be implemented in a software and/or hardware manner, and may be generally integrated into a computer device.
Accordingly, the apparatus of the present embodiment may include:
a first control instruction obtaining module 410, configured to obtain a first control instruction for a video area within a set time period;
the display interface updating module 420 is configured to process the video area according to each of the first control instructions, and update the display interface where the video area is located, so that the display interface displays the processed video area.
According to the embodiment of the invention, the first control instruction in the set time period is counted, the video area is processed according to the first control instruction, and the display interface where the video area is located is updated only once according to the processed video area, so that the display error of the display interface caused by the real-time corresponding control instruction can be avoided, the problems of severe jitter, display error and non-response of interface display caused by short-time interface refreshing in the prior art are solved, the display accuracy of the video area in the display interface can be improved, the display stability of the display interface is improved, and the display effect of the video area in the display interface is improved.
Further, the first control instruction obtaining module 410 includes: the second control instruction receiving unit is used for receiving a second control instruction of the video area within a set time period; and combining the currently received second control instruction and at least one pre-cached control instruction to obtain at least one first control instruction.
Further, the second control instruction receiving unit is specifically configured to: inquiring a target control instruction with the same control function type as the currently received second control instruction in each pre-cached control instruction; merging the target control instruction and the currently received second control instruction, and determining a merged control instruction corresponding to the control function type; and determining the merged control instruction and the control instruction of the cache except the target control instruction as a first control instruction.
Further, the display interface control device further includes: the buffer queue establishing module is used for establishing a buffer queue; storing the pre-cached control instruction in the cache queue; the second control instruction receiving unit is specifically configured to: inquiring a target control instruction with the same control function type as the currently received second control instruction in the cache queue; and the cache queue updating module is used for updating the cache queue according to the merging control instruction and determining the control instruction in the cache queue as a first control instruction.
Further, the first control instruction obtaining module 410 includes: the cache timing unit is used for the second control instruction receiving unit and is used for starting to collect the control instructions sent by the at least one control device aiming at the video area; when the cache timing notice is detected, determining the currently collected control instruction as a first control instruction in a set time period; the display interface control apparatus further includes: and the period cache module is used for starting to receive a new control instruction aiming at the video area after the display interface where the video area is located is updated.
The display interface control device can execute the display interface control method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executed display interface control method.
Example four
Fig. 5 is a schematic diagram of a display interface control device according to a fourth embodiment of the present invention. The fourth embodiment is a corresponding device for implementing the display interface control method provided by the foregoing embodiments of the present invention, and the device may be implemented in a software and/or hardware manner, and may be generally integrated into a computer device.
Accordingly, the apparatus of the present embodiment may include:
a video area display module 510, configured to display at least one video area on a display interface;
a control instruction uploading module 520, configured to acquire a control instruction of the video area and send the control instruction to a server, where the server is configured to acquire a control instruction sent by at least one control device in a set time period for the video area;
the display interface updating module 530 is configured to receive at least one control instruction sent by the server, process a video area, and update a display interface where the video area is located, so that the display interface displays the processed video area.
According to the embodiment of the invention, the control instruction aiming at the video area is sent to the server, and the control instruction sent by the server is received, so that the video area on the display interface can be processed according to the control instruction aiming at least one control device of the video area, the display interface is updated, the display interface is synchronously updated in the control device and the server-side display control system, and the display accuracy of the display interface is improved in the control device, so that a user is helped to input a correct control instruction in the accurate display interface, and the control accuracy of the control device is improved.
The display interface control device can execute the display interface control method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executed display interface control method.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 6 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 6, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16. The computer device 12 may be a device that is attached to a high-speed industrial control bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read-Only Memory (CD-ROM), Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., Local Area Network (LAN), Wide Area Network (WAN)) via Network adapter 20. As shown, Network adapter 20 communicates with other modules of computer device 12 via bus 18. it should be understood that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with computer device 12, including without limitation, microcode, device drivers, Redundant processing units, external disk drive Arrays, (Redundant Arrays of Inesponsive Disks, RAID) systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement a display interface control method provided in any of the embodiments of the present invention.
EXAMPLE six
A sixth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a display interface control method according to any of the embodiments of the present invention:
that is, the program when executed by the processor implements: acquiring a first control instruction aiming at a video area in a set time period; and processing the video area according to each first control instruction, and updating a display interface where the video area is located so that the display interface displays the processed video area.
Or the program when executed by a processor implements: displaying at least one video area on a display interface; acquiring a control instruction of the video area, and sending the control instruction to a server, wherein the server is used for acquiring the control instruction sent by at least one control device aiming at the video area in a set time period; and receiving at least one control instruction sent by the server, processing a video area, and updating a display interface where the video area is located so that the display interface displays the processed video area.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a LAN or a WAN, or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A display interface control method is characterized by comprising the following steps:
acquiring a first control instruction aiming at a video area in a set time period;
and processing the video area according to each first control instruction, and updating a display interface where the video area is located so that the display interface displays the processed video area.
2. The method according to claim 1, wherein the obtaining the first control instruction for the video area within the set time period comprises:
receiving a second control instruction of the video area within a set time period;
and combining the currently received second control instruction and at least one pre-cached control instruction to obtain at least one first control instruction.
3. The method according to claim 2, wherein the merging the currently received second control instruction with the at least one pre-cached control instruction to obtain the at least one first control instruction comprises:
inquiring a target control instruction with the same control function type as the currently received second control instruction in each pre-cached control instruction;
merging the target control instruction and the currently received second control instruction, and determining a merged control instruction corresponding to the control function type;
and determining the merged control instruction and the control instruction of the cache except the target control instruction as a first control instruction.
4. The method of claim 3, further comprising:
establishing a buffer queue;
storing the pre-cached control instruction in the cache queue;
the querying, in each pre-cached control instruction, a target control instruction having the same control function type as the currently received second control instruction includes:
inquiring a target control instruction with the same control function type as the currently received second control instruction in the cache queue;
determining the merged control instruction and the control instruction of the cache except the target control instruction as a first control instruction, comprising:
and updating the cache queue according to the combined control instruction, and determining the control instruction in the cache queue as a first control instruction.
5. The method of claim 1, wherein the obtaining the first control instruction within the set time period comprises:
starting to collect control instructions sent by at least one control device for the video area;
when the cache timing notice is detected, determining the currently collected control instruction as a first control instruction in a set time period;
after the display interface where the video area is located is updated, the method further comprises the following steps:
and starting to receive new control instructions for the video area.
6. A display interface control method is characterized by comprising the following steps:
displaying at least one video area on a display interface;
acquiring a control instruction of the video area, and sending the control instruction to a server, wherein the server is used for acquiring the control instruction sent by at least one control device aiming at the video area in a set time period;
and receiving at least one control instruction sent by the server, processing a video area, and updating a display interface where the video area is located so that the display interface displays the processed video area.
7. A display interface control apparatus, comprising:
the first control instruction acquisition module is used for acquiring a first control instruction aiming at a video area in a set time period;
and the display interface updating module is used for processing the video area according to each first control instruction and updating the display interface where the video area is located so that the display interface displays the processed video area.
8. A display interface control apparatus, comprising:
the video area display module is used for displaying at least one video area on the display interface;
the control instruction uploading module is used for acquiring a control instruction of the video area and sending the control instruction to a server, and the server is used for acquiring the control instruction sent by at least one control device aiming at the video area in a set time period;
and the display interface updating module is used for receiving at least one control instruction sent by the server, processing the video area and updating the display interface where the video area is located so that the display interface displays the processed video area.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the display interface control method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a display interface control method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011615415.1A CN112631490A (en) | 2020-12-30 | 2020-12-30 | Display interface control method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011615415.1A CN112631490A (en) | 2020-12-30 | 2020-12-30 | Display interface control method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112631490A true CN112631490A (en) | 2021-04-09 |
Family
ID=75287044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011615415.1A Pending CN112631490A (en) | 2020-12-30 | 2020-12-30 | Display interface control method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112631490A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446087A (en) * | 2010-10-12 | 2012-05-09 | 无锡江南计算技术研究所 | Instruction prefetching method and device |
US20140089598A1 (en) * | 2012-09-26 | 2014-03-27 | Qualcomm Incorporated | Methods and apparatus for managing page crossing instructions with different cacheability |
CN105245926A (en) * | 2015-09-29 | 2016-01-13 | 北京奇艺世纪科技有限公司 | Smart television control method and device |
CN110162245A (en) * | 2019-04-11 | 2019-08-23 | 北京达佳互联信息技术有限公司 | Analysis method, device, electronic equipment and the storage medium of graphic operation |
CN110597078A (en) * | 2019-09-27 | 2019-12-20 | 南京博联智能科技有限公司 | Equipment control implementation method, device, electronic equipment, storage medium and system |
CN110716567A (en) * | 2019-10-18 | 2020-01-21 | 上海快仓智能科技有限公司 | Mobile equipment and control method and control device thereof |
CN110851787A (en) * | 2020-01-14 | 2020-02-28 | 中科寒武纪科技股份有限公司 | Merging instruction processing method and device, electronic equipment and storage medium |
-
2020
- 2020-12-30 CN CN202011615415.1A patent/CN112631490A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446087A (en) * | 2010-10-12 | 2012-05-09 | 无锡江南计算技术研究所 | Instruction prefetching method and device |
US20140089598A1 (en) * | 2012-09-26 | 2014-03-27 | Qualcomm Incorporated | Methods and apparatus for managing page crossing instructions with different cacheability |
CN105245926A (en) * | 2015-09-29 | 2016-01-13 | 北京奇艺世纪科技有限公司 | Smart television control method and device |
CN110162245A (en) * | 2019-04-11 | 2019-08-23 | 北京达佳互联信息技术有限公司 | Analysis method, device, electronic equipment and the storage medium of graphic operation |
CN110597078A (en) * | 2019-09-27 | 2019-12-20 | 南京博联智能科技有限公司 | Equipment control implementation method, device, electronic equipment, storage medium and system |
CN110716567A (en) * | 2019-10-18 | 2020-01-21 | 上海快仓智能科技有限公司 | Mobile equipment and control method and control device thereof |
CN110851787A (en) * | 2020-01-14 | 2020-02-28 | 中科寒武纪科技股份有限公司 | Merging instruction processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170123751A1 (en) | Multiplatform Screen Sharing Solution | |
US8990727B2 (en) | Fisheye-based presentation of information for mobile devices | |
CN109614195B (en) | Method, device and equipment for preloading list items and storage medium | |
US9509733B2 (en) | Program, communication apparatus and control method | |
CN113138827B (en) | Method, device, electronic equipment and medium for displaying data | |
US20150058787A1 (en) | Swipe toolbar to switch tabs | |
CN111190520A (en) | Menu item selection method and device, readable medium and electronic equipment | |
CN114997114B (en) | Document updating method, device, equipment and medium | |
CN113032172B (en) | Abnormality detection method and device and electronic equipment | |
CN111596991A (en) | Interactive operation execution method and device and electronic equipment | |
CN115730092A (en) | Method, apparatus, device and storage medium for content presentation | |
CN116302289A (en) | Display interaction method, device and equipment | |
CN115080037A (en) | Method, device, equipment and storage medium for page interaction | |
US20240094883A1 (en) | Message selection method, apparatus and device | |
CN112256172B (en) | Application display method, device, terminal and storage medium | |
CN110489023A (en) | Implementation method, device, equipment, medium and the system of windows display | |
CN112306413A (en) | Method, device, equipment and storage medium for accessing memory | |
CN112631490A (en) | Display interface control method and device, computer equipment and storage medium | |
US8856251B2 (en) | Picture processing method and apparatus for instant communication tool | |
CN115114463B (en) | Method and device for displaying media content, electronic equipment and storage medium | |
CN113194279B (en) | Recording method of network conference, computer readable storage medium and electronic device | |
CN110618771B (en) | Content display method, device, terminal and storage medium | |
CN109190097B (en) | Method and apparatus for outputting information | |
CN115100359A (en) | Image processing method, device, equipment and storage medium | |
CN107741992B (en) | Network storage method and device for conference records, intelligent tablet and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210409 |
|
RJ01 | Rejection of invention patent application after publication |