WO2021135501A1 - 显示页面的刷新方法、阅读器及计算机存储介质 - Google Patents
显示页面的刷新方法、阅读器及计算机存储介质 Download PDFInfo
- Publication number
- WO2021135501A1 WO2021135501A1 PCT/CN2020/120864 CN2020120864W WO2021135501A1 WO 2021135501 A1 WO2021135501 A1 WO 2021135501A1 CN 2020120864 W CN2020120864 W CN 2020120864W WO 2021135501 A1 WO2021135501 A1 WO 2021135501A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- page
- refresh
- view
- displayed
- area
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control 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/34—Control 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/3433—Control 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/344—Control 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
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/36—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
- G09G5/39—Control of the bit-mapped memory
- G09G5/393—Arrangements for updating the contents of the bit-mapped memory
Definitions
- the present disclosure relates to the technical field of ink screen display, in particular to a method for refreshing a display page, a reader, and a computer storage medium.
- the ink screen reading device refers to an electronic reading device that uses an electronic ink screen (E-ink or Electronic Paper Display, EPD for short).
- E-ink Electronic Paper Display
- the electronic ink screen is a screen that does not emit light but relies on external reflection to achieve a display effect. Its display effect is very similar to that of paper materials, so it is comparable to the experience of reading paper materials.
- the electronic ink screen is composed of many microcapsules, and each microcapsule contains multiple black particles and multiple white particles, both of which have opposite charges.
- the black particles are driven by voltage to move up to the top of the screen (that is, from the bottom to the screen direction), when white content is displayed, the white particles are driven by voltage to move up to the top of the screen (that is, Move from the bottom to the screen).
- Global refresh refers to refreshing the ink particles of all pixels on the screen from the current position to the completely white position, and then refreshes to the completely black position. , And then refresh the ink particles from the completely black position to different grayscale positions according to the content that needs to be displayed in the next frame of image.
- the ink screen uses pixels as a unit, and each pixel undergoes a white-black-white color change process to maintain the contrast of the screen.
- the inventor found in the process of implementing the embodiments of the present disclosure that although the global refresh mode can effectively eliminate the problem of residual image, because the ink particles have a grayscale position from the current grayscale to all white to all black and then to the next frame of grayscale.
- the refresh process is relatively slow, especially for the display of page elements such as menus and pop-up windows, which cannot meet the requirements of fast refresh.
- the present disclosure is proposed to provide a method for refreshing a display page, a reader, and a computer storage medium that overcome the above-mentioned problems or at least partially solve the above-mentioned problems.
- a method for refreshing a displayed page including:
- the view size of the page view with the overlapping area is adjusted to eliminate the overlapping area between the page views
- At least one page refresh area corresponding to the multiple adjusted page views is determined, and each page refresh area is refreshed in parallel through multiple refresh channels.
- a reader including: a processor, a memory, a communication interface, and a communication bus.
- the processor, the memory, and the communication interface communicate with each other through the communication bus;
- the memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform the following operations:
- the view size of the page view with the overlapping area is adjusted to eliminate the overlapping area between the page views
- At least one page refresh area corresponding to the multiple adjusted page views is determined, and each page refresh area is refreshed in parallel through multiple refresh channels.
- a non-volatile computer-readable storage medium is provided, and at least one executable instruction is stored in the non-volatile computer-readable storage medium, and the executable instruction causes a processor to perform the following operations:
- the view size of the page view with the overlapping area is adjusted to eliminate the overlapping area between the page views
- At least one page refresh area corresponding to the multiple adjusted page views is determined, and each page refresh area is refreshed in parallel through multiple refresh channels.
- a computer program product which includes a calculation program stored on the aforementioned non-volatile computer-readable storage medium.
- the display page refresh method, reader and computer storage medium of the present disclosure for the received page refresh request, it is analyzed whether there is overlap between the multiple page views according to the view layout information of the multiple page views contained in the page to be displayed Areas, and adjust the view size of the page views with overlapping areas to eliminate the overlap between page views. Subsequent to the page refresh area divided by the adjusted page view, multiple refresh channels can be used for parallel refresh. It can be seen that the solution of the present disclosure adjusts the view size of multiple page views in the page to be displayed, so that there is no overlapping area between multiple page views, and multiple refresh channels can be used to refresh multiple page refresh areas at the same time. Compared with the prior art for page views with overlapping areas, the full-swipe mode can only be used to refresh sequentially, which can greatly improve the efficiency of refreshing the display.
- Fig. 1 shows a flowchart of an embodiment of a method for refreshing a displayed page of the present disclosure
- Fig. 2 shows a flowchart of another embodiment of a method for refreshing a display page of the present disclosure
- Figure 3a shows a schematic diagram of a specific example before the view size is adjusted
- FIG. 3b shows a schematic diagram after the view size is adjusted corresponding to the example in FIG. 3a;
- Fig. 4 shows a schematic structural diagram of an embodiment of a reader of the present disclosure.
- Fig. 1 shows a flowchart of an embodiment of a method for refreshing a display page of the present disclosure. This method is applied to ink screen readers. As shown in Figure 1, the method includes the following steps:
- Step S110 In response to the received page refresh request, obtain view layout information of multiple page views included in the page to be displayed.
- the page refresh request refers to a request to display new page content.
- the ink screen when it receives a page refresh request, it obtains view layout information of multiple page views contained in the page to be displayed, where the page to be displayed refers to the page where the new page content is located, and each page to be displayed
- the page usually consists of multiple page views, each page view is used to display different content, for example, the status bar view is used to display battery, time, network and other content, and the menu bar view can display setting information such as brightness; and, view
- view The layout information is information that reflects the positions of multiple page views constituting the page to be displayed.
- Step S120 When it is determined according to the view layout information that there is an overlapping area between the multiple page views, the view size of the page view with the overlapping area is adjusted to eliminate the overlapping area between the page views.
- the overlapping area between two page views means that there are partially identical areas in the view areas covered by the two page views respectively.
- the overlapping area is eliminated for the at least two page views until there is no overlapping area in any two page views.
- the overlapping area is continuously reduced by adjusting the view size.
- Step S130 For the multiple adjusted page views included in the page to be displayed, determine page refresh areas corresponding to the multiple adjusted page views, and refresh each page refresh area in parallel through multiple refresh channels.
- multiple page views after adjustment processing are obtained (the view size of some page views may not change).
- Refresh processing is performed to refresh and display the view elements of at least one page view covered by the page refresh area on the ink screen. Since there is no overlap area between the adjusted multiple page views, there is no overlap area between the divided page refresh areas, and multiple refresh channels can be used to refresh in parallel, which improves the efficiency of refresh processing.
- the method for refreshing the display page provided in this embodiment, for the received page refresh request, according to the view layout information of the multiple page views contained in the page to be displayed, it is analyzed whether there is an overlapping area between the multiple page views, and whether there is an overlapping area between the multiple page views is analyzed.
- the view size of the page view in the overlap area is adjusted to eliminate the overlap between the page views, and then multiple refresh channels can be used to refresh in parallel for the page refresh area divided by the adjusted page view. It can be seen that the solution of this embodiment adjusts the view sizes of multiple page views in the page to be displayed, so that there is no overlapping area between multiple page views, and multiple refresh channels can be used to refresh multiple page refresh areas at the same time.
- the full-brush mode can only be used to refresh sequentially, which can greatly improve the efficiency of refreshing the display.
- Fig. 2 shows a flowchart of another embodiment of a method for refreshing a display page of the present disclosure. This method is used in ink screen readers. As shown in Figure 2, the method includes the following steps:
- Step S210 In response to the received page refresh request, obtain view layout information of multiple page views included in the page to be displayed.
- page views include: e-book status bar view, e-book menu bar view, pop-up view, and e-book text view.
- the e-book text view includes, but is not limited to, the view where the text content in the reading page is located and the book city in the bookstore page The view where the text is located.
- the page refresh request is any request that can change the content displayed on the screen, for example, a refresh request that invokes a menu, a pop-up window, or a status bar.
- the view layout information of the multiple page views contained in the page to be displayed is obtained, and the position relationship of each page view is analyzed, including the plane position relationship and the stacking position relationship, so as to subsequently determine the page view. Is there any overlap between them.
- Method 1 After turning on the adb (Android Debug Bridge) debugging mode of the reading application corresponding to the ink screen reader, you can obtain the view layout information of the application through the Layout Inspector tool of android studio.
- adb Android Debug Bridge
- Method 2 Determine multiple refresh requests corresponding to the page refresh request, where multiple refresh requests are made by the ink screen reader system based on the view type of the page view contained in the page to be displayed and the location area where the page view is located
- one type of page view is divided into one refresh request, and the page view concentrated in a continuous location area is divided into one refresh request.
- Obtain refresh area information included in each refresh application where refresh area information is carried in the refresh application, and the refresh area information is composed of area information divided into the view area of the page view of the refresh application.
- the refresh area information contained in each refresh request determine the view layout information of the multiple page views contained in the page to be displayed. After obtaining the refresh area information carried in each refresh request, the page to be displayed can be restored.
- View layout information of multiple page views for example, divide the refresh of the e-book menu bar view in the page to be displayed into one refresh request, and divide the refresh of the e-book status bar view in the page to be displayed into another refresh request, After obtaining the refresh area information carried in the two refresh applications, the positional relationship between the e-book menu bar view and the e-book status bar view is determined, and the view layout information is obtained.
- the page to be displayed is compared with the currently displayed page, the page change area contained in the area to be displayed is determined according to the comparison result, and each page change area contained in the page change area is obtained.
- the view layout information of the page view In this way, only the view layout information of each page view contained in the page change area is obtained each time, and then the changed view layout information can be analyzed and refreshed later, which can improve the refresh effectiveness.
- a page refresh request corresponds to the refresh of a frame, that is, the refresh of an image frame.
- the page refresh request is a dynamic refresh request for multiple image frames, for example, the process of calling out and disappearing of the menu bar will be accompanied by dynamic effects, or the menu bar
- the button will also have a moving effect when the switch state is switched. The display of these dynamic effects is often realized by the continuous refresh of multiple image frames.
- each to-be-displayed page is acquired in turn, so as to dynamically refresh according to the acquired to-be-displayed page, where each to-be-displayed page here refers to a dynamic effect.
- dynamic refreshing through this method of comparing the front and rear frames, the number of refreshes can be reduced, thereby realizing an improvement in the refreshing speed of the dynamic effect.
- Step S220 When it is determined that there is an overlapping area between the multiple page views according to the view layout information, adjust the view size of the page view with the overlapping area to eliminate the overlapping area between the page views.
- the position information of each page view in the view layout information is analyzed to determine whether the position information of any two page views overlaps perpendicular to the page direction.
- the upper left vertex of the page to be displayed is the coordinate origin, and the menu bar view
- the range of the abscissa is [0,10]
- the range of the ordinate is [1,5]
- the range of the abscissa of the status bar view is [0,10]
- the range of the ordinate is [0,2]
- the menu The bar view and the status bar view overlap in the area formed by the abscissa range [0,10] and the ordinate range [1,2].
- the size of the overlapping area is further determined according to the position information, so that the overlap can be eliminated subsequently.
- the purpose of determining the overlap area is to eliminate overlap and facilitate parallel processing of multiple refresh applications through parallel refresh channels.
- at least one page view divided into different refresh applications is acquired, and the view that is divided into different refresh applications is determined according to the view layout information. Whether there are overlapping areas in the page view.
- the overlap area is determined for the page views divided into different refresh applications to ensure that there is no overlap between the page refresh areas of multiple refresh applications, so that multiple refresh applications can be refreshed in parallel through the parallel refresh channel without the need Pay attention to whether the page views in the same refresh request overlap, and improve the efficiency of determining the overlap area.
- the page view divided into refresh request 1 includes menu bar view a and menu bar view b, and the respective view areas are view area A and view area B, and the page view divided into refresh request 2 is status bar view c, and If the view area is view area C, you only need to determine whether there is an overlap area between view area A or view area B and view area C. In the end, you only need to ensure that there is no overlap area or view between view area A and view area C. If there is no overlapping area between area B and view area C, parallel processing can be performed. However, the view area A and the view area B belong to the same refresh application and do not affect the parallel refresh, so there is no need to determine whether there is overlap.
- the view size of at least one of the page views is reduced, so that the overlapping area between any two page views disappears.
- at least one of the at least two page views in the overlapping area is determined as the target view, and the target view is the view that needs to be adjusted in view size.
- cropping is performed on the redundant area of the target view, where the redundant area refers to an area where there are no view elements. For example, in a menu bar view, there is a blank area on the upper edge. If there is no menu control or text in the blank area, the blank area is a redundant area, and the redundant area is cropped.
- the view size of the target view becomes smaller, and the overlap area between the at least two page views Reduce or even eliminate; among them, cropping can be performed according to the size of the overlapping area, so that the cropped area is exactly equal to the overlapping area, so as to avoid excessive influence on the view shape of the target view.
- the arrangement of the view elements contained in the target view is adjusted. These alternative embodiments are aimed at cutting the redundant area of the target view, which is not enough to eliminate the overlapping area. In the situation, the redundant area is increased by adjusting the view elements of the target view, so as to eliminate the overlapping area by cropping the redundant area.
- the priority of the view type of the page view can be set, and the target view can be determined from at least two page views that have overlapping areas according to the priority.
- the view type of each page view in the overlapping area is determined, at least one page view is selected as the target view according to the view type of each page view, and the target view is selected according to the priority of the view type from low to high.
- the view types of the page view include: system type and application type. When selecting the target view, select the page view of the application type as the target view.
- the page view of the application type mainly includes the menu bar view and the pop-up view.
- the system view mainly includes the status bar view.
- the priority of the system type When setting the priority, set the priority of the system type to be higher than the priority of the application type to avoid adjusting the size of the system type page view (such as the status bar view) to affect the display of the page view in all pages.
- the system-type page may be selected to adjust the view size to eliminate the overlapping area.
- the above method of selecting the target view according to the view type is only an optional method. In actual implementation, you can also consider the difficulty of size adjustment or the degree of influence on the display after adjustment to select the corresponding method to determine the target view.
- the selection can be made according to the types or numbers of view elements included in the at least two page views that have overlapping areas.
- the at least two page views can be selected according to the number of types of view elements contained or the number of view elements contained. The number is sorted from low to high, and the preset number of page views with the highest sorting are selected as the target view.
- the page view that contains the least number of view elements is determined as the target view
- another example is to include a single view element (In the case of all controls or all text) the page view is determined to be the target view, then the difficulty of adjustment can be reduced; or, the selection can be made according to the size of the redundant area of at least two page views with overlapping areas, from Among the at least two page views, a preset number of page views with the largest redundant area selected are determined as the target view, so as to eliminate overlapping areas as much as possible by only cutting the redundant area to avoid adjustment of view elements.
- the elimination of the overlapping area also refers to the elimination of the overlapping area between the page views included in the different refresh applications, then When the target view is the target view, at least one of the at least two page views that have an overlapping area between any two refresh requests is selected as the target view.
- Figure 3a shows a schematic diagram of a specific example before the view size is adjusted.
- the height of the menu bar view is d2, and the height of the status bar view is d1.
- the gray area corresponding to the height d0 is the overlapping area of the status bar view and the menu bar view.
- Fig. 3b shows a schematic diagram of the view size adjusted corresponding to the example of Fig. 3a.
- the height of the menu bar view is changed from d2 to d2-d0 after the view size is adjusted. At this time, there is no overlapping area between the menu bar view and the status bar view.
- Step S230 For the plurality of adjusted page views contained in the page to be displayed, determine at least one page refresh area corresponding to the plurality of adjusted page views; determine the target of the target refresh application from the at least one page refresh area The page refresh area obtains the refresh area information after the target refresh application is updated; among them, the target refresh application is an application in which the refresh mode is not the full refresh mode.
- the system divides one or more refresh requests.
- the refresh request corresponds to the page refresh area one-to-one, and each refresh request carries the refresh area information of a page refresh area.
- the refresh area is formed by merging the view areas divided into the page view of the refresh request.
- the system will also carry the mode information of the refresh mode in the refresh request according to the actual refresh requirements, especially for some page views that need to ensure that no afterimages are refreshed, usually
- the full-flash mode is adopted by default, and accordingly, the mode information of the full-flash mode is carried in the refresh application.
- These designated refresh modes are the full-flash mode refresh applications, and the parallel refresh method cannot be used for refresh processing. Based on this, in this embodiment, target refresh applications whose refresh mode is not a full refresh mode are filtered out, and parallel refresh processing is performed on these target refresh applications.
- the target refresh application whose refresh mode is not the full refresh mode is selected from the multiple refresh applications, and it is determined that it can be adopted.
- Parallel refresh method to refresh the target refresh application it is detected whether the refresh mode of the refresh application is the full refresh mode; according to the detection results, the target refresh application whose refresh mode is not the full refresh mode is selected from the multiple refresh applications, and it is determined that it can be adopted.
- the area information of the view area of each page view and the element information (including the content information and position information of the element) contained in the view area of each page view after the adjustment process can be obtained.
- the target page refresh area of the target refresh application is determined from at least one page refresh area, and the refresh area information after the target refresh application is updated is obtained.
- a page refresh area composed of the view area of the adjusted page view divided into the same refresh application can be determined, and the adjusted page view divided into the target refresh application
- the view area constitutes the target page refresh area of the target refresh application.
- the refresh application to which each page view is divided before and after the adjustment will not change, except that the area information of the view area of the page view or the element position of the view elements contained in the page view has changed; and, the corresponding Compared with the page refresh area determined during the initial division of the system, the page refresh area determined according to the view area of the adjusted page view is the new page refresh area, and the refresh area information of the new page refresh area is recorded as updated.
- the refresh area information and the target refresh application is recorded as updated.
- Step S240 Distribute the target refresh application carrying the updated refresh area information to multiple refresh channels to refresh the target page refresh area in parallel.
- the target refresh application carries updated refresh area information and element information carrying view elements, where the element information includes element content information and element location information, and the view element refers to the adjusted page that is divided into the target refresh application
- the position of the view element contained in the view is consistent with the position information of the adjusted view element.
- any refresh channel can refresh and display the view elements divided into the page view of the current target refresh request based on the updated refresh area information and element information carried in the target refresh request in the target page refresh area In the corresponding position.
- the number of refresh channels when applying parallel refresh to the refresh chip is fixed. For example, it is 16. By applying to the refresh chip, it is convenient for the refresh chip to schedule a limited number of parallel refresh channels.
- the number of target refresh requests is less than the total number of parallel refresh channels on the refresh chip, the number of target refresh requests can be allocated The same parallel refresh channel in response to the current page refresh request. According to the number of channels allocated by the refresh chip, the target refresh application is distributed to the refresh channels that are consistent with the number of channels.
- the target refresh channels can be distributed to the refresh channels consistent with the number of channels at a time.
- the solution of this embodiment can be widely used in scenes that require rapid refresh of the display in the ink screen. For example, for a page refresh request that invokes a menu, a pop-up window, or a status bar, by eliminating the overlapped area, the target page of the target refresh application is refreshed. There is no overlap between regions, and they can be refreshed in parallel at the same time. Compared with the way in the prior art that only refreshes one by one due to overlap in the prior art, the efficiency of refreshing the display can be greatly improved; and the ink particles can be directly refreshed in parallel. Driven from the gray position of the current frame to the gray position of the next frame, the process of flashing black and white is omitted, and the refresh speed is further improved.
- the method for refreshing the display page provided in this embodiment, for the received page refresh request, according to the view layout information of the multiple page views contained in the page to be displayed, it is analyzed whether there is an overlapping area between the multiple page views, and whether there is an overlapping area between the multiple page views is analyzed.
- the view size of the page view in the overlapping area is adjusted to eliminate the overlap between the page views.
- the view layout information of the page area that changes before and after the frame can be analyzed and adjusted, and the overlap area can be increased by reducing the amount of analysis data The analysis and the speed of elimination; and, when analyzing the overlapping area, you can only analyze whether there is overlap between the view areas that are divided into different refresh application page views, and then eliminate the overlap between refresh applications, and then Ensure that the refresh request can be processed through the parallel refresh channel while further improving the efficiency of the analysis and elimination of the overlapped area; and, before the parallel refresh channel is used to refresh the page refresh area in parallel, the refresh mode of the refresh request is detected, According to the detection result, the refresh application whose refresh mode is not the full refresh mode is distributed to the parallel refresh channel for parallel refresh processing, so as to ensure the refresh rate while avoiding the residual image of the refresh information of the specific view and improve the refresh display effect.
- the solution of this embodiment adjusts the view sizes of multiple page views in the page to be displayed, so that there is no overlapping area between multiple page views, and the parallel refresh channel can be used to refresh multiple page refresh areas at the same time.
- Refresh compared with the prior art for page views with overlapping areas, can only be refreshed in sequence, which can greatly improve the efficiency of refreshing the display; at the same time, the page area that has changed or the refresh is determined by comparing the previous and next frames. Analysis of overlapping areas between applications can improve the efficiency of analysis and elimination of overlapping areas.
- the embodiments of the present disclosure provide a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium stores at least one executable instruction, and the computer-executable instruction can execute any of the foregoing method embodiments. Display the refresh method of the page.
- the executable instructions can be specifically used to cause the processor to perform the following operations:
- the view size of the page view with the overlapping area is adjusted to eliminate the overlapping area between the page views
- At least one page refresh area corresponding to the multiple adjusted page views is determined, and each page refresh area is refreshed in parallel through multiple refresh channels.
- executable instructions cause the processor to perform the following operations:
- the view size of the page view with the overlapping area is adjusted to eliminate the overlapping area between the page views
- At least one page refresh area corresponding to the multiple adjusted page views is determined, and each page refresh area is refreshed in parallel through multiple refresh channels.
- executable instructions further cause the processor to perform the following operations:
- At least one of the following processes is performed: cropping is performed on the redundant area of the target view, and the arrangement of the view elements contained in the target view is adjusted.
- executable instructions further cause the processor to perform the following operations:
- the view types of the page view include: system type and application type, and the executable instructions further cause the processor to perform the following operations:
- executable instructions further cause the processor to perform the following operations:
- the view layout information of the multiple page views included in the page to be displayed is determined.
- executable instructions further cause the processor to perform the following operations:
- executable instructions further cause the processor to perform the following operations:
- the target refresh request is distributed to the refresh channels consistent with the number of channels.
- executable instructions further cause the processor to perform the following operations:
- the page to be displayed is compared with the currently displayed page, the page change area contained in the area to be displayed is determined according to the comparison result, and the view layout information of each page view contained in the page change area is obtained.
- executable instructions further cause the processor to perform the following operations:
- the view layout information of the multiple page views included in the page to be displayed acquired this time is acquired, so as to dynamically refresh the page to be displayed acquired this time.
- executable instructions further cause the processor to perform the following operations:
- the computer storage medium is located in the ink screen reader, and the page views include: e-book status bar view, e-book menu bar view, pop-up view, and e-book text view.
- FIG. 4 shows a schematic structural diagram of an embodiment of a reader of the present disclosure, and the specific embodiment of the present disclosure does not limit the specific implementation of the reader.
- the reader may include: a processor (processor) 402, a communication interface (Communications Interface) 404, a memory (memory) 406, and a communication bus 408.
- processor processor
- communication interface Communication Interface
- memory memory
- the processor 402, the communication interface 404, and the memory 406 communicate with each other through the communication bus 408.
- the communication interface 404 is used to communicate with other devices such as network elements such as clients or other servers.
- the processor 402 is configured to execute the program 410, and specifically can execute the relevant steps in the above-mentioned embodiment of the method for refreshing the display page of the reader.
- the program 410 may include program code, and the program code includes computer operation instructions.
- the processor 402 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present disclosure.
- the one or more processors included in the reader may be the same type of processor, such as one or more CPUs, or different types of processors, such as one or more CPUs and one or more ASICs.
- the memory 406 is used to store the program 410.
- the memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), for example, at least one disk memory.
- the program 410 may be specifically used to cause the processor 402 to perform the following operations:
- the view size of the page view with the overlapping area is adjusted to eliminate the overlapping area between the page views
- At least one page refresh area corresponding to the multiple adjusted page views is determined, and each page refresh area is refreshed in parallel through multiple refresh channels.
- program 410 may specifically be further used to cause the processor 402 to perform the following operations:
- At least one of the following processes is performed: cropping is performed on the redundant area of the target view, and the arrangement of the view elements contained in the target view is adjusted.
- program 410 may specifically be further used to cause the processor 402 to perform the following operations:
- the view type of the page view includes: a system type and an application type
- the program 410 may be further specifically configured to cause the processor 402 to perform the following operations:
- program 410 may be further specifically used to enable the processor 402 to perform the following operations:
- the view layout information of the multiple page views included in the page to be displayed is determined.
- program 410 may specifically be further used to cause the processor 402 to perform the following operations:
- program 410 may specifically be further used to cause the processor 402 to perform the following operations:
- the target refresh request is distributed to the refresh channels consistent with the number of channels.
- program 410 may specifically be further used to cause the processor 402 to perform the following operations:
- the page to be displayed is compared with the currently displayed page, the page change area contained in the area to be displayed is determined according to the comparison result, and the view layout information of each page view contained in the page change area is obtained.
- program 410 may specifically be further used to cause the processor 402 to perform the following operations:
- the view layout information of the multiple page views included in the page to be displayed acquired this time is acquired, so as to dynamically refresh the page to be displayed acquired this time.
- program 410 may specifically be further used to cause the processor 402 to perform the following operations:
- the reader is an ink screen reader
- the page views include: e-book status bar view, e-book menu bar view, pop-up view, and e-book text view.
- modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and/or processes or units are mutually exclusive, any combination can be used to compare all the features disclosed in this specification (including the accompanying claims, abstract and drawings) and any method or methods disclosed in this manner or All the processes or units of the equipment are combined. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
- the various component embodiments of the present disclosure may be implemented by hardware, or by software modules running on one or more processors, or by a combination of them.
- a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present disclosure.
- DSP digital signal processor
- the present disclosure can also be implemented as a device or device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein.
- Such a program for realizing the present disclosure may be stored on a computer-readable medium, or may have the form of one or more signals.
- Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种显示页面的刷新方法、阅读器及计算机存储介质,显示页面的刷新方法包括:响应于接收到的页面刷新请求,获取待显示页面中包含的多个页面视图的视图布局信息(S110);当根据视图布局信息确定多个页面视图之间存在重叠区域时,针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠区域(S120);针对待显示页面中包含的多个调整后的页面视图,分别确定与各个调整后的页面视图相对应的页面刷新区域,通过多个刷新通道并行刷新各个页面刷新区域(S130)。
Description
相关申请的交叉参考
本申请要求于2019年12月30日提交中国专利局、申请号为201911392605.9、名称为“显示页面的刷新方法、阅读器及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本公开涉及墨水屏显示技术领域,具体涉及一种显示页面的刷新方法、阅读器及计算机存储介质。
墨水屏阅读设备是指使用电子墨水屏(E-ink或Electronic Paper Display,简称EPD)的电子阅读设备。其中,电子墨水屏是一种本身不发光而依靠外界反光实现显示效果的屏幕,其显示效果与纸质材料极为类似,因此可比拟纸质材料阅读的体验。电子墨水屏由许多微囊组成,每个微囊里包含多个黑色粒子和多个白色粒子,两者各带相反电荷。当需要在屏幕上显示黑色内容时,通过电压驱动黑色粒子向上移动到屏幕顶部(也即从底部向屏幕方向移动),当显示白色内容时,通过电压驱动白色粒子向上移动到屏幕顶部(也即从底部向屏幕方向移动)。
墨水屏阅读设备在进行刷新显示时,通过采用全局刷新模式消除屏幕残影问题,全局刷新是指,将屏幕上所有像素点的墨水颗粒从当前位置刷新到全白位置,接着刷新到全黑位置,然后根据下一帧图像需要显示的内容,将墨水粒子从全黑位置刷新到不同的灰阶位置上。换言之,在全局刷新时,显示的内容变换时,墨水屏以像素为单位,每个像素会经历一个白-黑-白的颜色变化过程,以保持屏幕的对比度。
然而,发明人在实施本公开实施例的过程中发现:全局刷新模式虽然能够有效消除残影问题,但是由于墨水粒子有一个从当前灰度到全白到全黑再到下一帧灰度位置的刷新过程,所以刷新速度比较慢,尤其对于菜单、弹窗等页面元素的显示,不能满足快速刷新的要求。
发明内容
鉴于上述问题,提出了本公开以便提供一种克服上述问题或者至少部分地解决上述问题的显示页面的刷新方法、阅读器及计算机存储介质。
根据本公开的一个方面,提供了一种显示页面的刷新方法,包括:
响应于接收到的页面刷新请求,获取待显示页面中包含的多个页面视图 的视图布局信息;
当根据视图布局信息确定多个页面视图之间存在重叠区域时,针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠区域;
针对待显示页面中包含的多个调整后的页面视图,确定与多个调整后的页面视图相对应的至少一个页面刷新区域,通过多个刷新通道并行刷新各个页面刷新区域。
根据本公开的另一方面,提供了一种阅读器,包括:处理器、存储器、通信接口和通信总线,处理器、存储器和通信接口通过通信总线完成相互间的通信;
存储器用于存放至少一可执行指令,可执行指令使处理器执行如下操作:
响应于接收到的页面刷新请求,获取待显示页面中包含的多个页面视图的视图布局信息;
当根据视图布局信息确定多个页面视图之间存在重叠区域时,针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠区域;
针对待显示页面中包含的多个调整后的页面视图,确定与多个调整后的页面视图相对应的至少一个页面刷新区域,通过多个刷新通道并行刷新各个页面刷新区域。
根据本公开的又一方面,提供了一种非易失性计算机可读存储介质,非易失性计算机可读存储介质中存储有至少一可执行指令,可执行指令使处理器执行如下操作:
响应于接收到的页面刷新请求,获取待显示页面中包含的多个页面视图的视图布局信息;
当根据视图布局信息确定多个页面视图之间存在重叠区域时,针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠区域;
针对待显示页面中包含的多个调整后的页面视图,确定与多个调整后的页面视图相对应的至少一个页面刷新区域,通过多个刷新通道并行刷新各个页面刷新区域。
根据本公开的再一方面,还提供了一种计算机程序产品,该计算机程序产品包括存储在上述非易失性计算机可读存储介质上的计算程序。
根据本公开的显示页面的刷新方法、阅读器及计算机存储介质,对于接收到的页面刷新请求,依据待显示页面包含的多个页面视图的视图布局信息 分析出多个页面视图之间是否存在重叠区域,并针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠,后续则可针对调整后的页面视图划分的页面刷新区域,采用多个刷新通道进行并行刷新。由此可见,本公开方案通过对待显示页面中多个页面视图的视图尺寸进行调整,使多个页面视图之间不存在重叠区域,进而可利用多个刷新通道对多个页面刷新区域同时进行刷新,相较于现有技术中针对存在重叠区域的页面视图,只能利用全刷模式依次进行刷新的方式,可以极大地提高刷新显示的效率。
上述说明仅是本公开技术方案的概述,为了能够更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为了让本公开的上述和其它目的、特征和优点能够更明显易懂,以下特举本公开的具体实施方式。
附图概述
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本公开的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了本公开显示页面的刷新方法一个实施例的流程图;
图2示出了本公开显示页面的刷新方法另一个实施例的流程图;
图3a示出了一个具体示例中视图尺寸调整前的示意图;
图3b示出了对应图3a的示例进行视图尺寸调整后的示意图;
图4示出了本公开阅读器实施例的结构示意图。
本公开的较佳实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
图1示出了本公开显示页面的刷新方法实施例的流程图。该方法应用于墨水屏阅读器。如图1所示,该方法包括以下步骤:
步骤S110:响应于接收到的页面刷新请求,获取待显示页面中包含的多个页面视图的视图布局信息。
其中,页面刷新请求是指显示新的页面内容的请求。
具体地,在墨水屏接收到页面刷新请求时,获取待显示页面中包含的多个页面视图的视图布局信息,其中,待显示页面是指新的页面内容所在的页面,并且,每个待显示页面通常由多个页面视图组成,每个页面视图用于显 示不同的内容,例如,状态栏视图用于显示电量、时间、网络等内容,菜单栏视图则可以显示亮度等设置信息;以及,视图布局信息则是反映构成该待显示页面的多个页面视图的位置的信息。
步骤S120:当根据该视图布局信息确定该多个页面视图之间存在重叠区域时,针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠区域。
其中,两个页面视图之间存在重叠区域是指该两个页面视图分别覆盖的视图区域中存在部分相同的区域。
具体地,在确定多个页面视图中至少两个页面视图之间存在重叠区域时,则针对该至少两个页面视图进行重叠区域的消除,直至任意两个页面视图均不存在重叠区域为止。在消除的过程中,通过调整视图尺寸,不断缩小重叠区域。
步骤S130:针对待显示页面中包含的多个调整后的页面视图,确定与多个调整后的页面视图相对应的页面刷新区域,通过多个刷新通道并行刷新各个页面刷新区域。
在针对具有重叠区域的页面视图的视图尺寸进行调整后,则得到经调整处理后的多个页面视图(其中可能存在部分页面视图的视图尺寸并未改变)。将调整后的多个页面视图的视图区域划分为多个页面刷新区域,其中,一个页面刷新区域覆盖至少一个页面视图的视图区域;并且,通过并行的多个刷新通道对多个页面刷新区域同时进行刷新处理,将页面刷新区域覆盖的至少一个页面视图的视图元素刷新显示在墨水屏上。由于调整后的多个页面视图之间不存在重叠区域,则划分出的页面刷新区域之间也不存在重叠区域,进而可通过多个刷新通道来并行刷新,提高刷新处理的效率。
根据本实施例提供的显示页面的刷新方法,对于接收到的页面刷新请求,依据待显示页面包含的多个页面视图的视图布局信息分析出多个页面视图之间是否存在重叠区域,并针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠,后续则可针对调整后的页面视图划分的页面刷新区域,采用多个刷新通道进行并行刷新。由此可见,本实施例方案,通过对待显示页面中多个页面视图的视图尺寸进行调整,使多个页面视图之间不存在重叠区域,进而可利用多个刷新通道对多个页面刷新区域同时进行刷新,相较于现有技术中针对存在重叠区域的页面视图,只能利用全刷模式依次进行刷新的方式,可以极大地提高刷新显示的效率。
图2示出了本公开显示页面的刷新方法另一个实施例的流程图。该方法应用于墨水屏阅读器中。如图2所示,该方法包括以下步骤:
步骤S210:响应于接收到的页面刷新请求,获取待显示页面中包含的多个页面视图的视图布局信息。
其中,页面视图包括:电子书状态栏视图、电子书菜单栏视图、弹窗视图及电子书正文视图,其中,电子书正文视图包括但不限于阅读页面中正文内容所在的视图及书城页面中书城正文所在的视图。
其中,页面刷新请求为任意可以使屏幕显示内容发生改变的请求,例如,唤起菜单、弹窗或状态栏的刷新请求。
具体地,在接收到页面刷新请求后,获取待显示页面中包含的多个页面视图的视图布局信息,分析各个页面视图的位置关系,包括平面位置关系以及层叠位置关系,以便后续确定页面视图之间是否存在重叠。
进一步地,获取视图布局信息的方式如下:
方式一,在将墨水屏阅读器对应的阅读应用的adb(Android Debug Bridge,安卓调试桥)调试模式打开后,通过android studio的Layout Inspector的工具,可以获取到应用程序的视图布局信息。
方式二,确定与该页面刷新请求相对应的多个刷新申请,其中,多个刷新申请是由墨水屏阅读器的系统依据待显示页面中包含的页面视图的视图类型以及页面视图所在的位置区域划分出来的,通常情况下,将一类页面视图划分为一个刷新申请,将集中在连续位置区域的页面视图划分为一个刷新申请。获取各个刷新申请中包含的刷新区域信息,其中,在刷新申请中携带有刷新区域信息,该刷新区域信息由划分至该刷新申请的页面视图的视图区域的区域信息构成。根据各个刷新申请中包含的刷新区域信息,确定待显示页面中包含的多个页面视图的视图布局信息,在获取到各个刷新申请中携带的刷新区域信息之后,则可还原出待显示页面中包含的多个页面视图的视图布局信息,例如,将待显示页面中电子书菜单栏视图的刷新划分为一个刷新申请,以及将待显示页面中电子书状态栏视图的刷新划分为另一个刷新申请,则在获取到该两个刷新申请中携带的刷新区域信息后,确定电子书菜单栏视图与电子书状态栏视图的位置关系,即得到视图布局信息。
在一些实际的场景中,针对接收到的页面刷新请求,仅需对页面中少量的内容进行刷新,例如,在阅读书籍的过程中,点击墨水屏中央,会发起页面刷新请求,而此时通常只是在当前显示的内容的基础上,在墨水屏的顶部和顶部下方显示状态栏和菜单栏,其中状态栏主要用于显示电量、时间等信息,以及菜单栏主要用于显示调节字体、亮度等的设置信息。基于此,在本公开的一些可选的实施例中,将待显示页面与当前显示页面进行比较,根据比较结果确定该待显示区域中包含的页面变化区域,获取该页面变化区域中包含的各个页面视图的视图布局信息,通过这种方式,每次仅获取页面变化区域中包含的各个页面视图的视图布局信息,后续则可针对该发生变化的视图布局信息来进行分析与刷新,可提高刷新效率。
另外,页面刷新请求的种类多种多样,通常情况下,一个页面刷新请求对应着一帧画面的刷新,即一个图像帧的刷新,这种情况,通过获取该一个 图像帧所在的待显示页面的视图布局信息并进行分析即可;而在一些特殊情况下,页面刷新请求为用于多个图像帧的动态刷新请求,例如,菜单栏的呼出、消失过程会伴随动效,或者菜单栏中的按键在切换开关状态时也会有移动效果,这些动效的展示,往往是由多个图像帧连续刷新实现的。针对这种情况,在本公开的一些可选的实施例中,依次获取各个待显示页面,以根据获取到的待显示页面进行动态刷新,其中,此处的各个待显示页面是指构成动效的多个图像帧分别所在的页面;其中,每当获取到一个待显示页面后,比较本次获取到的待显示页面与上一次获取到的待显示页面是否相同;若相同,则表明前后两帧显示的内容未改变,则舍弃本次获取到的待显示页面,继续获取下一个待显示页面,即取消针对本次获取到的待显示页面进行视图布局信息的分析以及刷新的处理过程;若不相同,则表明前后两帧显示的内容发生了改变,则获取本次获取到的待显示页面中包含的多个页面视图的视图布局信息,以根据本次获取到的待显示页面进行动态刷新,进而将当前帧的图像刷新显示在墨水屏上。在这些动态刷新的可选实施例中,通过这种前后帧比较的方式,可以减少刷新次数,进而实现动态效果刷新速度的提升。
在上述动态刷新的可选实施例中,也可以结合针对局部变化区域进行分析的方式,在比较前后两帧显示的内容是否相同的基础上,进一步确定本次获取到的待显示页面相对于上一次获取到的待显示页面的动态变化区域,其中,可通过获取前后两帧图像,将两帧图像按区域分别进行比较,确定前后帧图像内容变化的区域(即动态变化区域);或者,确定前后两帧图像中灰度发生变化的像素位置,记为变化像素,通过相邻变化像素构建灰度变化区域的外接矩形,将待显示页面中该外接矩形覆盖的区域确定为动态变化区域。通过上述方式,则可以缩小视图布局信息分析以及刷新的区域,进一步提高处理效率。然后,在获取视图布局信息时,仅获取该动态变化区域中包含的各个页面视图的视图布局信息。
步骤S220:当根据该视图布局信息确定该多个页面视图之间存在重叠区域时,针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠区域。
具体地,分析视图布局信息中各个页面视图的位置信息,确定任意两个页面视图的位置信息是否存在垂直于页面方向的重叠,例如,待显示页面的左上顶点为坐标原点,且菜单栏视图的横坐标的范围是[0,10],纵坐标的范围是[1,5],状态栏视图的横坐标的范围是[0,10],纵坐标的范围是[0,2],则菜单栏视图和状态栏视图在横坐标范围[0,10],纵坐标范围[1,2]构成的区域内存在重叠。并且,在确定出存在重叠区域后,依据位置信息进一步确定出重叠区域的大小,以便后续据此消除重叠。
在本公开中,进行重叠区域的确定,是为了后续能够消除重叠并方便通过并行刷新通道并行处理多个刷新申请。相应地,在本公开的一些可选的实 施例中,在确定重叠区域的过程中,获取划分至不同的刷新申请的至少一个页面视图,并根据视图布局信息确定划分至不同的刷新申请中的页面视图是否存在重叠区域。通过针对划分至不同刷新申请的页面视图进行重叠区域的确定,以确保多个刷新申请的页面刷新区域之间不存在重叠,进而使得多个刷新申请可以通过并行刷新通道进行并行刷新处理,而无需关注同一刷新申请中的页面视图是否存在重叠,提高重叠区域确定的效率。例如,划分至刷新申请1的页面视图包括菜单栏视图a和菜单栏视图b,且分别的视图区域为视图区域A和视图区域B,划分至刷新申请2的页面视图为状态栏视图c,且视图区域为视图区域C,则只需对视图区域A或视图区域B是否与视图区域C之间具有重叠区域进行确定,最终只需确保视图区域A与视图区域C之间不存在重叠区域或视图区域B与视图区域C之间不存在重叠区域,则可进行并行处理。而视图区域A与视图区域B属于同一刷新申请内,并不影响并行刷新,则无需进行是否存在重叠的确定。
进一步地,在消除重叠区域时,针对任意两个存在重叠区域的页面视图,对其中至少一个页面视图的视图尺寸进行缩小处理,以使该任意两个页面视图之间的重叠区域消失。其中,将存在重叠区域的至少两个页面视图中的至少一个页面视图确定为目标视图,该目标视图为需要进行视图尺寸调整的视图。在一些可选的实施例中,针对该目标视图的冗余区域进行裁剪处理,其中,冗余区域是指不存在视图元素的区域,例如,菜单栏视图中,上边缘有一部分空白区域,该空白区域中不存在任何菜单控件或文字,则该空白区域为冗余区域,将该冗余区域进行裁剪,裁剪后的目标视图的视图尺寸变小,该至少两个页面视图之间的重叠区域减少甚至消除;其中,可依据重叠区域的大小进行裁剪,以使裁剪掉的区域与重叠区域恰好相等,避免对目标视图的视图形状造成过大的影响。在另一些可选的实施例中,针对该目标视图中包含的视图元素的排布方式进行调整,这些可选的实施例针对的是对目标视图的冗余区域进行裁剪处理不足以消除重叠区域的情况,通过调整目标视图的视图元素来增大冗余区域,以便通过裁剪冗余区域消除重叠区域。通过上述可选的实施方式,使得可以在消除重叠区域的同时,不影响目标视图中的视图元素的正常显示。
更进一步地,可通过设置页面视图的视图类型的优先级,并依据优先级从存在重叠区域的至少两个页面视图中确定出目标视图。其中,确定存在重叠区域的各个页面视图的视图类型,根据各个页面视图的视图类型,选择至少一个页面视图作为目标视图,按照视图类型的优先级由低至高选择目标视图。其中,页面视图的视图类型包括:系统类型以及应用类型,则在选择目标视图时,将应用类型的页面视图选择为目标视图,其中,应用类型的页面视图主要包括菜单栏视图、及弹窗视图,系统视图主要包括状态栏视图。在设置优先级时,设置系统类型的优先级高于应用类型的优先级,避免对系统类型的页面视图(例如状态栏视图)的视图尺寸的调整处理而影响所有页面 中该页面视图的显示。但是,若存在重叠区域的至少两个页面视图中不包括应用类型的页面视图时,则可选择系统类型的页面进行视图尺寸的调整,以消除重叠区域。通过上述确定目标视图的方式,可以优先确保系统类型的页面视图的视图尺寸不发生更改,以降低对系统设置的影响。
上述根据视图类型选择目标视图的方式仅为一种可选的方式,在实际实施时,还可以考虑尺寸调整的难度或者调整后对显示的影响度来选择相应的方式确定出目标视图,可选地,可根据存在重叠区域的至少两个页面视图中分别包括的视图元素的种类或数量来进行选择,例如,将至少两个页面视图按照包含的视图元素的种类的数量或包含的视图元素的数量由低至高进行排序,并选择排序靠前的预设数量的页面视图作为目标视图,例如,将包含的视图元素的数量最少的页面视图确定为目标视图,又如,将包含的视图元素单一(全为控件或全为文字的情况)的页面视图确定为目标视图,则可以降低调整的难度;或者,可根据存在重叠区域的至少两个页面视图的冗余区域的大小来进行选择,从该至少两个页面视图中选择出冗余区域最大的预设数量的页面视图确定为目标视图,以尽可能仅通过对冗余区域的裁剪处理来消除重叠区域,而避免对视图元素的调整。
需要说明的是,在仅针对划分至不同刷新申请的页面视图进行重叠区域的确定的实施例中,重叠区域的消除也是指消除不同刷新申请中包含的页面视图之间的重叠区域,则在确定目标视图时,是将任意两个刷新申请之间存在重叠区域的至少两个页面视图中的至少一个页面视图选择为目标视图。
图3a示出了一个具体示例中视图尺寸调整前的示意图。如图3a所示,菜单栏视图的高度为d2,状态栏视图的高度为d1,其中,高度d0对应的灰色区域为状态栏视图和菜单栏视图的重叠区域,假设按照视图类型的优先级对重叠区域进行调整,则需调整菜单栏视图的视图尺寸。图3b示出了对应图3a的示例进行视图尺寸调整后的示意图。如图3b所示,菜单栏视图经视图尺寸调整后的高度由d2变为d2-d0,此时菜单栏视图和状态栏视图不存在重叠区域。
步骤S230:针对待显示页面中包含的多个调整后的页面视图,确定与多个调整后的页面视图相对应的至少一个页面刷新区域;从该至少一个页面刷新区域中确定目标刷新申请的目标页面刷新区域,得到目标刷新申请更新后的刷新区域信息;其中,目标刷新申请是刷新模式为非全刷模式的申请。
实际中,针对一个页面刷新请求,系统会划分出一个或多个刷新申请,其中,刷新申请与页面刷新区域一一对应,每个刷新申请中携带有一个页面刷新区域的刷新区域信息,该页面刷新区域由划分至该刷新申请的页面视图的视图区域合并而成。
以及,在划分出的一个或多个刷新申请中,系统还会根据实际的刷新需求在刷新申请中携带刷新模式的模式信息,尤其针对一些需要确保不能出现 残影的页面视图的刷新,通常会默认采用全刷模式,相应地,则在刷新申请中携带全刷模式的模式信息,这些指定刷新模式为全刷模式的刷新申请,不能采用并行刷新的方式进行刷新处理。基于此,在本实施例中,通过筛选出刷新模式为非全刷模式的目标刷新申请,并针对这些目标刷新申请进行并行刷新处理。
具体地,针对任一刷新申请,检测刷新申请的刷新模式是否为全刷模式;根据检测结果从多个刷新申请中筛选出刷新模式不是全刷模式的目标刷新申请,至此则确定出了可以采用并行刷新方式进行刷新处理的目标刷新申请。
并且,在对页面视图的视图尺寸进行调整后,可得到经调整处理后各个页面视图的视图区域的区域信息以及其包含的视图元素的元素信息(包括元素的内容信息以及位置信息)。根据划分至目标刷新申请的调整后的页面视图,从至少一个页面刷新区域中确定目标刷新申请的目标页面刷新区域,得到目标刷新申请更新后的刷新区域信息。其中,根据各个页面视图被划分至的刷新申请,可以确定由划分至同一刷新申请的调整后的页面视图的视图区域构成的一个页面刷新区域,而由划分至目标刷新申请的调整后的页面视图的视图区域则构成了目标刷新申请的目标页面刷新区域。需要在此说明的是,调整前后各个页面视图划分至的刷新申请是不会改变的,只是页面视图的视图区域的区域信息或页面视图中包含的视图元素的元素位置发生了改变;以及,相较于系统初次划分时确定的页面刷新区域而言,该依据调整后的页面视图的视图区域确定的页面刷新区域为新的页面刷新区域,该新的页面刷新区域的刷新区域信息记为更新后的刷新区域信息,目标刷新申请也同理。
步骤S240:将携带该更新后的刷新区域信息的目标刷新申请分发至多个刷新通道并行刷新目标页面刷新区域。
具体地,将目标刷新申请分发至多个刷新通道,则可以完成目标页面刷新区域的并行刷新处理。其中,目标刷新申请中携带更新后的刷新区域信息,以及携带视图元素的元素信息,其中,元素信息包括元素内容信息以及元素位置信息,该视图元素是指划分至目标刷新申请的调整后的页面视图包含的视图元素,相应地,元素位置则与调整后的视图元素的位置信息一致。任一刷新通道在接收目标刷新申请后,可根据目标刷新申请中携带的更新后的刷新区域信息和元素信息,将划分至当前的目标刷新申请的页面视图的视图元素刷新显示在目标页面刷新区域的相应位置中。
进一步地,在将目标刷新申请分发至刷新通道之前,根据该目标刷新申请的数量向刷新芯片申请并行刷新时刷新通道的通道数量,通常情况下,刷新芯片上并行刷新通道的数量是固定的,例如,为16个。通过向刷新芯片进行申请,可便于刷新芯片对有限的并行刷新通道进行调度,其中,当目标 刷新申请的数量少于刷新芯片上的并行刷新通道的总数量时,则可分配与目标刷新申请数量相同的并行刷新通道以响应当前的页面刷新请求。根据刷新芯片分配的通道数量将目标刷新申请分发至与该通道数量一致的刷新通道,其中,若分配的通道数量少于目标刷新申请的数量,则需将多个目标刷新申请分批次分发至与该通道数量一致的刷新通道;若分配的通道数量多于或等于目标刷新申请的数量,则可将目标刷新通道一次分发至于与通道数量一致的刷新通道。
本实施例方案可广泛应用于墨水屏中需要快速刷新显示的场景,例如,针对唤起菜单、弹窗或状态栏的页面刷新请求,通过对重叠区域进行消除处理,则目标刷新申请的目标页面刷新区域之间不存在重叠,可同时并行刷新,相较于现有技术中因重叠而只能一个接一个依次刷新的方式,可以极大地提高刷新显示的效率;并且,并行刷新时直接将墨水粒子从当前帧的灰度位置驱动到下一帧图像的灰度位置,中间省去了闪黑闪白的过程,进一步提高了刷新速度。
根据本实施例提供的显示页面的刷新方法,对于接收到的页面刷新请求,依据待显示页面包含的多个页面视图的视图布局信息分析出多个页面视图之间是否存在重叠区域,并针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠,其中,可仅针对前后帧发生变化的页面区域的视图布局信息进行分析和调整,通过减少分析数据量来提高重叠区域的分析及消除的速度;以及,在进行重叠区域的分析时,可以仅分析被划分至不同刷新申请页面视图的视图区域之间是否存在重叠,然后针对刷新申请之间的重叠进行消除,进而在确保刷新申请可通过并行刷新通道进行刷新处理的同时,进一步提高重叠区域的分析和消除的效率;并且,在采用并行刷新通道对页面刷新区域进行并行刷新之前,对刷新申请的刷新模式进行检测,并根据检测结果将刷新模式不是全刷模式的刷新申请分发至并行刷新通道进行并行刷新处理,以在确保刷新速率的同时,避免特定视图的刷新信息留下残影,提升刷新显示效果。由此可见,本实施例方案,通过对待显示页面中多个页面视图的视图尺寸进行调整,使多个页面视图之间不存在重叠区域,进而可利用并行刷新通道对多个页面刷新区域同时进行刷新,相较于现有技术中针对存在重叠区域的页面视图,只能依次进行刷新的方式,可以极大地提高刷新显示的效率;同时,通过前后帧比较确定出发生变化的页面区域或对刷新申请之间的重叠区域进行分析,可以提高重叠区域的分析以及消除的效率。
本公开实施例提供了一种非易失性计算机可读存储介质,该非易失性计算机可读存储介质存储有至少一可执行指令,该计算机可执行指令可执行上述任意方法实施例中的显示页面的刷新方法。
可执行指令具体可以用于使得处理器执行以下操作:
响应于接收到的页面刷新请求,获取待显示页面中包含的多个页面视图的视图布局信息;
当根据视图布局信息确定多个页面视图之间存在重叠区域时,针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠区域;
针对待显示页面中包含的多个调整后的页面视图,确定与多个调整后的页面视图相对应的至少一个页面刷新区域,通过多个刷新通道并行刷新各个页面刷新区域。
在一种可选的方式中,可执行指令使处理器执行以下操作:
响应于接收到的页面刷新请求,获取待显示页面中包含的多个页面视图的视图布局信息;
当根据视图布局信息确定多个页面视图之间存在重叠区域时,针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠区域;
针对待显示页面中包含的多个调整后的页面视图,确定与多个调整后的页面视图相对应的至少一个页面刷新区域,通过多个刷新通道并行刷新各个页面刷新区域。
在一种可选的方式中,可执行指令进一步使处理器执行如下操作:
将存在重叠区域的至少两个页面视图中的至少一个页面视图确定为目标视图;
进行以下至少一种处理:针对目标视图的冗余区域进行裁剪处理、针对目标视图中包含的视图元素的排布方式进行调整。
在一种可选的方式中,可执行指令进一步使处理器执行如下操作:
确定存在重叠区域的各个页面视图的视图类型,根据各个页面视图的视图类型,选择至少一个页面视图作为目标视图。
在一种可选的方式中,页面视图的视图类型包括:系统类型以及应用类型,可执行指令进一步使处理器执行如下操作:
将应用类型的页面视图选择为目标视图。
在一种可选的方式中,可执行指令进一步使处理器执行如下操作:
确定与页面刷新请求相对应的多个刷新申请,获取各个刷新申请中包含的刷新区域信息;
根据各个刷新申请中包含的刷新区域信息,确定待显示页面中包含的多个页面视图的视图布局信息。
在一种可选的方式中,可执行指令进一步使处理器执行如下操作:
针对任一刷新申请,检测刷新申请的刷新模式是否为全刷模式;
根据检测结果从多个刷新申请中筛选出刷新模式不是全刷模式的目标刷新申请;
根据划分至目标刷新申请的调整后的页面视图从至少一个页面刷新区域中确定目标刷新申请的目标页面刷新区域,得到目标刷新申请更新后的刷新区域信息;
将携带更新后的刷新区域信息的目标刷新申请分发至刷新通道并行刷新目标页面刷新区域。
在一种可选的方式中,可执行指令进一步使处理器执行如下操作:
根据目标刷新申请的数量向刷新芯片申请并行刷新时刷新通道的通道数量;
根据刷新芯片分配的通道数量将目标刷新申请分发至与通道数量一致的刷新通道。
在一种可选的方式中,可执行指令进一步使处理器执行如下操作:
将待显示页面与当前显示页面进行比较,根据比较结果确定待显示区域中包含的页面变化区域,获取页面变化区域中包含的各个页面视图的视图布局信息。
在一种可选的方式中,可执行指令进一步使处理器执行如下操作:
依次获取各个待显示页面,以根据获取到的待显示页面进行动态刷新;
其中,每当获取到一个待显示页面后,比较本次获取到的待显示页面与上一次获取到的待显示页面是否相同;
若是,则舍弃本次获取到的待显示页面,继续获取下一个待显示页面;
若否,则获取本次获取到的待显示页面中包含的多个页面视图的视图布局信息,以根据本次获取到的待显示页面进行动态刷新。
在一种可选的方式中,可执行指令进一步使处理器执行如下操作:
确定本次获取到的待显示页面相对于上一次获取到的待显示页面的动态变化区域,获取动态变化区域中包含的各个页面视图的视图布局信息。
在一种可选的方式中,计算机存储介质位于墨水屏阅读器,页面视图包括:电子书状态栏视图、电子书菜单栏视图、弹窗视图及电子书正文视图。
图4示出了本公开阅读器实施例的结构示意图,本公开具体实施例并不对阅读器的具体实现做限定。
如图4所示,该阅读器可以包括:处理器(processor)402、通信接口(Communications Interface)404、存储器(memory)406、以及通信总线408。
其中:处理器402、通信接口404、以及存储器406通过通信总线408 完成相互间的通信。通信接口404,用于与其它设备比如客户端或其它服务器等的网元通信。处理器402,用于执行程序410,具体可以执行上述用于阅读器的显示页面的刷新方法实施例中的相关步骤。
具体地,程序410可以包括程序代码,该程序代码包括计算机操作指令。
处理器402可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本公开实施例的一个或多个集成电路。阅读器包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。
存储器406,用于存放程序410。存储器406可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
程序410具体可以用于使得处理器402执行以下操作:
响应于接收到的页面刷新请求,获取待显示页面中包含的多个页面视图的视图布局信息;
当根据视图布局信息确定多个页面视图之间存在重叠区域时,针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠区域;
针对待显示页面中包含的多个调整后的页面视图,确定与多个调整后的页面视图相对应的至少一个页面刷新区域,通过多个刷新通道并行刷新各个页面刷新区域。
在一种可选的方式中,程序410具体可以进一步用于使得处理器402执行以下操作:
将存在重叠区域的至少两个页面视图中的至少一个页面视图确定为目标视图;
进行下述至少一种处理:针对目标视图的冗余区域进行裁剪处理、针对目标视图中包含的视图元素的排布方式进行调整。
在一种可选的方式中,程序410具体可以进一步用于使得处理器402执行以下操作:
确定存在重叠区域的各个页面视图的视图类型,根据各个页面视图的视图类型,选择至少一个页面视图作为目标视图。
在一种可选的方式中,页面视图的视图类型包括:系统类型以及应用类型,程序410具体可以进一步用于使得处理器402执行以下操作:
将应用类型的页面视图选择为目标视图。
在一种可选的方式中,程序410具体可以进一步用于使得处理器402执 行以下操作:
确定与页面刷新请求相对应的多个刷新申请,获取各个刷新申请中包含的刷新区域信息;
根据各个刷新申请中包含的刷新区域信息,确定待显示页面中包含的多个页面视图的视图布局信息。
在一种可选的方式中,程序410具体可以进一步用于使得处理器402执行以下操作:
针对任一刷新申请,检测刷新申请的刷新模式是否为全刷模式;
根据检测结果从多个刷新申请中筛选出刷新模式不是全刷模式的目标刷新申请;
根据划分至目标刷新申请的调整后的页面视图从至少一个页面刷新区域中确定目标刷新申请的目标页面刷新区域,得到目标刷新申请更新后的刷新区域信息;
将携带更新后的刷新区域信息的目标刷新申请分发至刷新通道并行刷新目标页面刷新区域。
在一种可选的方式中,程序410具体可以进一步用于使得处理器402执行以下操作:
根据目标刷新申请的数量向刷新芯片申请并行刷新时刷新通道的通道数量;
根据刷新芯片分配的通道数量将目标刷新申请分发至与通道数量一致的刷新通道。
在一种可选的方式中,程序410具体可以进一步用于使得处理器402执行以下操作:
将待显示页面与当前显示页面进行比较,根据比较结果确定待显示区域中包含的页面变化区域,获取页面变化区域中包含的各个页面视图的视图布局信息。
在一种可选的方式中,程序410具体可以进一步用于使得处理器402执行以下操作:
依次获取各个待显示页面,以根据获取到的待显示页面进行动态刷新;
其中,每当获取到一个待显示页面后,比较本次获取到的待显示页面与上一次获取到的待显示页面是否相同;
若是,则舍弃本次获取到的待显示页面,继续获取下一个待显示页面;
若否,则获取本次获取到的待显示页面中包含的多个页面视图的视图布局信息,以根据本次获取到的待显示页面进行动态刷新。
在一种可选的方式中,程序410具体可以进一步用于使得处理器402执行以下操作:
确定本次获取到的待显示页面相对于上一次获取到的待显示页面的动态变化区域,获取动态变化区域中包含的各个页面视图的视图布局信息。
在一种可选的方式中,阅读器为墨水屏阅读器,页面视图包括:电子书状态栏视图、电子书菜单栏视图、弹窗视图及电子书正文视图。
在此提供的算法或显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本公开实施例也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本公开的内容,并且上面对特定语言所做的描述是为了披露本公开的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本公开的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个公开方面中的一个或多个,在上面对本公开的示例性实施例的描述中,本公开实施例的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本公开要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,公开方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本公开的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本公开的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本公开实施例的一些或者全部部件的一些或者全部功能。本公开还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本公开的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
应该注意的是上述实施例对本公开进行说明而不是对本公开进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本公开可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。上述实施例中的步骤,除有特殊说明外,不应理解为对执行顺序的限定。
Claims (24)
- 一种显示页面的刷新方法,包括:响应于接收到的页面刷新请求,获取待显示页面中包含的多个页面视图的视图布局信息;当根据所述视图布局信息确定所述多个页面视图之间存在重叠区域时,针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠区域;针对待显示页面中包含的多个调整后的页面视图,确定与多个调整后的页面视图相对应的至少一个页面刷新区域,通过多个刷新通道并行刷新各个页面刷新区域。
- 根据权利要求1所述的方法,其中,所述针对存在重叠区域的页面视图的视图尺寸进行调整包括:将存在重叠区域的至少两个页面视图中的至少一个页面视图确定为目标视图;进行下述至少一种处理:针对所述目标视图的冗余区域进行裁剪处理、针对所述目标视图中包含的视图元素的排布方式进行调整。
- 根据权利要求2所述的方法,其中,所述将存在重叠区域的至少两个页面视图中的至少一个页面视图确定为目标视图包括:确定存在重叠区域的各个页面视图的视图类型,根据各个页面视图的视图类型,选择至少一个页面视图作为目标视图。
- 根据权利要求3所述的方法,其中,页面视图的视图类型包括:系统类型以及应用类型,则所述根据各个页面视图的视图类型,选择至少一个页面视图作为目标视图包括:将应用类型的页面视图选择为目标视图。
- 根据权利要求1-4任一所述的方法,其中,所述获取待显示页面中包含的多个页面视图的视图布局信息包括:确定与所述页面刷新请求相对应的多个刷新申请,获取各个刷新申请中包含的刷新区域信息;根据各个刷新申请中包含的刷新区域信息,确定待显示页面中包含的多个页面视图的视图布局信息。
- 根据权利要求1-5任一项所述的方法,其中,在所述通过多个刷新通道并行刷新各个页面刷新区域之前,所述方法还包括:针对任一刷新申请,检测所述刷新申请的刷新模式是否为全刷模式;根据检测结果从多个刷新申请中筛选出刷新模式不是全刷模式的目标刷新申请;根据划分至目标刷新申请的调整后的页面视图从所述至少一个页面刷新区域中确定目标刷新申请的目标页面刷新区域,得到目标刷新申请更新后的刷新区域信息;所述通过多个刷新通道并行刷新各个页面刷新区域进一步包括:将携带所述更新后的刷新区域信息的目标刷新申请分发至多个刷新通道并行刷新所述目标页面刷新区域。
- 根据权利要求6所述的方法,其中,在所述将携带所述更新后的刷新区域信息的目标刷新申请分发至多个刷新通道之前,所述方法还包括:根据所述目标刷新申请的数量向刷新芯片申请并行刷新时刷新通道的通道数量;所述将携带所述更新后的刷新区域信息的目标刷新申请分发至多个刷新通道具体为:根据刷新芯片分配的通道数量将目标刷新申请分发至与所述通道数量一致的刷新通道。
- 根据权利要求1-7任一所述的方法,其中,所述获取待显示页面中包含的多个页面视图的视图布局信息具体包括:将所述待显示页面与当前显示页面进行比较,根据比较结果确定所述待显示区域中包含的页面变化区域,获取所述页面变化区域中包含的各个页面视图的视图布局信息。
- 根据权利要求1-8任一所述的方法,其中,所述页面刷新请求为用于连续刷新多个图像帧的动态刷新请求,则所述获取待显示页面中包含的多个页面视图的视图布局信息包括:依次获取各个待显示页面,以根据获取到的待显示页面进行动态刷新;其中,每当获取到一个待显示页面后,比较本次获取到的待显示页面与上一次获取到的待显示页面是否相同;若是,则舍弃本次获取到的待显示页面,继续获取下一个待显示页面;若否,则获取本次获取到的待显示页面中包含的多个页面视图的视图布局信息,以根据本次获取到的待显示页面进行动态刷新。
- 根据权利要求9所述的方法,其中,所述获取本次获取到的待显示页面中包含的多个页面视图的视图布局信息,以根据本次获取到的待显示页 面进行动态刷新包括:确定所述本次获取到的待显示页面相对于上一次获取到的待显示页面的动态变化区域,获取所述动态变化区域中包含的各个页面视图的视图布局信息。
- 根据权利要求1-10任一所述的方法,其中,所述方法应用于墨水屏阅读器,所述页面视图包括:电子书状态栏视图、电子书菜单栏视图、弹窗视图及电子书正文视图。
- 一种阅读器,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如下操作:响应于接收到的页面刷新请求,获取待显示页面中包含的多个页面视图的视图布局信息;当根据所述视图布局信息确定所述多个页面视图之间存在重叠区域时,针对存在重叠区域的页面视图的视图尺寸进行调整,以消除页面视图之间的重叠区域;针对待显示页面中包含的多个调整后的页面视图,确定与多个调整后的页面视图相对应的至少一个页面刷新区域,通过多个刷新通道并行刷新各个页面刷新区域。
- 根据权利要求12所述的阅读器,所述可执行指令进一步使所述处理器执行如下操作:将存在重叠区域的至少两个页面视图中的至少一个页面视图确定为目标视图;进行下述至少一种处理:针对所述目标视图的冗余区域进行裁剪处理、针对所述目标视图中包含的视图元素的排布方式进行调整。
- 根据权利要求13所述的阅读器,所述可执行指令进一步使所述处理器执行如下操作:确定存在重叠区域的各个页面视图的视图类型,根据各个页面视图的视图类型,选择至少一个页面视图作为目标视图。
- 根据权利要求14所述的阅读器,其中,页面视图的视图类型包括:系统类型以及应用类型,所述可执行指令进一步使所述处理器执行如下操作:将应用类型的页面视图选择为目标视图。
- 根据权利要求12-15任一所述的阅读器,所述可执行指令进一步使所述处理器执行如下操作:确定与所述页面刷新请求相对应的多个刷新申请,获取各个刷新申请中包含的刷新区域信息;根据各个刷新申请中包含的刷新区域信息,确定待显示页面中包含的多个页面视图的视图布局信息。
- 根据权利要求12-16任一项所述的阅读器,所述可执行指令进一步使所述处理器执行如下操作:针对任一刷新申请,检测所述刷新申请的刷新模式是否为全刷模式;根据检测结果从多个刷新申请中筛选出刷新模式不是全刷模式的目标刷新申请;根据划分至目标刷新申请的调整后的页面视图从所述至少一个页面刷新区域中确定目标刷新申请的目标页面刷新区域,得到目标刷新申请更新后的刷新区域信息;将携带所述更新后的刷新区域信息的目标刷新申请分发至多个刷新通道并行刷新所述目标页面刷新区域。
- 根据权利要求17所述的阅读器,所述可执行指令进一步使所述处理器执行如下操作:根据所述目标刷新申请的数量向刷新芯片申请并行刷新时刷新通道的通道数量;根据刷新芯片分配的通道数量将目标刷新申请分发至与所述通道数量一致的刷新通道。
- 根据权利要求12-18任一所述的阅读器,所述可执行指令进一步使所述处理器执行如下操作:将所述待显示页面与当前显示页面进行比较,根据比较结果确定所述待显示区域中包含的页面变化区域,获取所述页面变化区域中包含的各个页面视图的视图布局信息。
- 根据权利要求12-19任一所述的阅读器,所述可执行指令进一步使所述处理器执行如下操作:依次获取各个待显示页面,以根据获取到的待显示页面进行动态刷新;其中,每当获取到一个待显示页面后,比较本次获取到的待显示页面与上一次获取到的待显示页面是否相同;若是,则舍弃本次获取到的待显示页面,继续获取下一个待显示页面;若否,则获取本次获取到的待显示页面中包含的多个页面视图的视图布局信息,以根据本次获取到的待显示页面进行动态刷新。
- 根据权利要求20所述的阅读器,所述可执行指令进一步使所述处理器执行如下操作:确定所述本次获取到的待显示页面相对于上一次获取到的待显示页面的动态变化区域,获取所述动态变化区域中包含的各个页面视图的视图布局信息。
- 根据权利要求12-21任一所述的阅读器,其中,所述阅读器为墨水屏阅读器,所述页面视图包括:电子书状态栏视图、电子书菜单栏视图、弹窗视图及电子书正文视图。
- 一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质中存储有至少一可执行指令,所述可执行指令使处理器执行用于使处理器执行前述任一权利要求1-11所述的显示页面的刷新方法。
- 一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被处理器执行时,使该处理器执行前述任一权利要求1-11的显示页面的刷新方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911392605.9 | 2019-12-30 | ||
CN201911392605.9A CN111179862B (zh) | 2019-12-30 | 2019-12-30 | 显示页面的刷新方法、阅读器及计算机存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021135501A1 true WO2021135501A1 (zh) | 2021-07-08 |
Family
ID=70647324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/120864 WO2021135501A1 (zh) | 2019-12-30 | 2020-10-14 | 显示页面的刷新方法、阅读器及计算机存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111179862B (zh) |
WO (1) | WO2021135501A1 (zh) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111179862B (zh) * | 2019-12-30 | 2021-05-28 | 掌阅科技股份有限公司 | 显示页面的刷新方法、阅读器及计算机存储介质 |
CN112000408B (zh) * | 2020-08-14 | 2022-07-05 | 青岛海信移动通信技术股份有限公司 | 移动终端及其显示方法 |
CN112631475B (zh) * | 2020-12-29 | 2022-11-11 | 安徽鸿程光电有限公司 | 工具栏的调节方法、装置、设备及计算机可读存储介质 |
CN113343634A (zh) * | 2021-06-22 | 2021-09-03 | 平安普惠企业管理有限公司 | 一种演示文稿的排版方法、装置、计算机设备及存储介质 |
CN116149765A (zh) * | 2021-11-23 | 2023-05-23 | 华为技术有限公司 | 确定墨水屏的刷新模式的方法、电子设备和存储介质 |
CN117271043B (zh) * | 2023-11-17 | 2024-02-02 | 深圳市光速时代科技有限公司 | 一种基于智能穿戴设备的数据显示方法 |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010185972A (ja) * | 2009-02-10 | 2010-08-26 | Seiko Epson Corp | 表示装置及びプログラム |
CN102013247A (zh) * | 2009-09-08 | 2011-04-13 | 北大方正集团有限公司 | 一种电子纸屏幕的刷新控制方法及系统 |
CN102254518A (zh) * | 2010-05-21 | 2011-11-23 | 精工爱普生株式会社 | 控制电光显示器的显示更新 |
US20120105478A1 (en) * | 2010-10-28 | 2012-05-03 | Monotype Imaging Inc. | Presenting Content on Electronic Paper Displays |
CN102622969A (zh) * | 2011-01-25 | 2012-08-01 | 飞思卡尔半导体公司 | 用于处理电子显示器的时间和空间重叠更新的方法和装置 |
CN103247283A (zh) * | 2013-02-21 | 2013-08-14 | 北京君正集成电路股份有限公司 | 一种屏幕刷新方法及装置 |
CN104460937A (zh) * | 2013-09-24 | 2015-03-25 | 株式会社东芝 | 控制装置、显示装置、控制方法和程序产品 |
CN104834370A (zh) * | 2014-02-12 | 2015-08-12 | 株式会社东芝 | 数据处理设备、半导体设备、显示设备和控制方法 |
CN106128357A (zh) * | 2015-05-04 | 2016-11-16 | 三星电子株式会社 | 显示驱动器和驱动显示面板的方法 |
CN110462723A (zh) * | 2017-04-04 | 2019-11-15 | 伊英克公司 | 用于驱动电光显示器的方法 |
CN111179862A (zh) * | 2019-12-30 | 2020-05-19 | 掌阅科技股份有限公司 | 显示页面的刷新方法、阅读器及计算机存储介质 |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100508569C (zh) * | 2007-02-08 | 2009-07-01 | 北京中星微电子有限公司 | 一种画面显示方法、系统及装置 |
US8446421B2 (en) * | 2009-04-24 | 2013-05-21 | Seiko Epson Corporation | Allocation and efficient use of display memory bandwidth |
CN101727836A (zh) * | 2009-12-18 | 2010-06-09 | 北京登合科技有限公司 | E-ink电子纸屏幕显示方法 |
CN101944027A (zh) * | 2010-09-26 | 2011-01-12 | 北京神州泰岳软件股份有限公司 | 一种用户界面生成方法 |
TWI439990B (zh) * | 2011-01-19 | 2014-06-01 | E Ink Holdings Inc | 顯示面板的驅動方法及採用此驅動方法之電泳顯示裝置 |
CN102402414A (zh) * | 2011-08-19 | 2012-04-04 | 大道计算机技术(上海)有限公司 | 适用于大屏幕的采集卡缓冲区同步图像刷新系统及方法 |
CN103985373B (zh) * | 2014-05-07 | 2016-08-24 | 青岛海信电器股份有限公司 | 一种应用于拼接显示设备的图像处理方法及装置 |
KR20160106985A (ko) * | 2015-03-03 | 2016-09-13 | 삼성전자주식회사 | 이미지 표시 방법 및 전자 장치 |
CN108319484B (zh) * | 2017-05-17 | 2021-07-09 | 腾讯科技(深圳)有限公司 | 一种应用页面的处理方法、装置及存储介质 |
CN108073438B (zh) * | 2018-01-02 | 2020-05-12 | 武汉斗鱼网络科技有限公司 | 页面展示方法、装置及电子终端 |
-
2019
- 2019-12-30 CN CN201911392605.9A patent/CN111179862B/zh active Active
-
2020
- 2020-10-14 WO PCT/CN2020/120864 patent/WO2021135501A1/zh active Application Filing
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010185972A (ja) * | 2009-02-10 | 2010-08-26 | Seiko Epson Corp | 表示装置及びプログラム |
CN102013247A (zh) * | 2009-09-08 | 2011-04-13 | 北大方正集团有限公司 | 一种电子纸屏幕的刷新控制方法及系统 |
CN102254518A (zh) * | 2010-05-21 | 2011-11-23 | 精工爱普生株式会社 | 控制电光显示器的显示更新 |
US20120105478A1 (en) * | 2010-10-28 | 2012-05-03 | Monotype Imaging Inc. | Presenting Content on Electronic Paper Displays |
CN102622969A (zh) * | 2011-01-25 | 2012-08-01 | 飞思卡尔半导体公司 | 用于处理电子显示器的时间和空间重叠更新的方法和装置 |
CN103247283A (zh) * | 2013-02-21 | 2013-08-14 | 北京君正集成电路股份有限公司 | 一种屏幕刷新方法及装置 |
CN104460937A (zh) * | 2013-09-24 | 2015-03-25 | 株式会社东芝 | 控制装置、显示装置、控制方法和程序产品 |
CN104834370A (zh) * | 2014-02-12 | 2015-08-12 | 株式会社东芝 | 数据处理设备、半导体设备、显示设备和控制方法 |
CN106128357A (zh) * | 2015-05-04 | 2016-11-16 | 三星电子株式会社 | 显示驱动器和驱动显示面板的方法 |
CN110462723A (zh) * | 2017-04-04 | 2019-11-15 | 伊英克公司 | 用于驱动电光显示器的方法 |
CN111179862A (zh) * | 2019-12-30 | 2020-05-19 | 掌阅科技股份有限公司 | 显示页面的刷新方法、阅读器及计算机存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN111179862B (zh) | 2021-05-28 |
CN111179862A (zh) | 2020-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021135501A1 (zh) | 显示页面的刷新方法、阅读器及计算机存储介质 | |
US11373606B2 (en) | Ink screen reading device, screen driving method thereof and storage medium | |
US20200226813A1 (en) | In-flight adaptive foveated rendering | |
WO2019019782A1 (zh) | 图像处理方法、驱动装置、显示面板及可穿戴设备 | |
US20140240260A1 (en) | Method and apparatus for providing user interface | |
US20190346919A1 (en) | Foveated rendering | |
US20160019412A1 (en) | Method for performing a face tracking function and an electric device having the same | |
WO2017088605A1 (zh) | 图片编辑中的图片显示控制方法及装置 | |
CN110390295B (zh) | 一种图像信息识别方法、装置及存储介质 | |
US20160180558A1 (en) | Display apparatus and controlling method | |
US20230021116A1 (en) | Lateral image processing apparatus and method of mirrorless car | |
US9830888B2 (en) | Gaze driven display front of screen performance | |
CN115237522A (zh) | 页面自适应展示方法及装置 | |
US6900813B1 (en) | Method and apparatus for improved graphics rendering performance | |
US11656732B2 (en) | User interface system for display scaling events | |
US20220256097A1 (en) | Method, system and apparatus for implementing omnidirectional vision obstacle avoidance and storage medium | |
US20210304377A1 (en) | Image processing apparatus, image processing method, and non-transitory computer-readable storage medium | |
US20220391084A1 (en) | Information display method, reader, computer storage medium, ink screen reading device and screen projection display system | |
CN111477183A (zh) | 阅读器刷新方法、计算设备及计算机存储介质 | |
CN114691003B (zh) | 墨水屏设备的手写笔记显示方法、墨水屏设备及存储介质 | |
CN114489545B (zh) | 屏幕更新请求的扫描方法、装置、存储介质及相关设备 | |
US20230111826A1 (en) | Device and method for foveated rendering | |
JP7174926B2 (ja) | 表示制御システム、移動体、表示制御方法、表示装置、表示方法及びプログラム | |
CN111782123B (zh) | 一种屏幕显示方法及显示设备 | |
EP4044010A1 (en) | Display screen adjustment method, storage medium and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20910450 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20910450 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20910450 Country of ref document: EP Kind code of ref document: A1 |