CN114049865A - Screen refreshing method and device, computer readable storage medium and computer equipment - Google Patents

Screen refreshing method and device, computer readable storage medium and computer equipment Download PDF

Info

Publication number
CN114049865A
CN114049865A CN202210029256.XA CN202210029256A CN114049865A CN 114049865 A CN114049865 A CN 114049865A CN 202210029256 A CN202210029256 A CN 202210029256A CN 114049865 A CN114049865 A CN 114049865A
Authority
CN
China
Prior art keywords
screen
refreshing
area
pixel change
region
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.)
Granted
Application number
CN202210029256.XA
Other languages
Chinese (zh)
Other versions
CN114049865B (en
Inventor
许俊文
朱增
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ONYX INTERNATIONAL Inc
Original Assignee
ONYX INTERNATIONAL Inc
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 ONYX INTERNATIONAL Inc filed Critical ONYX INTERNATIONAL Inc
Priority to CN202210029256.XA priority Critical patent/CN114049865B/en
Publication of CN114049865A publication Critical patent/CN114049865A/en
Application granted granted Critical
Publication of CN114049865B publication Critical patent/CN114049865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3433Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using light modulating elements actuated by an electric field and being other than liquid crystal devices and electrochromic devices
    • G09G3/344Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using light modulating elements actuated by an electric field and being other than liquid crystal devices and electrochromic devices based on particles moving in a fluid or in a gas, e.g. electrophoretic devices
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/2007Display of intermediate tones
    • G09G3/2074Display of intermediate tones using sub-pixels

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The screen refreshing method, the device, the computer readable storage medium and the computer equipment provided by the invention have the advantages that when a screen refreshing instruction is received, can acquire the current frame and the next frame corresponding to the screen refreshing command, and determine the first pixel change content and the first pixel change area when the current frame changes to the next frame, the first pixel variation region can then be compared with predetermined screen division regions, and determining a screen division region and a screen refresh policy corresponding to the first pixel variation region, since different screen division regions set different screen refresh strategies according to different usage scenarios, when the first pixel variation region falls into a different screen division region, the corresponding screen refresh strategy can be executed according to the corresponding screen division regions, so that different refresh modes can be used for different regions of the screen according to different scenes.

Description

Screen refreshing method and device, computer readable storage medium and computer equipment
Technical Field
The invention relates to the technical field of electronic ink screen driving display, in particular to a screen refreshing method and device, a computer readable storage medium and computer equipment.
Background
Currently, for a device using an electronic ink screen, before performing screen update, a refresh mode needs to be specified according to a usage scenario. For example, a text reading scene, a GC16 refresh mode is generally selected, and if a video is played or other scenes with high requirements on screen response speed, an a2 refresh mode can be selected.
However, the current scheme can only specify a refresh mode to be used for a full screen, and for a small screen, because the screen is small, a user can only open one application at the same time, such as reading characters, or playing videos. However, for a large-size screen, because the screen size is large, there is enough space for a user to open two or more applications at the same time, for example, the left half of the screen plays a video, the right half of the screen reads text data associated with the video, or records video notes, and at this time, if the screen is continuously refreshed in a single refreshing manner, the user's requirements cannot be met.
Therefore, it is desirable to provide a method capable of using different refresh modes for different areas of the screen according to different scenes.
Disclosure of Invention
The present invention aims to solve at least one of the above-mentioned technical drawbacks, and in particular, the technical drawback of the prior art that a method capable of using different refresh modes for different areas of the screen according to different scenes is lacking.
The invention provides a screen refreshing method, which is applied to equipment using an electronic ink screen and comprises the following steps:
when a screen refreshing instruction is received, acquiring a current frame image and a next frame image corresponding to the screen refreshing instruction;
determining first pixel change content and a first pixel change area when the current frame picture is changed to the next frame picture;
comparing the first pixel change area with each preset screen division area, and determining the screen division area and the screen refreshing strategy corresponding to the first pixel change area; different screen partition regions set different screen refreshing strategies according to different use scenes;
and generating a first screen refreshing request corresponding to the first pixel change content and the first pixel change area according to the screen refreshing strategy, and refreshing the current frame according to the first screen refreshing request.
Optionally, when receiving a screen refresh instruction, the obtaining a current frame picture and a next frame picture corresponding to the screen refresh instruction includes:
when a screen refreshing instruction sent by a preset application is received, determining a picture data cache region corresponding to the preset application;
and extracting a current frame picture and a next frame picture corresponding to the screen refreshing instruction from the picture data cache region.
Optionally, the comparing the first pixel change region with each preset screen partition region, and determining the screen partition region and the screen refresh policy corresponding to the first pixel change region includes:
acquiring a plurality of preset screen division regions and a screen refreshing strategy corresponding to each screen division region;
comparing the area position of the first pixel change area with the area position of each screen division area respectively;
if the area position of the first pixel change area is overlapped with the area position of one of the screen division areas, taking the overlapped screen division area as the screen division area corresponding to the first pixel change area, and taking the screen refresh strategy corresponding to the overlapped screen division area as the screen refresh strategy corresponding to the first pixel change area;
if the area position of the first pixel change area is overlapped with the area positions of at least two screen division areas, the first pixel change area is divided according to the overlapped screen division areas to obtain a plurality of first pixel change sub-areas, and the screen division area and the screen refreshing strategy corresponding to each first pixel change sub-area are determined.
Optionally, if the area position of the first pixel change area coincides with the area position of one of the screen division areas;
generating a first screen refresh request corresponding to the first pixel change content and the first pixel change area according to the screen refresh policy, and refreshing the current frame according to the first screen refresh request, including:
if the updating mechanism in the screen refreshing strategy is a serial updating mechanism, generating a first screen refreshing request according to the first pixel change content, the first pixel change area and a refreshing mode corresponding to the first pixel change area, determining whether the overlapped screen division area has a screen refreshing request which is being processed, if not, refreshing the current frame according to the first screen refreshing request, and if so, submitting the first screen refreshing request to a refreshing request waiting queue for waiting;
if the update mechanism in the screen refresh strategy is a parallel update mechanism, generating a corresponding first screen refresh request according to the first pixel change content, the first pixel change area and a refresh mode corresponding to the first pixel change area, determining whether the overlapped screen division area has a screen refresh request being processed, if not, refreshing the current frame according to the first screen refresh request, if so, splitting the first screen refresh request according to the screen refresh request being processed, and refreshing the current frame according to the split first screen refresh request.
Optionally, the splitting the first screen refresh request according to the screen refresh request being processed, and refreshing the current frame picture according to the split first screen refresh request includes:
determining a second pixel change region corresponding to the screen refresh request being processed;
comparing the second pixel change area with the first pixel change area, and determining an overlapped area and an non-overlapped area of the first pixel change area and the second pixel change area;
generating a second screen refreshing request according to the overlapped area, the second pixel change content corresponding to the overlapped area and the refreshing mode corresponding to the overlapped area, and submitting the second screen refreshing request to the refreshing request waiting queue for waiting;
and generating a third screen refreshing request according to the non-overlapping region, the third pixel change content corresponding to the non-overlapping region and the refreshing mode corresponding to the non-overlapping region, and refreshing the current frame according to the third screen refreshing request.
Optionally, if the area position of the first pixel change area coincides with the area positions of at least two screen division areas;
generating a first screen refresh request corresponding to the first pixel change content and the first pixel change area according to the screen refresh policy, and refreshing the current frame according to the first screen refresh request, including:
for each first pixel variation sub-region:
if the update mechanism in the screen refresh strategy corresponding to the first pixel change sub-region is a serial update mechanism, generating a fourth screen refresh request according to the first pixel change sub-region, a fourth pixel change content corresponding to the first pixel change sub-region and a refresh mode corresponding to the first pixel change sub-region, determining whether a screen division region coincident with the first pixel change sub-region has a screen refresh request being processed, if not, refreshing the current frame according to the fourth screen refresh request, and if so, submitting the fourth screen refresh request to a refresh request waiting queue for waiting;
if the update mechanism in the screen refresh strategy corresponding to the first pixel change sub-region is a parallel update mechanism, generating a fourth screen refresh request according to the first pixel change sub-region, a fourth pixel change content corresponding to the first pixel change sub-region, and a refresh mode corresponding to the first pixel change sub-region, determining whether a screen division region coincident with the first pixel change sub-region has a screen refresh request being processed, if not, refreshing the current frame according to the fourth screen refresh request, if so, splitting the fourth screen refresh request according to the screen refresh request being processed, and refreshing the current frame according to the split fourth screen refresh request.
Optionally, the splitting the fourth screen refresh request according to the screen refresh request being processed, and refreshing the current frame picture according to the split fourth screen refresh request includes:
determining a third pixel change region corresponding to the screen refresh request being processed;
comparing the third pixel variation region with the first pixel variation sub-region, and determining an overlapped region and an un-overlapped region of the first pixel variation sub-region with the third pixel variation region;
generating a fifth screen refreshing request according to the overlapped area, the fifth pixel change content corresponding to the overlapped area and the refreshing mode corresponding to the overlapped area, and submitting the fifth screen refreshing request to the refreshing request waiting queue for waiting;
and generating a sixth screen refreshing request according to the non-overlapping area, the sixth pixel change content corresponding to the non-overlapping area and the refreshing mode corresponding to the non-overlapping area, and refreshing the current frame according to the sixth screen refreshing request.
Optionally, before submitting the fifth screen refresh request to the refresh request waiting queue for waiting, the method further includes:
and merging the fifth screen refreshing requests of the first pixel change sub-regions according to a preset merging strategy, and submitting the merged fifth screen refreshing requests to the refreshing request waiting queue for waiting.
The present invention also provides a screen refreshing apparatus, comprising:
the data acquisition module is used for acquiring a current frame picture and a next frame picture corresponding to a screen refreshing instruction when the screen refreshing instruction is received;
the first determining module is used for determining first pixel change content and a first pixel change area when the current frame picture is changed to the next frame picture;
the second determining module is used for comparing the first pixel change area with each preset screen division area and determining the screen division area and the screen refreshing strategy corresponding to the first pixel change area; different screen partition regions set different screen refreshing strategies according to different use scenes;
and the screen refreshing module is used for generating a first screen refreshing request corresponding to the first pixel change content and the first pixel change area according to the screen refreshing strategy and refreshing the current frame according to the first screen refreshing request.
The present invention also provides a computer readable storage medium having stored therein computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the screen refresh method as described in any one of the above embodiments.
The present invention also provides a computer device comprising: one or more processors, and a memory;
the memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the screen refresh method as in any one of the above embodiments.
According to the technical scheme, the embodiment of the invention has the following advantages:
the screen refreshing method, the device, the computer readable storage medium and the computer equipment provided by the invention have the advantages that when a screen refreshing instruction is received, can acquire the current frame and the next frame corresponding to the screen refreshing command, and determine the first pixel change content and the first pixel change area when the current frame changes to the next frame, the first pixel variation region can then be compared with predetermined screen division regions, and determining a screen division region and a screen refresh policy corresponding to the first pixel variation region, since different screen division regions set different screen refresh strategies according to different usage scenarios, when the first pixel variation region falls into a different screen division region, the corresponding screen refresh strategy can be executed according to the corresponding screen division regions, so that different refresh modes can be used for different regions of the screen according to different scenes.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a screen refreshing method according to an embodiment of the present invention;
FIG. 2 is a schematic view of a scene in which a first pixel variation region coincides with one of screen division regions according to an embodiment of the present invention;
FIG. 3 is a schematic view of a scene in which a first pixel variation region coincides with four screen division regions according to an embodiment of the present invention;
fig. 4 is a schematic view of a scene in which a first pixel variation sub-region and a third pixel variation sub-region are partially overlapped according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a screen refreshing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic internal structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In an embodiment, as shown in fig. 1, fig. 1 is a schematic flow chart of a screen refreshing method according to an embodiment of the present invention; the invention provides a screen refreshing method, which is applied to equipment using an electronic ink screen and can comprise the following steps:
s110: and when a screen refreshing instruction is received, acquiring a current frame image and a next frame image corresponding to the screen refreshing instruction.
In this step, when a user executes a relevant operation in the device using the electronic ink screen, a corresponding operation instruction is triggered, and after receiving the operation instruction, the device using the electronic ink screen can acquire operation data corresponding to the operation instruction.
The device using the electronic ink screen can be an electronic book, a PC, or a mobile terminal device with an electronic ink screen display function, such as a smart phone, a tablet computer, a portable computer, and the like, and the hardware structure of the mobile terminal device can include a processor and a memory, wherein the processor can call a screen refresh program stored in the memory, and the screen refresh program can implement the operation of the screen refresh method in the application when executed by the processor.
Specifically, when the screen refresh program receives the screen refresh command, a current frame corresponding to the screen refresh command and a next frame corresponding to the current frame can be obtained, so that the screen refresh function is realized according to the current frame and the next frame.
It is understood that the screen refresh command in the present application may be a command sent by at least one application or system in the device using the electronic ink screen; the current frame picture corresponding to the screen refreshing instruction refers to a picture displayed in the electronic ink screen when the screen refreshing instruction is received; if a video player is installed in the equipment using the electronic ink screen, if the video player is displaying a playing picture in the electronic ink screen, the current frame picture at the moment is the playing picture of the video player; moreover, the application generally sends multiple frames of pictures to be displayed to the screen refreshing program in advance, such as a video stream corresponding to a certain video selected by the user in the video player, and text information corresponding to a certain text selected by the user in the reader. The multiple frames of pictures to be displayed can be stored according to the time sequence through the picture data buffer area, so that the picture which is adjacent to the current frame picture and is displayed after the current frame picture can be used as the next frame picture.
Further, for a large-sized electronic ink screen, there is enough space for a user to open two or more applications at the same time due to the large screen size. For example, the left half of the screen plays video, the right half of the screen reads text data associated with the video, or records video notes, or performs related operations in other applications, at this time, the screen refresh command received by the screen refresh program may be a command sent by a plurality of applications, and the current frame picture corresponding to the screen refresh command may include a playing picture of the video player and pictures displayed in the electronic ink screen by other applications at the same time, and the current frame picture is composed of a plurality of pictures.
Therefore, in the present application, when the screen refresh program receives the screen refresh command, the display frame in the electronic ink screen corresponding to each screen refresh command can be obtained according to the number of the screen refresh commands received at the same time, and the current frame is formed by a plurality of display frames together, and the next frame is formed by the frames immediately after the respective display frame together.
S120: a first pixel change content and a first pixel change area when changing from a current frame picture to a next frame picture are determined.
In this step, after the current frame and the next frame corresponding to the screen refresh command are obtained through S110, the first pixel change content and the first pixel change area when the current frame changes to the next frame can be determined.
It is understood that a frame refers to a single picture frame of the smallest unit in a motion picture animation, corresponding to each frame of a shot on a motion picture film. Each frame is a static image, and displaying frames in rapid succession creates motion artifacts, while high frame rates result in smoother, more realistic animation.
The pixels are composed of letters of two words, Picture and Element, and are a unit for calculating the digital image, like a photographic photo, the digital image also has continuous shades, and if the image is enlarged by several times, the continuous shades are actually composed of a plurality of small square points with similar colors, and the small square points are the minimum unit pixels (pixels) forming the image. The higher the pixel, the more abundant the color plate it possesses, the more the reality of the expression color.
Therefore, when the display picture of the electronic ink screen changes from the current frame picture to the next frame picture, the color gray scale of one or more pixels in the current frame picture may change, at this time, the change of the color gray scale of all the pixels when the current frame picture changes to the next frame picture can be counted to form a first pixel change content, and the area where each pixel is located when the current frame picture changes to the next frame picture forms a corresponding first pixel change area.
In a specific implementation manner, the method and the device can detect the pixel change content and the corresponding area of two pieces of picture data through a picture data difference detection module; the system can compare the current frame picture with the next frame picture by using the picture data difference detection module to generate the pixel change content and the corresponding area of the next frame picture relative to the current frame picture.
Further, since the electronic ink screen supports 16-level gray scale color display, when a certain pixel in the screen needs to be updated, the current color gray scale and the target color gray scale of the pixel need to be determined, then a corresponding refresh waveform table can be found according to parameters such as the current refresh mode by querying a screen waveform file provided by a screen manufacturer, the number of refresh frames which need to pass when the pixel is updated from the current color gray scale to the target color gray scale and the driving voltage of each frame are determined, and then when the TFT driving circuit scans frames, the corresponding voltage is applied according to the current number of refresh frames, so that the purpose of updating the color gray scale of the pixel is achieved.
Therefore, when the display screen of the electronic ink screen is updated, the refresh mode to be used needs to be specified at the same time, and different refresh modes can affect the refresh frame number corresponding to the changed content of the first pixel. The refresh mode of the electronic ink screen comprises various modes, for example, a 16-level gray level refresh mode of the GC16 can be selected when high-quality picture display is required but the requirement on the screen update speed is not high; if it is desired to achieve a fast screen response, but the picture quality requirements are low, the black and white block refresh mode of a2 may be selected.
S130: and comparing the first pixel change area with each preset screen division area, and determining the screen division area corresponding to the first pixel change area and a screen refreshing strategy.
In this step, after determining the first pixel change content and the first pixel change area when the current frame changes from the next frame through S120, the first pixel change area may be compared with each preset screen partition area, so as to determine the screen partition area and the screen refresh policy corresponding to the first pixel change area.
It is understood that the device using the electronic ink screen in the present application may provide an interface for an application or system installed in the device, and the application or system may divide the screen display area of the electronic ink screen into a plurality of different areas, i.e., screen division areas, through the interface. The screen partition area may be any shape such as a rectangle, a polygon, an ellipse, a closed curve area, etc. The application program or the system can set different refresh modes and update mechanisms for any screen division region at any time according to requirements, and when the configuration parameters of the newly set screen division region conflict with the configuration parameters of the existing screen division region, the configuration parameters of the newly set screen division region can be used as the standard.
Moreover, since the usage scenarios of the respective applications are different, there are also a plurality of usage scenarios for the same application. For example, the video player mainly provides video playing scenes for the user, and can also provide video list browsing scenes for the user; the text reader mainly provides reading scenes for the user, and can also provide text annotation scenes and the like for the user. Therefore, each application program can set different screen division areas and different screen refreshing strategies for different use scenes according to the requirements of the application program.
The screen refresh policy may include an update mechanism and a refresh mode used by the current screen partition area. The updating mechanism can comprise a serial updating mechanism and a parallel updating mechanism, wherein the serial updating mechanism is a common updating mechanism of the electronic ink screen, namely, the whole area updates the picture data in the area to the screen according to a specified refreshing mode, and processes the next updating of the area after the updating process is finished; the parallel updating mechanism is a multi-area concurrent updating mechanism for improving the response speed of a screen, and can support simultaneous concurrent updating of a plurality of areas of the screen.
After the plurality of screen division regions are preset, the first pixel change region may be compared with each screen division region, so as to determine the screen division region and the screen refresh policy corresponding to the first pixel change region. For example, when the first pixel variation region is compared with each screen division region, the region position of the first pixel variation region in the screen may be compared with the region position of each screen division region in the screen, where the region position may be the region coordinate of the entire region, or the coordinate corresponding to each pixel in the region, which is not limited herein.
Further, since the first pixel change region includes a set formed by regions where pixels with changed color and gray scale are located when at least one application program changes from a current frame picture to a next frame picture, each application program can divide at least one screen division region in the screen according to the requirements of its own use scene. Therefore, the screen division region corresponding to the first pixel variation region may be one or more, and accordingly, the screen refresh policy corresponding to the first pixel variation region may be one or more.
S140: and generating a first screen refreshing request corresponding to the first pixel change content and the first pixel change area according to a screen refreshing strategy, and refreshing the current frame according to the first screen refreshing request.
In this step, after the first pixel change region is compared with each preset screen division region by S130, and the screen division region and the screen refresh policy corresponding to the first pixel change region are determined, a first screen refresh request corresponding to the first pixel change content and the first pixel change region may be generated according to the screen refresh policy, and the current frame picture may be refreshed according to the first screen refresh request.
Specifically, each screen division region has a corresponding screen refresh policy, and the screen refresh policy may include an update mechanism used by the current screen division region or a refresh mode used by the current screen division region. After determining the screen division region and the screen refresh strategy corresponding to the first pixel change region, a first screen refresh request can be generated according to the refresh mode in the screen refresh strategy, the first pixel change content and the first pixel change region, when the system receives the first screen refresh request, the refresh frame number of the first pixel change region can be determined according to the refresh mode carried in the first screen refresh request, and then when the TFT drive circuit scans the frame, the corresponding voltage is applied to the first pixel change region according to the current refresh frame number, so that the display picture of the first pixel change region in the screen is updated.
In addition, when the update mechanism used by the current screen partition region is included in the screen refresh policy, it may be determined whether the currently generated first screen refresh request can be immediately executed according to the type of the update mechanism. For example, when the update mechanism is a serial update mechanism, since the serial update mechanism needs to wait for the completion of the refresh of the picture data in the entire area before continuing the next refresh operation, when a certain area in the screen corresponding to the first pixel change area is performing the picture refresh, the system cannot immediately respond to the first screen refresh request, and needs to wait for the completion of the refresh of the picture being refreshed before responding to the first screen refresh request to perform the refresh; when the update mechanism is a parallel update mechanism, the parallel update mechanism can support simultaneous and concurrent update of multiple areas of the screen, so that when a certain area in the screen corresponding to the first pixel change area is performing picture refresh, the system can detect whether other areas in the screen corresponding to the first pixel change area have picture refresh operation, if not, the system can directly respond to the first screen refresh request to perform refresh, and if so, the system can continue to wait.
In the above embodiment, when the screen refresh command is received, the current frame and the next frame corresponding to the screen refresh command can be obtained, and determines a first pixel change content and a first pixel change area when changing from the current frame picture to the next frame picture, the first pixel variation region can then be compared with predetermined screen division regions, and determining a screen division region and a screen refresh policy corresponding to the first pixel variation region, since different screen division regions set different screen refresh strategies according to different usage scenarios, when the first pixel variation region falls into a different screen division region, the corresponding screen refresh strategy can be executed according to the corresponding screen division regions, so that different refresh modes can be used for different regions of the screen according to different scenes.
In one embodiment, when the screen refresh command is received in S110, acquiring a current frame picture and a next frame picture corresponding to the screen refresh command may include:
s111: when a screen refreshing instruction sent by a preset application is received, determining a picture data cache region corresponding to the preset application.
S112: and extracting a current frame picture and a next frame picture corresponding to the screen refreshing instruction from the picture data cache region.
In this embodiment, when the system receives a screen refresh instruction sent by a preset application, it may first determine a picture data cache region corresponding to the preset application, where the current picture data of the screen and a queue of picture data to be displayed of the screen stored according to a time sequence are stored in the picture data cache region, and after finding the picture data cache region corresponding to the preset application, the system may extract a current frame picture and a next frame picture corresponding to the screen refresh instruction sent by the preset application from the picture data cache region.
Further, the image data cache region in the present application may be a cache region corresponding to a certain preset application, or may be a cache region corresponding to all preset applications installed in a device using an electronic ink screen, which is not limited herein.
In one embodiment, the comparing the first pixel change region with each preset screen partition region in S130 to determine the screen partition region and the screen refresh policy corresponding to the first pixel change region may include:
s131: the method comprises the steps of obtaining a plurality of preset screen division areas and a screen refreshing strategy corresponding to each screen division area.
In this step, the application may divide the screen display area of the electronic ink screen into a plurality of different screen division areas by using an interface provided by the device of the electronic ink screen. The screen partition area may be any shape such as a rectangle, a polygon, an ellipse, a closed curve area, etc.
Moreover, since the usage scenarios of the respective applications are different, there are also a plurality of usage scenarios for the same application. Therefore, each application program can set different screen division areas and different screen refreshing strategies for different use scenes according to the requirements of the application program.
Based on this, before comparing the first pixel change region with each preset screen division region, the present application can obtain a plurality of preset screen division regions and a screen refresh policy corresponding to each screen division region.
S132: and comparing the area position of the first pixel change area with the area position of each screen division area respectively.
In this step, after the plurality of screen division regions and the screen refresh policy corresponding to each screen division region are obtained through S131, the region position of the first pixel variation region may be respectively compared with the region position of each screen division region, so as to determine the screen division region and the screen refresh policy corresponding to the first pixel variation region.
It is understood that the region location herein refers to the display location of the region in the electronic ink screen, which can be determined by pixel coordinates. For example, the screen width of the current electronic ink screen is 160 pixels, the screen length is 96 pixels, that is, the screen size of the electronic ink screen is 160 × 96, the area position of the first pixel change area may be a window with coordinates (20, 16) and a size of 86 × 47 on the electronic ink screen, and the screen division area may be a window with coordinates (15, 30) and a size of 100 × 50 on the electronic ink screen.
S133: and if the area position of the first pixel change area is overlapped with the area position of one of the screen division areas, taking the overlapped screen division area as the screen division area corresponding to the first pixel change area, and taking the screen refresh strategy corresponding to the overlapped screen division area as the screen refresh strategy corresponding to the first pixel change area.
In this step, since the electronic ink screen is divided into a plurality of screen division regions in advance, and each screen division region has a screen refresh policy corresponding thereto, after comparing the region position of the first pixel change region with the region position of each screen division region, if the region position of the first pixel change region coincides with the region position of one of the screen division regions, that is, the first pixel change region is included in one of the screen division regions, at this time, the coinciding screen division region may be directly used as the screen division region corresponding to the first pixel change region, and the screen refresh policy corresponding to the coinciding screen division region may be used as the screen refresh policy corresponding to the first pixel change region.
S134: if the area position of the first pixel change area is overlapped with the area positions of at least two screen division areas, the first pixel change area is divided according to the overlapped screen division areas to obtain a plurality of first pixel change sub-areas, and the screen division area and the screen refreshing strategy corresponding to each first pixel change sub-area are determined.
In this step, since the first pixel change area includes a set formed by areas where pixels with changed color and gray scale are located when at least one application program changes from a current frame picture to a next frame picture, each application program can divide at least one screen division area in the screen according to the requirements of its own use scene. Therefore, the screen division region corresponding to the first pixel variation region may be one or more, and accordingly, the screen refresh policy corresponding to the first pixel variation region may be one or more.
When the area position of the first pixel variation area coincides with the area position of at least two screen division areas, the first pixel variation area may be divided according to the coinciding screen division areas, for example, the first pixel variation area is divided into different screen division areas, so as to obtain a plurality of first pixel variation sub-areas, each of which is included in the corresponding screen division area, and thus, the screen division area and the screen refresh policy corresponding to each of the first pixel variation sub-areas may be determined in this manner.
In one embodiment, in S133, if the area position of the first pixel variation area coincides with the area position of one of the screen division areas; in S140, generating a first screen refresh request corresponding to the first pixel change content and the first pixel change area according to the screen refresh policy, and refreshing the current frame according to the first screen refresh request may include:
s141: if the updating mechanism in the screen refreshing strategy is a serial updating mechanism, generating a first screen refreshing request according to the first pixel change content, the first pixel change area and a refreshing mode corresponding to the first pixel change area, determining whether the overlapped screen division area has a screen refreshing request which is being processed, if not, refreshing the current frame according to the first screen refreshing request, and if so, submitting the first screen refreshing request to a refreshing request waiting queue for waiting.
In this step, each screen division region has its corresponding screen refresh policy, and the screen refresh policy may include an update mechanism used by the current screen division region or a refresh mode used by the current screen division region. When the update mechanism in the screen refresh policy is a serial update mechanism, the application can generate a first screen refresh request according to the refresh mode in the screen refresh policy, the first pixel change content and the first pixel change region, when the system receives the first screen refresh request, the refresh frame number of the first pixel change region can be determined according to the refresh mode carried in the first screen refresh request, and then when the TFT driving circuit scans the frame, the corresponding voltage is applied to the first pixel change region according to the current refresh frame number, so as to update the display picture of the first pixel change region in the screen.
Further, the serial update mechanism needs to wait for the completion of the refreshing of the picture data of the whole area before continuing the next refreshing operation. Therefore, when the first screen refresh request is generated, the system can determine whether the screen refresh request being processed exists in the overlapped screen partition area, if so, the system cannot immediately respond to the first screen refresh request, and can respond to the first screen refresh request for refreshing after the refreshing of the picture being refreshed is finished, otherwise, the system can refresh the current frame picture according to the first screen refresh request.
In a specific implementation manner, the method can set a refresh request waiting queue and a refresh request processing module, wherein the refresh request waiting queue can store all screen refresh requests waiting for processing, the refresh request processing module is a screen update actual processing module and stores all screen refresh requests being processed, and the screen refresh requests in the refresh request processing module have two sources, one is the refresh request waiting queue, and the other is skipping the refresh request waiting queue and directly submitting the screen refresh requests to the refresh request processing module.
Based on this, when the system determines whether the screen refreshing request in process exists in the overlapped screen division areas, the system can directly search whether the screen refreshing request in process exists in the overlapped screen division areas in the refreshing request processing module, and a search result can be obtained.
Furthermore, the screen update processing module in the present application may maintain all the screen refresh requests being processed and the corresponding update statuses, such as the total frame number and the current frame number of the screen refresh requests, and then sequentially update the corresponding contents of the current frames of all the screen refresh requests being processed onto the screen according to the TFT frame scanning sequence. In addition, after a certain screen refresh request is processed, the request can be removed from the screen update processing module, and meanwhile, the system is informed to scan and process the refresh request waiting queue, so that the screen refresh request can be extracted from the refresh request waiting queue for processing.
S142: if the update mechanism in the screen refresh strategy is a parallel update mechanism, generating a corresponding first screen refresh request according to the first pixel change content, the first pixel change area and a refresh mode corresponding to the first pixel change area, determining whether the overlapped screen division area has a screen refresh request being processed, if not, refreshing the current frame according to the first screen refresh request, if so, splitting the first screen refresh request according to the screen refresh request being processed, and refreshing the current frame according to the split first screen refresh request.
In this step, when the update mechanism in the screen refresh policy is a parallel update mechanism, the application may generate a first screen refresh request according to the refresh mode in the screen refresh policy, the first pixel change content, and the first pixel change area, and when the system receives the first screen refresh request, the system may determine the refresh frame number of the first pixel change area according to the refresh mode carried in the first screen refresh request, and then apply a corresponding voltage to the first pixel change area according to the current refresh frame number when the TFT driver circuit scans the frame, so as to update the display picture of the first pixel change area in the screen.
Furthermore, because the parallel update mechanism can support simultaneous and concurrent update of multiple areas of the screen, when the first screen refresh request is generated, the system can determine whether the screen refresh request being processed exists in the overlapped screen divided areas or not, if so, split the first screen refresh request according to the screen refresh request being processed in the overlapped screen divided areas, and refresh the current frame picture according to the split first screen refresh request; if not, the current frame can be refreshed directly according to the first screen refreshing request.
In one embodiment, as shown in fig. 2, fig. 2 is a schematic view of a scene where a first pixel variation region coincides with one of screen division regions according to an embodiment of the present invention; in S142, splitting the first screen refresh request according to the currently processed screen refresh request, and refreshing the current frame picture according to the split first screen refresh request may include:
s1421: determining a second pixel change region corresponding to the screen refresh request being processed.
In this step, as shown in fig. 2, the screen division area 11 of the electronic ink screen 10 in fig. 2, which coincides with the first pixel variation area 12, is a pentagonal structure, and the pentagonal structure includes the second pixel variation area 13 and other areas besides the first pixel variation area 12. Therefore, when the update mechanism of the screen division area 11 is the parallel update mechanism, the second pixel change area 13 corresponding to the screen refresh request being processed in the screen division area 11 may be determined first, then the first pixel change area 12 may be divided according to the degree of overlap between the first pixel change area 12 and the second pixel change area 13, and a new screen refresh request may be determined again.
S1422: and comparing the second pixel change area with the first pixel change area, and determining an overlapped area and an non-overlapped area of the first pixel change area and the second pixel change area.
In this step, as shown in fig. 2, after comparing the second pixel variation region 13 with the first pixel variation region 12, there are an overlapped region and an un-overlapped region between the first pixel variation region 12 and the second pixel variation region 13, and the overlapped region is shown as a shaded portion in fig. 2.
S1423: and generating a second screen refreshing request according to the overlapped area, the second pixel change content corresponding to the overlapped area and the refreshing mode corresponding to the overlapped area, and submitting the second screen refreshing request to the refreshing request waiting queue for waiting.
In this step, because there is a screen refresh request being processed in the overlapped region, the application may generate a second screen refresh request according to the overlapped region, a second pixel change content corresponding to the overlapped region, and a refresh mode corresponding to the overlapped region, and submit the second screen refresh request to the refresh request waiting queue for waiting, so that after the screen refresh request being processed in the overlapped region is processed, the second screen refresh request is submitted to the refresh request processing module for processing.
It can be understood that, since each screen division region 11 has its corresponding screen refresh policy, and the screen refresh policy includes the refresh mode corresponding to the screen division region 11, when the screen division region 11 corresponding to the first pixel variation region 12 is determined, the refresh mode corresponding to the first pixel variation region 12 can be determined, and the overlapped region belongs to a portion of the first pixel variation region 12, so that the refresh mode corresponding to the overlapped region is the refresh mode of the screen division region corresponding to the first pixel variation region 12.
S1424: and generating a third screen refreshing request according to the non-overlapping region, the third pixel change content corresponding to the non-overlapping region and the refreshing mode corresponding to the non-overlapping region, and refreshing the current frame according to the third screen refreshing request.
In this step, after determining the non-overlapping area of the first pixel variation area 12 and the second pixel variation area 13, since the non-overlapping area does not have the screen refresh request being processed at this time, the third screen refresh request may be generated according to the third pixel variation content corresponding to the non-overlapping area and the non-overlapping area, and the refresh mode corresponding to the non-overlapping area, and the current frame may be refreshed according to the third screen refresh request.
It is understood that the non-overlapping area also belongs to a part of the first pixel variation area 12, and thus the refresh mode corresponding to the non-overlapping area corresponds to the refresh mode of the screen divided area corresponding to the first pixel variation area 12.
In one embodiment, as shown in fig. 3, fig. 3 is a schematic view of a scene where a first pixel variation region and four screen division regions are overlapped according to an embodiment of the present invention; if the area position of the first pixel change area coincides with the area positions of at least two screen division areas in S134; in S140, generating a first screen refresh request corresponding to the first pixel change content and the first pixel change area according to the screen refresh policy, and refreshing the current frame according to the first screen refresh request may include:
s401: for each first pixel variation sub-region: if the update mechanism in the screen refresh strategy corresponding to the first pixel change sub-region is a serial update mechanism, generating a fourth screen refresh request according to the first pixel change sub-region, a fourth pixel change content corresponding to the first pixel change sub-region, and a refresh mode corresponding to the first pixel change sub-region, determining whether a screen division region coincident with the first pixel change sub-region has a screen refresh request being processed, if not, refreshing the current frame according to the fourth screen refresh request, and if so, submitting the fourth screen refresh request to a refresh request waiting queue for waiting.
S402: if the update mechanism in the screen refresh strategy corresponding to the first pixel change sub-region is a parallel update mechanism, generating a fourth screen refresh request according to the first pixel change sub-region, a fourth pixel change content corresponding to the first pixel change sub-region, and a refresh mode corresponding to the first pixel change sub-region, determining whether a screen division region coincident with the first pixel change sub-region has a screen refresh request being processed, if not, refreshing the current frame according to the fourth screen refresh request, if so, splitting the fourth screen refresh request according to the screen refresh request being processed, and refreshing the current frame according to the split fourth screen refresh request.
In the present embodiment, as shown in fig. 3, when the first pixel variation region 12 coincides with each of the four screen dividing regions 11 arranged in a square shape, the first pixel variation region 12 may be divided into four first pixel variation sub-regions 14 according to each of the coinciding screen dividing regions 11. Then, for each first pixel change sub-region 14, it may be determined whether an update mechanism in a screen update policy corresponding to the first pixel change sub-region 14 is a serial update mechanism or a parallel update mechanism, if the update mechanism is the serial update mechanism, a fourth screen refresh request may be generated according to fourth pixel change contents corresponding to the first pixel change sub-region 14 and a refresh mode corresponding to the first pixel change sub-region 14, and it may be determined whether a screen refresh request being processed exists in a screen division region 11 coinciding with the first pixel change sub-region 14, if the screen refresh request does not exist, a current frame picture is refreshed according to the fourth screen refresh request, and if the screen refresh request does exist, the fourth screen refresh request is submitted to a refresh request waiting queue to wait; if the parallel update mechanism is adopted, in the case that the screen division region 11 coinciding with the first pixel change sub-region 14 has the screen refresh request being processed, splitting the fourth screen refresh request according to the screen refresh request being processed, and refreshing the current frame according to the split fourth screen refresh request.
In an embodiment, as shown in fig. 4, fig. 4 is a schematic view of a scene where a first pixel variation sub-region and a third pixel variation sub-region partially overlap according to an embodiment of the present invention; in S402, splitting the fourth screen refresh request according to the currently processed screen refresh request, and refreshing the current frame picture according to the split fourth screen refresh request may include:
s4021: determining a third pixel change region corresponding to the screen refresh request being processed.
In this step, as shown in fig. 4, when there is a screen refresh request being processed in one of the screen partition regions 11 of the electronic ink screen 10 that coincides with the first pixel variation sub-region 14, and a region corresponding to the screen refresh request being processed is a third pixel variation region 15, there is a partial overlap between the third pixel variation region 15 and the first pixel variation sub-region 14. Therefore, when the update mechanism of the screen division region 11 is the parallel update mechanism, the third pixel variation region 15 corresponding to the screen refresh request being processed in the screen division region 11 may be determined first, and then the first pixel variation sub-region 14 may be divided according to the degree of overlap between the first pixel variation sub-region 14 and the third pixel variation region 15, and a new screen refresh request may be determined again.
S4022: and comparing the third pixel change area with the first pixel change sub-area, and determining an overlapped area and an un-overlapped area of the first pixel change sub-area and the third pixel change area.
In this step, as shown in fig. 4, after comparing the third pixel variation region 15 with the first pixel variation sub-region 14, an overlapped region and an un-overlapped region between the first pixel variation sub-region 14 and the third pixel variation sub-region 15 can be determined.
S4023: and generating a fifth screen refreshing request according to the overlapped area, the fifth pixel change content corresponding to the overlapped area and the refreshing mode corresponding to the overlapped area, and submitting the fifth screen refreshing request to the refreshing request waiting queue for waiting.
S4024: and generating a sixth screen refreshing request according to the non-overlapping area, the sixth pixel change content corresponding to the non-overlapping area and the refreshing mode corresponding to the non-overlapping area, and refreshing the current frame according to the sixth screen refreshing request.
In the foregoing step, because there is a screen refresh request being processed in the overlapped region, the application may generate a fifth screen refresh request according to the overlapped region, the fifth pixel change content corresponding to the overlapped region, and the refresh mode corresponding to the overlapped region, and submit the fifth screen refresh request to the refresh request waiting queue for waiting, so that after the screen refresh request being processed in the overlapped region is processed, the fifth screen refresh request is submitted to the refresh request processing module for processing.
After determining the non-overlapping area of the first pixel variation sub-area 14 and the third pixel variation sub-area 15, since the non-overlapping area does not have the screen refresh request being processed at this time, the sixth screen refresh request may be generated according to the sixth pixel variation content corresponding to the non-overlapping area and the non-overlapping area, and the refresh mode corresponding to the non-overlapping area, and the current frame may be refreshed according to the sixth screen refresh request.
In an embodiment, before submitting the fifth screen refresh request to the refresh request waiting queue for waiting in S4023, the method may further include:
and merging the fifth screen refreshing requests of the first pixel change sub-regions according to a preset merging strategy, and submitting the merged fifth screen refreshing requests to the refreshing request waiting queue for waiting.
In this embodiment, each of the overlapped screen partition regions may have a screen refresh request being processed, and each of the screen refresh requests has a corresponding pixel variation region, and the pixel variation region may overlap with the first pixel variation sub-region. Therefore, each first pixel change sub-region is likely to generate a fifth screen refresh request, and in the present application, for a case where a plurality of new screen refresh requests are generated in an overlapping region, an optimization scheme may be selected, for example, a corresponding merge policy is set in advance, the fifth screen refresh requests of the first pixel change sub-regions are merged by the merge policy, and the merged fifth screen refresh requests are submitted to a refresh request waiting queue for waiting, so that a smaller number of screen refresh requests are submitted to enter the refresh request waiting queue for waiting, and the processing performance of the system is further optimized.
Further, the merging policy in the present application may be to merge the fifth screen refresh requests according to the refresh mode included in each fifth screen refresh request, so as to merge all the screen refresh requests with the same refresh mode into one request, where the merged request region is the request region set before merging.
The merging policy in the present application may also be to merge the fifth screen refresh requests according to the update mechanism included in each fifth screen refresh request, so as to merge all the screen refresh requests with the same update mechanism into one request, where the merged request region is a request region set before merging.
Other schemes that can implement the merging of the screen refresh requests in the present application can be taken as an implementation manner of the present application, and are not described herein again.
The screen refreshing apparatus provided in the embodiments of the present application is described below, and the screen refreshing apparatus described below and the screen refreshing method described above may be referred to correspondingly.
In an embodiment, as shown in fig. 5, fig. 5 is a schematic structural diagram of a screen refreshing apparatus according to an embodiment of the present invention; the invention also provides a screen refreshing device, which may include a data obtaining module 210, a first determining module 220, a second determining module 230, and a screen refreshing module 240, and specifically includes the following:
the data obtaining module 210 is configured to, when a screen refresh command is received, obtain a current frame picture and a next frame picture corresponding to the screen refresh command.
The first determining module 220 is configured to determine a first pixel change content and a first pixel change area when the current frame changes to the next frame.
A second determining module 230, configured to compare the first pixel change area with each preset screen partition area, and determine a screen partition area and a screen refresh policy corresponding to the first pixel change area; wherein, different screen division areas set different screen refreshing strategies according to different use scenes.
A screen refreshing module 240, configured to generate a first screen refreshing request corresponding to the first pixel change content and the first pixel change area according to the screen refreshing policy, and refresh the current frame according to the first screen refreshing request.
In the above embodiment, when the screen refresh command is received, the current frame and the next frame corresponding to the screen refresh command can be obtained, and determines a first pixel change content and a first pixel change area when changing from the current frame picture to the next frame picture, the first pixel variation region can then be compared with predetermined screen division regions, and determining a screen division region and a screen refresh policy corresponding to the first pixel variation region, since different screen division regions set different screen refresh strategies according to different usage scenarios, when the first pixel variation region falls into a different screen division region, the corresponding screen refresh strategy can be executed according to the corresponding screen division regions, so that different refresh modes can be used for different regions of the screen according to different scenes.
In one embodiment, the present invention also provides a computer-readable storage medium having computer-readable instructions stored therein, which, when executed by one or more processors, cause the one or more processors to perform the steps of the screen refresh method as described in any one of the above embodiments.
In one embodiment, the present invention also provides a computer device comprising: one or more processors, and a memory.
The memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the screen refresh method as in any one of the above embodiments.
Fig. 6 is a schematic diagram illustrating an internal structure of a computer device according to an embodiment of the present invention, and fig. 6 is a schematic diagram, where the computer device 300 may be provided as a server. Referring to fig. 6, computer device 300 includes a processing component 302 that further includes one or more processors, and memory resources, represented by memory 301, for storing instructions, such as application programs, that are executable by processing component 302. The application programs stored in memory 301 may include one or more modules that each correspond to a set of instructions. Further, the processing component 302 is configured to execute instructions to perform the screen refresh method of any of the embodiments described above.
The computer device 300 may also include a power component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input output (I/O) interface 305. The computer device 300 may operate based on an operating system stored in memory 301, such as Windows Server, Mac OS XTM, Unix, Linux, Free BSDTM, or the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, the embodiments may be combined as needed, and the same and similar parts may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A screen refreshing method applied to a device using an electronic ink screen, the method comprising:
when a screen refreshing instruction is received, acquiring a current frame image and a next frame image corresponding to the screen refreshing instruction;
determining first pixel change content and a first pixel change area when the current frame picture is changed to the next frame picture;
comparing the first pixel change area with each preset screen division area, and determining the screen division area and the screen refreshing strategy corresponding to the first pixel change area; different screen partition regions set different screen refreshing strategies according to different use scenes;
and generating a first screen refreshing request corresponding to the first pixel change content and the first pixel change area according to the screen refreshing strategy, and refreshing the current frame according to the first screen refreshing request.
2. The method according to claim 1, wherein the obtaining a current frame picture and a next frame picture corresponding to the screen refresh command when receiving the screen refresh command comprises:
when a screen refreshing instruction sent by a preset application is received, determining a picture data cache region corresponding to the preset application;
and extracting a current frame picture and a next frame picture corresponding to the screen refreshing instruction from the picture data cache region.
3. The method according to claim 1, wherein the comparing the first pixel variation region with each preset screen partition region to determine the screen partition region and the screen refresh policy corresponding to the first pixel variation region comprises:
acquiring a plurality of preset screen division regions and a screen refreshing strategy corresponding to each screen division region;
comparing the area position of the first pixel change area with the area position of each screen division area respectively;
if the area position of the first pixel change area is overlapped with the area position of one of the screen division areas, taking the overlapped screen division area as the screen division area corresponding to the first pixel change area, and taking the screen refresh strategy corresponding to the overlapped screen division area as the screen refresh strategy corresponding to the first pixel change area;
if the area position of the first pixel change area is overlapped with the area positions of at least two screen division areas, the first pixel change area is divided according to the overlapped screen division areas to obtain a plurality of first pixel change sub-areas, and the screen division area and the screen refreshing strategy corresponding to each first pixel change sub-area are determined.
4. The method according to claim 3, wherein if the area position of the first pixel variation area coincides with the area position of one of the screen division areas;
generating a first screen refresh request corresponding to the first pixel change content and the first pixel change area according to the screen refresh policy, and refreshing the current frame according to the first screen refresh request, including:
if the updating mechanism in the screen refreshing strategy is a serial updating mechanism, generating a first screen refreshing request according to the first pixel change content, the first pixel change area and a refreshing mode corresponding to the first pixel change area, determining whether the overlapped screen division area has a screen refreshing request which is being processed, if not, refreshing the current frame according to the first screen refreshing request, and if so, submitting the first screen refreshing request to a refreshing request waiting queue for waiting;
if the update mechanism in the screen refresh strategy is a parallel update mechanism, generating a corresponding first screen refresh request according to the first pixel change content, the first pixel change area and a refresh mode corresponding to the first pixel change area, determining whether the overlapped screen division area has a screen refresh request being processed, if not, refreshing the current frame according to the first screen refresh request, if so, splitting the first screen refresh request according to the screen refresh request being processed, and refreshing the current frame according to the split first screen refresh request.
5. The method of claim 4, wherein splitting the first screen refresh request according to the screen refresh request being processed and refreshing the current frame according to the split first screen refresh request comprises:
determining a second pixel change region corresponding to the screen refresh request being processed;
comparing the second pixel change area with the first pixel change area, and determining an overlapped area and an non-overlapped area of the first pixel change area and the second pixel change area;
generating a second screen refreshing request according to the overlapped area, the second pixel change content corresponding to the overlapped area and the refreshing mode corresponding to the overlapped area, and submitting the second screen refreshing request to the refreshing request waiting queue for waiting;
and generating a third screen refreshing request according to the non-overlapping region, the third pixel change content corresponding to the non-overlapping region and the refreshing mode corresponding to the non-overlapping region, and refreshing the current frame according to the third screen refreshing request.
6. The method according to claim 3, wherein if the area position of the first pixel variation area coincides with the area positions of at least two screen division areas;
generating a first screen refresh request corresponding to the first pixel change content and the first pixel change area according to the screen refresh policy, and refreshing the current frame according to the first screen refresh request, including:
for each first pixel variation sub-region:
if the update mechanism in the screen refresh strategy corresponding to the first pixel change sub-region is a serial update mechanism, generating a fourth screen refresh request according to the first pixel change sub-region, a fourth pixel change content corresponding to the first pixel change sub-region and a refresh mode corresponding to the first pixel change sub-region, determining whether a screen division region coincident with the first pixel change sub-region has a screen refresh request being processed, if not, refreshing the current frame according to the fourth screen refresh request, and if so, submitting the fourth screen refresh request to a refresh request waiting queue for waiting;
if the update mechanism in the screen refresh strategy corresponding to the first pixel change sub-region is a parallel update mechanism, generating a fourth screen refresh request according to the first pixel change sub-region, a fourth pixel change content corresponding to the first pixel change sub-region, and a refresh mode corresponding to the first pixel change sub-region, determining whether a screen division region coincident with the first pixel change sub-region has a screen refresh request being processed, if not, refreshing the current frame according to the fourth screen refresh request, if so, splitting the fourth screen refresh request according to the screen refresh request being processed, and refreshing the current frame according to the split fourth screen refresh request.
7. The method according to claim 6, wherein the splitting the fourth screen refresh request according to the currently processed screen refresh request and refreshing the current frame according to the split fourth screen refresh request comprises:
determining a third pixel change region corresponding to the screen refresh request being processed;
comparing the third pixel variation region with the first pixel variation sub-region, and determining an overlapped region and an un-overlapped region of the first pixel variation sub-region with the third pixel variation region;
generating a fifth screen refreshing request according to the overlapped area, the fifth pixel change content corresponding to the overlapped area and the refreshing mode corresponding to the overlapped area, and submitting the fifth screen refreshing request to the refreshing request waiting queue for waiting;
and generating a sixth screen refreshing request according to the non-overlapping area, the sixth pixel change content corresponding to the non-overlapping area and the refreshing mode corresponding to the non-overlapping area, and refreshing the current frame according to the sixth screen refreshing request.
8. The method of claim 7, wherein before submitting the fifth screen refresh request to the refresh request wait queue for waiting, further comprising:
and merging the fifth screen refreshing requests of the first pixel change sub-regions according to a preset merging strategy, and submitting the merged fifth screen refreshing requests to the refreshing request waiting queue for waiting.
9. A screen refresh apparatus, comprising:
the data acquisition module is used for acquiring a current frame picture and a next frame picture corresponding to a screen refreshing instruction when the screen refreshing instruction is received;
the first determining module is used for determining first pixel change content and a first pixel change area when the current frame picture is changed to the next frame picture;
the second determining module is used for comparing the first pixel change area with each preset screen division area and determining the screen division area and the screen refreshing strategy corresponding to the first pixel change area; different screen partition regions set different screen refreshing strategies according to different use scenes;
and the screen refreshing module is used for generating a first screen refreshing request corresponding to the first pixel change content and the first pixel change area according to the screen refreshing strategy and refreshing the current frame according to the first screen refreshing request.
10. A computer-readable storage medium characterized by: the computer-readable storage medium having stored therein computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the screen refresh method of any one of claims 1-8.
11. A computer device, comprising: one or more processors, and a memory;
the memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the screen refresh method of any one of claims 1 to 8.
CN202210029256.XA 2022-01-12 2022-01-12 Screen refreshing method and device, computer readable storage medium and computer equipment Active CN114049865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210029256.XA CN114049865B (en) 2022-01-12 2022-01-12 Screen refreshing method and device, computer readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210029256.XA CN114049865B (en) 2022-01-12 2022-01-12 Screen refreshing method and device, computer readable storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN114049865A true CN114049865A (en) 2022-02-15
CN114049865B CN114049865B (en) 2022-04-08

Family

ID=80196319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210029256.XA Active CN114049865B (en) 2022-01-12 2022-01-12 Screen refreshing method and device, computer readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN114049865B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115346496A (en) * 2022-08-16 2022-11-15 广州文石信息科技有限公司 Screen display method, device and equipment based on frame rate and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050001935A1 (en) * 2003-07-03 2005-01-06 Shinya Kiuchi Image processing device, image display device, and image processing method
JP2008276627A (en) * 2007-05-02 2008-11-13 Kawasaki Microelectronics Kk Method and device for detecting caption area
US20080278436A1 (en) * 2006-01-13 2008-11-13 Brother Kogyo Kabushiki Kaisha Electrophoretic display device that executes refresh operation at appropriate timing
US20090256868A1 (en) * 2008-04-11 2009-10-15 Yun Shon Low Time-Overlapping Partial-Panel Updating Of A Bistable Electro-Optic Display
US20110002550A1 (en) * 2008-02-14 2011-01-06 Jun Takada Update region detection device
CN102013247A (en) * 2009-09-08 2011-04-13 北大方正集团有限公司 Refreshing control method and system of electronic paper screen
CN102087833A (en) * 2009-12-08 2011-06-08 盛大计算机(上海)有限公司 Method for refreshing e-book reader
US20110242116A1 (en) * 2010-03-31 2011-10-06 Siddhartha Nath Techniques for controlling frame refresh
CN102270428A (en) * 2010-06-01 2011-12-07 上海政申信息科技有限公司 Display device and display interface refresh method and device
US20160180798A1 (en) * 2014-12-22 2016-06-23 Elwha Llc Systems, methods, and devices for controlling content update rates
CN110069122A (en) * 2018-06-26 2019-07-30 努比亚技术有限公司 A kind of screen control method, terminal and computer readable storage medium
CN111341286A (en) * 2020-02-25 2020-06-26 惠州Tcl移动通信有限公司 Screen display control method and device, storage medium and terminal
CN112083996A (en) * 2020-09-16 2020-12-15 努比亚技术有限公司 Screen control method, mobile terminal and computer readable storage medium
US20210201731A1 (en) * 2019-12-31 2021-07-01 Micron Technology, Inc. Dynamic screen refresh rate for an electronic device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050001935A1 (en) * 2003-07-03 2005-01-06 Shinya Kiuchi Image processing device, image display device, and image processing method
US20080278436A1 (en) * 2006-01-13 2008-11-13 Brother Kogyo Kabushiki Kaisha Electrophoretic display device that executes refresh operation at appropriate timing
JP2008276627A (en) * 2007-05-02 2008-11-13 Kawasaki Microelectronics Kk Method and device for detecting caption area
US20110002550A1 (en) * 2008-02-14 2011-01-06 Jun Takada Update region detection device
US20090256868A1 (en) * 2008-04-11 2009-10-15 Yun Shon Low Time-Overlapping Partial-Panel Updating Of A Bistable Electro-Optic Display
CN102013247A (en) * 2009-09-08 2011-04-13 北大方正集团有限公司 Refreshing control method and system of electronic paper screen
CN102087833A (en) * 2009-12-08 2011-06-08 盛大计算机(上海)有限公司 Method for refreshing e-book reader
US20110242116A1 (en) * 2010-03-31 2011-10-06 Siddhartha Nath Techniques for controlling frame refresh
CN102270428A (en) * 2010-06-01 2011-12-07 上海政申信息科技有限公司 Display device and display interface refresh method and device
US20160180798A1 (en) * 2014-12-22 2016-06-23 Elwha Llc Systems, methods, and devices for controlling content update rates
CN110069122A (en) * 2018-06-26 2019-07-30 努比亚技术有限公司 A kind of screen control method, terminal and computer readable storage medium
US20210201731A1 (en) * 2019-12-31 2021-07-01 Micron Technology, Inc. Dynamic screen refresh rate for an electronic device
CN111341286A (en) * 2020-02-25 2020-06-26 惠州Tcl移动通信有限公司 Screen display control method and device, storage medium and terminal
CN112083996A (en) * 2020-09-16 2020-12-15 努比亚技术有限公司 Screen control method, mobile terminal and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115346496A (en) * 2022-08-16 2022-11-15 广州文石信息科技有限公司 Screen display method, device and equipment based on frame rate and storage medium

Also Published As

Publication number Publication date
CN114049865B (en) 2022-04-08

Similar Documents

Publication Publication Date Title
US10832086B2 (en) Target object presentation method and apparatus
US11317139B2 (en) Control method and apparatus
US10237454B2 (en) Method for detecting terminal static layer information, terminal and television
US20220245881A1 (en) Virtual scene display method and apparatus, and storage medium
US20220417417A1 (en) Content Operation Method and Device, Terminal, and Storage Medium
US11495183B2 (en) Method and device for controlling backlight brightness, and display device
CN113126862B (en) Screen capture method and device, electronic equipment and readable storage medium
CN111476852B (en) Reader refresh method, computing device, and computer storage medium
US7598941B2 (en) Pointer for a large display
CN114049865B (en) Screen refreshing method and device, computer readable storage medium and computer equipment
CN110750664A (en) Picture display method and device
CN110781823A (en) Screen recording detection method and device, readable medium and electronic equipment
WO2023035939A1 (en) Backlight adjustment method and apparatus, device, and storage medium
JP2008046608A (en) Video window detector
CN113316018B (en) Method, device and storage medium for overlaying time information on video picture display
CN114390197A (en) Shooting method and device, electronic equipment and readable storage medium
CN105389308B (en) Webpage display processing method and device
US20180199019A1 (en) Digital image conversion method and apparatus, storage medium, and device
CN111477183A (en) Reader refresh method, computing device, and computer storage medium
CN114489545B (en) Screen updating request scanning method and device, storage medium and related equipment
CN101996390B (en) Image copying method and device
CN114332297A (en) Image drawing method and device, computer equipment and storage medium
CN116434253A (en) Image processing method, device, equipment, storage medium and product
WO2022183869A1 (en) Display method, terminal, and storage medium
CN109640152A (en) Control method for playing back, device, storage medium and electronic equipment

Legal Events

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