Embodiment
Please also refer to Fig. 1, Fig. 2 and Fig. 3, Fig. 1 can promote the schematic flow sheet of the memory storage method of image processing efficient for the present invention, and Fig. 2 is the schematic diagram of picture of the method for Fig. 1, and Fig. 3 is the schematic diagram of storage area of the method for Fig. 1.The invention provides a kind of memory storage method, be used for promoting image processing efficiency.The order of following steps and non-limiting scope of the present invention, this method is described as follows.
Step 10: a plurality of first blocks (1 that store corresponding to first picture area 210 of a picture 200 in first storage area 310 of an internal memory 300 (is DRAM (Dynamic Random Access Memory) at present embodiment--DRAM, Dynamic Random Access Memory), 1), (1,2) ..., (68,60);
Step 20: store in second storage area 320 of internal memory 300 a plurality of second blocks (1,61) corresponding to second picture area 220 of picture 200, (1,62) ..., (68,120); And
Step 30: store in first storage area 310 at least one second block (1,61) corresponding to this second picture area part 222 adjacent, (2,61) with this first picture area ..., (68,61).
In the present embodiment, these blocks (are Fig. 2 and block (1 shown in Figure 3,1), (1,2) ..., (68,120)) be the macro zone block (macroblock) that meets MPEG (Moving Picture Experts Group--moving picture expert group) specification, wherein each block is the individual pixel of 16 (vertically) of 16 (laterally) * (pixel is not shown in relevant indicators) corresponding to picture 200.And the picture 200 of present embodiment is HDTV (High-Definition Television--high definition TV) picture, and its resolution is individual pixel of 1088 (vertically) of 1920 (laterally) *, so picture 200 has individual block of 68 (vertically) of 120 (laterally) *.Wherein be stored in first block (1 of first storage area 310,1), (1,2) ..., (68,60) with second block (1,61), (2,61) ..., (68, putting in order 61) is corresponding block (1 corresponding to picture 200,1), (1,2) ..., the putting in order of (68,61).Be stored in addition second storage area 320 second block (1,61), (1,62) ..., (68,120) put in order be corresponding to picture 200 corresponding block (1,61), (1,62) ..., the putting in order of (68,120).
When reading this macro zone block (for example being the 16*16 pixel), neither can the generation striden reading of row to this internal memory, so, just avoided striding row because of these and read the delays that control signal produced such as pairing RAS/CAS.
In the present embodiment, the width of picture 200 (i.e. 120 blocks, corresponding to 1920 pixels) is greater than the width L0 of internal memory 300 each row (row) (i.e. 64 blocks, corresponding to 1024 pixels).And the width L2 of the width L1 of first storage area 310 (i.e. 61 blocks, corresponding to 976 pixels) and second storage area 320 (i.e. 60 blocks, corresponding to 960 pixels) is the width L0 that is less than or equal to internal memory 300 each row.As Fig. 3 and shown in Figure 2, the width L1 of first storage area 310 is width (i.e. 60 blocks for first picture area 210, corresponding to 960 pixels) add that these blocks (are block (1,1), (1,2) ..., (68,120)) in a block (as block (1,61), (2,61) ... or (68,61)) width (corresponding to 16 pixels).
When the pairing picture width of this internal memory one row during less than the width of a high resolution pictures, must not stride row and read, just be obtained as the motion compensation required motion vectors (motion vector) of computing such as (motion compensation) to this internal memory.Therefore method of the present invention can promote image processing efficient.
The above only is preferred embodiment of the present invention, and all equalizations of being done according to the present patent application claim change and modify, and all should belong to the covering scope of patent of the present invention.