CN100527776C - Method for dynamic phone storage using small-capacity memory in digital photo frame - Google Patents

Method for dynamic phone storage using small-capacity memory in digital photo frame Download PDF

Info

Publication number
CN100527776C
CN100527776C CNB2007101180088A CN200710118008A CN100527776C CN 100527776 C CN100527776 C CN 100527776C CN B2007101180088 A CNB2007101180088 A CN B2007101180088A CN 200710118008 A CN200710118008 A CN 200710118008A CN 100527776 C CN100527776 C CN 100527776C
Authority
CN
China
Prior art keywords
memory block
memory
big
little
storage
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.)
Expired - Fee Related
Application number
CNB2007101180088A
Other languages
Chinese (zh)
Other versions
CN101087355A (en
Inventor
史岩
刘巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Haier IC Design Co Ltd
Original Assignee
Beijing Haier IC Design 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 Beijing Haier IC Design Co Ltd filed Critical Beijing Haier IC Design Co Ltd
Priority to CNB2007101180088A priority Critical patent/CN100527776C/en
Publication of CN101087355A publication Critical patent/CN101087355A/en
Application granted granted Critical
Publication of CN100527776C publication Critical patent/CN100527776C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method of using little capability memory to store several pieces of digital picture in digital frame or products of digital frame, that is method of using little capability memory to store picture dynamically, it includes: image process and storing structure, said equipment is little capability memory whose capability is less than 16MByte, specially NOR type FLASH which fulfills said limiting condition. By image process and using definite memory structure, the picture can be stored in equipment with little capability memory. The invention can decrease the using space furthest, and service life of equipment can be prolonged at the same time.

Description

Utilize the method for small-capacity memory dynamic memory photo in the DPF
Technical field
The present invention relates at DPF or contain in the product of digital photo frame function, utilize the method for utilizing small-capacity memory dynamic memory photo in the method, particularly DPF of many numbers of small-capacity memory dynamic memory sign indicating number photo.
Background technology
DPF is a kind of of household products.Its Core Feature is that the image file in the medium is passed through liquid crystal display screen or the output of other display device through decoding conversion back.The medium and the connected mode of existing file storage have following several: read the file that is stored in USB, various digital card, portable hard drive or other similar devices by the mode that directly links to each other; Read the file on other equipment in the network by network or blue tooth interface; Directly read the file in the local memory.Wherein, comprise the storage mode of the necessary design document of product of the third mode at this machine.
The general equipment that comprises big capacity NAND type FLASH that uses of traditional DPF carries out direct file storage, still, can increase more cost like this.And the memory device of low capacity can not satisfy the storage needs of product.Existing digital camera is substantially all more than 3,000,000 pixels, representative value is more than 5,000,000 pixels, and still increasing, such photo uses general jpeg format storage size nearly all more than 1MBytes, do not handle directly with low capacity memory device, stores (representative value 2MBytes) if do not add, then can only store very a spot of photo, the application of DPF is restricted.On the other hand, the resolution of display device is far smaller than the resolution of picture itself in the existing DPF, and the details of picture can't show on display device that most of data of file are unnecessary redundant informations for showing on DPF.So, can solve above-mentioned two problems with storing after the image process processing removal redundant information.
Data after encoding must be stored in the medium in some way.Thisly store following characteristics: the first, must dynamic memory, deletion; The second, as far as possible save memory space; Three, improve storage speed; Four, need to consider the particularity problem of storage medium.In the ordinary course of things, the storage medium that this class is used all is NOR type FLASH mostly, and it has piece and wipes, can write characteristics such as 0 can not write 1, erasing and writing life is limited; Five, there is a scope roughly in the data capacity of storage; Six, capacity of memory device is less.For first, second and third characteristics is that general storage mode all needs the problem considered, and the 4th characteristics have obtained embodiment in a lot of special storage modes: as the Chinese patent application of publication number CN 1405683A and publication number CN1908937A.If but consider and particularity at the 5th at the 6th, employed method can also be optimized in above-mentioned two patents.CN 1405683A uses the dynamic link table storage organization, and CN 1908937A use is index structure, these two structures all must be carried out two places and be revised when writing data, list structure must be revised data and chain pointer, and index structure must be revised data and index, this has been equivalent to increase the number of times that piece is wiped, and has reduced equipment life, and has introduced the risk of accidental damage.According to above-mentioned the the 4th, the 5th, the 6th characteristics, and consider the limit of equipment life and number of applications, can the design stores method make the storage of picture and deletion only need once erasable and solve.
Summary of the invention
The object of the present invention is to provide a kind ofly at DPF or contain in the product of digital photo frame function, utilize the method for many numbers of small-capacity memory dynamic memory sign indicating number photo.Can greatly reduce memory space like this, and prolong the useful life of equipment,, can make picture-storage on the equipment of low capacity by carrying out image processing for original image and using the specific memory structure.
Utilize the method for small-capacity memory dynamic memory photo in the DPF of the present invention, comprising:
The piecemeal that use varies in size, the option of big memory block and little memory block need satisfy the multiple that the global storage space must be big memory block size, the size of big memory block must be the multiple of little memory block, big memory block concentrates on the front end of memory space, little memory block concentrates on the rear end of memory space, mid portion is divided block not, and big memory block and little memory block all are divided into valid data piece and deleted data piece, and by at the mark code sign valid data piece of piece stem and deleted data piece;
Image file to be stored is stored by a big memory block or a big memory block and some little memory blocks, the start-up portion of big memory block memory image file, little memory block is the remainder of memory image file successively, and by carrying out association in the memory block sequence number of piece stem and determining order;
When the image file of storage was deleted, the indication code of the block of only will being correlated with was rewritten as the deletion state, does not need erase operation.
Described memory block sequence number is shown by the numerical table of one 4 byte, first three byte representative image file label wherein, what identical i.e. representative was stored is same image file, then byte is represented the storage order of an image file various piece, label little preceding, form image file successively, this part of big memory block is 0.
Big memory block comprises the mark code of two bytes, four bytes of memory sequence numbers, the file size of nybble, the filename of 20 bytes, the part of back is the storage data, described little memory block comprises the mark code of two bytes successively, four bytes of memory sequence numbers, the part of back is the storage data, wherein, mark code is the storage sequence number that 0x5A0F represents big memory block valid data, and the part of back is the storage data, wherein, mark code is the mark code that 0x5A0F represents big memory block valid data, and 0x5A00 represents the big memory block mark code of deleted data, and mark code is that 0x5A1F represents little memory block valid data, mark code is the mark code that 0x5A1F represents little memory block valid data, and 0x5A10 represents the little memory block identification code of deleted data.
This method has saves big quantity space, fast and prolong characteristics such as service life of equipment, it is a kind of storage means of file, it is specially adapted to the less file of size distribution variance of the little and file of memory space, use the piecemeal of different sizes, effectively increased operating factor of memory space, reduced and stored required erasable number of times.By piecemeal being added indication code, information such as storage number make differentiation and related each piecemeal that program can be correct.By adding information such as file size and filename, image file can correctly be resolved.
Description of drawings
Fig. 1 is the entire system structure.
Fig. 2 is the overall flow figure of image processing method.
Fig. 3 is the overall structure figure of storage organization.
Fig. 4 is big memory block structural representation.
Fig. 5 is little memory block structural representation.
Embodiment
Utilize the method for small-capacity memory dynamic memory photo to comprise in the described DPF of present embodiment: image processing and storage organization, described memory device is the following low capacity storage medium of 16MByte, particularly including the NOR type FLASH that satisfies described restrictive condition, overall structure is referring to Fig. 1.According to this storage organization, provide a kind of possible document manipulation.
Referring to Fig. 2, the image processing method overall flow of present embodiment is as follows:
A, decoded primary data: all or part of bitmap format that is decoded into standard of the image file that will copy, can use the different color space representation according to the convenience of back face code, include but not limited to RGB, YCbCr etc.
B, decoded data bitmap is zoomed to suitable size, be generally the size that adapts to display device resolution.
In actual use, because memory space is restricted, may repeatedly repeat the process of A step and B step, to finish corresponding operation.
C, carry out the image adjustment for decoded data bitmap, for example, the brightness adjustment, gamma correction, image softening etc., to improve picture quality, this process is an optional process.
D, carry out image encoding for adjusted view data, further to reduce the size of file to be stored.Coded system can be used general image coding (for example standard JPEG encodes, JPEG2000 coding, GIF coding, PNG coding etc.), also can use other modes.
Figure 3 shows that storage organization, wherein whole memory space is divided into several big memory blocks and several little memory blocks, and wherein big memory block concentrates on the front end of memory space, and little memory block concentrates on the rear end of memory space.Mid portion is divided block not.Big memory block and little memory block all are divided into two kinds: valid data piece and deleted data piece.
The selection of memory block size need be satisfied following necessary condition: A, the global storage space must be the multiple of big memory block size; B, big memory block size must be the multiples of little memory block.After satisfying these two conditions, can determine size according to the distribution of the size of wanting storage file, the size of big memory block is the desired value of file size distribution, the size of little memory block is the standard deviation of file size.Also can determine the size of big or small memory block according to concrete characteristic distributions.
A file is stored with several little memory blocks by a big memory block or a big memory block, the start-up portion of big memory block storage file, little memory block is the remainder of storage file successively, and by carrying out association in the memory block sequence number of piece stem and determining order.
The concrete structure of big memory block comprises the mark code of two bytes successively referring to Fig. 4, four bytes of memory sequence numbers, and the file size of nybble, the filename of 20 bytes, the part of back is the storage data.Wherein mark code is the mark code that 0x5A0F represents big memory block valid data, and 0x5A00 represents the big memory block mark code of deleted data.
The concrete structure of little memory block comprises the mark code of two bytes successively referring to Fig. 5, four bytes of memory sequence numbers, and the part of back is the storage data.Wherein mark code is the mark code that 0x5A1F represents little memory block valid data, and 0x5A10 represents the little memory block identification code of deleted data.
The storage sequence number shown by the numerical table of one 4 byte, first three byte representation file label wherein, and what identical i.e. representative was stored is same file, then byte is represented the storage order of a file various piece, label little preceding, composing document successively, big this part of memory block is 0.For example, it is 0x00002100 that the storage sequence number is arranged in the system, the big memory block of the valid data of 0x00002400, and have the storage sequence number be 0x00002101,0x00002401, the little memory block of 0x00002102, then the big memory block of 0x00002100 and 0x00002101,0x00002102 form a file successively, and the little memory block of the big memory block of 0x00002400 and 0x00002401 is formed a file successively.
Document manipulation:
A, file read:
I. the storage sequence number of big memory block and little memory block in the analytical system;
Ii. set up interim index in the program variable district;
Iii. will be correlated with block the storage sequence number with data in order successively output.
B, file deletion:
I. the mark code with the relevant block of file is rewritten as the deletion state, and this process does not need erase operation.
C, format:
I. 0xff is wiped and write to whole memory space.
D, file consolidation:
If i. underlined big memory block for deletion then all copies to rearmost big memory block data the big memory block that is labeled as deletion;
Ii. all make original big memory block data that are replicated into 0xff;
Iii. the process that repeats i-ii is up to there not being the big memory block that is labeled as deletion;
If iv. underlined little memory block for deletion then all copies to top little memory block data the little memory block that is labeled as deletion;
V. the data with original little memory block that is replicated all make 0xff into;
Vi. the process that repeats iv-v is up to there not being the little memory block that is labeled as deletion.
E, file write:
I. according to file size file division is become necessary big memory block and little memory block;
Ii. whether the space of judging existing mid portion satisfies storage demand, if satisfy, ignores iii, iv;
Iii. file consolidation;
Iv. whether the space of judging existing mid portion satisfies storage demand, if do not satisfy, the file ablation process is not failed because of there being enough allocation of space;
V. according to storage sequence number maximum in the existing system, the numerical value of getting its preceding 3 bytes adds 1 and adds the storage sequence number of last byte 0 as big memory block again, and distributes the storage sequence number of little memory block successively;
Vi. big memory block data are write the front end of mid portion, comprise file size and filename;
Vii. little memory block data are write successively the rear end of mid portion.

Claims (3)

1, a kind of method of utilizing small-capacity memory dynamic memory photo in DPF is characterized in that, comprising:
The storage organization that uses is divided into the piecemeal that varies in size, the selection of big memory block and little memory block need be satisfied the multiple that the global storage space must be big memory block size, the size of big memory block must be the multiple of little memory block, big memory block concentrates on the front end of memory space, little memory block concentrates on the rear end of memory space, mid portion is divided block not, big memory block and little memory block all are divided into valid data piece and deleted data piece, and by at the mark code sign valid data piece of piece stem and deleted data piece;
Image file to be stored is stored by a big memory block or a big memory block and some little memory blocks, the start-up portion of big memory block memory image file, little memory block is the remainder of memory image file successively, and by carrying out association in the memory block sequence number of piece stem and determining order;
When the image file of storage was deleted, the indication code of the block of only will being correlated with was rewritten as the deletion state, does not need erase operation.
2, utilize the method for small-capacity memory dynamic memory photo in the DPF according to claim 1, it is characterized in that: described memory block sequence number is shown by the numerical table of one 4 byte, first three byte representative image file label wherein, what identical i.e. representative was stored is same image file, then byte is represented the storage order of an image file various piece, label little preceding, form image file successively, this part of big memory block is 0.
3, utilize the method for small-capacity memory dynamic memory photo in the DPF according to claim 1, it is characterized in that: described big memory block comprises the mark code of two bytes, four bytes of memory sequence numbers, the file size of nybble, the filename of 20 bytes, the part of back is the storage data, described little memory block comprises the mark code of two bytes successively, four bytes of memory sequence numbers, the part of back is the storage data, wherein, mark code is the mark code that 0x5A0F represents big memory block valid data, 0x5A00 represents the big memory block mark code of deleted data, and mark code is the mark code that 0x5A1F represents little memory block valid data, and 0x5A10 represents the little memory block identification code of deleted data.
CNB2007101180088A 2007-06-27 2007-06-27 Method for dynamic phone storage using small-capacity memory in digital photo frame Expired - Fee Related CN100527776C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101180088A CN100527776C (en) 2007-06-27 2007-06-27 Method for dynamic phone storage using small-capacity memory in digital photo frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101180088A CN100527776C (en) 2007-06-27 2007-06-27 Method for dynamic phone storage using small-capacity memory in digital photo frame

Publications (2)

Publication Number Publication Date
CN101087355A CN101087355A (en) 2007-12-12
CN100527776C true CN100527776C (en) 2009-08-12

Family

ID=38938093

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101180088A Expired - Fee Related CN100527776C (en) 2007-06-27 2007-06-27 Method for dynamic phone storage using small-capacity memory in digital photo frame

Country Status (1)

Country Link
CN (1) CN100527776C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339431B (en) * 2016-08-18 2019-09-06 佛山智能装备技术研究院 Robot program's document handling method and system based on text block
CN108933945B (en) * 2018-08-17 2020-06-19 腾讯科技(深圳)有限公司 GIF picture compression method, device and storage medium

Also Published As

Publication number Publication date
CN101087355A (en) 2007-12-12

Similar Documents

Publication Publication Date Title
US7197189B2 (en) System and method having removable storage medium with data compression
US20080273804A1 (en) Image Transformation
US5153936A (en) Dual density digital image system
US7714906B2 (en) Image processing apparatus and image processing program for creating first image groups based on photographing time and creating second image groups from the first image groups
US6600840B1 (en) Image format conversion such as photometric, rotation, cropping, padding, scaling, dithering, bit padding, grayscale and color transformation, encoding and decoding using a plurality of filters
CN101896941A (en) Unified compression/decompression graphics architecture
JPH02195480A (en) Retrieving system for image data
CN101930613A (en) Method with figure path sequence Code And Decode component layer scheme
CN102662856A (en) Solid state disk and access method
US7162104B2 (en) System and method for image compression, storage, and retrieval
CN101546434A (en) Method and system for compressing and decompressing BMP picture file
CN100527776C (en) Method for dynamic phone storage using small-capacity memory in digital photo frame
CN102971765B (en) Lookup tables for text rendering
CN112991412B (en) Liquid crystal instrument sequence frame animation performance optimization method and liquid crystal instrument
US9014497B2 (en) Tile encoding and decoding
US7920295B2 (en) Image processing circuit, displaying apparatus, and printing apparatus
CN111986282B (en) Plug-in for opening HEIC format pictures, freeIMage and computer program thereof
CN1260667C (en) Press and printing systems
CN201122424Y (en) Digital photo frame
US20080055319A1 (en) Apparatus and Method of Conversing Data
EP0348651A2 (en) Dual density digital image system
CN100423080C (en) Unit and method for managing the display of a current portion of a document on a screen
US6750908B1 (en) Image processing apparatus using recording medium which needs data erasing processing before recording of data
CN100574435C (en) Image compressing method
US20080226180A1 (en) Method and apparatus for buffering output pixel data of a joint photographic experts group image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090812

Termination date: 20160627

CF01 Termination of patent right due to non-payment of annual fee