CN104602103A - Set top box memory distribution method and device - Google Patents

Set top box memory distribution method and device Download PDF

Info

Publication number
CN104602103A
CN104602103A CN201410834623.9A CN201410834623A CN104602103A CN 104602103 A CN104602103 A CN 104602103A CN 201410834623 A CN201410834623 A CN 201410834623A CN 104602103 A CN104602103 A CN 104602103A
Authority
CN
China
Prior art keywords
picture
text
size
takes
room
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.)
Pending
Application number
CN201410834623.9A
Other languages
Chinese (zh)
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.)
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software 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 Shenzhen Skyworth Digital Technology Co Ltd, Shenzhen Skyworth Software Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201410834623.9A priority Critical patent/CN104602103A/en
Publication of CN104602103A publication Critical patent/CN104602103A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Abstract

The invention discloses a set top box memory distribution method and device. The set top box memory distribution method can include that acquiring a graphic character processing object of a graphic character processing module; confirming the space usage of the graphic character processing object; distributing memory for the graphic character processing module from the available memory of a system according to the space usage of the graphic character processing object to enable the graphic character processing module to process the graphic character processing object. Through the set top box memory distribution method and device, the memory can be distributed for the graphic character processing module according to the space usage of the graphic character processing object of the graphic character processing module, and the set top box development efficiency is improved.

Description

A kind of Set Top Box memory allocation method and device
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of Set Top Box memory allocation method and device.
Background technology
Set Top Box is the equipment connecting television set and outside source, the digital signal of compression can be changed into television content, and show on a television set.Along with the development of Digital Television, increasing user uses Set Top Box carry out receiving digital signals and then watch Digital Television.
The inner different software module of Set Top Box, when executing the task, to need from system free memory storage allocation to corresponding software module to perform respective task.The method of storage allocation is the estimated value of the memory size that estimation software module needs mostly at present, and the internal memory of fixed allocation estimated value size gives this software module.In the process of Set Top Box picture and text processing module exploitation, according to different demands, picture and text processing module, such as UI module, picture or the word of process may change at any time, the memory size that then picture and text processing module needs also can change thereupon, so method of fixed allocation internal memory, the low memory of distribution likely can be caused to cause running unsuccessfully, or in distributing, have the problem that residue may cause memory fragmentation or RAM leakage, if each developer often revises an image or word is just revised once to the size of the internal memory of picture and text processing module, to greatly affect the development efficiency of Set Top Box picture and text processing module.
Summary of the invention
The embodiment of the present invention provides a kind of Set Top Box memory allocation method and device, can realize according to the size that takes up room of the picture and text handling object of picture and text processing module is described picture and text processing module storage allocation, improves the development efficiency of Set Top Box picture and text processing module.
Embodiment of the present invention first aspect provides a kind of Set Top Box memory allocation method, and described method can comprise:
Obtain the picture and text handling object of picture and text processing module;
Determine the size that takes up room of described picture and text handling object;
The size that takes up room according to described picture and text handling object is described picture and text processing module storage allocation from system free memory, processes described picture and text handling object to make described picture and text processing module.
In the first possible implementation of embodiment of the present invention first aspect, described picture and text handling object comprises at least one picture and text process subobject;
Describedly determine that the size that takes up room of described picture and text handling object comprises:
Obtain the size that takes up room of each picture and text process subobject at least one picture and text process subobject described respectively;
The size that takes up room of each picture and text process subobject described is added up and obtains the size that takes up room of described picture and text handling object.
In conjunction with the first possible implementation of embodiment of the present invention first aspect, in the implementation that the second of embodiment of the present invention first aspect is possible, the described size that takes up room according to described picture and text handling object comprises for described picture and text processing module storage allocation from system free memory:
The internal memory of the size that takes up room of described picture and text handling object be distributed to described picture and text processing module from system free memory.
In conjunction with the implementation that the second of embodiment of the present invention first aspect is possible, in the third possible implementation of embodiment of the present invention first aspect, described picture and text handling object comprises object picture and/or character object.
Correspondingly, the embodiment of the present invention additionally provides a kind of Set Top Box Memory Allocation device, and described device can comprise:
Acquiring unit, for obtaining the image process target of picture and text processing module;
Determining unit, for determining the size that takes up room of described picture and text handling object;
Allocation units, are described picture and text processing module storage allocation for the size that takes up room according to described picture and text handling object, process to make described picture and text processing module to described picture and text handling object from system free memory.
In the first possible implementation of embodiment of the present invention second aspect, described picture and text handling object comprises at least one picture and text process subobject;
Described determining unit comprises:
Size acquisition unit, for obtaining the size that takes up room of at least one picture and text process subobject described respectively;
Summing elements, obtains the size that takes up room of described picture and text handling object for the size that takes up room of each picture and text process subobject described being added up.
In conjunction with the first possible implementation of embodiment of the present invention second aspect, in the implementation that the second of embodiment of the present invention second aspect is possible, described allocation units specifically for distributing the internal memory of the size that takes up room of described picture and text handling object to described picture and text processing module from system free memory.
In conjunction with the implementation that the second of embodiment of the present invention second aspect is possible, in the third possible implementation of embodiment of the present invention second aspect, described picture and text handling object comprises object picture and/or character object.
Implement the embodiment of the present invention, there is following beneficial effect:
By obtaining the size that takes up room of the picture and text handling object of picture and text processing module, for described picture and text processing module distributes the internal memory of the size that takes up room from system free memory, can be implemented in the change along with picture and text handling object in Set Top Box picture and text processing module development process, for picture and text processing module flexible allocation internal memory, improve the development efficiency of Set Top Box picture and text processing module.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of Set Top Box memory allocation method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of a kind of Set Top Box memory allocation method that another embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of Set Top Box Memory Allocation device that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the embodiment of determining unit in the embodiment of the present invention 3;
Fig. 5 is the structural representation of the another kind of Set Top Box Memory Allocation device that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
After application scenarios of the present invention can include but are not limited to and receive start-up command, start text exhibition module starting-up interface is illustrated on the display screen of Set Top Box, or send Set Top Box application navigation interface on a television set to television set by Set Top Box and television interface.
Fig. 1 is the schematic flow sheet of a kind of Set Top Box memory allocation method that the embodiment of the present invention provides, and as shown in the figure, described method can comprise:
S101, obtains the picture and text handling object of picture and text processing module.
Concrete, above-mentioned picture and text processing module can be UI module, and above-mentioned picture and text handling object comprises object picture and/or character object.Step S101 triggers after set-top-box opening to perform.Set Top Box Memory Allocation device picture and text processing module is corresponding from the storage medium of Set Top Box inside memory location can obtain picture and text handling object.The storage medium of above-mentioned Set Top Box inside and set-top-box system internal memory are two kinds of different concepts, the storage medium of above-mentioned Set Top Box inside is used for the working procedure or data etc. of memory machine top box software module, as the picture and text handling object of picture and text processing module, after Set Top Box closes tester in power-down state, picture and text handling object still exists, the storage medium of above-mentioned Set Top Box inside can be storage card, hard disk etc.Above-mentioned set-top-box system internal memory is used to each software module when memory machine top box runs, as picture and text processing module, the data of generation, after Set Top Box closes tester in power-down state, the data produced in above-mentioned operation are eliminated, and above-mentioned set-top-box system internal memory can be the space etc. of random store-memory body.
S102, determines the size that takes up room of described picture and text handling object.
Concrete, above-mentioned picture and text handling object comprises at least one picture and text process subobject, obtain the size that takes up room of each picture and text process subobject at least one picture and text process subobject described respectively, the size that takes up room of each picture and text process subobject described is added up and obtains the size that takes up room of described picture and text handling object.Such as image shows module needs the picture shown to have five, and the five pictures size that takes up room is respectively 50KB, 45KB, 20KB, 25KB and 10KB, then the size that takes up room of the picture and text handling object of image shows module is 150KB.
If the picture and text handling object of described picture and text processing module is object picture, obtain each picture and text process subobject, namely each width picture width, highly, the attribute information such as form, and then obtain the size that takes up room of described picture and text process subobject according to described attribute information.If the picture and text handling object of described picture and text processing module is character object, obtain each picture and text process subobject, i.e. total number of take up room size and the character object of each character, to be multiplied the two to make step S103 and to obtain the size that takes up room of character object.
S103, the size that takes up room according to described picture and text handling object is described picture and text processing module storage allocation from system free memory.
Concrete, the internal memory distributing the size that takes up room of described picture and text handling object from Installed System Memory, to described picture and text processing module, processes described picture and text handling object to make described picture and text processing module.The size of the described picture and text handling object such as, obtained in step S102 is 150KB, be then the internal memory that described picture and text processing module distributes 150KB from system free memory.
By obtaining the size that takes up room of the picture and text handling object of picture and text processing module, for described picture and text processing module distributes the internal memory of the size that takes up room from system free memory, can be implemented in the change along with picture and text handling object in Set Top Box picture and text processing module development process, for picture and text processing module flexible allocation internal memory, improve the development efficiency of Set Top Box picture and text processing module.
Fig. 2 is the schematic flow sheet of a kind of Set Top Box memory allocation method that another embodiment of the present invention provides, and as shown in the figure, described method can comprise:
S201, obtains the picture and text handling object of picture and text processing module.
Above-mentioned picture and text processing module can be UI module, and above-mentioned picture and text handling object comprises object picture and/or character object.Described picture and text handling object comprises at least one picture and text process subobject, and described picture and text process subobject can be a width picture, a word or a symbol etc.
S202, obtains the size that takes up room of each picture and text process subobject at least one picture and text process subobject described respectively.
If the picture and text handling object of described picture and text processing module is object picture, obtain each picture and text process subobject, namely each width picture width, highly, the attribute information such as form, and then obtain the size that takes up room of described picture and text process subobject according to described attribute information.Such as, 32 color, 1024 × 768 pixels, form are the picture of the BMP size that takes up room is 1024 × 768 × 32 ÷ 8=4096KB.
If the picture and text handling object of described picture and text processing module is character object, described character object can comprise word, letter, symbol or numeral etc., then described picture and text process subobject can be a word, a letter, a symbol or a numeral etc., the word pre-set can be obtained, a letter, a symbol or the digital size that takes up room are respectively two bytes, a byte, a byte and a byte, and obtain total number of described word, total number of letter, total number of symbol and total number of numeral, with the size that takes up room making step S203 obtain described picture and text handling object further.
S203, adds up the size that takes up room of each picture and text process subobject described and obtains the size that takes up room of described picture and text handling object.
In specific implementation, if described picture and text handling object is object picture, picture and text process subobject can be a width picture, described picture processing subobject is started from scratch numbering, can be by the successively layout of picture rise time, also can layout at random, add up total number of described image procossing subobject, pre-set the intermediate variable that takes up room, the above-mentioned intermediate variable initial value that takes up room is zero, the size that takes up room being numbered the picture of zero obtained in obtaining step S202, be added with the described intermediate variable that takes up room, obtain the intermediate variable that takes up room after being added, continue the size that takes up room being numbered the picture of obtained in obtaining step S202, be added with the intermediate variable that takes up room after described addition, this process that circulates is until the size that takes up room that numbering equals the picture of the total number of described image procossing subobject terminates after being accumulated in the above-mentioned intermediate variable that takes up room, the value of the above-mentioned intermediate variable that takes up room is defined as the size that takes up room of described picture and text handling object.
If described picture and text handling object is character object, total number of the word obtained in step S202 is multiplied by the size that takes up room of a word, alphabetical total number is multiplied by an alphabetical size that takes up room, total number of symbol is multiplied by the size that takes up room of a symbol, digital total number is multiplied by a digital size that takes up room, and will obtain the size that takes up room of described picture and text handling object after above-mentioned product addition.
Such as, the picture and text handling object of the picture and text processing module obtained in step S201 is five pictures: Image1.png, Image2.png, Image3.png, Image4.png and Image5.png, seven letters " welcome " and symbol "! "; obtain the five pictures size that takes up room in step S202 and be respectively: 50KB, 45KB, 20KB, 25KB and 10KB; each letter size that takes up room is a byte; each symbol size that takes up room is a byte, then step S203 can obtain the size that takes up room of above-mentioned picture and text handling object is 50KB+45KB+20KB+25KB+10KB+7 × 1KB+1 × 1KB=158KB.
S204, distributes the internal memory of the size that takes up room of described picture and text handling object to described picture and text processing module from system free memory.
The equal-sized internal memory that takes up room of the described picture and text handling object obtained in allocation step S203 from system free memory, to described picture and text processing module, processes described picture and text handling object to make described picture and text processing module.
Pass through said process, in the process of Set Top Box exploitation, if add a width picture in the picture and text handling object of described picture and text processing module, then direct total number by the image procossing subobject in step S203 adds one, and give the picture number increased, and then the size of described picture and text handling object can be obtained, and distribute corresponding internal memory to described picture and text processing module.If delete the width picture in described picture and text handling object, then total number of the image procossing subobject in step S203 is subtracted one, and the numbering of deleting picture is compiled to the picture of the numbering large than deletion picture, by that analogy, and then obtain the size of described picture and text handling object, and distribute corresponding internal memory to described picture and text processing module.If change a width picture in the picture and text handling object of described picture and text processing module, then the numbering changing front picture is compiled the picture after to replacing, and then obtain the size of described picture processing object, and distribute corresponding internal memory to described picture and text processing module, improve development efficiency.
If change in the picture and text handling object of described picture and text processing module, add or delete word, letter, symbol or numeral, then again add up total number that word, letter, symbol or numeral are respective, and then obtain the size of described picture processing object, and distribute corresponding internal memory to described picture and text processing module, improve development efficiency.
By obtaining the size that takes up room of the picture and text handling object of picture and text processing module, for described picture and text processing module distributes the internal memory of the size that takes up room from system free memory, can be implemented in the change along with picture and text handling object in Set Top Box picture and text processing module development process, for picture and text processing module flexible allocation internal memory, improve the development efficiency of Set Top Box picture and text processing module.
Fig. 3 is the structural representation of a kind of Set Top Box Memory Allocation device that the embodiment of the present invention provides, and as shown in the figure, described Memory Allocation device can comprise: acquiring unit 301, determining unit 302 and allocation units 303, wherein:
Acquiring unit 301, for obtaining the image process target of picture and text processing module.
Concrete, above-mentioned picture and text processing module can be UI module, and above-mentioned picture and text handling object comprises object picture and/or character object.The image process target that acquiring unit 301 obtains picture and text processing module can be trigger after set-top-box opening to perform.Acquiring unit 301 picture and text processing module is corresponding from the storage medium of Set Top Box inside memory location can obtain picture and text handling object.The storage medium of above-mentioned Set Top Box inside and set-top-box system internal memory are two kinds of different concepts, the storage medium of above-mentioned Set Top Box inside is used for the working procedure or data etc. of memory machine top box software module, as the picture and text handling object of picture and text processing module, after Set Top Box closes tester in power-down state, picture and text handling object still exists, the storage medium of above-mentioned Set Top Box inside can be storage card, hard disk etc.Above-mentioned set-top-box system internal memory is used to each software module when memory machine top box runs, as picture and text processing module, the data of generation, after Set Top Box closes tester in power-down state, the data produced in above-mentioned operation are eliminated, and above-mentioned set-top-box system internal memory can be the space etc. of random store-memory body.
Determining unit 302, for determining the size that takes up room of described picture and text handling object.
Concrete, above-mentioned picture and text handling object comprises at least one picture and text process subobject, described picture and text process subobject can be a width picture, a word or a symbol etc.Determining unit 302 obtains the size that takes up room of each picture and text process subobject at least one picture and text process subobject described respectively, the size that takes up room of each picture and text process subobject described is added up and obtains the size that takes up room of described picture and text handling object.Such as image shows module needs the picture shown to have five, and the size that takes up room is respectively 50KB, 45KB, 20KB, 25KB and 10KB, then the size that takes up room of the picture and text handling object of image shows module is 150KB.
Optionally, as shown in Figure 4, described determining unit 302 can comprise size acquisition unit 3201 and summing elements 3202, wherein:
Size acquisition unit 3201, for obtaining the size that takes up room of at least one picture and text process subobject described respectively.
If the picture and text handling object of described picture and text processing module is object picture, size acquisition unit 3201 obtains each picture and text process subobject, namely each width picture width, highly, the attribute information such as form, and then obtain the size that takes up room of described picture and text process subobject according to described attribute information.Such as, acquiring unit 301 obtains 32 colors, 1024 × 768 pixels, form are the picture of BMP, and it is 4096KB that size acquisition unit 3201 can calculate this picture size that takes up room by 1024 × 768 × 32 ÷ 8=4096KB.
If the picture and text handling object of described picture and text processing module is character object, described character object can comprise word, letter, symbol or numeral etc., then described picture and text process subobject can be a word, a letter, a symbol or a numeral etc., size acquisition unit 3201 can obtain the word pre-set, a letter, a symbol or the digital size that takes up room are respectively two bytes, a byte, a byte and a byte, and obtain total number of described word, total number of letter, total number of symbol and total number of numeral, with the size that takes up room making summing elements 3202 obtain described picture and text handling object further.
Summing elements 3202, obtains the size that takes up room of described picture and text handling object for the size that takes up room of each picture and text process subobject described being added up.
In specific implementation, if described picture and text handling object is object picture, picture and text process subobject can be a width picture, summing elements 3202 can be started from scratch numbering to described picture processing subobject, can be by the successively layout of picture rise time, also can layout at random, add up total number of described image procossing subobject, pre-set the intermediate variable that takes up room, the above-mentioned intermediate variable initial value that takes up room is zero, obtain the size that takes up room being numbered the picture of zero that size acquisition unit 3201 obtains, be added with the described intermediate variable that takes up room, obtain the intermediate variable that takes up room after being added, continue the size that takes up room being numbered the picture of that acquisition size acquisition unit 3201 obtains, be added with the intermediate variable that takes up room after described addition, this process that circulates is until the size that takes up room that numbering equals the picture of the total number of described image procossing subobject terminates after being accumulated in the above-mentioned intermediate variable that takes up room, the value of the above-mentioned intermediate variable that takes up room is defined as the size that takes up room of described picture and text handling object.
If described picture and text handling object is character object, total number of the word that size acquisition unit 3201 obtains by summing elements 3202 is multiplied by the size that takes up room of a word, alphabetical total number is multiplied by an alphabetical size that takes up room, total number of symbol is multiplied by the size that takes up room of a symbol, digital total number is multiplied by a digital size that takes up room, and will obtain the size that takes up room of described picture and text handling object after above-mentioned product addition.
Such as, the picture and text handling object of picture and text processing module that acquiring unit 301 obtains is five pictures: Image1.png, Image2.png, Image3.png, Image4.png and Image5.png, seven letters " welcome " and symbol "! "; size acquisition unit 3201 obtains the five pictures size that takes up room and is respectively: 50KB, 45KB, 20KB, 25KB and 10KB; each letter size that takes up room is a byte; each symbol size that takes up room is a byte, and the size that takes up room that summing elements 3202 can obtain above-mentioned picture and text handling object is 50KB+45KB+20KB+25KB+10KB+7 × 1KB+1 × 1KB=158KB.
Allocation units 303, are described picture and text processing module storage allocation for the size that takes up room according to described picture and text handling object, process to make described picture and text processing module to described picture and text handling object from system free memory.
The equal-sized internal memory that takes up room distributing the described picture and text handling object that determining unit 302 obtains from system free memory, to described picture and text processing module, processes described picture and text handling object to make described picture and text processing module.The size of the described picture and text handling object that such as determining unit 302 obtains is 150KB, then allocation units 303 are the internal memory that described picture and text processing module distributes 150KB from system free memory.
In the process of Set Top Box exploitation, if add a width picture in the picture and text handling object of described picture and text processing module, then total number of image procossing subobject is directly added one by summing elements 3202, and give the picture number increased, and then the size of described picture and text handling object can be obtained, allocation units 303 distribute corresponding internal memory to described picture and text processing module.If delete the width picture in described picture and text handling object, then total number of image procossing subobject is subtracted one by summing elements 3202, and the numbering of deleting picture is compiled to the picture of the numbering large than deletion picture, by that analogy, and then obtaining the size of described picture and text handling object, allocation units 303 distribute corresponding internal memory to described picture and text processing module.If change a width picture in the picture and text handling object of described picture and text processing module, then the numbering changing front picture is compiled the picture after to replacing by summing elements 3202, and then obtain the size of described picture processing object, allocation units 303 distribute corresponding internal memory to described picture and text processing module, improve development efficiency.
If change in the picture and text handling object of described picture and text processing module, add or delete word, letter, symbol or numeral, then summing elements 3202 adds up the respective total number of word, letter, symbol or numeral again, and then obtain the size of described picture processing object, allocation units 303 distribute corresponding internal memory to described picture and text processing module, improve development efficiency.
By obtaining the size that takes up room of the picture and text handling object of picture and text processing module, for described picture and text processing module distributes the internal memory of the size that takes up room from system free memory, can be implemented in the change along with picture and text handling object in Set Top Box picture and text processing module development process, for picture and text processing module flexible allocation internal memory, improve the development efficiency of Set Top Box picture and text processing module.
Fig. 5 is the structural representation of the another kind of Set Top Box Memory Allocation device that the embodiment of the present invention provides, as shown in the figure, described Memory Allocation device can comprise: at least one input unit 401, at least one output device 402, at least one processor 403, such as CPU, memory 404 and at least one bus 405.
Wherein, above-mentioned bus 405 is for connecting above-mentioned input unit 401, output device 402, processor 403 and memory 404.
Wherein, above-mentioned input unit 401 specifically can be the user interface of Memory Allocation device, comprises button, for receiving the operational order of user.
Above-mentioned output establishes device 402 specifically to can be the display screen of Memory Allocation device, for showing the process graphics context of picture and text processing module.
Above-mentioned memory 404 can be high-speed RAM memory, also can be non-labile memory (non-volatile memory), such as magnetic disc store.Above-mentioned memory 404 is for storing batch processing code, and above-mentioned processor 403, for calling the program code stored in memory 404, performing and operating as follows:
Obtain the picture and text handling object of picture and text processing module;
Determine the size that takes up room of described picture and text handling object;
The size that takes up room according to described picture and text handling object is described picture and text processing module storage allocation from system free memory, processes described picture and text handling object to make described picture and text processing module.
In the optional execution mode of one, described picture and text handling object comprises at least one picture and text process subobject;
Above-mentioned processor 403, for calling the program code stored in memory 404, performs:
Obtain the size that takes up room of each picture and text process subobject at least one picture and text process subobject described respectively;
The size that takes up room of each picture and text process subobject described is added up and obtains the size that takes up room of described picture and text handling object.
In another kind of optional embodiment, above-mentioned processor 403, for calling the program code stored in memory 404, performs:
The internal memory of the size that takes up room of described picture and text handling object be distributed to described picture and text processing module from system free memory.
Optionally, described picture and text handling object comprises object picture and/or character object.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (8)

1. a Set Top Box memory allocation method, is characterized in that, described method comprises:
Obtain the picture and text handling object of picture and text processing module;
Determine the size that takes up room of described picture and text handling object;
The size that takes up room according to described picture and text handling object is described picture and text processing module storage allocation from system free memory, processes described picture and text handling object to make described picture and text processing module.
2. method according to claim 1, it is characterized in that, described picture and text handling object comprises at least one picture and text process subobject;
Describedly determine that the size that takes up room of described picture and text handling object comprises:
Obtain the size that takes up room of each picture and text process subobject at least one picture and text process subobject described respectively;
The size that takes up room of each picture and text process subobject described is added up and obtains the size that takes up room of described picture and text handling object.
3. method according to claim 1, it is characterized in that, the described size that takes up room according to described picture and text handling object comprises for described picture and text processing module storage allocation from system free memory:
The internal memory of the size that takes up room of described picture and text handling object be distributed to described picture and text processing module from system free memory.
4. method according to claim 1, it is characterized in that, described picture and text handling object comprises object picture and/or character object.
5. a Set Top Box Memory Allocation device, is characterized in that, described device comprises:
Acquiring unit, for obtaining the image process target of picture and text processing module;
Determining unit, for determining the size that takes up room of described picture and text handling object;
Allocation units, are described picture and text processing module storage allocation for the size that takes up room according to described picture and text handling object, process to make described picture and text processing module to described picture and text handling object from system free memory.
6. device according to claim 5, it is characterized in that, described picture and text handling object comprises at least one picture and text process subobject;
Described determining unit comprises:
Size acquisition unit, for obtaining the size that takes up room of at least one picture and text process subobject described respectively;
Summing elements, obtains the size that takes up room of described picture and text handling object for the size that takes up room of each picture and text process subobject described being added up.
7. device according to claim 5, it is characterized in that, described allocation units are used for:
The internal memory of the size that takes up room of described picture and text handling object be distributed to described picture and text processing module from system free memory.
8. method according to claim 5, it is characterized in that, described picture and text handling object comprises object picture and/or character object.
CN201410834623.9A 2014-12-29 2014-12-29 Set top box memory distribution method and device Pending CN104602103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410834623.9A CN104602103A (en) 2014-12-29 2014-12-29 Set top box memory distribution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410834623.9A CN104602103A (en) 2014-12-29 2014-12-29 Set top box memory distribution method and device

Publications (1)

Publication Number Publication Date
CN104602103A true CN104602103A (en) 2015-05-06

Family

ID=53127538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410834623.9A Pending CN104602103A (en) 2014-12-29 2014-12-29 Set top box memory distribution method and device

Country Status (1)

Country Link
CN (1) CN104602103A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101169759A (en) * 2007-11-08 2008-04-30 Ut斯达康通讯有限公司 Memory management method for application program
CN101226549A (en) * 2008-01-25 2008-07-23 中兴通讯股份有限公司 Method and device for loading picture resource in embedded system
CN101373445A (en) * 2008-09-09 2009-02-25 创新科存储技术(深圳)有限公司 Method and apparatus for scheduling memory
US20090320069A1 (en) * 2001-06-07 2009-12-24 The Directv Group, Inc. Method and system for electronic program guide temporal content organization
CN102446139A (en) * 2011-11-14 2012-05-09 奇智软件(北京)有限公司 Method and device for data storage
CN103718543A (en) * 2011-07-27 2014-04-09 汤姆逊许可公司 Variable real time buffer and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090320069A1 (en) * 2001-06-07 2009-12-24 The Directv Group, Inc. Method and system for electronic program guide temporal content organization
CN101169759A (en) * 2007-11-08 2008-04-30 Ut斯达康通讯有限公司 Memory management method for application program
CN101226549A (en) * 2008-01-25 2008-07-23 中兴通讯股份有限公司 Method and device for loading picture resource in embedded system
CN101373445A (en) * 2008-09-09 2009-02-25 创新科存储技术(深圳)有限公司 Method and apparatus for scheduling memory
CN103718543A (en) * 2011-07-27 2014-04-09 汤姆逊许可公司 Variable real time buffer and apparatus
CN102446139A (en) * 2011-11-14 2012-05-09 奇智软件(北京)有限公司 Method and device for data storage

Similar Documents

Publication Publication Date Title
CN107168712B (en) Interface drawing method, mobile terminal and computer readable storage medium
US20150287162A1 (en) Image Curation
CN105760199B (en) A kind of application resource loading method and its equipment
CN103034467B (en) Method for displaying image, device and mobile terminal
CN107943363B (en) Background image configuration method and device, interactive intelligent panel and storage medium
CN105517681A (en) Chart conversion system using metadata and method therefor
CN110007829B (en) Content display method, device, terminal and storage medium
CN110442308B (en) Data block storage method, device, equipment and storage medium
CN105549936B (en) Data table display method and device
KR20180056316A (en) Method and apparatus for performing tile-based rendering
US20170235473A1 (en) Method and Apparatus for Loading Application Program View, and Electronic Terminal
CN105095157A (en) Method and device for displaying character string
CN111385665A (en) Bullet screen information processing method, device, equipment and storage medium
CN110262720A (en) Control method, device, equipment and the storage medium of floating window
CN107122104B (en) Data display method and device
CN108989704B (en) Image generation method and device and terminal equipment
US20180349444A1 (en) Glyph management in texture atlases
CN109718554B (en) Real-time rendering method and device and terminal
US8761543B2 (en) Image processing using bounds adjustment
CN104602103A (en) Set top box memory distribution method and device
US9715715B2 (en) Efficient cache preloading
CN115016686A (en) File selection method and device, electronic equipment and readable storage medium
CN112367295B (en) Plug-in display method and device, storage medium and electronic equipment
CN103702193A (en) Method and device for identifying and recognizing type of intelligent television
CN105378645A (en) Virtualizing applications for multi-monitor environments

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150506