CN104461916A - Method and system for saving storage memory of pictures - Google Patents

Method and system for saving storage memory of pictures Download PDF

Info

Publication number
CN104461916A
CN104461916A CN201410665260.0A CN201410665260A CN104461916A CN 104461916 A CN104461916 A CN 104461916A CN 201410665260 A CN201410665260 A CN 201410665260A CN 104461916 A CN104461916 A CN 104461916A
Authority
CN
China
Prior art keywords
picture
information
pictures
actual
actual information
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
CN201410665260.0A
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.)
Fujian Newland Communication Science Technology Co Ltd
Original Assignee
Fujian Newland Communication Science 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 Fujian Newland Communication Science Technology Co Ltd filed Critical Fujian Newland Communication Science Technology Co Ltd
Priority to CN201410665260.0A priority Critical patent/CN104461916A/en
Publication of CN104461916A publication Critical patent/CN104461916A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention provides a method for saving the storage memory of pictures. The method comprises the steps that 1, a picture data package is received and stored in a memory, and head information of the pictures, effective information of each picture and actual information of each picture are analyzed out in sequence; 2, the analyzed head information of the pictures, the analyzed effective information of each picture and the analyzed actual information of each picture are sequentially organized; 3, according to the head information of the pictures, the effective information of each picture, the actual information of each picture and the number of the pictures, the address where the actual information of each picture is stored in a flash is obtained by calculation, the addresses are stored in the effective information of the pictures in a one-to-one corresponding mode, then the organized head information of the pictures, the organized effective information linked list of the pictures and the organized actual information linked list of the pictures are sequentially stored in the flash, and the actual information linked list of the pictures in the memory is released. The invention further provides a system for saving the storage memory of the pictures. The storage mode of the pictures in a set top box is optimized, and the memory is saved greatly.

Description

The method and system of memory saved by a kind of picture
Technical field
The present invention relates to a kind of computer realm, particularly relate to the method and system that memory saved by a kind of picture.
Background technology
At present, along with the development of Digital Television, top box of digital machine is promoted in the world with universal.Due to Cost Problems, Set Top Box has restriction to hardware, particularly internal memory.At present when Set Top Box browsing pictures on the market, be all generally read all image datas to import in internal memory, call for display module.But this tupe occupies a large amount of internal memory, and the not shown module of part picture is called, and causes the waste of memory headroom.
Summary of the invention
One of the technical problem to be solved in the present invention, be to provide a kind of picture to save the method for memory, the method optimizes the memory module of picture in Set Top Box, greatly saves internal memory.
One of problem of the present invention, is achieved in that
A method for memory saved by picture, comprises the steps:
Step 1, Set Top Box receive image data bag and are stored in internal memory from data signal line, parse picture header information, each pictures effective information, each pictures actual information from image data bag successively;
Step 2, the picture header information of having resolved, each pictures effective information, each pictures actual information to be organized successively, and each the pictures effective information organized, each pictures actual information are connected into a picture effective information chained list and a picture actual information chained list successively;
Step 3, to calculate each pictures actual information according to picture header information, each pictures effective information, each pictures actual information and number of pictures and will be deposited into address in flash, this address is deposited into one to one in each pictures effective information; Then the picture header information organized, picture effective information chained list, picture actual information chained list are stored in flash successively, and the picture actual information chained list in releasing memory.
Further, described step 1 is specially further:
Step 11, Set Top Box receive image data bag and are stored in internal memory from data signal line, from image data bag, first parse picture header information, described picture header information comprises picture sum, the total version number of picture, picture zone bit, internal memory effective information start address and internal memory actual information start address; The length of described picture header information is that user sets, and refers to the length of occupying in internal memory;
Step 12, by internal memory effective information start address, parse each pictures effective information successively; Often parse a pictures effective information, just the quantity of the picture effective information parsed and the size of picture sum are judged, when the quantity of the picture effective information parsed reaches picture sum, then all picture effective informations are parsed, otherwise continue to resolve next pictures effective information; Described picture effective information comprises picture file length, picture file ID, picture actual information start address, picture file version number and picture user's information structure body, and wherein picture user's information structure body comprises Picture Coordinate, picture categories, picture/mb-type; Described picture file length is that user sets;
Step 13, by internal memory actual information start address, parse each pictures actual information successively; Often parse a pictures actual information, just the quantity of the picture actual information parsed and the size of picture sum are judged, when the quantity of the picture actual information parsed reaches picture sum, then all picture actual informations are parsed, otherwise continue to resolve next pictures actual information; Described picture actual information is picture file size, picture file ID, picture file version number and picture real data.
Further, described step 2 is specially further:
Step 21, the picture header information parsed to be organized;
Step 22, often resolve a pictures effective information, just it is organized, often organize a pictures effective information, just the quantity of the picture effective information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture effective information tissues complete, then each pictures effective information is organized into a picture effective information chained list; Otherwise continue to organize next pictures actual information;
Step 23, often resolve a pictures actual information, just it is organized, often organize a pictures actual information, just the quantity of the picture actual information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture actual information tissues complete, then each pictures actual information is organized into a picture actual information chained list; Otherwise continue to organize next pictures actual information.
Further, described step 3 is specially further:
Step 31, address shared by the length of picture header information, calculating its next address is the address that the first pictures effective information will be deposited in flash, calculates the length of picture effective information chained list according to the picture file length in each pictures effective information and number of pictures; It is the address that the first pictures actual information will be deposited in flash that address again shared by the length of picture header information, address computation shared by the length of picture effective information chained list go out its next address, this address is deposited in the picture actual information start address in the first pictures effective information, then calculate next pictures actual information according to the picture file size in the first pictures actual information and will be deposited into address in flash, this address is deposited in the picture actual information start address in next pictures effective information;
Step 32, by picture header information stored in flash;
Step 33, the address that will to be deposited into according to the first pictures effective information in flash, by picture effective information chained list stored in flash;
Step 34, according to the picture actual information start address in the first pictures effective information, by picture actual information chained list stored in flash.
Further, also comprise step 4: when needs extract a certain pictures data, import picture file ID or picture/mb-type into; According to the title of match-type and match-type, the picture actual information start address in each pictures effective information is searched, then take out picture according to picture actual information start address from flash assigned address, and Show Picture.
The technical problem to be solved in the present invention two, is to provide a kind of picture to save the system of memory, optimizes the memory module of picture in Set Top Box, greatly save internal memory.
Problem two of the present invention, is achieved in that
A system for memory saved by picture, comprises picture parsing module, pictorial information molded tissue block, image data memory module;
Described picture parsing module, receives image data bag for Set Top Box and is stored in internal memory from data signal line, parses picture header information, each pictures effective information, each pictures actual information from image data bag successively;
Described pictorial information molded tissue block, for the picture header of having resolved information, each pictures effective information, each pictures actual information being organized successively, and each the pictures effective information organized, each pictures actual information are connected into a picture effective information chained list and a picture actual information chained list successively;
Described image data memory module, address in flash to be deposited into for calculating each pictures actual information according to picture header information, each pictures effective information, each pictures actual information and number of pictures, this address be deposited into one to one in each pictures effective information; Then the picture header information organized, picture effective information chained list, picture actual information chained list are stored in flash successively, and the picture actual information chained list in releasing memory.
Further, described picture parsing module comprises head resolution unit, xml resolution unit, data resolution unit;
Described head resolution unit, from data signal line, receive image data bag for Set Top Box and be stored in internal memory, from image data bag, first parse picture header information, described picture header information comprises picture sum, the total version number of picture, picture zone bit, internal memory effective information start address and internal memory actual information start address; The length of described picture header information is that user sets, and refers to the length of occupying in internal memory;
Described xml resolution unit, parses each pictures effective information successively by internal memory effective information start address; Often parse a pictures effective information, just the quantity of the picture effective information parsed and the size of picture sum are judged, when the quantity of the picture effective information parsed reaches picture sum, then all picture effective informations are parsed, otherwise continue to resolve next pictures effective information; Described picture effective information comprises picture file length, picture file ID, picture actual information start address, picture file version number and picture user's information structure body, and wherein picture user's information structure body comprises Picture Coordinate, picture categories, picture/mb-type; Described picture file length is that user sets;
Described data resolution unit, parses each pictures actual information successively by internal memory actual information start address; Often parse a pictures actual information, just the quantity of the picture actual information parsed and the size of picture sum are judged, when the quantity of the picture actual information parsed reaches picture sum, then all picture actual informations are parsed, otherwise continue to resolve next pictures actual information; Described picture actual information is picture file size, picture file ID, picture file version number and picture real data.
Further, described pictorial information molded tissue block comprises picture header Information Organization unit, picture effective information organization unit, picture actual information organization unit;
Described picture header Information Organization unit, for organizing the picture header parsed information;
Described picture effective information organization unit, for often resolving a pictures effective information, just it is organized, often organize a pictures effective information, just the quantity of the picture effective information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture effective information tissues complete, then each pictures effective information is organized into a picture effective information chained list; Otherwise continue to organize next pictures actual information;
Described picture actual information organization unit, for often resolving a pictures actual information, just it is organized, often organize a pictures actual information, just the quantity of the picture actual information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture actual information tissues complete, then each pictures actual information is organized into a picture actual information chained list; Otherwise continue to organize next pictures actual information.
Further, described image data memory module comprises Data Computation Unit, picture header information memory cell, picture effective information storage unit, picture actual information storage unit;
Described Data Computation Unit, for the address shared by the length of picture header information, calculating its next address is the address that the first pictures effective information will be deposited in flash, calculates the length of picture effective information chained list according to the picture file length in each pictures effective information and number of pictures; It is the address that the first pictures actual information will be deposited in flash that address again shared by the length of picture header information, address computation shared by the length of picture effective information chained list go out its next address, this address is deposited in the picture actual information start address in the first pictures effective information, then calculate next pictures actual information according to the picture file size in the first pictures actual information and will be deposited into address in flash, this address is deposited in the picture actual information start address in next pictures effective information;
Described picture header information memory cell, for first by picture header information stored in flash;
Described picture effective information storage unit, for will be deposited into the address in flash according to the first pictures effective information, by picture effective information chained list stored in flash;
Described picture actual information storage unit, for according to the picture actual information start address in the first pictures effective information, by picture actual information chained list stored in flash.
Further, also comprising picture display module, for importing picture file ID or picture/mb-type into, when needs extract a certain pictures data, importing picture file ID or picture/mb-type into; According to the title of match-type and match-type, the picture actual information start address in each pictures effective information is searched, then take out picture according to picture actual information start address from flash assigned address, and Show Picture.
Tool of the present invention has the following advantages: present invention optimizes the memory module of picture in Set Top Box, makes Set Top Box reduce unnecessary internal memory as far as possible and uses, greatly reduce cost; Set up display and call picture system, ensure under the prerequisite not affecting user's browsing pictures, optimize and save the internal memory of Set Top Box.
Accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the process flow diagram of picture-storage of the present invention.
Fig. 2 is the process flow diagram of picture of the present invention display.
Embodiment
As shown in Figure 1, the method for memory saved by a kind of picture of the present invention, comprises the steps:
Step 1, Set Top Box receive image data bag and are stored in internal memory from data signal line, parse picture header information, each pictures effective information, each pictures actual information from image data bag successively; This parsing refers to and the data in internal memory is extracted, particularly:
Step 11, Set Top Box receive image data bag and are stored in internal memory from data signal line, from image data bag, first parse picture header information, described picture header information comprises picture sum, the total version number of picture, picture zone bit, internal memory effective information start address and internal memory actual information start address; The length of described picture header information is that user sets, and refers to the length of occupying in internal memory;
Step 12, by internal memory effective information start address, parse each pictures effective information successively; Often parse a pictures effective information, just the quantity of the picture effective information parsed and the size of picture sum are judged, when the quantity of the picture effective information parsed reaches picture sum, then all picture effective informations are parsed, otherwise continue to resolve next pictures effective information; Described picture effective information comprises picture file length, picture file ID, picture actual information start address, picture file version number and picture user's information structure body, and wherein picture user's information structure body comprises Picture Coordinate, picture categories, picture/mb-type; Described picture file length is that user sets;
Step 13, by internal memory actual information start address, parse each pictures actual information successively; Often parse a pictures actual information, just the quantity of the picture actual information parsed and the size of picture sum are judged, when the quantity of the picture actual information parsed reaches picture sum, then all picture actual informations are parsed, otherwise continue to resolve next pictures actual information; Described picture actual information is picture file size, picture file ID, picture file version number and picture real data.
Step 2, the picture header information of having resolved, each pictures effective information, each pictures actual information to be organized successively, and each the pictures effective information organized, each pictures actual information are connected into a picture effective information chained list and a picture actual information chained list successively; Particularly:
Step 21, the picture header information parsed to be organized; This tissue refers to the Format Type format conversion of picture header information become required for user;
Step 22, often resolve a pictures effective information, just it is organized, often organize a pictures effective information, just the quantity of the picture effective information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture effective information tissues complete, then each pictures effective information is organized into a picture effective information chained list; Otherwise continue to organize next pictures actual information; This tissue refers to the Format Type xml format conversion of picture effective information become required for user;
Step 23, often resolve a pictures actual information, just it is organized, often organize a pictures actual information, just the quantity of the picture actual information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture actual information tissues complete, then each pictures actual information is organized into a picture actual information chained list; Otherwise continue to organize next pictures actual information; This tissue refers to the Format Type data format conversion of picture actual information become required for user.
Step 3, to calculate each pictures actual information according to picture header information, each pictures effective information, each pictures actual information and number of pictures and will be deposited into address in flash, this address is deposited into one to one in each pictures effective information; Then the picture header information organized, picture effective information chained list, picture actual information chained list are stored in flash successively, and the picture actual information chained list in releasing memory; This flash refers to the one of storage chip, can be revised the data of the inside by specific program.Flash storer, also known as flash memory, it combines the strong point of ROM and RAM, not only possesses the performance of Electrical Erasable (EEPROM) able to programme, can also read data fast, and data can not be lost because of power-off; Particularly:
Step 31, address shared by the length of picture header information, calculating its next address is the address that the first pictures effective information will be deposited in flash, calculates the length of picture effective information chained list according to the picture file length in each pictures effective information and number of pictures; It is the address that the first pictures actual information will be deposited in flash that address again shared by the length of picture header information, address computation shared by the length of picture effective information chained list go out its next address, this address is deposited in the picture actual information start address in the first pictures effective information, then calculate next pictures actual information according to the picture file size in the first pictures actual information and will be deposited into address in flash, this address is deposited in the picture actual information start address in next pictures effective information;
Step 32, by picture header information stored in flash;
Step 33, the address that will to be deposited into according to the first pictures effective information in flash, by picture effective information chained list stored in flash;
Step 34, according to the picture actual information start address in the first pictures effective information, by picture actual information chained list stored in flash.
As shown in Figure 2, the picture of storage is shown, when needs extract a certain pictures data, import picture file ID or picture/mb-type into; According to the title of match-type and match-type, the picture actual information start address in each pictures effective information is searched, then take out picture according to picture actual information start address from flash assigned address, and Show Picture.
If match-type is picture file ID, then matching parameter is file ID number, for file ID number 1, file ID number 1 is searched, inquire about the picture file ID in each pictures effective information, find that picture file ID returns the picture actual information start address of this pictures when being 1, then from flash, obtain picture according to this start address and show;
If match-type is picture/mb-type, then matching parameter is picture/mb-type title, for startup advertisement, startup advertisement is searched, inquire about the picture/mb-type in each pictures user's information structure body, find that picture/mb-type returns the picture actual information start address of this pictures when being startup advertisement, then from flash, obtain picture according to this start address and show.
The system of memory saved by a kind of picture of the present invention, comprises picture parsing module, pictorial information molded tissue block, image data memory module;
Described picture parsing module, receives image data bag for Set Top Box and is stored in internal memory from data signal line, parses picture header information, each pictures effective information, each pictures actual information from image data bag successively; This parsing refers to and the data in internal memory is extracted, and particularly, described picture parsing module comprises head resolution unit, xml resolution unit, data resolution unit;
Described head resolution unit, from data signal line, receive image data bag for Set Top Box and be stored in internal memory, from image data bag, first parse picture header information, described picture header information comprises picture sum, the total version number of picture, picture zone bit, internal memory effective information start address and internal memory actual information start address; The length of described picture header information is that user sets, and refers to the length of occupying in internal memory;
Described xml resolution unit, parses each pictures effective information successively by internal memory effective information start address; Often parse a pictures effective information, just the quantity of the picture effective information parsed and the size of picture sum are judged, when the quantity of the picture effective information parsed reaches picture sum, then all picture effective informations are parsed, otherwise continue to resolve next pictures effective information; Described picture effective information comprises picture file length, picture file ID, picture actual information start address, picture file version number and picture user's information structure body, and wherein picture user's information structure body comprises Picture Coordinate, picture categories, picture/mb-type; Described picture file length is that user sets;
Described data resolution unit, parses each pictures actual information successively by internal memory actual information start address; Often parse a pictures actual information, just the quantity of the picture actual information parsed and the size of picture sum are judged, when the quantity of the picture actual information parsed reaches picture sum, then all picture actual informations are parsed, otherwise continue to resolve next pictures actual information; Described picture actual information is picture file size, picture file ID, picture file version number and picture real data.
Described pictorial information molded tissue block, for the picture header of having resolved information, each pictures effective information, each pictures actual information being organized successively, and each the pictures effective information organized, each pictures actual information are connected into a picture effective information chained list and a picture actual information chained list successively; Particularly, described pictorial information molded tissue block comprises picture header Information Organization unit, picture effective information organization unit, picture actual information organization unit;
Described picture header Information Organization unit, for organizing the picture header parsed information; This tissue refers to the Format Type format conversion of picture header information become required for user;
Described picture effective information organization unit, for often resolving a pictures effective information, just it is organized, often organize a pictures effective information, just the quantity of the picture effective information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture effective information tissues complete, then each pictures effective information is organized into a picture effective information chained list; Otherwise continue to organize next pictures actual information; This tissue refers to the Format Type xml format conversion of picture effective information become required for user;
Described picture actual information organization unit, for often resolving a pictures actual information, just it is organized, often organize a pictures actual information, just the quantity of the picture actual information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture actual information tissues complete, then each pictures actual information is organized into a picture actual information chained list; Otherwise continue to organize next pictures actual information; This tissue refers to the Format Type data format conversion of picture actual information become required for user.
Described image data memory module, address in flash to be deposited into for calculating each pictures actual information according to picture header information, each pictures effective information, each pictures actual information and number of pictures, this address be deposited into one to one in each pictures effective information; Then the picture header information organized, picture effective information chained list, picture actual information chained list are stored in flash successively, and the picture actual information chained list in releasing memory; This flash refers to the one of storage chip, can be revised the data of the inside by specific program.Flash storer, also known as flash memory, it combines the strong point of ROM and RAM, not only possesses the performance of Electrical Erasable (EEPROM) able to programme, can also read data fast, and data can not be lost because of power-off; Particularly, described image data memory module comprises Data Computation Unit, picture header information memory cell, picture effective information storage unit, picture actual information storage unit;
Described Data Computation Unit, for the address shared by the length of picture header information, calculating its next address is the address that the first pictures effective information will be deposited in flash, calculates the length of picture effective information chained list according to the picture file length in each pictures effective information and number of pictures; It is the address that the first pictures actual information will be deposited in flash that address again shared by the length of picture header information, address computation shared by the length of picture effective information chained list go out its next address, this address is deposited in the picture actual information start address in the first pictures effective information, then calculate next pictures actual information according to the picture file size in the first pictures actual information and will be deposited into address in flash, this address is deposited in the picture actual information start address in next pictures effective information;
Described picture header information memory cell, for first by picture header information stored in flash;
Described picture effective information storage unit, for will be deposited into the address in flash according to the first pictures effective information, by picture effective information chained list stored in flash;
Described picture actual information storage unit, for according to the picture actual information start address in the first pictures effective information, by picture actual information chained list stored in flash.
This system also comprises picture display module, for importing picture file ID or picture/mb-type into, when needs extract a certain pictures data, imports picture file ID or picture/mb-type into; According to the title of match-type and match-type, the picture actual information start address in each pictures effective information is searched, then take out picture according to picture actual information start address from flash assigned address, and Show Picture.
In addition, picture header information comprises the total version number of picture, picture sum, picture zone bit, picture effective information start address, picture actual information start address; Its effect is:
The total version number of picture: if just proceed not identical with original version number of the total version number of picture is resolved and upgrade this nodal information, the total version number of picture is identical, abandons this image data; Picture sum: when receiving picture number and reaching the picture sum described in picture header information, think that this picture receives successfully is not just continue to receive picture; Picture zone bit: be used for distinguishing the effect of picture and needing the mode of parsing, using 32 bit data as mark, first 16 describe picture type of action (as advertisement, theme), rear 16 main differentiations are xml data or data data, and be with individual position 0 for xml at present, 1 is data data, the structure of these two kinds of data and analysis mode are all different, so will resolve respectively; Picture effective information start address: if directly to use after picture header information address in succession, may lead to errors in the discontinuous situation of data, picture effective information start address in picture header information is used to refer to the position to effective information, determines and unique; Picture actual information start address: the start address describing actual information.
In addition, picture effective information comprises picture file ID, picture file length, picture file version number, picture actual information start address and picture user's information structure body; Its effect is:
Picture file ID: be used for mating with picture actual information; Picture file length: describe picture file size; Picture file version number: be used for comparing with new version number, determine whether to upgrade picture valid data; Picture user's information structure body by Picture Coordinate, picture categories (bmp, jpg), picture/mb-type (as advertising pictures has startup advertisement, information bar adline) etc.
In addition, picture actual information comprises picture file ID, picture file version number, picture file size and picture real data; Its effect is:
Picture file ID: be used for mating with picture effective information; Picture file version number: be used for comparing with new version number, determine whether to upgrade picture real data; Picture file size: describe picture file size; Picture real data: the content referring to picture reality.
Although the foregoing describe the specific embodiment of the present invention; but be familiar with those skilled in the art to be to be understood that; specific embodiment described by us is illustrative; instead of for the restriction to scope of the present invention; those of ordinary skill in the art, in the modification of the effect done according to spirit of the present invention and change, should be encompassed in scope that claim of the present invention protects.

Claims (10)

1. a method for memory saved by picture, it is characterized in that: comprise the steps:
Step 1, Set Top Box receive image data bag and are stored in internal memory from data signal line, parse picture header information, each pictures effective information, each pictures actual information from image data bag successively;
Step 2, the picture header information of having resolved, each pictures effective information, each pictures actual information to be organized successively, and each the pictures effective information organized, each pictures actual information are connected into a picture effective information chained list and a picture actual information chained list successively;
Step 3, to calculate each pictures actual information according to picture header information, each pictures effective information, each pictures actual information and number of pictures and will be deposited into address in flash, this address is deposited into one to one in each pictures effective information; Then the picture header information organized, picture effective information chained list, picture actual information chained list are stored in flash successively, and the picture actual information chained list in releasing memory.
2. the method for memory saved by a kind of picture according to claim 1, it is characterized in that: described step 1 is specially further:
Step 11, Set Top Box receive image data bag and are stored in internal memory from data signal line, from image data bag, first parse picture header information, described picture header information comprises picture sum, the total version number of picture, picture zone bit, internal memory effective information start address and internal memory actual information start address; The length of described picture header information is that user sets, and refers to the length of occupying in internal memory;
Step 12, by internal memory effective information start address, parse each pictures effective information successively; Often parse a pictures effective information, just the quantity of the picture effective information parsed and the size of picture sum are judged, when the quantity of the picture effective information parsed reaches picture sum, then all picture effective informations are parsed, otherwise continue to resolve next pictures effective information; Described picture effective information comprises picture file length, picture file ID, picture actual information start address, picture file version number and picture user's information structure body, and wherein picture user's information structure body comprises Picture Coordinate, picture categories, picture/mb-type; Described picture file length is that user sets;
Step 13, by internal memory actual information start address, parse each pictures actual information successively; Often parse a pictures actual information, just the quantity of the picture actual information parsed and the size of picture sum are judged, when the quantity of the picture actual information parsed reaches picture sum, then all picture actual informations are parsed, otherwise continue to resolve next pictures actual information; Described picture actual information is picture file size, picture file ID, picture file version number and picture real data.
3. the method for memory saved by a kind of picture according to claim 1, it is characterized in that: described step 2 is specially further:
Step 21, the picture header information parsed to be organized;
Step 22, often resolve a pictures effective information, just it is organized, often organize a pictures effective information, just the quantity of the picture effective information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture effective information tissues complete, then each pictures effective information is organized into a picture effective information chained list; Otherwise continue to organize next pictures actual information;
Step 23, often resolve a pictures actual information, just it is organized, often organize a pictures actual information, just the quantity of the picture actual information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture actual information tissues complete, then each pictures actual information is organized into a picture actual information chained list; Otherwise continue to organize next pictures actual information.
4. the method for memory saved by a kind of picture according to claim 1, it is characterized in that: described step 3 is specially further:
Step 31, address shared by the length of picture header information, calculating its next address is the address that the first pictures effective information will be deposited in flash, calculates the length of picture effective information chained list according to the picture file length in each pictures effective information and number of pictures; It is the address that the first pictures actual information will be deposited in flash that address again shared by the length of picture header information, address computation shared by the length of picture effective information chained list go out its next address, this address is deposited in the picture actual information start address in the first pictures effective information, then calculate next pictures actual information according to the picture file size in the first pictures actual information and will be deposited into address in flash, this address is deposited in the picture actual information start address in next pictures effective information;
Step 32, by picture header information stored in flash;
Step 33, the address that will to be deposited into according to the first pictures effective information in flash, by picture effective information chained list stored in flash;
Step 34, according to the picture actual information start address in the first pictures effective information, by picture actual information chained list stored in flash.
5. the method for memory saved by a kind of picture according to claim 1, it is characterized in that: also comprise step 4: when needs extract a certain pictures data, import picture file ID or picture/mb-type into; According to the title of match-type and match-type, the picture actual information start address in each pictures effective information is searched, then take out picture according to picture actual information start address from flash assigned address, and Show Picture.
6. a system for memory saved by picture, it is characterized in that: comprise picture parsing module, pictorial information molded tissue block, image data memory module;
Described picture parsing module, receives image data bag for Set Top Box and is stored in internal memory from data signal line, parses picture header information, each pictures effective information, each pictures actual information from image data bag successively;
Described pictorial information molded tissue block, for the picture header of having resolved information, each pictures effective information, each pictures actual information being organized successively, and each the pictures effective information organized, each pictures actual information are connected into a picture effective information chained list and a picture actual information chained list successively;
Described image data memory module, address in flash to be deposited into for calculating each pictures actual information according to picture header information, each pictures effective information, each pictures actual information and number of pictures, this address be deposited into one to one in each pictures effective information; Then the picture header information organized, picture effective information chained list, picture actual information chained list are stored in flash successively, and the picture actual information chained list in releasing memory.
7. the system of memory saved by a kind of picture according to claim 6, it is characterized in that: described picture parsing module comprises head resolution unit, xml resolution unit, data resolution unit;
Described head resolution unit, from data signal line, receive image data bag for Set Top Box and be stored in internal memory, from image data bag, first parse picture header information, described picture header information comprises picture sum, the total version number of picture, picture zone bit, internal memory effective information start address and internal memory actual information start address; The length of described picture header information is that user sets, and refers to the length of occupying in internal memory;
Described xml resolution unit, parses each pictures effective information successively by internal memory effective information start address; Often parse a pictures effective information, just the quantity of the picture effective information parsed and the size of picture sum are judged, when the quantity of the picture effective information parsed reaches picture sum, then all picture effective informations are parsed, otherwise continue to resolve next pictures effective information; Described picture effective information comprises picture file length, picture file ID, picture actual information start address, picture file version number and picture user's information structure body, and wherein picture user's information structure body comprises Picture Coordinate, picture categories, picture/mb-type; Described picture file length is that user sets;
Described data resolution unit, parses each pictures actual information successively by internal memory actual information start address; Often parse a pictures actual information, just the quantity of the picture actual information parsed and the size of picture sum are judged, when the quantity of the picture actual information parsed reaches picture sum, then all picture actual informations are parsed, otherwise continue to resolve next pictures actual information; Described picture actual information is picture file size, picture file ID, picture file version number and picture real data.
8. the system of memory saved by a kind of picture according to claim 6, it is characterized in that: described pictorial information molded tissue block comprises picture header Information Organization unit, picture effective information organization unit, picture actual information organization unit;
Described picture header Information Organization unit, for organizing the picture header parsed information;
Described picture effective information organization unit, for often resolving a pictures effective information, just it is organized, often organize a pictures effective information, just the quantity of the picture effective information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture effective information tissues complete, then each pictures effective information is organized into a picture effective information chained list; Otherwise continue to organize next pictures actual information;
Described picture actual information organization unit, for often resolving a pictures actual information, just it is organized, often organize a pictures actual information, just the quantity of the picture actual information organized and the size of picture sum are judged, when the quantity of the picture actual information organized reaches picture sum, then all picture actual information tissues complete, then each pictures actual information is organized into a picture actual information chained list; Otherwise continue to organize next pictures actual information.
9. the system of memory saved by a kind of picture according to claim 6, it is characterized in that: described image data memory module comprises Data Computation Unit, picture header information memory cell, picture effective information storage unit, picture actual information storage unit;
Described Data Computation Unit, for the address shared by the length of picture header information, calculating its next address is the address that the first pictures effective information will be deposited in flash, calculates the length of picture effective information chained list according to the picture file length in each pictures effective information and number of pictures; It is the address that the first pictures actual information will be deposited in flash that address again shared by the length of picture header information, address computation shared by the length of picture effective information chained list go out its next address, this address is deposited in the picture actual information start address in the first pictures effective information, then calculate next pictures actual information according to the picture file size in the first pictures actual information and will be deposited into address in flash, this address is deposited in the picture actual information start address in next pictures effective information;
Described picture header information memory cell, for first by picture header information stored in flash;
Described picture effective information storage unit, for will be deposited into the address in flash according to the first pictures effective information, by picture effective information chained list stored in flash;
Described picture actual information storage unit, for according to the picture actual information start address in the first pictures effective information, by picture actual information chained list stored in flash.
10. the system of memory saved by a kind of picture according to claim 6, it is characterized in that: also comprise picture display module, for importing picture file ID or picture/mb-type into, when needs extract a certain pictures data, import picture file ID or picture/mb-type into; According to the title of match-type and match-type, the picture actual information start address in each pictures effective information is searched, then take out picture according to picture actual information start address from flash assigned address, and Show Picture.
CN201410665260.0A 2014-11-19 2014-11-19 Method and system for saving storage memory of pictures Pending CN104461916A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410665260.0A CN104461916A (en) 2014-11-19 2014-11-19 Method and system for saving storage memory of pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410665260.0A CN104461916A (en) 2014-11-19 2014-11-19 Method and system for saving storage memory of pictures

Publications (1)

Publication Number Publication Date
CN104461916A true CN104461916A (en) 2015-03-25

Family

ID=52908003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410665260.0A Pending CN104461916A (en) 2014-11-19 2014-11-19 Method and system for saving storage memory of pictures

Country Status (1)

Country Link
CN (1) CN104461916A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153450A (en) * 2020-08-20 2020-12-29 福建新大陆通信科技股份有限公司 Set top box picture display method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6412080B1 (en) * 1999-02-23 2002-06-25 Microsoft Corporation Lightweight persistent storage system for flash memory devices
CN101425041A (en) * 2007-10-30 2009-05-06 安凯(广州)软件技术有限公司 Optimizing method for establishing FAT file systems on NAND FLASH memory
CN101489026A (en) * 2009-01-07 2009-07-22 深圳市同洲电子股份有限公司 Set-top box starting control method, image display method and set-top box
CN102469357A (en) * 2010-11-18 2012-05-23 深圳创维数字技术股份有限公司 Method and system for storing user operation data and receiving terminal of digital television
US20130173854A1 (en) * 2012-01-02 2013-07-04 Samsung Electronics Co., Ltd. Method for managing data in storage device and memory system employing such a method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6412080B1 (en) * 1999-02-23 2002-06-25 Microsoft Corporation Lightweight persistent storage system for flash memory devices
CN101425041A (en) * 2007-10-30 2009-05-06 安凯(广州)软件技术有限公司 Optimizing method for establishing FAT file systems on NAND FLASH memory
CN101489026A (en) * 2009-01-07 2009-07-22 深圳市同洲电子股份有限公司 Set-top box starting control method, image display method and set-top box
CN102469357A (en) * 2010-11-18 2012-05-23 深圳创维数字技术股份有限公司 Method and system for storing user operation data and receiving terminal of digital television
US20130173854A1 (en) * 2012-01-02 2013-07-04 Samsung Electronics Co., Ltd. Method for managing data in storage device and memory system employing such a method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153450A (en) * 2020-08-20 2020-12-29 福建新大陆通信科技股份有限公司 Set top box picture display method
CN112153450B (en) * 2020-08-20 2022-08-05 福建新大陆通信科技股份有限公司 Set top box picture display method

Similar Documents

Publication Publication Date Title
US9081412B2 (en) System and method for using paper as an interface to computer applications
CN103186510B (en) A kind of method and apparatus of convert documents form
CN101464903A (en) OCR picture and text recognition and retrieval method and system through web mode
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium
CN109284252B (en) Lightweight file system management method in communication equipment
CN103412954A (en) Virtual dynamic magazine using augmented reality technique
WO2021219066A1 (en) Document processing method and apparatus, and electronic device
CN107861750B (en) Label management method, label management device and intelligent terminal
WO2015055002A1 (en) Electronic book file processing method, terminal, and electronic device
CN1741026A (en) Method for fast generating logical circuit
CN111181776B (en) MODBUS RTU-based data acquisition method, device and system
CN104850247A (en) Electronic pen capable of outputting written content to network server in real time through the Internet
CN114356846A (en) Image data sending method and device, electronic equipment and storage medium
US20100153622A1 (en) Data Access Controller and Data Accessing Method
CN102541639B (en) CPU (Central Processing Unit) card data processing method, CPU card data processing system and CPU card
CN104461916A (en) Method and system for saving storage memory of pictures
CN105808519A (en) Document display method and apparatus
CN101369953A (en) Font network distribution method and system
CN110309517B (en) Expression document processing method, device, system and storage medium
CN111858581A (en) Page query method and device, storage medium and electronic equipment
CN105700825A (en) Thumbnail storage method and device based on Android system
CN109144853B (en) Software defined radio SoC chip debugging system
CN103488440A (en) Bill printing device and bill printing method
CN107729451B (en) Method for searching data in EDB database source file
CN108073709B (en) Data recording operation method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150325

WD01 Invention patent application deemed withdrawn after publication