CN114201251A - Method, apparatus, device and medium for reducing writing trace display delay - Google Patents

Method, apparatus, device and medium for reducing writing trace display delay Download PDF

Info

Publication number
CN114201251A
CN114201251A CN202111211706.9A CN202111211706A CN114201251A CN 114201251 A CN114201251 A CN 114201251A CN 202111211706 A CN202111211706 A CN 202111211706A CN 114201251 A CN114201251 A CN 114201251A
Authority
CN
China
Prior art keywords
display
data
user input
handle
input data
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
Application number
CN202111211706.9A
Other languages
Chinese (zh)
Inventor
吴鑫
陈双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Honghe Innovation Information Technology Co Ltd
Original Assignee
Shenzhen Honghe Innovation Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Honghe Innovation Information Technology Co Ltd filed Critical Shenzhen Honghe Innovation Information Technology Co Ltd
Priority to CN202111211706.9A priority Critical patent/CN114201251A/en
Publication of CN114201251A publication Critical patent/CN114201251A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides a method, an apparatus, a device and a medium for reducing a display delay of a writing trace, including: acquiring a handle of the display device; the handle is a mapping pointer of a memory address corresponding to a device node of the display device; acquiring user input data from a device node of an input device; processing the user input data to obtain display graphic data; and sending the display graphic data to the memory address according to the handle so as to enable the display equipment to display the display graphic data. According to the method and the device, the user input data are directly acquired and processed to obtain the display graphic data, and the display graphic data are directly synchronized to the display equipment to be displayed through the pre-acquired handle, so that the time delay of writing trace display is reduced.

Description

Method, apparatus, device and medium for reducing writing trace display delay
Technical Field
The present disclosure relates to the field of human-computer interaction technologies, and in particular, to a method, an apparatus, a device, and a medium for reducing a display delay of a writing trace.
Background
With the increasing popularity of large display devices, such as large-sized liquid crystal displays or large-sized LED displays, the efficiency of exhibition and discussion can be improved by using the large display devices in work, study or conference, for example, targets discussed in a display image can be pointed out remotely by a laser light pen, or the targets discussed can be marked by a finger or a touch pen standing in front of the display device.
However, when a user manually draws a mark on a screen, the existing large-scale display device can significantly delay the operation of drawing the line by the user for displaying the drawn line by the user, that is, the writing trace display delay is high, the fluency of the writing trace display is poor, and the user experience is poor.
Disclosure of Invention
In view of the above, the present disclosure is directed to a method, an apparatus, a device and a medium for reducing delay of displaying a writing trace.
Based on the above object, the present disclosure provides a method for reducing the display delay of a writing trace, applied to a display device, comprising:
acquiring a handle of the display device; the handle is a mapping pointer of a memory address corresponding to a device node of the display device;
acquiring user input data from a device node of an input device;
processing the user input data to obtain display graphic data;
and sending the display graphic data to the memory address according to the handle so as to enable the display equipment to display the display graphic data.
Based on the same inventive concept, the present disclosure provides a device for reducing the display delay of a writing trace, which is applied to a display device, and comprises:
a handle acquisition module configured to acquire a handle of the display device; the handle is a mapping pointer of a memory address corresponding to a device node of the display device;
a user input data acquisition module configured to acquire user input data from a device node of an input device;
a display graph data generation module configured to process the user input data to obtain display graph data;
and the display graphic data sending module is configured to send the display graphic data to the memory address according to the handle so as to enable the display equipment to display the display graphic.
The device, still include: a handle construction module configured to construct the handle of the display device; is specifically configured to:
acquiring the equipment node of the display equipment;
and acquiring the memory address corresponding to the equipment node, and taking the mapping pointer of the memory address as the handle.
Optionally, the display-use graphics data generating module is specifically configured to:
processing the user input data through function operation to obtain the graphic data for display;
the method specifically comprises the following steps:
generating a coordinate point set according to the user input data;
and fitting the coordinate point set into a line by utilizing an interpolation algorithm, and taking the line as the graphic data for display.
Optionally, the display-use graphics data generating module is specifically configured to:
processing the user input data by using a drawing library tool to obtain the graphic data for display;
the method specifically comprises the following steps:
generating a coordinate point set according to the user input data;
and acquiring setting information including line type, line width and color, generating lines based on the coordinate point set according to the setting information, and taking the lines as the graphic data for display.
Based on the same inventive concept, the present disclosure provides an electronic device, which is characterized by comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method as described above when executing the program.
Based on the same inventive concept, the present disclosure provides a non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the above method.
From the foregoing, it can be seen that the present disclosure provides a method, an apparatus, a device and a medium for reducing delay of displaying a writing trace, including: acquiring a handle of the display device; the handle is a mapping pointer of a memory address corresponding to a device node of the display device; acquiring user input data from a device node of an input device; processing the user input data to obtain display graphic data; and sending the display graphic data to the memory address according to the handle so as to enable the display equipment to display the display graphic data. According to the method and the device, the user input data are directly acquired and processed to obtain the display graphic data, and the display graphic data are directly synchronized to the display equipment to be displayed through the pre-acquired handle, so that the time delay of writing trace display is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for reducing latency of displaying a writing trace according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a handle construction method according to an embodiment of the disclosure;
FIG. 3 is a diagram illustrating a scene of displaying a writing trace according to the related art;
FIG. 4 is a schematic diagram of a scene for displaying a writing trace according to an embodiment of the present disclosure;
FIG. 5 is a schematic structural diagram of an apparatus for reducing delay of displaying a writing trace according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a more specific hardware structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
It is to be noted that technical terms or scientific terms used in the embodiments of the present disclosure should have a general meaning as understood by those having ordinary skill in the art to which the present disclosure belongs, unless otherwise defined. The use of "first," "second," and similar terms in the embodiments of the disclosure is not intended to indicate any order, quantity, or importance, but rather to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
As described in the background art, when a user manually draws a mark on a screen, the large display device in the related art may significantly delay the operation of drawing a line by the user, that is, the writing trace display delay is high, and the fluency of the writing trace display is poor.
Specifically, in a large display device based on the android system in the related art, when a user manually draws a mark on a screen, the following processes are generally required: firstly, an application layer receives an input event of a user; then, carrying out superposition mixing calculation on each display object element of the current display interface of the system through a surfaceflinger system service of a system layer; then, waiting for a synchronizing signal (VSYNC) to arrive, combining the layers to generate a finally displayed picture and submitting the finally displayed picture to a Graphics Processing Unit (GPU); and finally, the GPU submits the picture to the bottom-layer display hardware equipment for display.
Due to the above-mentioned frame design limitation, each line drawing event request of the user needs to be judged and merged with all other existing graphic objects of the system layer by the area color depth value, and only after the frame synchronization signal of the system comes, the merging and submission of the image is performed once, so that the delay between the operation of the user and the display of the actual result is long, and the user feels poor smoothness in use.
In view of the above, the present disclosure provides a method, an apparatus, a device and a medium for reducing the delay of displaying a writing trace.
Referring to fig. 1, a schematic flow chart of a method for reducing latency of displaying a writing trace according to an embodiment of the present disclosure is shown; the method for reducing the display delay of the writing trace is applied to display equipment, and comprises the following steps:
and S110, acquiring a handle of the display device.
In some embodiments, the handle is a mapping pointer to a memory address corresponding to a device node of the display device.
A Handle (Handle) is an identifier used to identify an object or item, and may be used to describe a form, a file, etc., and is a special intelligent pointer used when an application refers to a memory block or an object managed by another system (e.g., a database, an operating system). The purpose of the handle is to establish a unique association with the object being accessed, and using the handle, the corresponding object can be referenced. And acquiring the handle of the display device, and managing and controlling the display device.
In some embodiments, the method for reducing latency of displaying the writing trace further comprises, before obtaining the handle of the display device: a handle for the display device is constructed.
Referring to fig. 2, a schematic flowchart of a handle construction method according to an embodiment of the present disclosure is provided; the handle construction method comprises the following steps:
s210, acquiring a device node of the display device.
The equipment node is a node file which is automatically loaded and generated for the equipment through the kernel drive of the Linux system when the Linux system is started up and operated and can control the equipment.
In the Linux system, access to a hardware device is similar to access to a common file, and in particular, a device node under/dev exists as a special file. Operation calls of various files, such as open, release, read, write, ioctl and the like, also need to be realized in the driver. The application opens the device through code such as open ("/dev/xxx", O _ RDWR). The driver provides various services to the application through such device nodes: such as read, write, ioctl, etc.
S220, obtaining a memory address corresponding to the equipment node, and taking a mapping pointer of the memory address as a handle.
The memory address is a segment of memory space allocated to the device in the system memory after the device is mounted.
In some embodiments, the memory address obtained by the device object generated at the time of device initialization is used by the command mmap of Linux. And the mapping pointer of the memory address of the display equipment is used as the handle of the display equipment.
And S120, acquiring user input data from the equipment node of the input equipment.
In some embodiments, the user inputs data, including:
click position coordinates, click area, click start time and click end time.
In some embodiments, the user input data is received through an input device (mouse, touch screen). Optionally, user input data may also be received via the network.
As an example, taking a touch screen as an example, when a user draws a line on the screen (e.g., a whiteboard is drawn by hand), the touch screen performs fast sampling on the current position of the user's finger or the brush in real time, and then connects the coordinates of the positions to form a line segment. In the sampling process, the click position coordinate, the click area, the click start time and the click end time need to be collected.
The input device is accessed into the system, recognized as character input device by the system and loaded with corresponding drive, and then reports the event data to the system as soon as there is input action, the original user input data is characterized by fast reporting speed and basically synchronous action time with the hardware.
However, in the related art, because the data structure of the original user input data is low-level and the formats are various and non-uniform, the android system layer will classify and normalize the original data and then transfer the data to the system middle layer, and the middle layer will convert and distribute the input data according to the foreground and background logic judgment and other setting rules applied in the current system. For the special scene application with high real-time requirement, which is whiteboard hand-drawing, the completion of the series of processes consumes more time.
The method for reducing the writing trace display delay provided by the embodiment of the application obtains user input data from the equipment node of the input equipment, and specifically comprises the following steps: the method has the advantages that the equipment nodes of the input equipment are directly opened, original user input data are copied (cloned), and the events and coordinates required by whiteboard drawing are obtained by screening, so that the data transmission time from input to response can be effectively shortened.
And S130, processing the input data of the user to obtain graphic data for display.
In some embodiments, the user input data is processed by a functional operation resulting in display graphics data. The method specifically comprises the following steps:
generating a coordinate point set according to user input data;
and fitting the coordinate point set into a line by utilizing an interpolation algorithm, and taking the line as graphic data for display.
In some embodiments, the user input data is processed using a drawing library tool to obtain display graphics data. The method specifically comprises the following steps:
generating a coordinate point set according to user input data;
and acquiring setting information including line types, line widths and colors, generating lines based on the coordinate point set according to the setting information, and taking the lines as graphic data for display.
A set of coordinate points generated from user input data obtained from device nodes of an input device contains only discrete and independent points, and drawing a line directly causes display jaggies. In addition, in the whiteboard software, the user sets the line type, line width, color, and the like, and even the parameter setting of the graphic, such as the parameter of a circle, a rectangle, and the like, all need to perform secondary mathematical calculation on the basis of the input points to generate the graphic data to be displayed finally.
As an example, for example, the user sets that a red line with a width of 1CM is drawn on the screen, but the data obtained from the touch screen is only a series of discontinuities of one pixel, and it is necessary to draw 100 points by enlarging the dot values of these scattered single pixels as a basis to reach the width of 1CM, and then continue the line with the width of 1CM (100 points wide) all the time with the position input by the user's finger.
The drawing library is an algorithm added with various graphic processing, such as smoothing, drawing circular arcs, Bezier curves and the like. The algorithm of the drawing library is optimized in performance, the speed is high, the effect is good, and the input point data can be changed into a line-shaped graph with the specified thickness color set by a user. By using a professional drawing library and using a more efficient and more complete graphic algorithm, the condition that the effect of the broken line is not smooth can be avoided.
And S140, sending the display graph data to the memory address according to the handle so that the display device displays the display graph.
And after the memory of the equipment is modified, synchronously updating the content on the hardware screen.
The display graphic data is copied to the hardware display memory of the display device through the handle of the display device, namely the memory address pointer, and the display speed reaches the upper limit of the hardware possible because the data is directly written into the display memory address without synchronous waiting layer by layer in the system middle layer and the superposition and mixing of system layer graphics.
As can be seen from the above, the method, apparatus, device and medium for reducing the display delay of a writing trace provided in the embodiments of the present application include: acquiring a handle of the display device; the handle is a mapping pointer of a memory address corresponding to a device node of the display device; acquiring user input data from a device node of an input device; processing user input data to obtain display graphic data; and sending the display graphic data to the memory address according to the handle so as to enable the display device to display the display graphic data. According to the embodiment of the application, the graphic data for display are obtained by directly acquiring the input data of the user and processing the input data, and the graphic data for display are directly synchronized to the display equipment for display through the pre-acquired handle, so that the time delay of writing trace display is reduced.
Further, referring to fig. 3, in the related art, the procedure of displaying the written trace is that after the user input is changed into a line through numerical processing (for example, using a graphic function library), the line goes upward through a surfactin system service, waits for a system synchronization signal VSYNC signal to arrive, and then sends the line to the display device through an open graphic library. The VSYNC signal is a timing trigger for the system display, for example, a display frequency of 1/60 seconds (16.667ms) is generated once for 60 HZ. When the UI level of the system is more, the surfefringer cannot complete the graph merging in one VSYNC signal period, and it is likely that two or three VSYNCs are needed to completely update the UI once. Thus the refresh rate can be very slow, which manifests as a jerky interface for the application.
Referring to fig. 4, in the embodiment of the present application, the graphics data for display obtained by the image function library is directly sent to the display device for display without going through a surfefringer. By the method, the complicated logic operation and synchronous waiting of the graphics processing layer of the android system layer can be reduced, the fastest display feedback is given to the user in the shortest time, and the hand feeling experience of the user is greatly improved.
It should be noted that the method of the embodiments of the present disclosure may be executed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the devices may only perform one or more steps of the method of the embodiments of the present disclosure, and the devices may interact with each other to complete the method.
It should be noted that the above describes some embodiments of the disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, corresponding to the method of any embodiment, the disclosure also provides a device for reducing the display delay of the writing trace.
Referring to fig. 5, the apparatus for reducing the display delay of the writing trace is applied to a display device, and the apparatus includes:
a handle acquisition module 510 configured to acquire a handle of the display device; the handle is a mapping pointer of a memory address corresponding to a device node of the display device;
a user input data acquisition module 520 configured to acquire user input data from a device node of the input device;
a display graphics data generation module 530 configured to process user input data resulting in display graphics data;
a display-use graphics data sending module 540 configured to send the display-use graphics data to the memory address according to the handle to cause the display device to display the display-use graphics.
In some embodiments, the apparatus further comprises: a handle construction module (not shown in the drawings) configured to construct a handle of the display device; is specifically configured to:
acquiring a device node of a display device;
and acquiring a memory address corresponding to the equipment node, and taking a mapping pointer of the memory address as a handle.
In some embodiments, the user inputs data, including:
click position coordinates, click area, click start time and click end time.
In some embodiments, the display graphics data generation module 530 is specifically configured to:
processing user input data through function operation to obtain graphic data for display;
the method specifically comprises the following steps:
generating a coordinate point set according to user input data;
and fitting the coordinate point set into a line by utilizing an interpolation algorithm, and taking the line as graphic data for display.
In some embodiments, the display graphics data generation module 530 is specifically configured to:
processing user input data by using a drawing library tool to obtain graphic data for display;
the method specifically comprises the following steps:
generating a coordinate point set according to user input data;
and acquiring setting information including line types, line widths and colors, generating lines based on the coordinate point set according to the setting information, and taking the lines as graphic data for display.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations of the present disclosure.
The device of the above embodiment is used for implementing the method for reducing the time delay of the display of the writing trace in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to the method of any embodiment described above, the present disclosure further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement the method for reducing the display delay of the written trace according to any embodiment described above.
Fig. 6 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the above embodiment is used for implementing the method for reducing the writing trace display delay in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method for reducing the latency of displaying the writing trace according to any of the above embodiments, corresponding to any of the above embodiments.
Computer-readable media of the present embodiments, 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.
The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the method for reducing the writing trace display delay according to any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, and are not described herein again.
It should be noted that the embodiments of the present disclosure can be further described in the following ways:
a method for reducing the display delay of writing traces is applied to display equipment and is characterized by comprising the following steps:
acquiring a handle of the display device; the handle is a mapping pointer of a memory address corresponding to a device node of the display device;
acquiring user input data from a device node of an input device;
processing the user input data to obtain display graphic data;
and sending the display graphic data to the memory address according to the handle so as to enable the display equipment to display the display graphic data.
Optionally, before the obtaining the handle of the display device, the method further includes: constructing the handle of the display device; the method specifically comprises the following steps:
acquiring the equipment node of the display equipment;
and acquiring the memory address corresponding to the equipment node, and taking the mapping pointer of the memory address as the handle.
Optionally, the user inputs data, including:
click position coordinates, click area, click start time and click end time.
Optionally, the processing the user input data to obtain display graphics data includes:
and processing the user input data through function operation to obtain the graphic data for display.
Optionally, the processing the user input data through a functional operation to obtain the display graphics data includes:
generating a coordinate point set according to the user input data;
and fitting the coordinate point set into a line by utilizing an interpolation algorithm, and taking the line as the graphic data for display.
Optionally, the processing the user input data to obtain display graphics data includes:
and processing the user input data by using a drawing library tool to obtain the graphic data for display.
Optionally, the processing the user input data by using a drawing library tool to obtain the display graphical data includes:
generating a coordinate point set according to the user input data;
and acquiring setting information including line type, line width and color, generating lines based on the coordinate point set according to the setting information, and taking the lines as the graphic data for display.
A device for reducing the display delay of writing traces is applied to a display device and comprises:
a handle acquisition module configured to acquire a handle of the display device; the handle is a mapping pointer of a memory address corresponding to a device node of the display device;
a user input data acquisition module configured to acquire user input data from a device node of an input device;
a display graph data generation module configured to process the user input data to obtain display graph data;
and the display graphic data sending module is configured to send the display graphic data to the memory address according to the handle so as to enable the display equipment to display the display graphic.
An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method as described above when executing the program.
A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the above method.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the present disclosure, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures for simplicity of illustration and discussion, and so as not to obscure the embodiments of the disclosure. Furthermore, devices may be shown in block diagram form in order to avoid obscuring embodiments of the present disclosure, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the present disclosure are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that the embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The disclosed embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalents, improvements, and the like that may be made within the spirit and principles of the embodiments of the disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. A method for reducing the display delay of writing traces is applied to display equipment and is characterized by comprising the following steps:
acquiring a handle of the display device; the handle is a mapping pointer of a memory address corresponding to a device node of the display device;
acquiring user input data from a device node of an input device;
processing the user input data to obtain display graphic data;
and sending the display graphic data to the memory address according to the handle so as to enable the display equipment to display the display graphic data.
2. The method of claim 1, further comprising, prior to the obtaining the handle to the display device: constructing the handle of the display device; the method specifically comprises the following steps:
acquiring the equipment node of the display equipment;
and acquiring the memory address corresponding to the equipment node, and taking the mapping pointer of the memory address as the handle.
3. The method of claim 1, wherein the user inputting data comprises:
click position coordinates, click area, click start time and click end time.
4. The method of claim 1, wherein said processing said user input data to obtain display graphics data comprises:
and processing the user input data through function operation to obtain the graphic data for display.
5. The method of claim 4, wherein said processing said user input data by functional operations to obtain said graphical data for display comprises:
generating a coordinate point set according to the user input data;
and fitting the coordinate point set into a line by utilizing an interpolation algorithm, and taking the line as the graphic data for display.
6. The method of claim 1, wherein said processing said user input data to obtain display graphics data comprises:
and processing the user input data by using a drawing library tool to obtain the graphic data for display.
7. The method of claim 6, wherein said processing said user input data using a drawing library tool to obtain said graphical data for display comprises:
generating a coordinate point set according to the user input data;
and acquiring setting information including line type, line width and color, generating lines based on the coordinate point set according to the setting information, and taking the lines as the graphic data for display.
8. A device for reducing the display delay of writing traces is applied to a display device and is characterized by comprising:
a handle acquisition module configured to acquire a handle of the display device; the handle is a mapping pointer of a memory address corresponding to a device node of the display device;
a user input data acquisition module configured to acquire user input data from a device node of an input device;
a display graph data generation module configured to process the user input data to obtain display graph data;
and the display graphic data sending module is configured to send the display graphic data to the memory address according to the handle so as to enable the display equipment to display the display graphic.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN202111211706.9A 2021-10-18 2021-10-18 Method, apparatus, device and medium for reducing writing trace display delay Pending CN114201251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111211706.9A CN114201251A (en) 2021-10-18 2021-10-18 Method, apparatus, device and medium for reducing writing trace display delay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111211706.9A CN114201251A (en) 2021-10-18 2021-10-18 Method, apparatus, device and medium for reducing writing trace display delay

Publications (1)

Publication Number Publication Date
CN114201251A true CN114201251A (en) 2022-03-18

Family

ID=80646212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111211706.9A Pending CN114201251A (en) 2021-10-18 2021-10-18 Method, apparatus, device and medium for reducing writing trace display delay

Country Status (1)

Country Link
CN (1) CN114201251A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105807967A (en) * 2014-12-30 2016-07-27 鸿合科技有限公司 Writing method and device for electronic whiteboard
CN105807966A (en) * 2014-12-30 2016-07-27 鸿合科技有限公司 Touch screen event acquisition method and apparatus
WO2018227819A1 (en) * 2017-06-15 2018-12-20 广州视源电子科技股份有限公司 Handwriting data synchronization method and device, storage medium and terminal device
CN111651079A (en) * 2020-05-18 2020-09-11 广州视源电子科技股份有限公司 Handwriting display method, device, equipment and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105807967A (en) * 2014-12-30 2016-07-27 鸿合科技有限公司 Writing method and device for electronic whiteboard
CN105807966A (en) * 2014-12-30 2016-07-27 鸿合科技有限公司 Touch screen event acquisition method and apparatus
WO2018227819A1 (en) * 2017-06-15 2018-12-20 广州视源电子科技股份有限公司 Handwriting data synchronization method and device, storage medium and terminal device
CN111651079A (en) * 2020-05-18 2020-09-11 广州视源电子科技股份有限公司 Handwriting display method, device, equipment and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任强;杨晶;: "Frame Buffer技术在雷达显示中的实现与应用", 电子科技, no. 06, 15 June 2009 (2009-06-15), pages 61 - 63 *

Similar Documents

Publication Publication Date Title
US11625136B2 (en) Systems, methods, and computer-readable media for managing collaboration on a virtual work of art
KR102307163B1 (en) Cross-platform rendering engine
CN110989878B (en) Animation display method and device in applet, electronic equipment and storage medium
CN110795177B (en) Graph drawing method and device
JP2015197795A (en) Terminal device, electronic whiteboard system, method of assisting input to electronic whiteboard, and program
WO2022179362A1 (en) Image alpha-blending method and apparatus
CN115878935B (en) Method, system, device, equipment and medium for partial refreshing of chart
CN116821040B (en) Display acceleration method, device and medium based on GPU direct memory access
KR20230145478A (en) Display update method and device for linking multiple terminals
CN116310040A (en) Drawing processing method and device of three-dimensional model, electronic equipment and storage medium
CN114489910B (en) Video conference data display method, device, equipment and medium
CN114201251A (en) Method, apparatus, device and medium for reducing writing trace display delay
CN113487704B (en) Dovetail arrow mark drawing method and device, storage medium and terminal equipment
CN115501588A (en) Image rendering method and device, storage medium and electronic equipment
CN116775174A (en) Processing method, device, equipment and medium based on user interface frame
CN113870394A (en) Animation generation method, device, equipment and storage medium
CN114564268A (en) Equipment management method and device, electronic equipment and storage medium
WO2024065097A1 (en) Blackboard-writing content display method, electronic device, and storage medium
CN111813404B (en) Application method, medium and client based on mixed graphic display
CN115934018A (en) Full-wall labeling method and related device for distributed cluster processor
CN114895835A (en) Control method, device and equipment of 3D prop and storage medium
JP2017072977A (en) Computer program
CN114546386A (en) Multi-control brushing method, device, equipment and storage medium
CN116304242A (en) Data processing method, device, electronic equipment and storage medium
CN116820378A (en) Control method, device, equipment and system for shared screen of dual-machine system

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