Ink screen refreshing method and device, equipment and storage medium
By performing pixel comparison and area judgment on the Ink Screen, the refresh lag problem of Ink Screen products during system refresh and handwriting refresh is solved, parallel processing of handwriting and system refresh is realized, and refresh efficiency and user experience are improved.
Patent Information
- Application Number
- CN202410402723.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-03
- Publication Date
- 2024-08-23
AI Technical Summary
Due to the different refresh mechanisms of Ink Screen products during system refresh and handwriting refresh, the overall refresh is stuck, affecting the user experience.
After receiving the ink screen refresh command, the pixels of the previous frame image and the current frame image are compared to determine the update area of the image, and the handwriting refresh and system refresh areas are determined in the update area to determine whether there is overlap between the two. area. If there is no overlapping area, all pixels will be refreshed synchronously; if there is an overlapping area, how to refresh will be determined based on the current refresh status of the pixels in the overlapping area, and pixels in the non-overlapping area will be refreshed synchronously.
Effectively handles conflicts between handwriting refresh and system refresh, allowing handwriting refresh and system refresh to be refreshed in parallel when they do not overlap, minimizing mutual waiting time, improving refresh efficiency, reducing refresh lag, and providing a smooth screen refresh experience.
Smart Images

Figure CN118538175A
Abstract
Description
Technical Field
[0001] The present application relates to the field of ink screen technology, and in particular to an ink screen refresh method, device, equipment and storage medium. Background Art
[0002] With the rapid development of technology and the continuous upgrading of user needs, ink screens have gradually been used in various electronic devices due to their low power consumption, long-term non-fading and eye protection characteristics. Ink screens have also begun to support handwriting input functions, bringing users a more convenient and natural interactive experience.
[0003] In some usage scenarios, the system refresh and handwriting refresh of the e-ink screen product need to be performed at the same time. The system refresh needs to wait for each frame to be completely refreshed before refreshing the next frame, while the handwriting refresh is a continuous refresh process, and there is no need to wait for the previous handwriting refresh to be completed before starting to refresh. However, in actual application scenarios, due to the different refresh mechanisms of system refresh and handwriting refresh, the handwriting input cannot be refreshed when the e-ink screen product is refreshing the system, and the system refresh cannot be performed when the handwriting refresh is in progress. The two refreshes need to wait for each other, resulting in the overall refresh of the e-ink screen being stuck, affecting the user experience.
[0004] In summary, how to reduce the refresh lag that occurs when ink screen products are performing system refresh and handwriting refresh at the same time has become a problem that needs to be urgently solved in this field. Summary of the invention
[0005] The main purpose of this application is to provide an ink screen refresh method, device, equipment and storage medium, aiming to reduce the refresh lag that occurs when the ink screen product performs system refresh and handwriting refresh at the same time.
[0006] To achieve the above object, the present application provides an ink screen refresh method, the ink screen refresh method comprising:
[0007] After receiving the ink screen refresh instruction, the pixel comparison between the previous frame image and the current frame image is performed to determine the image update area;
[0008] Determine a first area for handwriting refresh and a second area for system refresh in the update area;
[0009] Determine whether there is an overlapping area between the first area and the second area, wherein the overlapping area is an area whose refresh forms include the handwriting refresh and the system refresh;
[0010] If the overlapping area does not exist, then each first pixel point in the update area is synchronously refreshed;
[0011] If the overlapping area exists, each second pixel point is refreshed according to the current refresh status of each second pixel point in the overlapping area, and each third pixel point in the non-overlapping area is refreshed synchronously, wherein the non-overlapping area is the area in the update area excluding the overlapping area.
[0012] Optionally, the step of refreshing each second pixel point in the overlapped area according to a current refresh state of each second pixel point includes:
[0013] For each second pixel in the overlapped area, determining a current refresh state of the second pixel, wherein the current refresh state is a non-refresh state or a refresh state;
[0014] If the second pixel point is in the refresh state, wait for the second pixel point to complete the current refresh and then perform a new refresh;
[0015] If the second pixel is in the non-refresh state, the handwriting refresh or the system refresh is performed on the second pixel.
[0016] Optionally, the step of determining the current refresh state of the second pixel includes:
[0017] Querying a refresh list of the second pixel point to obtain a total refresh frame number and a current refresh frame number of the second pixel point;
[0018] If the current refresh frame number is less than the total refresh frame number, determining that the second pixel is in the refresh state;
[0019] If the current refresh frame number is greater than or equal to the total refresh frame number, it is determined that the second pixel is in the non-refresh state.
[0020] Optionally, the refresh state is a handwriting refresh state or a system refresh state;
[0021] If the second pixel point is in the refresh state, the step of waiting for the second pixel point to complete the current refresh and then perform a new refresh comprises:
[0022] If the second pixel point is in the handwriting refresh state, wait for the second pixel point to complete the handwriting refresh before performing the system refresh;
[0023] If the second pixel is in the system refresh state, the handwriting refresh is performed after the second pixel completes the system refresh.
[0024] Optionally, the step of determining whether there is an overlapping area between the first area and the second area includes:
[0025] Determine the coordinates of first vertices of the first area on the display screen, and determine the coordinates of second vertices of the second area on the display screen;
[0026] It is determined whether there is an overlapping area between the first area and the second area according to the first vertex coordinates and the second vertex coordinates.
[0027] Optionally, the method further comprises:
[0028] Determining a third area for handwriting refresh;
[0029] The grayscale of each fourth pixel point in the third area is set to a preset grayscale value.
[0030] Optionally, the method further comprises:
[0031] Determining a fourth area for handwriting refresh and a fifth area for system refresh, wherein the fourth area and the fifth area have no overlapping portion in the display screen;
[0032] The fifth pixels in the fourth area and the fifth area are refreshed synchronously.
[0033] In addition, to achieve the above-mentioned purpose, the present application also provides an ink screen refreshing device, the ink screen refreshing device comprising:
[0034] An update region determination module is used to compare pixels of a previous frame image and a current frame image after receiving an ink screen refresh instruction to determine an update region of the image;
[0035] An area determination module, used for determining a first area for handwriting refresh and a second area for system refresh in the update area;
[0036] An overlap region determination module, used for determining whether there is an overlap region between the first region and the second region, wherein the overlap region is a region whose refresh forms include the handwriting refresh and the system refresh;
[0037] A first refreshing module, configured to synchronously refresh each first pixel point in the update area if the overlapping area does not exist;
[0038] The second refresh module is used to refresh each second pixel point in the overlapping area according to the current refresh status of each second pixel point in the overlapping area if there is the overlapping area, and to synchronously refresh each third pixel point in the non-overlapping area, wherein the non-overlapping area is the area in the update area excluding the overlapping area.
[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a terminal device, which includes: a memory, a processor, and an ink screen refresh program stored in the memory and executable on the processor, and the ink screen refresh program, when executed by the processor, implements the steps of the ink screen refresh method as described above.
[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and an ink screen refresh program is stored on the storage medium. When the ink screen refresh program is executed by the processor, the steps of the ink screen refresh method as described above are implemented.
[0041] The present application proposes an ink screen refresh method, device, equipment and storage medium, the ink screen refresh method comprising: after receiving an ink screen refresh instruction, performing pixel comparison on the previous frame image and the current frame image to determine the update area of the image; determining a first area for handwriting refresh and a second area for system refresh in the update area; judging whether there is an overlapping area between the first area and the second area, wherein the overlapping area is an area whose refresh form includes the handwriting refresh and the system refresh; if the overlapping area does not exist, refreshing each first pixel point in the update area synchronously; if the overlapping area exists, refreshing each second pixel point in the overlapping area according to the current refresh status of each second pixel point, and refreshing each third pixel point in the non-overlapping area synchronously, wherein the non-overlapping area is the area in the update area excluding the overlapping area.
[0042] After receiving the ink screen refresh instruction, the present application first compares the pixels of the previous frame image and the current frame image to determine the update area of the image, so that only these changed update areas are refreshed instead of refreshing the entire screen, thereby improving the refresh efficiency; then, after determining the update area, further determine the first area for handwriting refresh and the second area for system refresh in the update area, and judge whether there is an overlapping area between the first area and the second area; if there is no overlapping area, the first pixel points in the update area are refreshed synchronously; and if there is an overlapping area, the refresh method is determined according to the current refresh status of the second pixel points in the overlapping area, and at the same time, the third pixel points in the non-overlapping area are refreshed synchronously.
[0043] In this way, through the present application, after the ink screen product receives the ink screen refresh instruction, the conflict and coordination problems between handwriting refresh and system refresh can be effectively handled, so that when the first area of handwriting refresh and the second area of system refresh do not overlap, the two can be refreshed in parallel. Even if the first area and the second area overlap, the waiting time for handwriting refresh and system refresh can be minimized, and the refresh efficiency is improved, thereby reducing the refresh jam that occurs when the ink screen product performs system refresh and handwriting refresh at the same time, so that users can get a smoother screen refresh experience when performing handwriting refresh and system refresh operations at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of the device structure of the hardware operating environment of the terminal device involved in the embodiment of the present application;
[0045] Figure 2 This is a schematic diagram of a screen refresh process involved in an embodiment of an ink screen refresh method of the present application;
[0046] Figure 3 This is a flow chart of the first embodiment of the ink screen refresh method of the present application;
[0047] Figure 4 A schematic diagram of refresh area coordinates involved in an embodiment of an ink screen refresh method of the present application;
[0048] Figure 5 A schematic diagram of a refresh overlap area determination process involved in an embodiment of an ink screen refresh method of the present application;
[0049] Figure 6 This is another screen refresh process diagram involved in an embodiment of the ink screen refresh method of the present application;
[0050] Figure 7 This is a schematic diagram of the functional modules of an embodiment of the ink screen refresh device of the present application.
[0051] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0055] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0056] In addition, in this application, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0057] An embodiment of the present application provides a terminal device, which may be an ink screen device.
[0058] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment of the terminal device involved in the embodiment of the present application.
[0059] like Figure 1As shown, in the hardware operating environment of the terminal device, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0060] Those skilled in the art will understand that Figure 1 The terminal device structure shown in the figure does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0061] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an ink screen refresh program.
[0062] exist Figure 1 In the device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the ink screen refresh program stored in the memory 1005 and perform the following operations:
[0063] After receiving the ink screen refresh instruction, the pixel comparison between the previous frame image and the current frame image is performed to determine the image update area;
[0064] Determine a first area for handwriting refresh and a second area for system refresh in the update area;
[0065] Determine whether there is an overlapping area between the first area and the second area, wherein the overlapping area is an area whose refresh forms include the handwriting refresh and the system refresh;
[0066] If the overlapping area does not exist, then each first pixel point in the update area is synchronously refreshed;
[0067] If the overlapping area exists, each second pixel point is refreshed according to the current refresh status of each second pixel point in the overlapping area, and each third pixel point in the non-overlapping area is refreshed synchronously, wherein the non-overlapping area is the area in the update area excluding the overlapping area.
[0068] Optionally, the processor 1001 may also be used to call an ink screen refresh program stored in the memory 1005, and perform the following operations:
[0069] For each second pixel in the overlapped area, determining a current refresh state of the second pixel, wherein the current refresh state is a non-refresh state or a refresh state;
[0070] If the second pixel point is in the refresh state, wait for the second pixel point to complete the current refresh and then perform a new refresh;
[0071] If the second pixel is in the non-refresh state, the handwriting refresh or the system refresh is performed on the second pixel.
[0072] Optionally, the processor 1001 may also be used to call an ink screen refresh program stored in the memory 1005, and perform the following operations:
[0073] Querying a refresh list of the second pixel point to obtain a total refresh frame number and a current refresh frame number of the second pixel point;
[0074] If the current refresh frame number is less than the total refresh frame number, determining that the second pixel is in the refresh state;
[0075] If the current refresh frame number is greater than or equal to the total refresh frame number, it is determined that the second pixel is in the non-refresh state.
[0076] Optionally, the refresh state is a handwriting refresh state or a system refresh state; the processor 1001 may also be used to call an ink screen refresh program stored in the memory 1005, and perform the following operations:
[0077] If the second pixel point is in the handwriting refresh state, wait for the second pixel point to complete the handwriting refresh before performing the system refresh;
[0078] If the second pixel is in the system refresh state, the handwriting refresh is performed after the second pixel completes the system refresh.
[0079] Optionally, the processor 1001 may also be used to call an ink screen refresh program stored in the memory 1005, and perform the following operations:
[0080] Determine the coordinates of first vertices of the first area on the display screen, and determine the coordinates of second vertices of the second area on the display screen;
[0081] It is determined whether there is an overlapping area between the first area and the second area according to the first vertex coordinates and the second vertex coordinates.
[0082] Optionally, the processor 1001 may also be used to call an ink screen refresh program stored in the memory 1005, and perform the following operations:
[0083] Determining a third area for handwriting refresh;
[0084] The grayscale of each fourth pixel point in the third area is set to a preset grayscale value.
[0085] Optionally, the processor 1001 may also be used to call an ink screen refresh program stored in the memory 1005, and perform the following operations:
[0086] Determining a fourth area for handwriting refresh and a fifth area for system refresh, wherein the fourth area and the fifth area have no overlapping portion in the display screen;
[0087] The fifth pixels in the fourth area and the fifth area are refreshed synchronously.
[0088] Based on the above-mentioned hardware structure, the overall concept of each embodiment of the ink screen refresh method of the present application is proposed.
[0089] With the rapid development of technology and the continuous upgrading of user needs, ink screens have gradually been used in various electronic devices due to their low power consumption, long-term non-fading and eye protection characteristics. Ink screens have also begun to support handwriting input functions, bringing users a more convenient and natural interactive experience.
[0090] In some usage scenarios, the system refresh and handwriting refresh of the e-ink screen product need to be performed at the same time. The system refresh needs to wait for each frame to be completely refreshed before refreshing the next frame, while the handwriting refresh is a continuous refresh process, and there is no need to wait for the previous handwriting refresh to be completed before starting to refresh. However, in actual application scenarios, due to the different refresh mechanisms of system refresh and handwriting refresh, the handwriting input cannot be refreshed when the e-ink screen product is refreshing the system, and the system refresh cannot be performed when the handwriting refresh is in progress. The two refreshes need to wait for each other, resulting in the overall refresh of the e-ink screen being stuck, affecting the user experience.
[0091] Specifically, the traditional ink screen refresh method is as follows: Figure 2As shown, after a new refresh is submitted, the ink screen device determines whether the refresh is handwritten. If it is a handwritten refresh, it further determines whether the current system refresh is completed. If the current system refresh is completed, a handwriting refresh is performed. If the current system refresh is not completed, it is necessary to wait for the system refresh to be completed before performing a handwriting refresh, and finally submit it for display; if the newly submitted refresh is not a handwriting refresh, that is, the newly submitted refresh is a system refresh, it further determines whether the current handwriting refresh is completed. If the current handwriting refresh is completed, a system refresh is performed. If the current handwriting refresh is not completed, it is necessary to wait for the handwriting refresh to be completed before performing a system refresh, and finally submit it for display.
[0092] During the refresh process, due to the characteristics of the ink screen, it takes N frames to refresh an image. Therefore, when switching between system refresh and handwriting refresh, you need to wait for each other to complete the refresh. Only after the other party completes can you switch and continue refreshing. Since the system refresh completion time is generally between 200 and 600ms, this waiting can make users feel obvious lag, and the experience is not good.
[0093] In summary, how to reduce the refresh lag that occurs when ink screen products are performing system refresh and handwriting refresh at the same time has become a problem that needs to be urgently solved in this field.
[0094] In response to the above problems, an embodiment of the present application proposes an ink screen refresh method, which includes: after receiving an ink screen refresh instruction, performing pixel comparison on the previous frame image and the current frame image to determine an update area of the image; determining a first area for handwriting refresh and a second area for system refresh in the update area; judging whether there is an overlapping area between the first area and the second area, wherein the overlapping area is an area whose refresh form includes the handwriting refresh and the system refresh; if the overlapping area does not exist, then refreshing each first pixel point in the update area synchronously; if the overlapping area exists, then refreshing each second pixel point in the overlapping area according to the current refresh status of each second pixel point, and refreshing each third pixel point in the non-overlapping area synchronously, wherein the non-overlapping area is the area in the update area excluding the overlapping area. In an embodiment of the present application, first, after receiving the ink screen refresh instruction, a pixel comparison is performed on the previous frame image and the current frame image to determine the update area of the image, so that only these changed update areas are refreshed instead of refreshing the entire screen, thereby improving the refresh efficiency; then, after determining the update area, the first area for handwriting refresh and the second area for system refresh are further determined in the update area, and it is determined whether there is an overlapping area between the first area and the second area; in the case where there is no overlapping area, the first pixel points in the update area are refreshed synchronously; and in the case where there is an overlapping area, the refresh method is determined according to the current refresh status of the second pixel points in the overlapping area, and at the same time, the third pixel points in the non-overlapping area are refreshed synchronously.
[0095] In this way, the embodiment of the present application can effectively handle the conflict and coordination problems between handwriting refresh and system refresh after the ink screen product receives the ink screen refresh instruction, so that the first area of handwriting refresh and the second area of system refresh can be refreshed in parallel when they do not overlap. Even if the first area and the second area overlap, the waiting time for handwriting refresh and system refresh can be minimized, and the refresh efficiency is improved, thereby reducing the refresh jam that occurs when the ink screen product performs system refresh and handwriting refresh at the same time, so that users can get a smoother screen refresh experience when performing handwriting refresh and system refresh operations at the same time.
[0096] Based on the above-mentioned overall concept of the ink screen refresh method of the present application, various embodiments of the ink screen refresh method of the present application are proposed.
[0097] Please refer to Figure 3 , Figure 3 This is a flowchart of the first embodiment of the ink screen refresh method of the present application. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described can be performed in a different order than here.
[0098] In this embodiment, for ease of understanding and explanation, the ink screen device is used as the direct execution subject in this embodiment to explain the ink screen refresh method of this application.
[0099] like Figure 3 As shown, in this embodiment, the ink screen refresh method of the present application may include:
[0100] Step S10: after receiving the ink screen refresh instruction, compare the pixels of the previous frame image and the current frame image to determine the update area of the image;
[0101] In this embodiment, after receiving the ink screen refresh instruction, the ink screen device compares the previous frame image and the current frame image pixel by pixel. The comparison is achieved by comparing the grayscale values or color values of corresponding pixels in the two images. If the values of the two pixels are different, it is determined that the pixel has been updated and needs to be marked as part of the update area. After completing the pixel comparison, the update area of the image can be determined.
[0102] In addition, the ink screen device can determine the boundary and size of the update area on the display screen based on the results of pixel comparison. The update area can be one or more. The ink screen device can also merge adjacent small update areas based on actual application scenarios.
[0103] Step S20: determining a first area for handwriting refresh and a second area for system refresh in the update area;
[0104] It should be noted that in this embodiment, in the ink screen product, handwriting has always been a relatively special implementation method, which is different from the normal page refresh. The normal page refresh (i.e., system refresh) is usually generated by system updates, application interface changes, page switching and other operations. The next page can only be refreshed after each refresh is complete. The handwriting refresh is generated by the user's handwriting input. The handwriting refresh is a continuous refresh, and there is no need to wait until the previous handwriting refresh is completed before starting the refresh.
[0105] In this embodiment, the ink screen device determines a first area for handwriting refresh and a second area for system refresh in the update area. The judgment of these two areas can be made based on two interfaces provided by the driver. When the ink screen device is in a handwriting scene, it calls the handwriting refresh interface to display the handwriting on the ink screen. If it is a non-handwriting scene, it calls the system refresh interface to display the image content on the ink screen. In this way, the ink screen device can determine whether the refresh operation in the update area is a handwriting refresh or a system refresh based on the called interface, thereby determining the first area for handwriting refresh and the second area for system refresh.
[0106] Step S30: determining whether there is an overlapping area between the first area and the second area, wherein the overlapping area is an area whose refresh forms include the handwriting refresh and the system refresh;
[0107] In this embodiment, the ink screen device will determine whether there is an overlapping area between the first area and the second area. The overlapping area is an area whose refresh form includes handwriting refresh and system refresh. The judgment process of the overlapping area can be achieved by comparing the pixel coordinates of the two areas, or other feasible means. In this embodiment, the means for judging the overlapping area is not specifically limited.
[0108] Step S40: if the overlapping area does not exist, then each first pixel point in the update area is synchronously refreshed;
[0109] In this embodiment, when the ink screen device determines that there is no overlapping area between the first area and the second area, the ink screen device synchronously refreshes each pixel in the update area, that is, it synchronously refreshes each first pixel. Regardless of whether the first pixel is a system refresh or a handwriting refresh, it can be refreshed according to the preset refresh rules at the same time without waiting for the system refresh to be completed before performing a handwriting refresh, or waiting for the handwriting refresh to be completed before performing a system refresh.
[0110] Step S50: If the overlapping area exists, each second pixel point in the overlapping area is refreshed according to the current refresh status of each second pixel point, and each third pixel point in the non-overlapping area is refreshed synchronously, wherein the non-overlapping area is the area in the update area excluding the overlapping area.
[0111] In this embodiment, when the ink screen device determines that there is an overlapping area between the first area and the second area, the ink screen device decides how to refresh according to the current refresh status of each second pixel in the overlapping area, and synchronously refreshes each third pixel in the non-overlapping area. The non-overlapping area is the area in the update area excluding the overlapping area, and the refresh mode of each third pixel in the non-overlapping area is one of system refresh and handwriting refresh.
[0112] In summary, the embodiment of the present application first performs a pixel comparison between the previous frame image and the current frame image after receiving the ink screen refresh instruction to determine the update area of the image, so that only these changed update areas are refreshed instead of refreshing the entire screen, thereby improving the refresh efficiency; then, after determining the update area, further determine the first area for handwriting refresh and the second area for system refresh in the update area, and judge whether there is an overlapping area between the first area and the second area; in the case where there is no overlapping area, the first pixel points in the update area are refreshed synchronously; and in the case where there is an overlapping area, the refresh method is determined according to the current refresh status of the second pixel points in the overlapping area, and at the same time, the third pixel points in the non-overlapping area are refreshed synchronously.
[0113] In this way, after receiving the ink screen refresh instruction, the e-ink screen product can effectively handle the conflict and coordination problems between handwriting refresh and system refresh, so that the first area for handwriting refresh and the second area for system refresh do not overlap and the two can be refreshed in parallel. Even if the first area and the second area overlap, the waiting time for handwriting refresh and system refresh can be minimized, and the refresh efficiency can be improved, thereby reducing the refresh lag that occurs when the e-ink screen product performs system refresh and handwriting refresh at the same time, so that users can get a smoother screen refresh experience when performing handwriting refresh and system refresh operations at the same time.
[0114] Furthermore, based on the above-mentioned first embodiment of the ink screen refresh method of the present application, a second embodiment of the ink screen refresh method of the present application is proposed.
[0115] In this embodiment, the step of “refreshing each second pixel point in the overlapped area according to the current refresh state of each second pixel point” in the above step S50 includes:
[0116] Step S501: for each second pixel in the overlapped area, determining a current refresh state of the second pixel, wherein the current refresh state is a non-refresh state or a refresh state;
[0117] In this embodiment, the ink screen device traverses each second pixel in the overlapping area, and these second pixel points need to perform handwriting refresh and system refresh at the same time. For each second pixel point, the ink screen device needs to determine the current refresh state of the second pixel point. The current refresh state can be one of a no refresh state and a refresh state. The no refresh state indicates that the pixel point is not currently performing any refresh operation, and the refresh state indicates that the pixel point is performing a refresh operation.
[0118] Furthermore, in a feasible embodiment, the above step S501 includes:
[0119] Step S5011: querying the refresh list of the second pixel point to obtain the total refresh frame number and the current refresh frame number of the second pixel point;
[0120] It should be noted that in this embodiment, each refresh area of the ink display screen will be added to the refresh list when it is refreshed. The refresh area is based on each pixel. By looking up the waveform file of each pixel, the total number of frames required to refresh each refresh area can be known. At the beginning of the refresh, the refresh frame number is cleared to 0. Each time a frame is refreshed, the refresh frame number is increased by 1. When the refresh frame number is less than the total frame number, it means that the area is being refreshed; otherwise, the area has been refreshed.
[0121] In this embodiment, the ink screen device finds the refresh list corresponding to the second pixel through a specific index or identifier, and queries the total refresh frame number and the current refresh frame number of the second pixel in the refresh list. The total refresh frame number indicates the total number of refreshes that the pixel needs to complete, and the current refresh frame number indicates how many refreshes the pixel has completed so far.
[0122] Step S5012: if the current refresh frame number is less than the total refresh frame number, determining that the second pixel is in the refresh state;
[0123] In this embodiment, the ink screen device compares the current refresh frame number of the second pixel with the total refresh frame number. If the current refresh frame number is less than the total refresh frame number, it is determined that the second pixel has not completed all refresh operations and can be determined to be in a refresh state. In this case, the ink screen device needs to wait for the second pixel to complete the current refresh operation before performing a new refresh.
[0124] Step S5013: If the current refresh frame number is greater than or equal to the total refresh frame number, it is determined that the second pixel is in the non-refresh state.
[0125] In this embodiment, if the current refresh frame number of the second pixel is greater than or equal to the total refresh frame number, that is, the second pixel has completed the current refresh task, it can be determined that it is in a no-refresh state. In this case, the ink screen device can immediately perform a handwriting refresh or a system refresh on the second pixel to meet the current display requirements.
[0126] Step S502: if the second pixel is in the refresh state, wait for the second pixel to complete the current refresh and then perform a new refresh;
[0127] In this embodiment, when the ink screen device determines that the second pixel is currently in a refresh state, it waits for the second pixel to complete the current refresh before performing a new refresh.
[0128] Further, in a feasible embodiment, the refresh state is a handwriting refresh state or a system refresh state, and the above step S502 includes:
[0129] Step S5021: if the second pixel is in the handwriting refresh state, wait for the second pixel to complete the handwriting refresh and then perform the system refresh;
[0130] In this embodiment, when the ink screen device determines that the second pixel in the overlapping area is undergoing handwriting refresh, that is, the second pixel is currently in the handwriting refresh state, and the new refresh instruction received by the ink screen device is a system refresh instruction, it is necessary to wait for the second pixel to complete the handwriting refresh before executing the system refresh.
[0131] In addition, in another feasible embodiment, when the ink screen device determines that the second pixel in the overlapping area is undergoing handwriting refresh, that is, the second pixel is currently in the handwriting refresh state, and the refresh instruction newly received by the ink screen device is a handwriting refresh instruction, the ink screen device can perform two handwriting refreshes at the same time without waiting for the previous handwriting refresh to be completed. This is due to the handwriting characteristics of the ink screen device product. The ink screen device can continuously refresh the handwriting content while the user is performing a handwriting operation.
[0132] Step S5022: If the second pixel is in the system refresh state, wait until the second pixel completes the system refresh and then perform the handwriting refresh.
[0133] In this embodiment, when the ink screen device determines that the second pixel in the overlapping area is undergoing system refresh, that is, the second pixel is currently in the system refresh state, and the new refresh instruction received by the ink screen device is a handwriting refresh instruction, it is necessary to wait for the second pixel to complete the system refresh before performing the handwriting refresh.
[0134] In addition, in another feasible embodiment, when the ink screen device determines that the second pixel point in the overlapping area is undergoing system refresh, that is, the second pixel point is currently in the system refresh state, and the refresh instruction newly received by the ink screen device is a system refresh instruction, the ink screen device also needs to wait for the current system refresh to be completed before executing the newly received system refresh instruction. However, compared with the traditional ink screen device, the system refresh requires that each page be completely refreshed before the next page can be refreshed. This embodiment can also greatly improve the efficiency of the system refresh and bring users a better page refresh experience.
[0135] Step S503: If the second pixel is in the non-refresh state, perform the handwriting refresh or the system refresh on the second pixel.
[0136] In this embodiment, when the ink screen device determines that the second pixel is currently in a non-refresh state, a handwriting refresh or a system refresh is performed on the second pixel, and the refresh form is determined by the refresh instruction specifically received by the second pixel.
[0137] In this way, the e-ink screen device can more accurately determine the current refresh status of the pixels in the overlapping area, thereby ensuring that the refresh operation in the overlapping area can be performed correctly and efficiently, which helps to improve the refresh efficiency and display effect of the e-ink screen, and reduce refresh jams caused by handwriting refresh and system refresh waiting for each other.
[0138] Further, in a feasible embodiment, the above step S30: determining whether there is an overlapping area between the first area and the second area includes:
[0139] Step S301: determining the coordinates of a first vertex of the first area on the display screen, and determining the coordinates of a second vertex of the second area on the display screen;
[0140] In this embodiment, the ink screen device determines the first vertex coordinates of the first area on the display screen and the second vertex coordinates of the second area on the display screen by identifying the respective boundaries of the first area and the second area, wherein the boundary shape of the first area and the second area is preferably a rectangle, the first vertex coordinates may be the coordinates of any two diagonal vertices of the first area, and the second vertex coordinates may be the coordinates of any two diagonal vertices of the second area.
[0141] Step S302: determining whether there is an overlapping area between the first area and the second area according to the first vertex coordinates and the second vertex coordinates.
[0142] In this embodiment, the ink screen device determines whether there is an overlapping area between the first area and the second area according to the first vertex coordinates and the second vertex coordinates.
[0143] For example, in a feasible embodiment, as Figure 4 As shown, the first vertex coordinates of the first area (i.e., the handwriting refresh area in the figure) are the upper left vertex coordinates (x1_top, y1_top) and the lower right vertex coordinates (x1_bottom, y1_bottom), and the second vertex coordinates of the second area (i.e., the system refresh area in the figure) are the upper left vertex coordinates (x0_top, y0_top) and the lower right vertex coordinates (x0_bottom, y0_bottom). The ink screen device can be Figure 5The process shown determines whether two areas overlap, that is, compares the coordinates of the two refresh areas. If the conditions of (x0_bottom>x1_top)&&(x1_bottom>x0_top)&&(y0_bottom>y1_top)&&(y1_bottom>y0_top) are met, it is determined that there is an overlapping area between the first area and the second area. If the condition is not met, it is determined that there is no overlapping area between the first area and the second area.
[0144] Furthermore, in a feasible embodiment, the ink screen refreshing method of the present application may also include:
[0145] Step A10: determining the third area for handwriting refresh;
[0146] Step A20: setting the grayscale of each fourth pixel point in the third area to a preset grayscale value.
[0147] In this embodiment, the area in the ink screen display screen where handwriting refresh can be performed is determined as the third area. The area can be an area with a fixed position and fixed size, and the position and size of the area can also be adjusted according to the actual application scenario. The ink screen device sets the grayscale of each pixel point (i.e., the fourth pixel point) in the third area to a preset grayscale value. The preset grayscale value can be set to any grayscale value according to the actual application scenario, and this is not specifically limited in this embodiment.
[0148] Exemplarily, in a feasible embodiment, when designing an APP (Application Program) for an ink screen device, any grayscale can be used as a fixed background grayscale for the handwriting area of the ink screen display screen. In particular, the grayscale in the handwriting area is not necessarily a pure color, nor does it need to be guaranteed to be only one color. As long as the grayscale of the background pixels in the handwriting area remains unchanged, smooth handwriting can be obtained in the handwriting area without waiting for the system to refresh.
[0149] Furthermore, in a feasible embodiment, the ink screen refreshing method of the present application may also include:
[0150] Step B10: determining the fourth area for handwriting refresh and the fifth area for system refresh, wherein the fourth area and the fifth area have no overlapping part in the display screen;
[0151] Step B20: synchronously refreshing each fifth pixel point in the fourth area and the fifth area.
[0152] In this embodiment, the area in the ink screen display screen where handwriting refresh can be performed is determined as the fourth area, and the area in the ink screen display screen where system refresh can be performed is determined as the fifth area, and there is no overlapping part between the fourth area and the fifth area in the display screen. In this way, the ink screen device can realize synchronous refresh of each pixel point in the fourth area and the fifth area (i.e., the fifth pixel point). For example, in a speech transcription scenario, the ink screen device can perform real-time speech-to-text conversion in the fifth area and perform handwriting recording in the fourth area at the same time. Compared with the traditional speech transcription scenario, the handwriting refresh and system refresh need to wait for each other, resulting in refresh jams. In this embodiment, the handwriting refresh and system refresh are performed in different areas so that the two refreshes can be submitted and displayed at the same time.
[0153] Thus, in this embodiment, the ink screen refresh process is as follows: Figure 6 As shown, after the new refresh is submitted, the ink screen device determines whether the current handwriting refresh and system refresh overlap. If not, it is directly submitted for display. If so, it waits for the current refresh to be completed before submitting for display.
[0154] For each pixel in the ink screen display, when it is undergoing a grayscale change from Gx to Gy, it must last for N frames. If another grayscale comes in to refresh during the continuous process, the above refresh process will be interrupted. If the grayscale of the pixel has not changed, that is, the grayscale of the pixel in the previous frame image and the current frame image is consistent, then even if other pixels have grayscale changes, it will not affect the update of the current pixel, that is, the pixels in the display screen can be refreshed in parallel without waiting.
[0155] In this way, the embodiment of the present application can reduce the refresh lag that occurs when the ink screen product performs system refresh and handwriting refresh at the same time, so that the user can obtain a smoother screen refresh experience when performing handwriting refresh and system refresh operations at the same time.
[0156] In addition, an embodiment of the present application also proposes an ink screen refreshing device.
[0157] Please refer to Figure 7 , the ink screen refreshing device of this application includes:
[0158] The update region determination module 10 is used to compare the pixels of the previous frame image and the current frame image after receiving the ink screen refresh instruction to determine the update region of the image;
[0159] An area determination module 20, configured to determine a first area for handwriting refresh and a second area for system refresh in the update area;
[0160] An overlap region determination module 30, configured to determine whether there is an overlap region between the first region and the second region, wherein the overlap region is a region whose refresh forms include the handwriting refresh and the system refresh;
[0161] A first refreshing module 40 is configured to synchronously refresh each first pixel point in the update area if the overlap area does not exist;
[0162] The second refresh module 50 is used to refresh each second pixel point in the overlapping area according to the current refresh status of each second pixel point in the overlapping area if there is an overlapping area, and to synchronously refresh each third pixel point in the non-overlapping area, wherein the non-overlapping area is the area in the update area excluding the overlapping area.
[0163] Optionally, the second refreshing module 50 is further configured to:
[0164] For each second pixel in the overlapped area, determining a current refresh state of the second pixel, wherein the current refresh state is a non-refresh state or a refresh state;
[0165] If the second pixel point is in the refresh state, wait for the second pixel point to complete the current refresh and then perform a new refresh;
[0166] If the second pixel is in the non-refresh state, the handwriting refresh or the system refresh is performed on the second pixel.
[0167] Optionally, the second refreshing module 50 is further configured to:
[0168] Querying a refresh list of the second pixel point to obtain a total refresh frame number and a current refresh frame number of the second pixel point;
[0169] If the current refresh frame number is less than the total refresh frame number, determining that the second pixel is in the refresh state;
[0170] If the current refresh frame number is greater than or equal to the total refresh frame number, it is determined that the second pixel is in the non-refresh state.
[0171] Optionally, the refresh state is a handwriting refresh state or a system refresh state; the second refresh module 50 is further used to:
[0172] If the second pixel point is in the handwriting refresh state, wait for the second pixel point to complete the handwriting refresh before performing the system refresh;
[0173] If the second pixel is in the system refresh state, the handwriting refresh is performed after the second pixel completes the system refresh.
[0174] Optionally, the overlap region determination module 30 is further configured to:
[0175] Determine the coordinates of first vertices of the first area on the display screen, and determine the coordinates of second vertices of the second area on the display screen;
[0176] It is determined whether there is an overlapping area between the first area and the second area according to the first vertex coordinates and the second vertex coordinates.
[0177] Optionally, the ink screen refreshing device of the present application further includes:
[0178] The grayscale setting module is used to determine the third area for handwriting refresh; and set the grayscale of each fourth pixel point in the third area to a preset grayscale value.
[0179] Optionally, the ink screen refreshing device of the present application further includes:
[0180] A third refresh module, used for determining a fourth area for handwriting refresh and a fifth area for system refresh, wherein the fourth area and the fifth area have no overlapping part in the display screen;
[0181] The fifth pixels in the fourth area and the fifth area are refreshed synchronously.
[0182] Among them, the functional implementation of each module in the above-mentioned ink screen refreshing device corresponds to the various steps in the above-mentioned ink screen refreshing method embodiment, and its functions and implementation processes will not be repeated here one by one.
[0183] In addition, the present application also proposes a storage medium, on which a program for refreshing an ink screen is stored. When the program for refreshing an ink screen is executed by a processor, the steps of the ink screen refreshing method of the present application as described above are implemented.
[0184] The specific embodiments of the storage medium of the present application are basically the same as the embodiments of the above-mentioned ink screen refresh method, and will not be repeated here.
[0185] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0186] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0187] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0188] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for refreshing an ink screen, characterized in that: The ink screen refreshing method comprises: After receiving the ink screen refresh instruction, the pixel comparison between the previous frame image and the current frame image is performed to determine the image update area; Determine a first area for handwriting refresh and a second area for system refresh in the update area; Determine whether there is an overlapping area between the first area and the second area, wherein the overlapping area is an area whose refresh forms include the handwriting refresh and the system refresh; If the overlapping area does not exist, then each first pixel point in the update area is synchronously refreshed; If the overlapping area exists, each second pixel point is refreshed according to the current refresh status of each second pixel point in the overlapping area, and each third pixel point in the non-overlapping area is refreshed synchronously, wherein the non-overlapping area is the area in the update area excluding the overlapping area.
2. The ink screen refreshing method according to claim 1, characterized in that: The step of refreshing each second pixel point in the overlapped area according to the current refresh state of each second pixel point comprises: For each second pixel in the overlapped area, determining a current refresh state of the second pixel, wherein the current refresh state is a non-refresh state or a refresh state; If the second pixel point is in the refresh state, wait for the second pixel point to complete the current refresh and then perform a new refresh; If the second pixel is in the non-refresh state, the handwriting refresh or the system refresh is performed on the second pixel.
3. The ink screen refreshing method according to claim 2, characterized in that: The step of determining the current refresh state of the second pixel comprises: Querying a refresh list of the second pixel point to obtain a total refresh frame number and a current refresh frame number of the second pixel point; If the current refresh frame number is less than the total refresh frame number, determining that the second pixel is in the refresh state; If the current refresh frame number is greater than or equal to the total refresh frame number, it is determined that the second pixel is in the non-refresh state.
4. The ink screen refreshing method according to claim 2, characterized in that: The refresh state is a handwriting refresh state or a system refresh state; If the second pixel point is in the refresh state, the step of waiting for the second pixel point to complete the current refresh and then perform a new refresh comprises: If the second pixel point is in the handwriting refresh state, wait for the second pixel point to complete the handwriting refresh before performing the system refresh; If the second pixel is in the system refresh state, the handwriting refresh is performed after the second pixel completes the system refresh.
5. The ink screen refreshing method according to claim 1, characterized in that: The step of determining whether there is an overlapping area between the first area and the second area includes: Determine the coordinates of first vertices of the first area on the display screen, and determine the coordinates of second vertices of the second area on the display screen; It is determined whether there is an overlapping area between the first area and the second area according to the first vertex coordinates and the second vertex coordinates.
6. The ink screen refreshing method according to claim 1, characterized in that: The method further comprises: Determining a third area for handwriting refresh; The grayscale of each fourth pixel point in the third area is set to a preset grayscale value.
7. The ink screen refreshing method according to claim 1, characterized in that: The method further comprises: Determining a fourth area for handwriting refresh and a fifth area for system refresh, wherein the fourth area and the fifth area have no overlapping portion in the display screen; The fifth pixels in the fourth area and the fifth area are refreshed synchronously.
8. An ink screen refreshing device, characterized in that: The ink screen refreshing device comprises: An update region determination module is used to compare pixels of a previous frame image and a current frame image after receiving an ink screen refresh instruction to determine an update region of the image; An area determination module, used for determining a first area for handwriting refresh and a second area for system refresh in the update area; An overlap region determination module, used for determining whether there is an overlap region between the first region and the second region, wherein the overlap region is a region whose refresh forms include the handwriting refresh and the system refresh; A first refreshing module, configured to synchronously refresh each first pixel point in the update area if the overlapping area does not exist; The second refresh module is used to refresh each second pixel point in the overlapping area according to the current refresh status of each second pixel point in the overlapping area if there is the overlapping area, and to synchronously refresh each third pixel point in the non-overlapping area, wherein the non-overlapping area is the area in the update area excluding the overlapping area.
9. A terminal device, characterized in that: The terminal device includes: a memory, a processor, and an ink screen refresh program stored in the memory and executable on the processor, wherein the ink screen refresh program, when executed by the processor, implements the steps of the ink screen refresh method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which is stored a program for implementing the ink screen refresh method. The program for implementing the ink screen refresh method is executed by a processor to implement the steps of the ink screen refresh method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Ink screen quick refreshing method, device and equipment and computer readable storage medium
CN112509524A
Screen refreshing method and device, computer readable storage medium and computer equipment
CN114049865A
Screen update request scanning method and device, storage medium and related equipment
CN114489545A
Ink screen refreshing method, device and equipment and computer readable storage medium
CN117275422A
Controller for updating pixels in an electronic paper display
WO2012009608A1
