CN107728988B - Content display method and device for ink screen - Google Patents

Content display method and device for ink screen Download PDF

Info

Publication number
CN107728988B
CN107728988B CN201710948579.8A CN201710948579A CN107728988B CN 107728988 B CN107728988 B CN 107728988B CN 201710948579 A CN201710948579 A CN 201710948579A CN 107728988 B CN107728988 B CN 107728988B
Authority
CN
China
Prior art keywords
screen
page
content
size
image
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.)
Active
Application number
CN201710948579.8A
Other languages
Chinese (zh)
Other versions
CN107728988A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710948579.8A priority Critical patent/CN107728988B/en
Publication of CN107728988A publication Critical patent/CN107728988A/en
Application granted granted Critical
Publication of CN107728988B publication Critical patent/CN107728988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G02OPTICS
    • G02FOPTICAL DEVICES OR ARRANGEMENTS FOR THE CONTROL OF LIGHT BY MODIFICATION OF THE OPTICAL PROPERTIES OF THE MEDIA OF THE ELEMENTS INVOLVED THEREIN; NON-LINEAR OPTICS; FREQUENCY-CHANGING OF LIGHT; OPTICAL LOGIC ELEMENTS; OPTICAL ANALOGUE/DIGITAL CONVERTERS
    • G02F1/00Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics
    • G02F1/01Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour 
    • G02F1/165Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour  based on translational movement of particles in a fluid under the influence of an applied field
    • G02F1/166Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour  based on translational movement of particles in a fluid under the influence of an applied field characterised by the electro-optical or magneto-optical effect
    • G02F1/167Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour  based on translational movement of particles in a fluid under the influence of an applied field characterised by the electro-optical or magneto-optical effect by electrophoresis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Nonlinear Science (AREA)
  • Human Computer Interaction (AREA)
  • Electrochemistry (AREA)
  • Molecular Biology (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Health & Medical Sciences (AREA)
  • Optics & Photonics (AREA)
  • Chemical & Material Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a content display method and device for an ink screen, and belongs to the technical field of terminals. The method comprises the following steps: acquiring a long screen capture image with the image size larger than the screen size of an ink screen, and determining at least two content pages corresponding to the long screen capture image displayed on the ink screen, wherein the page size of the content pages is not larger than the screen size of the ink screen; and when a page turning instruction is received, displaying at least two content pages page by page in a page turning mode on the ink screen. According to the invention, when the long screenshot image needs to be displayed on the ink screen, the content pages corresponding to the long screenshot image can be displayed in a page-by-page manner, and the ink screen only needs to be refreshed once when one content page is displayed in a page-turning manner, so that the situation of repeated refreshing caused by frequent rolling operation in the related art is avoided, and the screen flashing situation of the ink screen caused by refreshing is effectively reduced.

Description

Content display method and device for ink screen
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a content display method and device for an ink screen.
Background
More and more terminals begin to adopt a double-screen design, namely, the front and back sides of the terminal are provided with display screens. For example, a liquid crystal display or an OLED (Organic Light-Emitting Diode) display may be disposed on the front surface of the terminal, and an ink screen may be disposed on the back surface of the terminal.
In the related art, when a terminal adopting a dual-screen design needs to display longer content on an ink screen, a user needs to slide the longer content down or up because the longer content cannot be completely displayed in one screen area; correspondingly, the terminal refreshes the display content in the ink screen through the received sliding operation.
However, in the above method, since the ink screen generates a relatively obvious splash screen at each refresh, frequent sliding operations greatly increase the refresh times of the ink screen when displaying the content, thereby causing a relatively serious splash screen problem.
Disclosure of Invention
In order to solve the problem that the ink screen has a serious screen flashing condition due to frequent sliding operation in the related art, the embodiment of the invention provides a content display method and device for the ink screen. The technical scheme is as follows:
in a first aspect, a content display method for an ink screen is provided, the method including:
acquiring a long screen capture image of which the image size is larger than the screen size of the ink screen, wherein the long screen capture image is obtained by carrying out screen capture processing on an integral view corresponding to the content displayed in the main screen;
determining at least two content pages corresponding to the long screenshot image displayed on the ink screen, wherein the page size of the content pages is not larger than the screen size of the ink screen;
and when a page turning instruction is received, displaying at least two content pages page by page in a page turning mode on the ink screen.
Optionally, determining at least two content pages corresponding to the long screenshot image displayed on the ink screen includes:
acquiring a first drawing position corresponding to the ith content page, wherein the first drawing position is a coordinate position of the upper left corner of the ith content page in a preset coordinate system, i is a positive integer, and the initial value of i is 1;
adjusting the first drawing position according to the screen size of the ink screen to obtain a second drawing position, wherein the second drawing position is a coordinate position of the lower left corner of the ith content page in a preset coordinate system;
drawing the long screen capture image according to the second drawing position and the screen size of the ink screen to obtain an i +1 th content page;
and repeating the steps until the second drawing position reaches a preset position, wherein the preset position is a coordinate position of the lower left corner of the long screenshot image in a preset coordinate system.
Optionally, the first drawing position includes a first abscissa and a first ordinate, and the first drawing position is adjusted according to the screen size of the ink screen to obtain a second drawing position, including:
adding the first vertical coordinate in the first drawing position and the length value of the ink screen to obtain a second vertical coordinate;
and determining a second drawing position according to the first abscissa and the second ordinate.
Optionally, before acquiring the long screenshot image with the image size larger than the screen size of the ink screen, the method further includes:
acquiring a target view corresponding to a main screen in a first video memory, wherein the first video memory is a memory storage area used for storing an image to be displayed by the main screen, and the target view comprises an integral view corresponding to the content being displayed in the main screen;
the method comprises the steps of performing screen capture processing on a target view to obtain a long screen capture image, storing the long screen capture image in a cache and/or a second video memory, wherein the cache is a memory storage space shared by a main screen and an ink screen, and the second video memory is a memory storage area which is different from the first video memory and is used for storing an image to be displayed by the ink screen;
acquiring a long screenshot image having an image size greater than a screen size of an ink screen, comprising:
and acquiring the long screen capture image in the cache or the second video memory.
Optionally, the screen capturing process performed on the target view to obtain a long screen capture image includes:
setting a measurement mode to an unspecified mode, the measurement mode being used to indicate a spatial size of a measurement space when a target view is measured, the unspecified mode being used to indicate that the spatial size of the measurement space is an arbitrary value;
under an unspecified mode, measuring the target view to obtain the actual view size of the target view;
and carrying out layout and drawing according to the actual view size of the target view to obtain the long screen capture image.
Optionally, the main screen and the ink screen are two display screens arranged back to back, and the main screen is a liquid crystal display screen or an organic light emitting diode OLED display screen.
In a second aspect, there is provided a content display device including an ink screen, the device comprising:
the first acquisition module is used for acquiring a long screen capture image of which the image size is larger than the screen size of the ink screen, wherein the long screen capture image is obtained by carrying out screen capture processing on an integral view corresponding to the content displayed in the main screen;
the determining module is used for determining at least two content pages corresponding to the long screenshot image displayed on the ink screen, and the page size of each content page is not larger than the screen size of the ink screen;
and the display module is used for displaying at least two content pages page by page in a page turning mode on the ink screen when receiving a page turning instruction.
Optionally, the determining module includes: the device comprises an acquisition unit, an adjustment unit, a drawing unit and a circulation unit;
the obtaining unit is used for obtaining a first drawing position corresponding to the ith content page, wherein the first drawing position is a coordinate position of the upper left corner of the ith content page in a preset coordinate system, i is a positive integer, and the initial value of i is 1;
the adjusting unit is used for adjusting the first drawing position according to the screen size of the ink screen to obtain a second drawing position, and the second drawing position is a coordinate position of the lower left corner of the ith content page in a preset coordinate system;
the drawing unit is used for drawing the long screen capture image according to the second drawing position and the screen size of the ink screen to obtain the (i + 1) th content page;
and the circulating unit is used for repeatedly executing the steps until the second drawing position reaches a preset position, and the preset position is a coordinate position of the lower left corner of the long screenshot image in a preset coordinate system.
Optionally, the first drawing position includes a first abscissa and a first ordinate, and the adjusting unit is further configured to add the first ordinate in the first drawing position and the length value of the ink screen to obtain a second ordinate; and determining a second drawing position according to the first abscissa and the second ordinate.
Optionally, the apparatus further includes: the second acquisition module and the screen capture module;
the second acquisition module is used for acquiring a target view corresponding to the main screen in the first video memory, the first video memory is a memory storage area used for storing an image to be displayed by the main screen, and the target view comprises an integral view corresponding to the content being displayed in the main screen;
the screen capture module is used for carrying out screen capture processing on the target view to obtain a long screen capture image, and storing the long screen capture image in a cache and/or a second memory, wherein the cache is a memory storage space shared by the main screen and the ink screen, and the second memory is a memory storage area which is different from the first memory and is used for storing the image to be displayed by the ink screen;
the first acquisition module is further used for acquiring the long screen capture image in the cache or the second video memory.
Optionally, the screen capture module is further configured to set the measurement mode to an unspecified mode, where the measurement mode is used to indicate a spatial size of a measurement space when the target view is measured, and the unspecified mode is used to indicate that the spatial size of the measurement space is an arbitrary value; under an unspecified mode, measuring the target view to obtain the actual view size of the target view; and carrying out layout and drawing according to the actual view size of the target view to obtain the long screen capture image.
Optionally, the main screen and the ink screen are two display screens arranged back to back, and the main screen is a liquid crystal display screen or an organic light emitting diode OLED display screen.
In a third aspect, a display device is provided, where the display device includes a processor and a memory, where the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the content display method according to the first aspect and any one of the possible implementation manners of the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the content display method according to the first aspect and any one of the possible implementation manners of the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the method includes the steps that a long screen capture image with the image size larger than the screen size of an ink screen is obtained, at least two content pages corresponding to the long screen capture image displayed on the ink screen are determined, when a page turning instruction is received, the at least two content pages are displayed on the ink screen page by page in a page turning mode, and the page size of the content pages is not larger than the screen size of the ink screen; when the long screen image needs to be displayed on the ink screen, the content pages corresponding to the long screen image can be displayed in a page-by-page mode, and the ink screen is only refreshed once when one content page is displayed in a page-turning mode, so that the situation of multiple refreshes caused by frequent rolling operation in the related technology is avoided, and the screen flashing situation of the ink screen caused by refreshing is effectively reduced.
Drawings
Fig. 1 is a schematic structural diagram of a display device according to a content display method provided by an embodiment of the present invention;
FIG. 2 is a flow chart of a content display method provided by an embodiment of the invention;
fig. 3 is a schematic diagram of a software and hardware architecture of a terminal running an Android operating system according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a method for displaying content in a terminal according to an embodiment of the present invention;
fig. 5 is a flowchart of a content display method according to another embodiment of the present invention;
FIG. 6 is a diagram illustrating a page processing method according to another embodiment of the present invention;
fig. 7 is a flowchart of a content display method according to another embodiment of the present invention;
FIG. 8 is a schematic diagram of an interface involved in a content display method according to another embodiment of the present invention;
fig. 9 is a block diagram of a content display apparatus provided by an embodiment of the present invention;
fig. 10 is a block diagram of a content display apparatus provided in another embodiment of the present invention;
fig. 11 is a block diagram of a display device provided in one embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a schematic structural diagram of a display device according to a content display method provided by an embodiment of the present invention is shown.
The display device includes a main screen 12 and an ink screen 14.
The display device is also called a dual-screen terminal, and includes at least one of a mobile phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, a laptop portable computer, and a desktop computer.
The main screen 12 is a liquid crystal display screen or an OLED display screen; illustratively, the liquid crystal display panel includes at least one of an STN (super twisted Nematic) screen, an ufb (ultra Film bright) screen, a TFD (Thin Film diode) screen, and a TFT (Thin Film Transistor) screen.
The ink screen 14 is also called as a secondary screen, and the main screen 12 and the ink screen 14 are two display screens arranged in a back-to-back mode, namely the main screen 12 is positioned on the front side of the display device, and the ink screen 14 is positioned on the back side of the display device; alternatively, main screen 12 and ink screen 14 are two display screens disposed on the same surface. This embodiment is not limited thereto.
In the following description, only two display panels are described as an example in which the main panel 12 and the ink panel 14 are disposed to face away from each other. That is, the front of the display device is provided with a main screen 12, and the back of the display device is provided with an ink screen 14. The upper direction of the main screen 12 corresponds to the upper direction of the ink screen 14; the left direction of the main screen 12 corresponds to the right direction of the ink screen 14; the lower direction of the main screen 12 corresponds to the lower direction of the ink screen 14; the right direction of the main screen corresponds to the left direction of the ink screen 14.
The screen size of the main screen 12 may be the same as or different from the screen size of the ink screen 14. In the following, description will be given only by taking as an example that the screen size of the main screen 12 is equal to the screen size of the ink screen 14.
It should be noted that, the screen size involved in the embodiments of the present invention is not the length of a diagonal line on the display screen, and the screen size includes a length value and/or a width value of the display screen; for example, the screen size includes a length value of the display screen, and for example, the screen size includes a length value and a width value of the display screen, and for example, the screen size of the ink screen is a product of the length value and the width value of the ink screen.
Alternatively, the screen size of the main screen 12 includes a length value and a width value of the main screen 12, and the screen size of the ink screen 14 includes a length value and a width value of the ink screen 14, and the following description will be given only by taking the case where the screen size of the main screen 12 is the same as the screen size of the ink screen 14 as an example.
Optionally, when the display device needs to display content, the main screen 12 and the ink screen 14 display simultaneously, and both the two display screens are in a display state at this time; or, the main screen 12 and the ink screen 14 do not display at the same time, that is, only one display screen displays at the same time, and at this time, one display screen of the main screen 12 and the ink screen 14 is in a display state, and the other display screen is in a non-display state. The display state is a state that the display screen is started to display, and the non-display state is a state that the display screen is not started. The following description will be given by taking as an example only one display screen at the same time.
Generally, when content is displayed on the main screen 12, that is, the main screen 12 is in a display state and the ink screen 14 is in a non-display state, if the display device receives a first switching instruction corresponding to the switching inlet 16, the display device switches the display screen in the display state from the main screen 12 to the ink screen 14 according to the first switching instruction, and displays the content on the ink screen 14, that is, the main screen 12 is in the non-display state and the ink screen 14 is in the display state. Wherein the content comprises images and/or text. The following description will be given only by taking an example in which contents include images.
Referring to fig. 2, a flowchart of a content display method according to an embodiment of the invention is shown. The present embodiment is exemplified by applying the content display method to the ink screen 14 shown in fig. 1. The content display method includes:
step 201, a long screen capture image with an image size larger than the screen size of the ink screen is obtained, and the long screen capture image is obtained by performing screen capture processing on an overall view corresponding to the content displayed in the main screen.
The display device acquires a long screen shot image having an image size larger than a screen size of the ink screen. Wherein the image size of the long screenshot image comprises a length value and/or a width value of the long screenshot image.
Optionally, the length value of the long screenshot image is greater than the length value of the ink screen, and the width of the long screenshot image is equal to the width value of the ink screen.
Optionally, the display device receives a first switching instruction, where the first switching instruction is used to instruct to switch the display screen in the display state from the main screen to the ink screen; when the display device receives the first switching instruction, a target view corresponding to the main screen is obtained, and screen capture processing is performed on the target view to obtain a long screen capture image.
Before the display device receives the first switching instruction, the switching broadcast is registered when the application is started, and a switching event associated with the switching broadcast is set and monitored. The switching broadcast comprises a broadcast registered for an application and used for triggering the display screen in the display state to be switched, and the switching event comprises an event triggered by an input operation corresponding to a switching entrance.
The method comprises the steps that a switching inlet is displayed on a main screen of the display device, when the display device receives input operation corresponding to the switching inlet, a first switching instruction is determined to be received, a switching event is determined according to the first switching instruction, and the input management service is informed to send switching broadcast to an application.
The switching entry is an operable control for triggering a first switching instruction. Optionally, the switching entry includes at least one of a button, a manipulable item, and a slider.
The input operation is a preset user operation corresponding to the switching entry. Optionally, the input operation includes any one or a combination of more of a click operation, a slide operation, a press operation, and a long press operation.
In other possible implementations, the input operation may also be implemented in a voice form. For example, a user inputs a voice signal of a switching entry in a voice form in the display device, after the display device obtains the voice signal, the display device analyzes the voice signal to obtain voice content, and when a keyword matched with preset information of the switching entry exists in the voice content, the display device determines that the switching entry is triggered, and receives a first switching instruction corresponding to the switching entry.
The display device stores a target view corresponding to the main screen in advance.
It is understood that the target view includes an overall view corresponding to the content being displayed in the home screen, i.e., a view corresponding to the content being displayed in the home screen and a view corresponding to other content not displayed in the home screen associated with the content being displayed. The content includes, but is not limited to, text, such as words on a web page, or pictures and words on a web page. That is, the step can perform screen capture processing on the whole view corresponding to the webpage including the characters displayed on the main screen, convert the whole view into a long screen capture image, and further push the long screen capture image to the ink screen for display.
For example, the web page a includes 5 pages of content, and the content being displayed in the home screen is page 1 of the web page a, then the target view is an overall view corresponding to the 5 pages of content of the web page a.
The display device determines a starting screen capture position and an ending screen capture position of the target view according to the obtained target view, performs one-time screen capture processing on the target view according to the starting screen capture position and the ending screen capture position to obtain a long screen capture image, and stores the obtained long screen capture image in the display device.
The screen capture processing comprises the steps of measurement, layout, drawing and the like. In the following embodiments, the screen capture process will be further described, and will not be described first.
Step 202, at least two content pages corresponding to the long screenshot image displayed on the ink screen are determined, and the page size of the content pages is not larger than the screen size of the ink screen.
The page size of each content page is smaller than or equal to the screen size of the ink screen, and the page size of each content page comprises a length value and/or a width value of each content page.
Optionally, the length value of the content page is smaller than or equal to the length value of the ink screen, and the width value of the content page is equal to the width value of the ink screen.
Optionally, when the display screen in the display state is switched from the main screen to the ink screen, the 1 st content page of the long screenshot image starts to be displayed on the ink screen, or the ith content page of the long screenshot image starts to be displayed on the ink screen, where the ith content page includes the content being displayed on the main screen when the main screen is switched, and i is a positive integer.
Step 203, when a page turning instruction is received, displaying at least two content pages page by page in a page turning mode on the ink screen.
When the ith content page is displayed in the display equipment, if a page turning instruction corresponding to the ink screen is received, acquiring the (i + 1) th content page corresponding to the long screenshot image according to the page turning instruction, and switching and displaying the (i) th content page into the (i + 1) th content page on the ink screen in a page turning mode; or obtaining the ith-1 content page corresponding to the long screen capture image according to the page turning instruction, and switching and displaying the ith content page as the ith-1 content page on the ink screen in a page turning mode.
The display device obtains the (i + 1) th content page, which includes but is not limited to the following two possible implementation manners.
In a first possible implementation manner, the display device performs paging processing on the long screenshot image stored in the display device in advance according to a preset policy to obtain at least two content pages. And after determining at least two content pages corresponding to the long screenshot image to be displayed, displaying the at least two content pages page by page in a page turning mode.
In a second possible implementation manner, the display device does not perform paging processing on the long screenshot image in advance, and when the display device needs to display the (i + 1) th content page in the ink screen, the display device draws the (i + 1) th content page according to a preset policy and the stored long screenshot image. The present embodiment does not describe the preset strategy, and the following embodiments can be referred to for relevant details.
The process of obtaining the (i-1) th content page by the display device can be similar to the process of obtaining the (i + 1) th content page by reference, and is not described herein again.
It should be noted that, when "size" (including image size, screen size, page size, etc.) is referred to in the embodiments of the present invention, the description will be given only by taking an example in which the size includes a length value and a width value, and the width values of the respective sizes are the same.
In summary, in the embodiment of the present invention, a long screenshot image with an image size larger than a screen size of an ink screen is obtained, and at least two content pages corresponding to the long screenshot image displayed on the ink screen are determined, where the page size of the content page is not larger than the screen size of the ink screen; when a page turning instruction is received, displaying at least two content pages on the ink screen page by page in a page turning mode; when the long screen image needs to be displayed on the ink screen, the content pages corresponding to the long screen image can be displayed in a page-by-page mode, and the ink screen is only refreshed once when one content page is displayed in a page-turning mode, so that the situation of multiple refreshes caused by frequent rolling operation in the related technology is avoided, and the screen flashing situation of the ink screen caused by refreshing is effectively reduced.
Optionally, the display device in the embodiments of fig. 1 and fig. 2 is a terminal running an Android operating system. For convenience of description, first, a software and hardware architecture of a terminal running an Android operating system is schematically illustrated. As shown in fig. 3, the terminal sequentially includes, in order from top to bottom: an application layer 301, a Framework layer 302, a surface flicker 303 layer, a HAL layer 304, an underlying driver 305, and a hardware layer 306.
The application layer 301 is a layer where an application program of the Android operating system is located. Various applications run at this layer, such as: desktop applications, wallpaper applications, status bar applications, clock applications, and the like.
The Framework layer 302 is used to provide system-level services. Such as: power management, message queuing, packet management, etc. Framework layer 302 is also used to provide a hardware function call interface to application layer 301.
The surfacemaker layer 303 is a server side program of the graphic display system. The SurfaceFlinger layer 303 is used to merge display layers provided by different applications into the final display content. For example, the icons provided by the desktop application, the wallpapers provided by the wallpaper application, and the status bars provided by the status application are sequentially superimposed according to a predetermined layer, so as to generate the final display content on the display screen. Wherein, the layer on the upper layer can cover the layer on the lower layer.
The HAL (Hardware Abstraction Layer) Layer 304 is a Hardware Interface Layer that abstracts the concrete Hardware Layer 306, and the Hardware Interface Layer is responsible for implementing the functions and control of the concrete Hardware Layer 306, and provides a uniform API (application programming Interface) Interface for the above surfafinger Layer 303 and the Framework Layer 302.
The underlying driver 305 is a program that communicates data with hardware in the hardware layer 306. The underlying driver 305 has the capability to obtain hardware parameters in the hardware layer 306, for example, the underlying driver 304 has the capability to read screen parameters of a display screen.
The hardware layer 306 includes: network components, wireless communication components, external memories, display screens, display chips and other hardware. In this embodiment, the hardware layer 306 includes the home screen 12 and the ink screen 14.
Further, referring to fig. 4, the process of the terminal displaying the content on the home screen 12 includes: a plurality of layers 42 (including layer 0, layer 1, and up to layer n) to be synthesized corresponding to the main screen 12 are obtained by a GPU (Graphics Processing Unit) 41 in the terminal, where n is a positive integer, the plurality of layers 42 to be synthesized corresponding to the main screen 12 are synthesized by the GPU41, a synthesized first image is stored in a first video memory 43, the first video memory 43 is a memory storage area for storing an image to be finally displayed by the main screen 12, the first image stored in the first video memory 43 is obtained by a hardware controller 44 in the terminal, and the first image is transmitted to the main screen 12 for display.
When the GPU41 receives a first switching instruction for instructing to switch the display screen in the display state from the main screen 12 to the ink screen 14, acquiring a target view corresponding to the main screen 12 from the first display memory 43, performing screen capture processing on the target view by the GPU41 to obtain a long screen capture image, and storing the long screen capture image in the cache 45 and the second display memory 46; the buffer 45 is also called a shared buffer, and is a memory storage space shared by the main screen 12 and the ink screen 14, and the second video memory 46 is a memory storage area different from the first video memory 43 and used for storing an image to be finally displayed by the ink screen 14. The hardware controller 44 obtains at least two content pages corresponding to the long screenshot image, and controls the ink screen 14 to display the at least two content pages page by page in a page-turning manner.
The obtaining, by the hardware controller 44, at least two content pages corresponding to the long screenshot image includes: the GPU41 paginates and pushes each content page corresponding to the long screenshot image in the cache 45 or the second video memory 46 to the hardware controller 44; alternatively, the hardware controller 44 actively retrieves each content page from the second video memory 46.
It should be noted that the first video memory 43, the buffer 45, and the second video memory 46 are all memory storage spaces, and the dividing manner of the memory storage spaces is not limited in this embodiment. For convenience of description, in the following embodiments, the first video memory 43, the buffer 45, and the second video memory 46 are collectively referred to as a memory.
It should be noted that, the following description only takes the 1 st content page displayed on the ink screen when the display screen in the display state is switched from the home screen to the ink screen, the related description of the content display method when the display device acquires the content page is the first possible implementation manner described above refers to the embodiment provided in fig. 5, and the related description of the content display method when the display device acquires the content page is the second possible implementation manner described above refers to the embodiment provided in fig. 7.
Referring to fig. 5, a flowchart of a content display method according to another embodiment of the invention is shown. The present embodiment is illustrated by applying the content display method to the implementation environment shown in fig. 4. The content display method includes:
step 501, a target view corresponding to a main screen in a first video memory is obtained, where the first video memory is a memory storage area for storing an image to be displayed by the main screen.
The GPU detects input operation corresponding to the switching entry in real time or detects input operation corresponding to the switching entry at preset time intervals, and when the input operation corresponding to the switching entry is detected, the first switching instruction is determined to be received.
The GPU acquires a target view corresponding to the main screen from the first video memory according to the first switching instruction; for details of obtaining the target view corresponding to the home screen, reference may be made to the embodiment shown in fig. 2.
Step 502, performing screen capture processing on the target view to obtain a long screen capture image, and storing the long screen capture image in a cache and/or a second display memory, wherein the cache is a memory storage space shared by the main screen and the ink screen, and the second display memory is a memory storage area different from the first display memory and used for storing an image to be displayed by the ink screen.
Before the GPU carries out screen capture processing on the target view, the GPU sets the measurement mode to be an unspecified mode according to a first switching instruction, measures the target view to obtain the actual view size of the target view in the unspecified mode, and carries out layout and drawing according to the actual view size of the target view to obtain a long screen capture image.
The measurement mode is used for indicating the space size of the measurement space when the target view is measured, and the unspecified mode is used for indicating that the space size of the measurement space is an arbitrary value.
The measurement mode includes three modes, which are a precise mode, a maximum mode and an unspecified mode. Wherein the precise mode is used to indicate that the spatial dimension of the measurement space is a preset value, the maximum mode is used to indicate the maximum value of the spatial dimension of the measurement space, and the unspecified mode is used to indicate that the spatial dimension of the measurement space is an arbitrary value.
Optionally, the measurement mode is a measurepec mode, the accurate mode is a measurepec.exact mode, the maximum mode is a measurepec.at _ MOST mode, and the unspecified mode is a measurepec.unspecified mode.
For example, when the GPU receives the first switching instruction, the measurement mode is set to the measurepec.
The actual view size of the target view is larger than the screen size of the home screen, and the actual view size of the target view includes a length value and/or a width value of the target view. Illustratively, the length value of the target view is greater than the length value of the home screen, and the width value of the target view is equal to the width value of the home screen.
Optionally, the GPU calls a first function to perform layout to obtain a display space, where the display space is larger than the screen size of the main screen, and then the GPU calls a second function to perform drawing to obtain a long screenshot image, where the long screenshot image is stored in the cache and/or the second display memory, and the long screenshot image is a bitmap file (english: bitmap) object.
Illustratively, the first function is a layout function, and the second function includes a setDrawingCacheEnabled function, a buildDrawingCache function, and a draw function.
Step 503, acquiring the long screen capture image in the cache or the second video memory.
Optionally, the GPU acquires the long screenshot image from a cache or a second video memory.
Step 504, a first drawing position corresponding to the ith content page is obtained, the first drawing position is a coordinate position of the upper left corner of the ith content page in a preset coordinate system, i is a positive integer, and the initial value of i is 1.
Wherein the ith content page is the content being displayed on the ink screen.
Before the GPU acquires the first drawing position corresponding to the ith content page displayed on the ink screen, the method further includes: and the GPU takes the upper left corner of the long screenshot image as an origin coordinate, creates a two-dimensional coordinate system corresponding to the long screenshot image, the two-dimensional coordinate system is used for indicating the coordinate position of each pixel point in the long screenshot image, draws according to the origin coordinate and the screen size of the ink screen, obtains the 1 st content page corresponding to the long screenshot image, and displays the 1 st content page on the ink screen.
Illustratively, the screen size of the ink screen is H X, where H is the length value of the ink screen and X is the width value of the ink screen. As shown in fig. 6, the GPU takes the upper left corner of the long screenshot image as the origin coordinate (0, 0), and creates a two-dimensional coordinate system corresponding to the long screenshot image, which includes N content pages. The GPU draws according to the origin coordinate (0, 0) and the screen size "H X" of the ink screen to obtain the 1 st content page 61, where the coordinate of the upper left corner of the 1 st content page 61 is (0, 0), the coordinate of the upper right corner is (X, 0), the coordinate of the lower left corner is (0, H), and the coordinate of the lower right corner is (X, H).
And the GPU acquires a first drawing position corresponding to the ith content page displayed on the ink screen, wherein the first drawing position comprises a first abscissa and a first ordinate. For example, when the value of i is 1, the GPU acquires a first drawing position (0, 0) corresponding to the 1 st content page displayed on the ink screen.
And 505, adjusting the first drawing position according to the screen size of the ink screen to obtain a second drawing position.
The GPU adjusts the first drawing position according to the screen size of the ink screen to obtain a second drawing position, and the method comprises the following steps: and adding the first ordinate in the first drawing position and the length value of the ink screen to obtain a second ordinate, and determining a second drawing position according to the first abscissa and the second ordinate.
Illustratively, for the 1 st content page displayed on the current ink screen, the first drawing position corresponding to the 1 st content page is (0, 0), the first ordinate "0" in the first drawing position is added to the length value "H" of the ink screen to obtain the second ordinate "H", and the second drawing position is determined to be (0, H).
In step 506, it is determined whether the second drawing position is a preset position.
The preset position is a coordinate position of the lower left corner of the long screen capture image in a preset coordinate system.
The GPU judges whether the second drawing position is a preset position, if the second drawing position is the preset position, the long screenshot image is shown to be paged and completed, and the process is ended; if the second drawing position is not the preset position, go to step 507.
And 507, when the second drawing position is not the preset position, drawing the long screenshot image according to the second drawing position and the screen size of the ink screen to obtain the (i + 1) th content page.
And the GPU draws the long screen capture image according to the second drawing position and the screen size of the ink screen to obtain the (i + 1) th content page. Illustratively, with continued reference to fig. 6, the GPU draws the long screenshot image according to the second drawing position (0, H) and the screen size "H × X" of the ink screen to obtain a 2 nd content page, where the coordinate of the upper left corner of the 2 nd content page 62 is (0, H), the coordinate of the upper right corner is (X, H), the coordinate of the lower left corner is (0, 2H), and the coordinate of the lower right corner is (X, 2H).
And step 508, after the (i + 1) th content page is obtained through drawing, adding 1 to i, and re-executing the step of obtaining the first drawing position corresponding to the ith content page.
And the GPU adds 1 to i after drawing the (i + 1) th content page, and re-executes the step of obtaining the first drawing position corresponding to the i-th content page, thereby determining at least two content pages corresponding to the long screenshot image displayed on the ink screen.
Optionally, the GPU stores the obtained at least two content pages and the page identifier corresponding to each content page.
At step 509, at least two pages of content are displayed page by page on the ink screen in a page-turning manner.
Optionally, when the GPU needs to display the ith content page in the ink screen, the ith content page corresponding to the page identifier is obtained according to the page identifier of the ith content page, and the obtained ith content page is displayed on the ink screen in a page-turning manner.
In summary, the present embodiment further sets the measurement mode to the unspecified mode, where the measurement mode is used to indicate the spatial size of the measurement space when the target view is measured; under an unspecified mode, measuring the target view to obtain the actual view size of the target view; performing layout and drawing according to the actual view size of the target view to obtain a long screenshot image; the unspecified mode is used for indicating that the space size of the measurement space is an arbitrary value, so that the GPU can obtain the actual view size of the target view when measuring the target view, the long screen capture image corresponding to the target view can be obtained by one-time screen capture processing, and the processing efficiency during screen capture processing is greatly improved.
Referring to fig. 7, a flowchart of a content display method according to another embodiment of the invention is shown. The present embodiment is illustrated by applying the content display method to the implementation environment shown in fig. 4. The content display method includes:
step 701, the GPU obtains a target view corresponding to the home screen in the first video memory.
And step 702, the GPU performs screen capturing processing on the target view to obtain a long screen capturing image, and the long screen capturing image is stored in a cache and/or a second video memory.
In step 703, the GPU obtains the long screenshot image in the cache or the second video memory.
In step 704, the GPU determines the ith content page corresponding to the long screenshot image displayed on the ink screen.
Step 705, when a first page turning instruction corresponding to the ink screen is received, the GPU acquires a first drawing position corresponding to the ith content page displayed on the ink screen.
And when the ith content page is displayed on the ink screen, if the GPU receives an input operation corresponding to the first page-turning inlet, determining that a first page-turning instruction corresponding to the ink screen is received.
The first page turning instruction is used to instruct to turn the ith content page to the (i + 1) th content page, the first page turning entry is an operable control for triggering the first page turning instruction, and descriptions related to the operable control and the input operation may refer to the description related to the switching entry and the input operation corresponding to the switching entry in the above embodiment, which is not described herein again.
Optionally, a second page-turning entry is also displayed on the ink screen, and when the GPU receives an input operation corresponding to the second page-turning entry, it is determined that a second page-turning instruction corresponding to the ink screen is received, and step 709 is executed.
The second page turning instruction is different from the first page turning instruction. The second page turning instruction is used for indicating that the ith content page is turned to the (i-1) th content page, and the second page turning inlet is an operable control used for triggering the second page turning instruction.
It should be noted that, when the 1 st content page of the long screenshot image is displayed on the ink screen, because the 1 st content page does not have the previous content page, the first page turning entry is also displayed on the ink screen, or the first page turning entry and the second page turning entry are displayed, and at this time, when the GPU receives an input operation corresponding to the second page turning entry, no operation is performed. Similarly, if the long screenshot image includes N content pages, when the nth content page of the long screenshot image is displayed on the ink screen, because the next content page does not exist in the nth content page, a second page-turning entry is also displayed on the ink screen, or a first page-turning entry and a second page-turning entry are displayed, and at this time, when the GPU receives an input operation corresponding to the first page-turning entry, no operation is performed.
Step 706, the GPU adjusts the first drawing position according to the screen size of the ink screen to obtain a second drawing position.
And step 707, the GPU draws the long screenshot image according to the second drawing position and the screen size of the ink screen to obtain the (i + 1) th content page.
The GPU may refer to the embodiments provided in fig. 5 and 6 for obtaining the relevant details of the i +1 th content page by drawing according to the first drawing position corresponding to the i-th content page, and details are not repeated here.
At step 708, the GPU displays the (i + 1) th content page on the ink screen in a first page-turning manner.
The GPU obtains the (i + 1) th content page in the memory through the hardware controller, transmits the (i + 1) th content page to the ink screen, and displays the (i + 1) th content page on the ink screen in a first page turning mode. The first page turning form is used for indicating the page turning form when the ith content page is turned to the (i + 1) th content page.
And step 709, when a second page turning instruction corresponding to the ink screen is received, the GPU acquires a first drawing position corresponding to the ith content page displayed on the ink screen.
When the GPU receives the second page turning instruction corresponding to the ink screen, the manner of obtaining the first drawing position corresponding to the ith content page displayed on the ink screen may be similar to the process of obtaining the first drawing position in the above step, which is not described herein again.
And step 710, the GPU adjusts the first drawing position according to the screen size of the ink screen to obtain a third drawing position.
The GPU adjusts the first drawing position according to the screen size of the ink screen to obtain a third drawing position, and the method comprises the following steps: and subtracting the length value of the ink screen from the first ordinate in the first drawing position to obtain a third ordinate, and determining a third drawing position according to the first abscissa and the third ordinate.
Illustratively, with reference to fig. 6, for the 4 th content page displayed on the current ink screen, the first drawing position corresponding to the 4 th content page is (0, 3H), when the GPU receives the second page turning instruction corresponding to the ink screen, the length value "H" of the ink screen is subtracted from the first ordinate "3H" in the first drawing position to obtain a third ordinate "2H", and the third drawing position (0, 2H) is determined according to the first abscissa "0" and the third ordinate "2H".
And 711, drawing the long screenshot image by the GPU according to the third drawing position and the screen size of the ink screen to obtain the (i-1) th content page.
Illustratively, with continued reference to fig. 6, the GPU draws the long screenshot image according to the third drawing position (0, 2H) and the screen size "H × X" of the ink screen to obtain a 3 rd content page, where the coordinates of the upper left corner of the 3 rd content page 63 are (0, 2H), the coordinates of the upper right corner are (X, 2H), the coordinates of the lower left corner are (0, 3H), and the coordinates of the lower right corner are (X, 3H).
At step 712, the GPU displays the (i-1) th content page on the ink screen in a second page-flipping fashion.
And the GPU acquires the (i-1) th content page in the memory through the hardware controller, transmits the (i-1) th content page to the ink screen, and displays the (i-1) th content page on the ink screen in a second page turning mode. The second page turning form is used for indicating the page turning form when the page is turned from the ith content page to the (i-1) th content page.
It should be noted that, when the first page turning form is a page turning down form, the second page turning form is a page turning up form; when the first page turning form is a right page turning form, the second page turning form is a left page turning form. The present embodiment does not limit the arrangement of the first page turning form and the second page turning form.
It should be noted that, in the embodiment provided in fig. 2, the "preset policy" in the "display device drawing the ith content page according to the preset policy and the stored long screenshot image" includes at least one of the steps 705 to 712.
In summary, in this embodiment, when a first page turning instruction corresponding to the ink screen is received, a first drawing position corresponding to an ith content page displayed on the ink screen is obtained, the first drawing position is adjusted according to the screen size of the ink screen to obtain a second drawing position, the long screenshot image is drawn according to the second drawing position and the screen size of the ink screen to obtain an (i + 1) th content page, and the (i + 1) th content page is displayed on the ink screen in a first page turning manner; the GPU can not preprocess (such as paging processing) the long screenshot image, when the (i + 1) th content page needs to be displayed in the ink screen, the (i + 1) th content page is drawn according to the preset strategy and the stored long screenshot image, and therefore computing resources and storage space of the GPU in the preprocessing process are saved.
In an illustrative example, referring to fig. 8, a user is viewing a web page a using a home screen 12 of a terminal, i.e. the home screen 12 is in a display state, an ink screen 14 is in a non-display state, and the home screen 12 displays a part of content of the web page a, which includes the following text: "as small asThe time of the day is hastening, and the winter comes to the sun and comes to the spring. Five-line embroideryLine of weakness, blown young shoot of a reedSix tubes float ash. For those with wax in shore, Shuliu and Shanyi should be put in plum. The cloud is different in country and country, teaches children and covers the palm cup. "the main screen 12 also displays a cutAnd a switching entry 81, wherein characters "switching to an ink screen" are displayed on the switching entry 81, when a user needs to use the ink screen 14 to view contents, the user clicks the switching entry 81, and correspondingly, the terminal detects a click operation corresponding to the switching entry 81, acquires a target view corresponding to the 3 pages of contents of the webpage a according to the click operation, performs screen capture processing on the target view to obtain a long screen capture image, and determines three content pages corresponding to the long screen capture image. When the display screen in the display state is switched from the main screen 12 to the ink screen 14, a 1 st content page of the web page a is displayed on the ink screen 14, where the 1 st content page includes the following text: "as small asThe time of the day is hastening, and the winter comes to the sun and comes to the spring. Five-line embroideryLine of weakness, blown young shoot of a reedSix tubes float ash. For those with wax in shore, Shuliu and Shanyi should be put in plum. The cloud is different in country and country, teaches children and covers the palm cup. ". A page down entry 82 is also displayed on the ink screen 14, the page down entry 82 displays the text "next page", when the user clicks on the page down entry 82, the terminal receives a page down instruction, and displays a 2 nd content page on the ink screen 14 in a page down form, where the 2 nd content page includes a landscape image. When the terminal displays the 2 nd page of content on the ink screen 14, a page down entry 82 and a page up entry 83 are also displayed on the ink screen 14, the page down entry 82 displays the text "next page" and the page up entry 83 displays the text "previous page". When the user clicks on the page down entry 82, the terminal receives a page down command and displays a 3 rd page of content on the ink screen 14 in a page down form, where the 3 rd page of content includes the following text "r is as small as: the day before winter solstice, namely the second day of winter solstice. Fifthly, texturing: refers to a five-color line. As recorded in Tang miscellaneous records, women in the uterus will grow gradually and have the first line of action more than usual after the winter solstice. Line of weakness: ancient women embroider, and after winter comes, the day is gradually longer, so that a plurality of threads can be embroidered. ③ young shoot of a reed: nascent reed. ". It should be noted that, when the user clicks the page up entry 83, the terminal receives the page up command and displays the previous page again on the ink screen 14 in the page up modeFor the content paging case, the case of clicking the page up entry 83 can be similar to the description of clicking the page down entry 82, and is not described herein again.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 9, a block diagram of a content display device according to an embodiment of the invention is shown. The content display apparatus can be implemented as all or a part of the display device in fig. 1 by a dedicated hardware circuit, or a combination of hardware and software, and includes the following modules: a first obtaining module 910, a determining module 920 and a displaying module 930.
A first obtaining module 910, configured to obtain a long screenshot image of which an image size is larger than a screen size of an ink screen, where the long screenshot image is obtained by performing screenshot processing on an overall view corresponding to content displayed in a main screen;
a determining module 920, configured to determine at least two content pages corresponding to the long screenshot image displayed on the ink screen, where a page size of the content page is not greater than a screen size of the ink screen;
the display module 930 is configured to display at least two content pages on the ink screen page by page in a page-turning manner when receiving a page-turning instruction.
In an alternative embodiment provided based on the embodiment shown in fig. 9, as shown in fig. 10, the determining module 920 includes: an obtaining unit 921, an adjusting unit 922, a drawing unit 923, and a circulating unit 924;
the obtaining unit 921 is configured to obtain a first drawing position corresponding to the ith content page, where the first drawing position is a coordinate position of the top left corner of the ith content page in a preset coordinate system, i is a positive integer, and an initial value of i is 1;
the adjusting unit 922 is configured to adjust the first drawing position according to the screen size of the ink screen to obtain a second drawing position, where the second drawing position is a coordinate position of a lower left corner of the ith content page in a preset coordinate system;
the drawing unit 923 is used for drawing the long screenshot image according to the second drawing position and the screen size of the ink screen to obtain the (i + 1) th content page;
the loop unit 924 is configured to repeatedly perform the above steps until the second drawing position reaches a preset position, where the preset position is a coordinate position of the lower left corner of the long screenshot image in a preset coordinate system.
In an alternative embodiment provided based on the embodiment shown in fig. 9, as shown in fig. 10, the first drawing position includes a first abscissa and a first ordinate, and the adjusting unit 922 is further configured to add the first ordinate in the first drawing position to the length value of the ink screen to obtain a second ordinate; and determining a second drawing position according to the first abscissa and the second ordinate.
In an alternative embodiment provided based on the embodiment shown in fig. 9, as shown in fig. 10, the apparatus further includes: a second acquisition module 940 and a screen capture module 950;
a second obtaining module 940, configured to obtain a target view corresponding to the main screen in a first video memory, where the first video memory is a memory storage area used for storing an image to be displayed by the main screen, and the target view includes an overall view corresponding to content being displayed in the main screen;
the screen capture module 950 is configured to perform screen capture processing on the target view to obtain a long screen capture image, and store the long screen capture image in a cache and/or a second memory, where the cache is a memory storage space shared by the main screen and the ink screen, and the second memory is a memory storage area different from the first memory and used for storing an image to be displayed by the ink screen;
the first obtaining module 910 is further configured to obtain a long screenshot image in the cache or the second video memory.
In an alternative embodiment provided based on the embodiment shown in fig. 9, as shown in fig. 10, the screen capture module 950 is further configured to set the measurement mode to an unspecified mode, the measurement mode is used to indicate a spatial size of the measurement space when the measurement is performed on the target view, and the unspecified mode is used to indicate that the spatial size of the measurement space is an arbitrary value; under an unspecified mode, measuring the target view to obtain the actual view size of the target view; and carrying out layout and drawing according to the actual view size of the target view to obtain the long screen capture image.
In an alternative embodiment provided based on the embodiment shown in fig. 9, as shown in fig. 10, the main screen and the ink screen are two display screens arranged oppositely, and the main screen is a liquid crystal display screen or an organic light emitting diode OLED display screen.
The relevant details may be combined with the method embodiments described with reference to fig. 2-8. The first obtaining module 910 is further configured to implement any other implicit or public functions related to the obtaining step in the foregoing method embodiments; the determining module 920 is further configured to implement any other implicit or disclosed functionality related to the determining step in the above method embodiments; the display module 930 is also used to implement any other implicit or disclosed functionality related to the display step in the above method embodiments.
Referring to fig. 11, a block diagram of a display device according to an embodiment of the invention is shown. The display device 1100 comprises the display device in the implementation environment provided in FIG. 1. Display device 1100 may include one or more of the following components: processing component 1102, memory 1104, power component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1112, sensor component 1114, and communications component 1116.
The processing component 1102 generally controls the overall operation of the display device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1102 may include one or more processors 1118 to execute instructions to perform all or a portion of the steps performed by the display device 1100 in the embodiments described above. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operations at the display device 1100. Examples of such data include instructions for any application or method operating on display device 1100, contact data, phonebook data, messages, pictures, videos, etc., the data including a device identification and/or a first device key. The memory 1104 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. The memory 1104 stores at least one instruction, which is loaded and executed by the processor 1120 to implement the content display method provided in the above-mentioned embodiments of the method.
The power component 1106 provides power to the various components of the display device 1100. The power components 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the display device 1100.
The multimedia component 1108 includes a screen between the display device 1100 and a user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the display apparatus 1100 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the display device 1100 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1114 includes one or more sensors for providing status evaluations of various aspects of the display device 1100. For example, the sensor assembly 1114 may detect the open/closed state of the display device 1100, the relative positioning of components, such as a display and keypad of the display device 1100, the sensor assembly 1114 may also detect a change in the position of the display device 1100 or a component of the display device 1100, the presence or absence of user contact with the display device 1100, the orientation or acceleration/deceleration of the display device 1100, and a change in the temperature of the display device 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the display device 1100 and a smart home device or server. The display device 1100 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
Alternatively, the display device 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), display devices, micro-display devices, microprocessors or other electronic components for performing all or part of the steps performed by the display device 1100 in the various method embodiments described above.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc. In other words, the storage medium stores at least one instruction, and the instruction is loaded and executed by the processor to implement the content display method provided in the above-mentioned method embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (11)

1. A content display method for an ink screen, the method comprising:
acquiring a long screen capture image with the image size larger than the screen size of the ink screen, wherein the long screen capture image is obtained by carrying out screen capture processing on an integral view corresponding to the content displayed in the main screen;
determining at least two content pages corresponding to the long screenshot image displayed on the ink screen, wherein the page size of each content page is not larger than the screen size of the ink screen;
when a page turning instruction is received, displaying the at least two content pages on the ink screen page by page in a page turning mode;
the determining at least two pages of content corresponding to the long screenshot image displayed on the ink screen includes:
acquiring a first drawing position corresponding to an ith content page, wherein the first drawing position is a coordinate position of the upper left corner of the ith content page in a preset coordinate system, i is a positive integer, and the initial value of i is 1;
adjusting the first drawing position according to the screen size of the ink screen to obtain a second drawing position, wherein the second drawing position is a coordinate position of the lower left corner of the ith content page in a preset coordinate system;
drawing the long screen capture image according to the second drawing position and the screen size of the ink screen to obtain an i +1 th content page;
and repeating the steps until the second drawing position reaches a preset position, wherein the preset position is the coordinate position of the lower left corner of the long screenshot image in a preset coordinate system.
2. The method of claim 1, wherein the first drawing position comprises a first abscissa and a first ordinate;
adjusting the first drawing position according to the screen size of the ink screen to obtain a second drawing position, comprising:
adding the first vertical coordinate in the first drawing position and the length value of the ink screen to obtain a second vertical coordinate;
and determining the second drawing position according to the first horizontal coordinate and the second vertical coordinate.
3. The method of any of claims 1 to 2, wherein prior to acquiring the long screenshot image having an image size larger than a screen size of the ink screen, further comprising:
acquiring a target view corresponding to the main screen in a first video memory, wherein the first video memory is a memory storage area used for storing an image to be displayed by the main screen, and the target view comprises an overall view corresponding to the content being displayed in the main screen;
performing screen capture processing on the target view to obtain the long screen capture image, and storing the long screen capture image in a cache and/or a second video memory, wherein the cache is a memory storage space shared by the main screen and the ink screen, and the second video memory is a memory storage area which is different from the first video memory and is used for storing an image to be displayed by the ink screen;
the acquiring of the long screen shot image with the image size larger than the screen size of the ink screen includes:
and acquiring the long screen capture image in the cache or the second video memory.
4. The method of claim 3, wherein the screenshot of the target view resulting in the long screenshot image comprises:
setting a measurement mode to an unspecified mode, the measurement mode being used to indicate a spatial size of a measurement space when the target view is measured, the unspecified mode being used to indicate that the spatial size of the measurement space is an arbitrary value;
under the unspecified mode, measuring the target view to obtain the actual view size of the target view;
and carrying out layout and drawing according to the actual view size of the target view to obtain the long screen capture image.
5. The method according to any one of claims 1 to 2, wherein the main screen and the ink screen are two display screens arranged in a back-to-back manner, and the main screen is a liquid crystal display screen or an Organic Light Emitting Diode (OLED) display screen.
6. A content display device including an ink screen, the device comprising:
the first acquisition module is used for acquiring a long screen capture image with the image size larger than the screen size of the ink screen, wherein the long screen capture image is obtained by carrying out screen capture processing on an integral view corresponding to the content displayed in the main screen;
the determining module is used for determining at least two content pages corresponding to the long screenshot image displayed on the ink screen, and the page size of each content page is not larger than the screen size of the ink screen;
the display module is used for displaying the at least two content pages page by page in a page turning mode on the ink screen when receiving a page turning instruction;
the determining module includes: the device comprises an acquisition unit, an adjustment unit, a drawing unit and a circulation unit;
the obtaining unit is configured to obtain a first drawing position corresponding to an ith content page, where the first drawing position is a coordinate position of an upper left corner of the ith content page in a preset coordinate system, i is a positive integer, and an initial value of i is 1;
the adjusting unit is used for adjusting the first drawing position according to the screen size of the ink screen to obtain a second drawing position, and the second drawing position is a coordinate position of the lower left corner of the ith content page in a preset coordinate system;
the drawing unit is used for drawing the long screenshot image according to the second drawing position and the screen size of the ink screen to obtain the (i + 1) th content page;
and the circulating unit is used for repeatedly executing the steps until the second drawing position reaches a preset position, and the preset position is the coordinate position of the lower left corner of the long screen capture image in a preset coordinate system.
7. The apparatus of claim 6, wherein the first drawing position comprises a first abscissa and a first ordinate;
the adjusting unit is further configured to add the first ordinate in the first drawing position to the length value of the ink screen to obtain a second ordinate; and determining the second drawing position according to the first horizontal coordinate and the second vertical coordinate.
8. The apparatus of any of claims 6 to 7, further comprising: the second acquisition module and the screen capture module;
the second obtaining module is configured to obtain a target view corresponding to the home screen in a first video memory, where the first video memory is a memory storage area used for storing an image to be displayed by the home screen, and the target view includes an overall view corresponding to content being displayed in the home screen;
the screen capture module is used for performing screen capture processing on the target view to obtain the long screen capture image, and storing the long screen capture image in a cache and/or a second video memory, wherein the cache is a memory storage space shared by the main screen and the ink screen, and the second video memory is a memory storage area which is different from the first video memory and is used for storing an image to be displayed by the ink screen;
the first obtaining module is further configured to obtain the long screenshot image in the cache or the second video memory.
9. The apparatus of claim 8, wherein the screen capture module is further configured to set a measurement mode to an unspecified mode, the measurement mode being used to indicate a spatial size of a measurement space when the measurement is performed on the target view, and the unspecified mode being used to indicate that the spatial size of the measurement space is an arbitrary value; under the unspecified mode, measuring the target view to obtain the actual view size of the target view; and carrying out layout and drawing according to the actual view size of the target view to obtain the long screen capture image.
10. The device according to any one of claims 6 to 7, wherein the main screen and the ink screen are two display screens arranged in a back-to-back manner, and the main screen is a liquid crystal display screen or an Organic Light Emitting Diode (OLED) display screen.
11. A computer-readable storage medium having stored thereon at least one instruction, which is loaded and executed by a processor to implement the content display method according to any one of claims 1 to 5.
CN201710948579.8A 2017-10-12 2017-10-12 Content display method and device for ink screen Active CN107728988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710948579.8A CN107728988B (en) 2017-10-12 2017-10-12 Content display method and device for ink screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710948579.8A CN107728988B (en) 2017-10-12 2017-10-12 Content display method and device for ink screen

Publications (2)

Publication Number Publication Date
CN107728988A CN107728988A (en) 2018-02-23
CN107728988B true CN107728988B (en) 2020-11-06

Family

ID=61211027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710948579.8A Active CN107728988B (en) 2017-10-12 2017-10-12 Content display method and device for ink screen

Country Status (1)

Country Link
CN (1) CN107728988B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108847187A (en) * 2018-06-05 2018-11-20 掌阅科技股份有限公司 Screensaver displaying method, ink screen equipment and the storage medium of ink screen equipment
CN111562869B (en) * 2020-03-31 2022-02-25 完美世界(北京)软件科技发展有限公司 Screenshot method and device, storage medium and electronic device
CN111625311B (en) * 2020-05-18 2023-05-26 Oppo(重庆)智能科技有限公司 Control method, control device, electronic equipment and storage medium
CN113641279A (en) * 2021-07-08 2021-11-12 瑞芯微电子股份有限公司 Android electronic paper book screen rapid display method and storage medium
CN115357327B (en) * 2022-08-24 2023-06-27 广州文石信息科技有限公司 Page display method and device of electronic ink screen, storage medium and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214071A (en) * 2011-06-28 2011-10-12 鸿富锦精密工业(深圳)有限公司 Electronic book reader and page turning control method thereof
CN103309560A (en) * 2013-06-08 2013-09-18 东莞宇龙通信科技有限公司 Multi-interface information display method and terminal
CN105573689A (en) * 2014-10-10 2016-05-11 西安三维通信有限责任公司 Double-screen switching display device under Android platform
CN105912227A (en) * 2016-04-13 2016-08-31 广州阿里巴巴文学信息技术有限公司 Text information display method, device and mobile device
CN106648343A (en) * 2016-12-29 2017-05-10 广州阿里巴巴文学信息技术有限公司 Rolling page turning display method and apparatus for electronic book reading
CN106933525A (en) * 2017-03-09 2017-07-07 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of display image

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9600595B2 (en) * 2013-05-21 2017-03-21 International Business Machines Corporation Modification of windows across multiple displays
CN106020680A (en) * 2016-05-04 2016-10-12 北京小米移动软件有限公司 Information display method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214071A (en) * 2011-06-28 2011-10-12 鸿富锦精密工业(深圳)有限公司 Electronic book reader and page turning control method thereof
CN103309560A (en) * 2013-06-08 2013-09-18 东莞宇龙通信科技有限公司 Multi-interface information display method and terminal
CN105573689A (en) * 2014-10-10 2016-05-11 西安三维通信有限责任公司 Double-screen switching display device under Android platform
CN105912227A (en) * 2016-04-13 2016-08-31 广州阿里巴巴文学信息技术有限公司 Text information display method, device and mobile device
CN106648343A (en) * 2016-12-29 2017-05-10 广州阿里巴巴文学信息技术有限公司 Rolling page turning display method and apparatus for electronic book reading
CN106933525A (en) * 2017-03-09 2017-07-07 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of display image

Also Published As

Publication number Publication date
CN107728988A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN107728988B (en) Content display method and device for ink screen
EP3131087B1 (en) Method and device for reducing display brightness
CN107544810B (en) Method and device for controlling application program
CN106710539B (en) Liquid crystal display method and device
US10269287B2 (en) Power saving method and device for displaying content in display screen
JP2018503845A (en) Liquid crystal display method and apparatus
CN113126862B (en) Screen capture method and device, electronic equipment and readable storage medium
US20150194131A1 (en) Image data output control method and electronic device supporting the same
US10134326B2 (en) Device for and method of saving power when refreshing a display screen when displayed content does not change
CN106097952A (en) A kind of terminal display screen method for adjusting resolution and terminal
US9898982B2 (en) Display method, device and computer-readable medium
US20220417591A1 (en) Video rendering method and apparatus, electronic device, and storage medium
CN110738970A (en) Page refreshing method and device for ink screen
US9947278B2 (en) Display method and device and computer-readable medium
CN115640083A (en) Screen refreshing method and equipment capable of improving dynamic performance
CN115729544A (en) Desktop component generation method and device, electronic equipment and readable storage medium
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
US11733863B2 (en) Display data obtaining method, electronic device and storage medium
CN111724398A (en) Image display method and device
CN113096054A (en) Image frame synthesis method, device and storage medium
CN113378085B (en) Page loading method, device, terminal and storage medium
CN108427943B (en) Fingerprint identification method and device
CN105894558B (en) GIF image rendering method and device
CN115798394A (en) Brightness adjusting method, device and storage medium
CN116778841A (en) Screen display method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder