CN107479978A - Electronic book displaying method, device and mobile terminal - Google Patents

Electronic book displaying method, device and mobile terminal Download PDF

Info

Publication number
CN107479978A
CN107479978A CN201710765222.6A CN201710765222A CN107479978A CN 107479978 A CN107479978 A CN 107479978A CN 201710765222 A CN201710765222 A CN 201710765222A CN 107479978 A CN107479978 A CN 107479978A
Authority
CN
China
Prior art keywords
page
pixel information
book
page pixel
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710765222.6A
Other languages
Chinese (zh)
Other versions
CN107479978B (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.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Alibaba Literature Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Alibaba Literature Information Technology Co Ltd filed Critical Guangzhou Alibaba Literature Information Technology Co Ltd
Priority to CN201710765222.6A priority Critical patent/CN107479978B/en
Publication of CN107479978A publication Critical patent/CN107479978A/en
Application granted granted Critical
Publication of CN107479978B publication Critical patent/CN107479978B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • 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/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Abstract

The embodiments of the invention provide a kind of electronic book displaying method, device and mobile terminal, wherein, electronic book displaying method includes:According to page Pixel Information corresponding to the content obtaining of the e-book page to be shown;For the page Pixel Information distribution system internal memory, and the page Pixel Information is stored in the Installed System Memory of distribution;According to the page Pixel Information of storage, the e-book page to be shown is shown.By the embodiment of the present invention, avoiding application memory use transfinites, and then avoids the application crashes caused by application memory transfinites.

Description

Electronic book displaying method, device and mobile terminal
Technical field
The present embodiments relate to word processing technical field, more particularly to a kind of electronic book displaying method, device and shifting Dynamic terminal.
Background technology
With the development of intelligent mobile terminal technology, people are more and more using electronically being read.For example, make Read etc. with the e-book reading application in mobile phone or tablet personal computer.
Current e-book reading is applied when showing the e-book page, mostly by for corresponding e-book page creation Corresponding picture is realized.By taking ANDROID systems as an example, it realizes the e-book page by creating BITMAP (bitmap) objects Displaying.Internal memory is divided into the Installed System Memory related to mobile terminal hardware device and with applying correlation by ANDROID systems Application memory, system distribute certain application memory for each application, once should using application memory exceed distribution Internal memory, may result in the application application memory deficiency, application crashes.For e-book reading application, because picture Committed memory is larger, if displaying that can not be well to the e-book page is controlled, easily causes e-book reading application Collapse.
Therefore, e-book reading how is avoided to apply the application memory use caused by showing the e-book page super as far as possible Limit, and then cause the phenomenon of application crashes, turn into urgent problem to be solved.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of electronic book displaying method, device and mobile terminal, existing to solve E-book reading applies the application memory use caused by showing the e-book page to transfinite in technology, and then causes asking for application crashes Topic.
First aspect according to embodiments of the present invention, there is provided a kind of electronic book displaying method, including:According to be shown Page Pixel Information corresponding to the content obtaining of the e-book page;For the page Pixel Information distribution system internal memory, and point The page Pixel Information is stored in the Installed System Memory matched somebody with somebody;According to the page Pixel Information of storage, treated described in display The e-book page of display.
Second aspect according to embodiments of the present invention, there is provided a kind of electronic-book display device, including:Acquisition module, use In page Pixel Information corresponding to the content obtaining according to the e-book page to be shown;Assignment storage module, for be described Page Pixel Information distribution system internal memory, and the page Pixel Information is stored in the Installed System Memory of distribution;Show mould Block, for the page Pixel Information according to storage, show the e-book page to be shown.
The third aspect according to embodiments of the present invention, there is provided a kind of mobile terminal, including:Processor, memory, communication Interface and communication bus, the processor, the memory and the communication interface are completed mutual by the communication bus Communication;The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device such as the Operated corresponding to electronic book displaying method described in one side.
Fourth aspect according to embodiments of the present invention, there is provided a kind of computer-readable storage medium, the computer storage are situated between Matter is stored with:Executable instruction for page Pixel Information corresponding to the content obtaining according to the e-book page to be shown; For for the page Pixel Information distribution system internal memory, and the page pixel letter is stored in the Installed System Memory of distribution The executable instruction of breath;For the page Pixel Information according to storage, show the e-book page to be shown can Execute instruction.
From above technical scheme, the e-book reading in the embodiment of the present invention is applied when showing the e-book page, The application memory no longer applied by e-book reading stores bitmap corresponding to the e-book page, but directly according to electronics page Page Pixel Information distribution system internal memory corresponding to face, the memory page Pixel Information in the Installed System Memory of distribution, and then according to The page Pixel Information carries out the display of the e-book page.By allowing e-book reading application to directly invoke and using mobile whole The mode of Installed System Memory in end, page Pixel Information corresponding to the e-book page need not take Current electronic book and read application Application memory, so as to save the use of application memory, avoiding application memory use transfinites, and then avoids because of application memory Application crashes caused by transfiniting.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments described in inventive embodiments, for those of ordinary skill in the art, it can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the step flow chart according to a kind of electronic book displaying method of the embodiment of the present invention one;
Fig. 2 is the step flow chart according to a kind of electronic book displaying method of the embodiment of the present invention two;
Fig. 3 is the structured flowchart according to a kind of electronic-book display device of the embodiment of the present invention three;
Fig. 4 is the structured flowchart according to a kind of electronic-book display device of the embodiment of the present invention four;
Fig. 5 is the structural representation according to a kind of mobile terminal of the embodiment of the present invention five.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described reality It is only part of the embodiment of the embodiment of the present invention to apply example, rather than whole embodiments.Based on the implementation in the embodiment of the present invention Example, the every other embodiment that those of ordinary skill in the art are obtained, it should all belong to the scope that the embodiment of the present invention is protected.
Specific implementation of the embodiment of the present invention is further illustrated with reference to accompanying drawing of the embodiment of the present invention.
Embodiment one
Reference picture 1, show a kind of step flow chart of according to embodiments of the present invention one electronic book displaying method.
The electronic book displaying method of the present embodiment comprises the following steps:
Step S102:According to page Pixel Information corresponding to the content obtaining of the e-book page to be shown.
After the e-book page to be shown determines, you can according to the content of the e-book page, obtain its corresponding page Image surface prime information.
Wherein, the acquisition of the content of the e-book page to be shown and the page pixel letter according to corresponding to the content obtaining The specific implementation of breath can be by those skilled in the art according to the actual requirements using appropriate ways realization, the embodiment of the present invention This is not restricted.For example, the typesetting engine of e-book reading application or reader obtains the interior of the e-book page to be shown Hold information, e.g., text information, a SKBitmap can be generated to determine the color of each word and position during typesetting Object, then pass through this SKBitmap object acquisition page Pixel Information, e.g., color array corresponding to the e-book page. Wherein, SKBitmap objects are an objects in skia rendering engines, and the BITMAP objects with ANDROID are to SKBitmap The encapsulation of object is different, and remaining process in SKBitmap objects and the embodiment of the present invention in addition to display is run in NDK layers, Application memory will not be taken.
Step S104:For page Pixel Information distribution system internal memory corresponding to the e-book page to be shown, and distributing Installed System Memory in store the page Pixel Information.
As it was previously stated, the internal memory in mobile terminal is divided into Installed System Memory and application memory.Wherein, Installed System Memory is The internal memory related to the hardware device of mobile terminal, including but not limited to RAM (Random Access Memory, arbitrary access Memory), it can be allocated from operating system layer;Application memory is to apply related internal memory to what is installed in mobile terminal, often One application is all corresponding with corresponding application memory, can be allocated from application layer.For from memory headroom, Installed System Memory leads to Often it is much larger than single application memory.
It is page Pixel Information distribution system corresponding to the e-book page to be shown in the embodiment of the present invention based on this Internal memory, and store the page Pixel Information using the Installed System Memory of distribution.Wherein, system is being distributed for the page Pixel Information During system internal memory, appropriate ways can be used to distribute enough Installed System Memories for the page Pixel Information by those skilled in the art Space, fully to store the page Pixel Information.Such as, can be described according to the display pattern of the e-book page to be shown Page Pixel Information distributes enough Installed System Memories, can also pre-set a memory headroom allocation threshold, when needed, be Page Pixel Information distributes the Installed System Memory of the size of threshold value instruction, only the size of the threshold value need to be caused to be large enough to hold e-book Page Pixel Information corresponding to the page.
Step S106:According to the page Pixel Information stored in Installed System Memory, the e-book page to be shown is shown.
Because page Pixel Information is according to the generation of the content of the e-book page, therefore, electricity can be reflected in page Pixel Information The content of the philosophical works page, according to the page Pixel Information, you can the e-book page to be shown corresponding to display.
By the present embodiment, e-book reading is applied when showing the e-book page, no longer passes through e-book reading application The application memory storage e-book page corresponding to bitmap, but the page Pixel Information point directly according to corresponding to the e-book page Match system internal memory, the memory page Pixel Information in the Installed System Memory of distribution, and then electricity is carried out according to the page Pixel Information The display of the philosophical works page.Allow e-book reading application to directly invoke and using the Installed System Memory in mobile terminal by way of, Page Pixel Information corresponding to the e-book page need not take the application memory that Current electronic book reads application, should so as to save With the use of internal memory, avoiding application memory transfinites, and then avoids the application crashes caused by application memory transfinites.
The electronic book displaying method of the present embodiment can be held by any appropriate mobile terminal with data-handling capacity OK, include but is not limited to:Tablet personal computer, mobile phone etc..
Embodiment two
Reference picture 2, show a kind of step flow chart of according to embodiments of the present invention two electronic book displaying method.
The electronic book displaying method of the present embodiment comprises the following steps:
Step S202:According to page Pixel Information corresponding to the content obtaining of the e-book page to be shown.
Step S204:For the page Pixel Information distribution system internal memory.
In the embodiment of the present invention, page Pixel Information corresponding to the e-book page no longer takes answering for e-book reading application With internal memory, but it is its distribution system internal memory for its use.
In a kind of feasible pattern, can be by operating according to the display pattern of the e-book page to be shown System layer is the page Pixel Information distribution system internal memory.For example, if e-book page setting to be shown is with ARGB8888's Display pattern shows that then each pixel accounts for 4 bytes;If e-book page setting to be shown is with RGB565's or ARGB4444 Display pattern shows that then each pixel accounts for 2 bytes.Accordingly, can be according to the pixel quantity inside page Pixel Information and every Byte number shared by individual pixel, it is page Pixel Information distribution system internal memory.Embedded OS can be divided into four layers, respectively It is:Hardware layer, driving layer, operating system layer and application layer.Wherein, hardware layer mainly includes some bottom hardwares, is whole embedding Enter the basis of formula operating system;Layer is driven to drive the hardware effort of hardware layer by driver;Operating system layer is mainly responsible for The management of the debugging of operating system task, disk and file;Application layer is related to exploitation or the application write more.Based on this, this hair In bright embodiment, the ANDROID systems based on embedded OS can be the e-book page by operating system layer Corresponding page Pixel Information distribution system internal memory.
Still optionally further, application layer program can be used according to the display pattern of the e-book page to be shown Language call operating system layer program language, it is the page Pixel Information distribution system internal memory by operating system layer.For example, In ANDROID systems, the JAVA language of application layer can be used to call the C that can be run in the operating system layer of ANDROID systems Language, it is the page Pixel Information distribution system internal memory by C language.In a kind of feasible pattern, NDK can be used (Native Development Kit, primary kit) realizes the distribution of Installed System Memory.NDK is a kind of local developing instrument Collection, can be used in ANDROID systems allowing C language and JAVA language to call mutually.In this step, NDK association can be used View goes to call C language application system internal memory, as called void*malloc (size_t size) the function applications system in C language System internal memory.But it should be understood by those skilled in the art that NDK is merely illustrative, in actual applications, those skilled in the art Other similar means or mode can be used, such as SDK (Software Development Kit, SDK) etc., Realize the distribution of Installed System Memory.
Can either be institute according to the mode of the display pattern distribution system memory headroom of the e-book page to be shown State page Pixel Information and distribute enough spaces, the waste of memory headroom can be avoided again.And for using application layer program language The mode of call operation system layer program language distribution system internal memory is sayed, on the one hand realizes that the e-book page is corresponding for developer Page Pixel Information Installed System Memory distribution provide convenient means, reduce development difficulty;On the other hand, also reduce for The cost of implementation of page Pixel Information distribution system internal memory.
But the above-mentioned display pattern distribution system internal memory according to the e-book page to be shown is not limited to, actually should In, those skilled in the art can also distribute the Installed System Memory of fixed size, the space of Installed System Memory for page Pixel Information It is enough to store page Pixel Information corresponding to Most electronic page face.It is of course also possible to believe for the page pixel Installed System Memory of the allocated size slightly larger than the display pattern of the e-book page to be shown is ceased, to be the page pixel Information provides relatively abundant free space.
Step S206:The page Pixel Information is stored in the Installed System Memory of distribution.
Wherein, the page Pixel Information can using it is any it is appropriate by the way of stored.It is alternatively possible to distributing Installed System Memory in create color array, use page Pixel Information described in color storage of array.Wherein, color array can be Regular length array, the element in color array correspond with the pixel in the e-book page;Color array can also be Variable-length array, the element in color array is corresponding with the pixel region in the e-book page, or, both can be with pixel region Domain correspondingly can also be corresponding with pixel.Certainly, in actual applications, those skilled in the art can also use other appropriate sides Formula passes through color array memory page Pixel Information.By color array memory page Pixel Information, color array and page picture Correspondence between prime information is good, also, realizes that simply cost of implementation is low.If it should be noted that pass through SKBitmap objects Page Pixel Information is obtained, corresponding color array can be directly obtained, is its distribution system internal memory and storage.
Alternatively, when the page Pixel Information includes the quantity and color value of pixel corresponding to the e-book page When (such as ARGB values or rgb value or other color values);, can be according to described when color array is created in the Installed System Memory of distribution The quantity of pixel determines the quantity of the element of color array to be created, it is determined that the color value of pixel corresponding to each element;Root According to the quantity of the element and the color value of corresponding pixel, color array is created in the Installed System Memory of distribution.And then use Page Pixel Information described in the color storage of array of establishment.In such a mode, the element in color array can be with electronics page Pixel in face corresponds.For example, when e-book page A has 100*50=5000 pixel, color array can be right There should be 5000 array elements, the value of each array element is the color value of corresponding pixel.In storage, color array Preceding 100 elements correspondingly store e-book page A the first pixel column 100 pixels color value, 101-200 Element correspondingly stores the color value of 100 pixels of e-book page A the second pixel column, by that analogy, 4901-5000 Individual element correspondingly stores the color value of 100 pixels of e-book page A the 50th pixel column.This mode stores simply, Without extra pixel information such as identification information or coordinate information sign pixel.But not limited to this, the page pixel letter Breath can also include the identification information and/or coordinate information of pixel, clearly to indicate each pixel, in such cases, face Each element in chromatic number group includes the identification information and/or coordinate information of pixel in addition to the color value including pixel.Using This mode, it can be also convenient for subsequently to e-book while quickly page Pixel Information corresponding to the display e-book page The positioning and operation of some pixels in the page.
Step S208:According to the page Pixel Information of storage, the e-book page to be shown is shown.
The corresponding e-book page can be shown by page Pixel Information.
In a kind of feasible pattern, the page Pixel Information can be obtained simultaneously from Installed System Memory by graphic package interface Send to display card, by showing that card shows the page Pixel Information, to show the corresponding e-book page.Wherein, show Card can be by those skilled in the art's display card arbitrarily appropriate according to use is actually needed, including but not limited to GPU (Graphics Processing Unit, graphics processor).Graphic package interface provides convenient graph image drafting side Formula, and the complicated realization of bottom hardware can be shielded so that the drafting of page Pixel Information is more easy to corresponding to the e-book page In realization, development difficulty and cost of implementation are greatly reduced.
Wherein, graphic package interface includes but is not limited to OpenGL.OpenGL defines one across programming language, cross-platform DLL specification professional graphic package interface, it is unrelated with hardware, can easily carry out 2D or 3D graph images Drafting.By OpenGL, the drafting of page Pixel Information corresponding to the e-book page can be conveniently realized.But it is not limited to OpenGL, such as other manner, Unity are equally applicable.For example, pass through the SKBitmap object acquisitions of bottom electricity to be shown The color array of the philosophical works page, then by OpenGL color array pass to GPU (Graphics Processing Unit, Graphics processor), it is eventually displayed on screen, thus avoids in conditional electronic book page display way, it is necessary to will The information copy of SKBitmap objects takes the situation of application memory to application layer.
By said process, while the displaying of the e-book page is realized, it is thus also avoided that because bitmap takes too many application Internal memory and the situation for causing e-book reading application crashes.
Based on said process, what those skilled in the art can also carry out following step S210-S212 can selection operation.
Step S210:Obtain the page Pixel Information that display card generates according to the page Pixel Information to identify, and preserve The corresponding relation of the page Pixel Information mark and the page Pixel Information.
In the embodiment of the present invention, display card also has certain in addition to page Pixel Information corresponding to the display e-book page Data processing function, therefore, display is stuck in the corresponding page Pixel Information of display, with realize the display of the e-book page it Outside, page Pixel Information mark corresponding with the page Pixel Information can also be generated, and feeds back to e-book reading application. E-book reading is applied after the page Pixel Information mark of display card generation is got, and can preserve the page Pixel Information The corresponding relation of mark and the page Pixel Information, in order to subsequently to the corresponding e-book page or corresponding electronics page Subregion in face is operated.Identified by page Pixel Information, more quickly and accurately can determine and obtain and be corresponding Pixel information, improve the e-book page display speed and efficiency.
Step S212:It is determined that the operational order for indicating to operate the e-book page is received, according to the page Image surface prime information mark obtains the page Pixel Information corresponding to the e-book page to be operated;Believed according to the page pixel Cease to the operation indicated by the e-book page progress operational order to be operated.
Wherein, the operational order includes but is not limited to:Indicate to move the e-book page instruction of operation, indicate The instruction (image block as replaced the subregion in the e-book page) modified to the e-book page, in instruction page turning Instruction, instruction, the instruction of the lower page turning of instruction jump to instruction of a certain page etc..
For example, the color array that page Pixel Information corresponding to five groups of e-book pages is stored with Installed System Memory (also may be used To be five groups of page Pixel Informations), wherein, five groups of page Pixel Informations be respectively page Pixel Information A, page Pixel Information B, Page Pixel Information C, page Pixel Information E and page Pixel Information F.The current display e-book page P1 of setting page pixel Information A, P1 next page are P2, P2 corresponding page Pixel Information B, then now show in card there is page Pixel Information A and B pairs The color array answered;Setting display card is identified as ID- for the page Pixel Information that page Pixel Information A number of colours group is distributed P1, the page Pixel Information for page Pixel Information B number of colours group distribution is identified as ID-P2, and above-mentioned page pixel is believed Breath identifies and its feeds back to e-book reading application with the corresponding relation of color array, and e-book reading, which is applied, is obtaining these letters After breath, you can subsequently determining corresponding page Pixel Information according to page Pixel Information mark, and then believed according to page pixel Breath operates to the e-book page.
Such as, when receiving the instruction of the lower page turning of instruction, ID-P2 is identified by page Pixel Information and can determine that accordingly Page Pixel Information B, and then show e-book page P2 corresponding to page Pixel Information B.
But not limited to this, the operation to the corresponding e-book page can be similarly realized otherwise, as basis is treated The relevant information of the e-book page of display page Pixel Information, Jin Erjin as corresponding to page iden-tity determines the e-book page Row operation.
According to the present embodiment, directly read by the NDK of ANDROID systems in operating system layer corresponding to the e-book page Page Pixel Information, the page Pixel Information of reading is directly passed to display card by OpenGL, by showing that card is mapped to User is presented on the screen of mobile terminal.It is therefore not necessary to BITMAP objects or BITMAP pictures are directly created, without use Application memory, such as JAVA heap memory, so as to be limited around ANDROID systematic differences internal memory, it can call more Installed System Memory, make e-book reading application process more smooth, and be less prone to caused by application memory overflows and collapse.In addition, After page Pixel Information is passed to display card by OpenGL, e-book reading application can directly pass through page Pixel Information mark Know to control corresponding page Pixel Information and its corresponding e-book page to do various conversion on a display screen, even if not having now There are BIMAP objects, page Pixel Information and the e-book page can also be controlled.
The electronic book displaying method of the present embodiment can be held by any appropriate mobile terminal with data-handling capacity OK, include but is not limited to:Tablet personal computer, mobile phone etc..
Embodiment three
Reference picture 3, show a kind of structured flowchart of according to embodiments of the present invention three electronic-book display device.
The electronic-book display device of the present embodiment includes:Acquisition module 302, for according to the e-book page to be shown Page Pixel Information corresponding to content obtaining;Assignment storage module 304, for in the page Pixel Information distribution system Deposit, and the page Pixel Information is stored in the Installed System Memory of distribution;Display module 306, for the page according to storage Image surface prime information, show the e-book page to be shown.
Pass through the electronic-book display device of the present embodiment so that e-book reading is applied when showing the e-book page, no The application memory applied again by e-book reading stores bitmap corresponding to the e-book page, but directly according to the e-book page Corresponding page Pixel Information distribution system internal memory, the memory page Pixel Information in the Installed System Memory of distribution, and then according to institute State the display that page Pixel Information carries out the e-book page.By allowing e-book reading application to directly invoke and using mobile terminal In Installed System Memory mode, page Pixel Information corresponding to the e-book page need not take Current electronic book read application should With internal memory, so as to save the use of application memory, avoiding application memory transfinites, so avoid because application memory transfinites and Caused application crashes.
Example IV
Reference picture 4, show a kind of structured flowchart of according to embodiments of the present invention four electronic-book display device.
The electronic-book display device of the present embodiment includes:Acquisition module 402, for according to the e-book page to be shown Page Pixel Information corresponding to content obtaining;Assignment storage module 404, for in the page Pixel Information distribution system Deposit, and the page Pixel Information is stored in the Installed System Memory of distribution;Display module 406, for the page according to storage Image surface prime information, show the e-book page to be shown.
Alternatively, assignment storage module 404 is used for the display pattern according to the e-book page to be shown, passes through behaviour It is the page Pixel Information distribution system internal memory to make system layer, and the page pixel letter is stored in the Installed System Memory of distribution Breath.
Alternatively, assignment storage module 404 is used for according to the display pattern of the e-book page to be shown, using should It is in the page Pixel Information distribution system by operating system layer with layer program language call operation system layer program language Deposit, and the page Pixel Information is stored in the Installed System Memory of distribution.
Alternatively, it is the page Pixel Information distribution system internal memory that assignment storage module 404, which is used for, and is in distribution Color array is created in system internal memory, uses page Pixel Information described in the color storage of array.
Alternatively, the page Pixel Information includes the quantity and color value of pixel corresponding to the e-book page;Distribution is deposited Store up module 404 and be used to be the page Pixel Information distribution system internal memory, and determined according to the quantity of the pixel to be created The quantity of the element of color array, it is determined that the color value of pixel corresponding to each element;According to the quantity of the element and correspondingly Pixel color value, the color array is created in the Installed System Memory of distribution;Use the color storage of array of establishment The page Pixel Information.
Alternatively, display module 406 is used to obtain the page Pixel Information from Installed System Memory by graphic package interface And send to display card, by showing that card shows the page Pixel Information.
Alternatively, the electronic-book display device of the present embodiment also includes:Mark module 408, in display module 406 According to the page Pixel Information of storage, after showing the e-book page to be shown, display card is obtained according to the page picture The page Pixel Information mark that prime information obtains, and preserve pair of the page Pixel Information mark and the page Pixel Information It should be related to.
Alternatively, the electronic-book display device of the present embodiment also includes:Operation module 410, for being protected in mark module 408 The page Pixel Information mark is deposited with after the corresponding relation of the page Pixel Information, being used to indicate to electricity it is determined that receiving The operational order that the philosophical works page is operated, obtained according to the page Pixel Information of page Pixel Information mark to be operated Page Pixel Information corresponding to the e-book page;Described in being carried out according to the page Pixel Information to the e-book page to be operated Operation indicated by operational order.
The electronic-book display device of the present embodiment is used to realize that e-book corresponding in aforesaid plurality of embodiment of the method shows Show method, and the beneficial effect with corresponding embodiment of the method, will not be repeated here.
Embodiment five
Reference picture 5, a kind of structural representation of according to embodiments of the present invention five mobile terminal is shown, the present invention is specifically Embodiment is not limited the specific implementation of mobile terminal.
As shown in figure 5, the mobile terminal can include:Processor (processor) 502, communication interface (Communications Interface) 504, memory (memory) 506 and communication bus 508.
Wherein:
Processor 502, communication interface 504 and memory 506 complete mutual communication by communication bus 508.
Communication interface 504, communicated for mobile terminals for example other with other electronic equipments or server.
Processor 502, for configuration processor 510, it can specifically perform the phase in above-mentioned electronic book displaying method embodiment Close step.
Specifically, program 510 can include program code, and the program code includes computer-managed instruction.
Processor 502 is probably central processor CPU, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or it is arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that mobile terminal includes, can be same type of processor, such as one or more CPU;Also may be used To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 506, for depositing program 510.Memory 506 may include high-speed RAM memory, it is also possible to also include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 510 specifically can be used for so that processor 502 performs following operation:According to the e-book page to be shown Page Pixel Information corresponding to content obtaining;For the page Pixel Information distribution system internal memory, and in the Installed System Memory of distribution The middle storage page Pixel Information;According to the page Pixel Information of storage, the e-book page to be shown is shown.
In a kind of optional embodiment, program 510 is additionally operable to so that processor 502 is for the page Pixel Information It is the page by operating system layer according to the display pattern of the e-book page to be shown during distribution system internal memory Pixel Information distribution system internal memory.
In a kind of optional embodiment, program 510 is additionally operable to cause processor 502 according to the electricity to be shown When the display pattern of the philosophical works page by operating system layer is the page Pixel Information distribution system internal memory, treated according to described The display pattern of the e-book page of display, using application layer program language call operating system layer program language, pass through operation System layer is the page Pixel Information distribution system internal memory.
In a kind of optional embodiment, program 510 is additionally operable to the Installed System Memory for causing processor 502 in distribution During the middle storage page Pixel Information, color array is created in the Installed System Memory of distribution, uses the color storage of array The page Pixel Information.
In a kind of optional embodiment, the page Pixel Information includes pixel corresponding to the e-book page Quantity and color value;Program 510 is additionally operable to cause processor 502 to create color array in the Installed System Memory of distribution, makes During with storing the page Pixel Information in the color array, color array to be created is determined according to the quantity of the pixel Element quantity, it is determined that the color value of pixel corresponding to each element;According to the quantity of the element and corresponding pixel Color value, the color array is created in the Installed System Memory of distribution;Use the page described in the color storage of array of establishment Pixel Information.
In a kind of optional embodiment, program 510 is additionally operable to cause processor 502 in the page according to storage Pixel Information, when showing the e-book page to be shown, the page is obtained from the Installed System Memory by graphic package interface Pixel Information is simultaneously sent to display card, and the page Pixel Information is shown by the display card.
In a kind of optional embodiment, program 510 is additionally operable to cause processor 502 in the page according to storage Pixel Information, after showing the e-book page to be shown, obtain the page that display card generates according to the page Pixel Information Pixel Information identifies, and preserves the corresponding relation of the page Pixel Information mark and the page Pixel Information.
In a kind of optional embodiment, program 510 is additionally operable to so that processor 502 is preserving the page pixel letter Breath mark for instruction it is determined that receiving to the e-book page with after the corresponding relation of the page Pixel Information, operating Operational order, the page Pixel Information according to corresponding to page Pixel Information mark obtains the e-book page to be operated; Operation indicated by carrying out the operational order to the e-book page to be operated according to the page Pixel Information.
The specific implementation of each step may refer to the corresponding steps in above-mentioned electronic book displaying method embodiment in program 510 Corresponding description, will not be described here with unit.It is apparent to those skilled in the art that the convenience for description With it is succinct, the equipment of foregoing description and the specific work process of module, may be referred to the corresponding process in preceding method embodiment Description, will not be repeated here.
Pass through the mobile terminal of the present embodiment so that e-book reading is applied when showing the e-book page, is no longer passed through Bitmap corresponding to the application memory storage e-book page of e-book reading application, but directly according to corresponding to the e-book page Page Pixel Information distribution system internal memory, the memory page Pixel Information in the Installed System Memory of distribution, and then according to the page Pixel Information carries out the display of the e-book page.By allowing e-book reading application to directly invoke and using in mobile terminal being The mode of system internal memory, page Pixel Information corresponding to the e-book page need not take Current electronic book and read in the application of application Deposit, so as to save the use of application memory, avoiding application memory transfinites, and then avoids and cause because application memory transfinites Application crashes.
It may be noted that according to the needs of implementation, all parts/step described in the embodiment of the present invention can be split as more Multi-part/step, the part operation of two or more components/steps or components/steps can be also combined into new part/step Suddenly, to realize the purpose of the embodiment of the present invention.
Above-mentioned method according to embodiments of the present invention can be realized in hardware, firmware, or be implemented as being storable in note Software or computer code in recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk), or it is implemented through net The original storage that network is downloaded is in long-range recording medium or nonvolatile machine readable media and will be stored in local recording medium In computer code, can be stored in using all-purpose computer, application specific processor or can compile so as to method described here Such software processing in journey or the recording medium of specialized hardware (such as ASIC or FPGA).It is appreciated that computer, processing Device, microprocessor controller or programmable hardware include can storing or receive software or computer code storage assembly (for example, RAM, ROM, flash memory etc.), when the software or computer code are by computer, processor or hardware access and when performing, realize Electronic book displaying method described here.In addition, when all-purpose computer is accessed for realizing the e-book display side being shown in which During the code of method, the execution of code is converted to all-purpose computer for performing the special of the electronic book displaying method being shown in which Computer.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and method and step, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the embodiment of the present invention.
Embodiment of above is merely to illustrate the embodiment of the present invention, and is not the limitation to the embodiment of the present invention, relevant skill The those of ordinary skill in art field, in the case where not departing from the spirit and scope of the embodiment of the present invention, it can also make various Change and modification, therefore all equivalent technical schemes fall within the category of the embodiment of the present invention, the patent of the embodiment of the present invention Protection domain should be defined by the claims.

Claims (18)

1. a kind of electronic book displaying method, including:
According to page Pixel Information corresponding to the content obtaining of the e-book page to be shown;
For the page Pixel Information distribution system internal memory, and the page pixel letter is stored in the Installed System Memory of distribution Breath;
According to the page Pixel Information of storage, the e-book page to be shown is shown.
2. wherein, it is according to the method for claim 1, the page Pixel Information distribution system internal memory, including:
According to the display pattern of the e-book page to be shown, distributed by operating system layer for the page Pixel Information Installed System Memory.
3. according to the method for claim 2, wherein, according to the display pattern of the e-book page to be shown, pass through Operating system layer is the page Pixel Information distribution system internal memory, including:
According to the display pattern of the e-book page to be shown, application layer program language call operating system layer program is used Language, it is the page Pixel Information distribution system internal memory by operating system layer.
4. according to the method described in claim any one of 1-3, wherein, store the page in the Installed System Memory of distribution Pixel Information, including:
Color array is created in the Installed System Memory of distribution, uses page Pixel Information described in the color storage of array.
5. according to the method for claim 4, wherein, the page Pixel Information includes picture corresponding to the e-book page The quantity and color value of element;
Color array is created in the Installed System Memory of distribution, is believed using the page pixel is stored in the color array Breath, including:
The quantity of the element of color array to be created is determined according to the quantity of the pixel, it is determined that pixel corresponding to each element Color value;
According to the color value of the quantity of the element and corresponding pixel, the color is created in the Installed System Memory of distribution Array;
Use page Pixel Information described in the color storage of array of establishment.
6. according to the method described in claim any one of 1-3, wherein, according to the page Pixel Information of storage, show institute The e-book page to be shown is stated, including:
Obtain the page Pixel Information from the Installed System Memory by graphic package interface and send to display and block, by described Display card shows the page Pixel Information.
7. according to the method for claim 6, wherein, in the page Pixel Information according to storage, wait to show described in display After the e-book page shown, methods described also includes:
Obtain the page Pixel Information that the display card generates according to the page Pixel Information to identify, and preserve the page picture Prime information identifies the corresponding relation with the page Pixel Information.
8. according to the method for claim 7, wherein, believe preserving the page Pixel Information mark with the page pixel After the corresponding relation of breath, methods described also includes:
It is determined that receiving the operational order for indicating to operate the e-book page, identified according to the page Pixel Information Obtain page Pixel Information corresponding to the e-book page to be operated;
Operation indicated by carrying out the operational order to the e-book page to be operated according to the page Pixel Information.
9. a kind of electronic-book display device, including:
Acquisition module, for page Pixel Information corresponding to the content obtaining according to the e-book page to be shown;
Assignment storage module, for for the page Pixel Information distribution system internal memory, and in the Installed System Memory of distribution Store the page Pixel Information;
Display module, for the page Pixel Information according to storage, show the e-book page to be shown.
10. device according to claim 9, wherein, the assignment storage module, for according to the electronics to be shown The display pattern in page face, it is the page Pixel Information distribution system internal memory by operating system layer, and described in distribution The page Pixel Information is stored in Installed System Memory.
11. device according to claim 10, wherein, the assignment storage module, for according to the electricity to be shown The display pattern of the philosophical works page, using application layer program language call operating system layer program language, it is by operating system layer The page Pixel Information distribution system internal memory, and the page Pixel Information is stored in the Installed System Memory of distribution.
12. according to the device described in claim any one of 9-11, wherein, the assignment storage module, for for the page Pixel Information distribution system internal memory, and color array is created in the Installed System Memory of distribution, deposited using the color array Store up the page Pixel Information.
13. device according to claim 12, wherein, the page Pixel Information is included corresponding to the e-book page The quantity and color value of pixel;
The assignment storage module, for for the page Pixel Information distribution system internal memory, and according to the quantity of the pixel The quantity of the element of color array to be created is determined, it is determined that the color value of pixel corresponding to each element;According to the element Quantity and corresponding pixel color value, the color array is created in the Installed System Memory of distribution;Use establishment Page Pixel Information described in the color storage of array.
14. according to the device described in claim any one of 9-12, wherein, the display module, for being connect by graphic package Mouth blocks from the Installed System Memory acquisition page Pixel Information and transmission to display, passes through described show and blocks the display page Pixel Information.
15. device according to claim 14, wherein, described device also includes:
Mark module, for the page Pixel Information in the display module according to storage, show the electricity to be shown After the philosophical works page, obtain the page Pixel Information that the display card generates according to the page Pixel Information and identify, and preserve The corresponding relation of the page Pixel Information mark and the page Pixel Information.
16. device according to claim 15, wherein, described device also includes:
Operation module, for preserving pair of the page Pixel Information mark and the page Pixel Information in the mark module After should being related to, it is determined that the operational order for indicating to operate the e-book page is received, according to the page pixel Message identification obtains page Pixel Information corresponding to the e-book page to be operated;According to the page Pixel Information to be operated The e-book page carry out operation indicated by the operational order.
17. a kind of mobile terminal, including:Processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device such as right will Ask and operated corresponding to the electronic book displaying method described in any one of 1-8.
18. a kind of computer-readable storage medium, the computer-readable storage medium is stored with:For according to the e-book page to be shown Content obtaining corresponding to page Pixel Information executable instruction;For for the page Pixel Information distribution system internal memory, And the executable instruction of the page Pixel Information is stored in the Installed System Memory of distribution;For the page according to storage Image surface prime information, show the executable instruction of the e-book page to be shown.
CN201710765222.6A 2017-08-30 2017-08-30 Electronic book display method and device and mobile terminal Active CN107479978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710765222.6A CN107479978B (en) 2017-08-30 2017-08-30 Electronic book display method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710765222.6A CN107479978B (en) 2017-08-30 2017-08-30 Electronic book display method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107479978A true CN107479978A (en) 2017-12-15
CN107479978B CN107479978B (en) 2020-11-03

Family

ID=60603328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710765222.6A Active CN107479978B (en) 2017-08-30 2017-08-30 Electronic book display method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107479978B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030021494A1 (en) * 2001-07-25 2003-01-30 James Lu Method and device for producing an image effect
US20100271378A1 (en) * 2009-04-24 2010-10-28 Yun Shon Low Rapid Activation Of A Device Having An Electrophoretic Display
CN105302579A (en) * 2015-11-27 2016-02-03 北京奇虎科技有限公司 System memory occupying method and system memory occupying device
CN105302415A (en) * 2015-10-19 2016-02-03 四川长虹电器股份有限公司 Image thumbnail generation method
CN106056530A (en) * 2016-06-01 2016-10-26 腾讯科技(深圳)有限公司 Method and device for displaying picture content in application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030021494A1 (en) * 2001-07-25 2003-01-30 James Lu Method and device for producing an image effect
US20100271378A1 (en) * 2009-04-24 2010-10-28 Yun Shon Low Rapid Activation Of A Device Having An Electrophoretic Display
CN105302415A (en) * 2015-10-19 2016-02-03 四川长虹电器股份有限公司 Image thumbnail generation method
CN105302579A (en) * 2015-11-27 2016-02-03 北京奇虎科技有限公司 System memory occupying method and system memory occupying device
CN106056530A (en) * 2016-06-01 2016-10-26 腾讯科技(深圳)有限公司 Method and device for displaying picture content in application

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CAREYSON: ""浅谈操作系统对内存的管理"", 《博客园》 *
SLOWANDSTEADY: ""How is a bitmap"s memory managed on Android"", 《STACK OVERFLOW》 *
哈哈呵H: ""Android中App可分配内存的大小"", 《博客园》 *

Also Published As

Publication number Publication date
CN107479978B (en) 2020-11-03

Similar Documents

Publication Publication Date Title
KR102275712B1 (en) Rendering method and apparatus, and electronic apparatus
US8237728B2 (en) Methods, systems, and data structures for generating a rasterizer
US9715750B2 (en) System and method for layering using tile-based renderers
JP5336067B2 (en) Method and apparatus for processing graphics
US9183651B2 (en) Target independent rasterization
US7688317B2 (en) Texture mapping 2-D text properties to 3-D text
CN105393282A (en) Efficient composition and rendering of graphical elements
US9355464B2 (en) Dynamic generation of texture atlases
KR20170000190A (en) Apparatus and method for performing graphics pipeline
CN107301046B (en) Icon processing method and device, computer equipment and storage medium
US8907979B2 (en) Fast rendering of knockout groups using a depth buffer of a graphics processing unit
CN108198229A (en) Redundant sub-pixels mitigate
CN113409411A (en) Rendering method and device of graphical interface, electronic equipment and storage medium
CN113222874B (en) Data enhancement method, device, equipment and storage medium applied to target detection
US9153193B2 (en) Primitive rendering using a single primitive type
EP3438936B1 (en) Method and apparatus for managing graphics layers within a data processing system
CN101326484A (en) Transparency printing
CN107479978A (en) Electronic book displaying method, device and mobile terminal
CN114247138B (en) Image rendering method, device and equipment and storage medium
KR101347178B1 (en) Apparatus and method for drawing vector image
CN113419806B (en) Image processing method, device, computer equipment and storage medium
US20070103488A1 (en) Substituting pattern fills
US20240143911A1 (en) Document difference viewing and navigation
CN115982485A (en) Page rendering method and device, computer equipment and storage medium
Hoddie et al. Drawing Graphics with Poco

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
TA01 Transfer of patent application right

Effective date of registration: 20200604

Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping square B radio tower 13 layer self unit 03

Applicant before: GUANGZHOU ALIBABA LITERATURE INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant