CN101360237A - Reference frame processing method, video decoding method and apparatus - Google Patents
Reference frame processing method, video decoding method and apparatus Download PDFInfo
- Publication number
- CN101360237A CN101360237A CN 200810118352 CN200810118352A CN101360237A CN 101360237 A CN101360237 A CN 101360237A CN 200810118352 CN200810118352 CN 200810118352 CN 200810118352 A CN200810118352 A CN 200810118352A CN 101360237 A CN101360237 A CN 101360237A
- Authority
- CN
- China
- Prior art keywords
- macro
- block
- macro block
- reference frame
- line
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 230000006835 compression Effects 0.000 claims description 56
- 238000007906 compression Methods 0.000 claims description 56
- 230000006837 decompression Effects 0.000 claims description 51
- 230000006399 behavior Effects 0.000 claims description 10
- 230000013011 mating Effects 0.000 claims description 9
- 238000012217 deletion Methods 0.000 claims description 5
- 230000037430 deletion Effects 0.000 claims description 5
- 239000013598 vector Substances 0.000 description 5
- 238000013139 quantization Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 239000012467 final product Substances 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention discloses a reference frame processing method, a video decoding method and a device by compressing the decoded reference frame; when the current frame macro blocks are decoded, and image data of each macro block in part of macro block lines of the compressed reference frame are decompressed and stored; and part of macro block lines are macro block lines concerning with motion compensation which is made by the current frame macro blocks in the reference frame. The video decoding method and device can greatly lower storage space needed by the reference frame at the time of decoding.
Description
Technical field
The present invention relates to multimedia technology field, relate in particular to a kind of reference frame processing method, video encoding/decoding method and device.
Background technology
Usually utilize the correlation between frame and the frame in the existing video coding technique, the mode of employing interframe encode is carried out the coding of video data.This mode need be divided into picture frame the macro block of several 16 * 16 pixels, and according to from left to right, order is from top to bottom encoded to the view data of each macro block in each macro-block line successively.The critical process of interframe encode is an estimation, for a certain macro block in the present frame, the macro block of (best match) is mated in search with it most in reference frame (the previous frame of having encoded of current encoded frame), be that motion vector (Motion Vectors) is encoded to difference and both relative position informations between the macro block that mates most in current coding macro block and the reference frame then, obtain the video bit stream that compresses at last, the flow process of coding comprises: discrete cosine transform (Discrete Consine Transform, DCT), quantize and entropy coding, finish all macroblock encoding processes in the present frame successively according to said process.
During decoding,, one by one the view data of each macro block of each macro-block line in the present frame is decoded with the sequence consensus in when coding.Concrete decode procedure for each macro block, as shown in Figure 1, detailed process is as follows: the video bit stream of compression obtains a series of quantization parameters after decoding through entropy, with quantization parameter by reordering, inverse quantization and inverse discrete cosine transformation (Inverse DCT, IDCT) obtain original difference data and motion vector afterwards, reference frame (decoded former frame) is through motion compensation (MotionCompensate, MC) operation, the motion vector that motion compensation promptly uses decoding to draw finds the macro block that mates most with it in reference frame, after using this macro block that mates most and difference data addition then, obtain the view data of macro block in the reconstruction frames (being the decoded picture frame of present frame).
Decoder of the prior art is in the process that the video of compression is decoded, decoded reference frame needs storage in advance, like this, reference frame just need take bigger memory space, usually it can only be stored among the outside storage space S DRAM, increased the cost of hardware, and the access efficiency of processor in decode procedure is not high yet.
Summary of the invention
The invention provides a kind of reference frame processing method, video encoding/decoding method and device, be used for solving the prior art reference frame bigger problem that takes up space.
A kind of reference frame processing method provided by the invention comprises:
Decoded reference frame is compressed;
During decoding present frame macro block, the view data of each macro block of part macro-block line in the described reference frame after the compression is carried out the decompress(ion) storage of contracing; Related macro-block line when the described present frame macro block of described part macro block behavior carries out motion compensation in described reference frame.
Described the view data of each macro block of part macro-block line in the described reference frame after the compression is carried out the decompress(ion) storage of contracing, comprising:
When first macro block of the described present frame macro block first macro-block line that is present frame, the view data of each macro block and storage in first macro-block line and second macro-block line in the described reference frame that decompresses;
When described present frame macro block is first macro block of non-first and last macro-block line of present frame, the view data of each macro block and storage in next macro-block line of corresponding macro-block line in the described reference frame that decompresses.
By in the described reference frame from left to right, macro block order from top to bottom, the view data after each macro block decompressed deposits in the memory space of described setting successively;
When the memory space of described setting has been filled with, press first in first out, the view data of each macro block in the macro-block line of deletion storage at first.
The size of the memory space of described setting is not less than required memory space behind the image data decoding of sum of all pixels * 48 a pixel correspondence of the one-row pixels of picture frame.
A kind of video encoding/decoding method provided by the invention comprises:
Decoded reference frame is compressed;
During decoding present frame macro block, the view data of each macro block of part macro-block line in the described reference frame after the compression is carried out the decompress(ion) storage of contracing; Related macro-block line when the described present frame macro block of described part macro block behavior carries out motion compensation in described reference frame;
From the view data of each macro block of described storage, determine the correspondence image data of mating macro block most, reconstruct present frame macro block.
The view data of each macro block of part macro-block line in the described reference frame after the compression is carried out the decompress(ion) storage of contracing, comprising:
When first macro block of the described present frame macro block first macro-block line that is present frame, the view data of each macro block and storage in first macro-block line and second macro-block line in the described reference frame that decompresses;
When described present frame macro block is first macro block of non-first and last macro-block line of present frame, the view data of each macro block and storage in next macro-block line of corresponding macro-block line in the described reference frame that decompresses.
By in the described reference frame from left to right, macro block order from top to bottom, the view data after each macro block decompressed deposits in the memory space of described setting successively;
When the memory space of described setting has been filled with, press first in first out, the view data of each macro block in the macro-block line of deletion storage at first.
A kind of reference frame processing unit provided by the invention comprises: compression module, decompression module and memory module;
Described compression module is used for decoded reference frame is compressed;
Described decompression module when being used to decode the present frame macro block, decompresses to the view data of each macro block of part macro-block line in the described reference frame after the compression; Related macro-block line when the described present frame macro block of described part macro block behavior carries out motion compensation in described reference frame;
Described memory module is used to store the view data of described each macro block of part macro-block line that described decompression module decompresses out.
Described decompression module specifically comprises: determine submodule, decompression submodule;
Described definite submodule is used to judge and determines first macro block that described present frame macro block is first macro-block line or first macro block of non-first and last macro-block line;
The decompression submodule is used for when determining first macro block that described present frame macro block is first macro-block line, the view data of each macro block and being stored in the described memory module in first macro-block line and second macro-block line in the described reference frame that decompresses;
And when determining that described present frame macro block is first macro block of non-first and last macro-block line of present frame, the view data of each macro block and being stored in the described memory module in next macro-block line of corresponding macro-block line in the described reference frame that decompresses.
The memory space of described memory module is not less than required memory space behind the image data decoding of sum of all pixels * 48 a pixel correspondence of the one-row pixels of picture frame.
A kind of video decoder provided by the invention comprises: compression module, decompression module, memory module and decoder module;
Described compression module compresses decoded reference frame;
Described decompression module when being used to decode the present frame macro block, decompresses to the view data of each macro block of part macro-block line in the described reference frame after the compression; Related macro-block line when the described present frame macro block of described part macro block behavior carries out motion compensation in described reference frame;
Described memory module is used to store the view data of described each macro block of part macro-block line that described decompression module decompresses out;
Described decoder module is used for determining the correspondence image data of mating macro block most, reconstruct present frame macro block from the view data of each macro block of described memory module storage.
Described decompression module specifically comprises: determine submodule, decompression submodule;
Described definite submodule is used to judge and determines first macro block that described present frame macro block is first macro-block line or first macro block of non-first and last macro-block line;
The decompression submodule is used for when determining first macro block that described present frame macro block is first macro-block line, the view data of each macro block and being stored in the described memory module in first macro-block line and second macro-block line in the described reference frame that decompresses;
And when determining that described present frame macro block is first macro block of non-first and last macro-block line of present frame, the view data of each macro block and being stored in the described memory module in next macro-block line of corresponding macro-block line in the described reference frame that decompresses.
Beneficial effect of the present invention is as follows:
The processing method of a kind of reference frame provided by the invention, video encoding/decoding method and device, by decoded reference frame is compressed, make reference frame not to be compressed to handle in reference frame and the prior art after the compression and compare that the shared memory space of whole reference frame reduces greatly; When decoding present frame macro block, determine macro-block line related when the present frame macro block carries out motion compensation in reference frame, only the view data of each macro block of respective macroblock row in the reference frame after the compression is carried out the decompress(ion) storage of contracing, because storage only is the view data of a part of macro-block line in the reference frame, its memory space that needs is relative also very little.So for the processing mode of in the prior art whole reference frame being stored in advance, the processing method of reference frame provided by the invention, video encoding/decoding method and device can reduce the required memory space that takies of reference frame greatly.
In addition, in the processing method of reference frame provided by the invention, video encoding/decoding method and the device actual application, can be with the reference frame after the compression and the image data storage of the reference frame after decompressing in the memory space (as internal storage) that processor can directly be visited rapidly, thereby improve the overall performance and the efficient of video decode.
Description of drawings
Fig. 1 be in the prior art with the corresponding video decode flow chart of inter-frame encoding;
The flow chart of the reference frame processing method that Fig. 2 provides for the embodiment of the invention;
The picture frame schematic diagram of 176 * 144 pixels that Fig. 3 provides for the embodiment of the invention;
The flow chart of the video encoding/decoding method that Fig. 4 provides for the embodiment of the invention;
The structural representation of the reference frame processing unit that Fig. 5 provides for the embodiment of the invention;
The structural representation of decompression module in the reference frame processing unit that Fig. 6 provides for the embodiment of the invention;
The structural representation of the video decoder that Fig. 7 provides for the embodiment of the invention;
The structural representation of decompression module in the video decoder that Fig. 8 provides for the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, a kind of reference frame processing method provided by the invention, video encoding/decoding method and device are described in detail with specific embodiment.
The idiographic flow of a kind of reference frame processing method that the embodiment of the invention provides comprises following step as shown in Figure 2:
After a certain picture frame in video image (I frame or P frame, the I frame is an intra-coded frame, the P frame is a forward predicted frame) decoding was finished, this picture frame of decoding gained was promptly preserved as the reference frame of next picture frame.
For example, the compression ratio that reference frame is carried out the jpeg format compression can be 5: 1, and the reference frame after such compression ratio can guarantee to compress keeps the quality of original image.
The compression of jpeg format only is a preferred implementation in the embodiment of the invention, and (Differential Pulse Code Modulation, DPCM) other compression method such as algorithm compresses reference frame can also to use differential pulse coding modulation.Because concrete grammars such as JPEG compression and DPCM compression belong to the prior art scope, do not repeat them here.
Below in conjunction with the decode procedure of each macro block in the present frame, the concrete processing procedure that the reference frame after the compression is decompressed of setting forth.
As shown in Figure 3, with present frame is that the picture frame of 176 * 144 pixels is that example describes, the decode procedure of present frame is corresponding with cataloged procedure, during coding present frame is divided into the macro block of 99 16 * 16 pixels, comprise 11 macro blocks in the macro-block line, be total up to 9 macro-block line, and according to from left to right, order is from top to bottom encoded to each macro block one by one line by line.During decoding, also correspondingly according to from left to right, order is from top to bottom decoded to each macro block line by line one by one.
As can be seen from Figure 3, the order of decoding is that first macro block of first macro-block line begins from present frame, last macro block up to first macro-block line, and then successively each macro block in following each macro-block line is decoded, last macro block decoding until last macro-block line finishes, and promptly finishes the decode procedure of present frame.
In embodiments of the present invention, when supposing that coding present frame macro block carries out estimation, the hunting zone of mating macro block most of this macro block is that (just decoding is when carrying out motion compensation for the search window of 16 * 16 pixel sizes in the reference frame, the matching range that mates most macro block of this macro block), therefore, when present frame is decoded, relate to first macro-block line and second macro-block line in the reference frame after the compression when each macro block carries out motion compensation in first macro-block line; Relate to next macro-block line (totally 3 row) of a last macro-block line, this macro-block line and this macro-block line of this macro-block line in the reference frame after the compression when each macro block carries out motion compensation in the non-first and last macro-block line; Relate to when carrying out motion compensation should end macro-block line and penult macro-block line in the reference frame after the compression for each macro block in the macro-block line of end.
When determining that the present frame macro block is first macro block of first macro-block line of present frame, as the macro block among Fig. 31, only need decompress to the view data of each macro block in first macro-block line and second macro-block line in the reference frame after the compression this moment, and in first macro-block line after will decompressing and second macro-block line image data storage of each macro block in the memory space of setting.During storage, by decompressed each macro block from left to right, order from top to bottom, the view data after successively it being decompressed deposits in the memory space of this setting.
The size of the memory space of this setting can be set to the required memory space in view data decompression back less than whole macro blocks in the reference frame, in the embodiment of the invention, be preferably, suppose that every capable sum of all pixels is N in the picture frame, the size of the memory space that sets can be that pixel count is the required memory space that takies behind the picture decoding of N * 48, in the present embodiment, the memory space of setting is 176 * 48 (can deposit the view data of three macro-block line at most in).
When the view data of follow-up each macro block in present frame first macro-block line is decoded, first macro-block line of the reference frame of storing in only need the memory space according to this setting and each macroblock image data of second macro-block line are decoded and get final product, do not need first macro-block line of compressing the back reference frame and each macroblock image data of second macro-block line are repeated decompression again.
When definite present frame macro block is the first macro block of non-first and last macro-block line, be that the view data of the macro block 2 among Fig. 3 is when decoding for example to the first macro block of present frame second macro-block line, owing to relate to first macro-block line of the reference frame after the compression when this macro block is carried out motion compensation, second macro-block line and the 3rd macro-block line, and owing to stored the view data of each macro block of first macro-block line that decompresses out and second macro-block line in the memory space of setting, so, this time only need the view data of each macro block in the 3rd macro-block line in the reference frame after the compression be decompressed, and be stored in the memory space of this setting.
When decoding for the view data of follow-up each macro block of present frame second macro-block line, directly the view data of each macro block is decoded and is got final product in first macro-block line, second macro-block line and the 3rd macro-block line in the reference frame stored of utilization, does not need to repeat the operation to the decompression of the view data of each macro block in the 3rd macro-block line again.
When definite present frame macro block is the first macro block (macro block 3 among Fig. 3) of the 3rd macro-block line, need carry out the decompress(ion) storage of contracing to the view data of each macro block of the 4th macro-block line in the reference frame after the compression, the memory space (having stored the view data of three macro-block line correspondences) of this setting this moment is full, so according to the principle of first in first out, in the view data that deposits the 4th each macro block of macro-block line in, delete the view data of first each macro block of macro-block line in the memory space that was stored in this setting originally.For the memory space that the present invention sets, the view data of first each macro block of macro-block line of deletion just is and the irrelevant macro-block line of the matching range that mates macro block most of macro block 3, also promptly with the irrelevant macro-block line of macro block 3 decodings.
View data for follow-up macro block in the 3rd macro-block line of present frame, directly view data, the view data of the 3rd each macro block of macro-block line and the image data decoding of each macro block of fourth line of second each macro block of macro-block line of having stored of utilization get final product, and do not need to repeat the operation to the decompression of the view data of each macro block in reference frame the 4th macro-block line again.
To the decompression process of the view data of the 5th macro-block line to the nine each macro block of macro-block line in the reference frame, similar to the decode procedure of the view data of above-mentioned macro block 3, do not repeat them here.
In the embodiment of the invention, the size of the memory space of setting is (the equaling 176 * 48 pixels in the foregoing description) who fixes, the view data of the 3rd each macro block of macro-block line can directly deposit in this memory space in the reference frame that decompresses out first macro-block line in the reference frame that decompresses out for the first time and the view data of second each macro block of macro-block line and the second time, after other macro-block line of reference frame being decompressed at every turn, all need in this space, " extrude " view data of a macro-block line of storage at first, and deposit the view data of the macro-block line of current decompression in, make in the memory space of this setting, only keeping the view data of corresponding macro-block line related when the present frame macro block carried out motion compensation all the time.The reference frame processing method that adopts the embodiment of the invention to provide is compared owing to be stored in the interior view data of this memory space and the view data of whole reference frame at every turn, and shared memory space significantly reduces.
In the foregoing description, be to be that 176 * 48 pixels are example with the memory space set, wherein, " 176 " are the pixel quantity of picture frame delegation, and " 48 " are during according to encoded image frame, the hunting zone of mating the macro block search window most of each macro block and definite.
For example: when the present frame macroblock coding was carried out estimation, its hunting zone of mating macro block most was the search window of 16 * 16 pixel sizes, and its matching range that mates macro block most was consistent when this scope was carried out motion compensation with decoding present frame macro block.According to the above embodiment of the present invention, then the memory space of She Dinging can be N * 48 pixels, and wherein, N is the pixel quantity of picture frame delegation.
If when the present frame macroblock coding is carried out estimation, employing is greater than the search window (carrying out the also corresponding scope greater than 16 * 16 pixel search window of scope of motion compensation during decoding) of 16 * 16 pixel sizes, size that so can corresponding adjustment memory space is with the view data after the storage macro-block line decompression corresponding with the scope of search window.Under the situation that decoding quality allows, can the size of memory space not adjusted yet, still adopting memory space is N * 48 pixels, wherein, N is the pixel quantity of picture frame delegation.
The embodiment of the invention also provides a kind of video encoding/decoding method, as shown in Figure 4, comprises the steps:
Step 401, decoded reference frame is compressed;
This step 401 is identical with step 201 in the reference frame processing method that the foregoing description provides.
Step 402, with the next frame of reference frame as present frame, when present frame is decoded,, successively each macro block of present frame is decoded respectively according to the present frame macro block order (order of each macro block when also promptly encoding) that receives.When each macro block of present frame is decoded, need according to this macro block when carrying out motion compensation in reference frame related macro-block line, the view data of each macro block of part macro-block line corresponding in the reference frame after the compression is carried out the decompress(ion) storage of contracing;
This step 402 is identical with step 202 in the reference frame processing method that the foregoing description provides.
Step 403, from the view data of each macro block of storage, determine the correspondence image data of mating macro block most, reconstruct present frame macro block.The order that foundation is set reconstructs each macro block of present frame successively, promptly finishes the decode procedure of whole present frame.
The restructuring procedure of present frame macro block is same as the prior art, according to the motion vector that entropy decoding obtains, matches the coupling macro block of this macro block correspondence in the part macro-block line of storing in the memory space of setting.Then this is mated macro block most with after the difference data addition that inverse quantization draws, can reconstruct this macro block.According to the order of setting the view data of each macro block of present frame is decoded one by one, finish the decode procedure of whole present frame.
The embodiment of the invention also provides a kind of processing unit of reference frame, as shown in Figure 5, comprising: compression module 501, decompression module 502 and memory module 503;
The memory range memory space of the memory space of memory module 503 is not less than required memory space behind the image data decoding of sum of all pixels * 48 a pixel correspondence of the one-row pixels of picture frame.
Decompression module in the above-mentioned reference frame processing unit as shown in Figure 6, specifically comprises: determine submodule 601, decompression submodule 602;
Determine submodule 601, be used to judge and first macro block that definite present frame macro block is first macro-block line or first macro block of non-first and last macro-block line;
And when determining that the present frame macro block is first macro block of non-first and last macro-block line of present frame, the view data of each macro block and being stored in the memory module 503 in next macro-block line of corresponding macro-block line in the decompression reference frame.
The embodiment of the invention also provides a kind of video decoder, as shown in Figure 7, comprising: compression module 701, decompression module 702, memory module 703 and decoder module 704; Wherein:
Decompression module in the video decoder that the embodiment of the invention provides as shown in Figure 8, specifically comprises: determine submodule 801, decompression submodule 802;
Determine submodule 801, be used to judge and first macro block that definite present frame macro block is first macro-block line or first macro block of non-first and last macro-block line;
And when determining that the present frame macro block is first macro block of non-first and last macro-block line of present frame, the view data of each macro block and being stored in the memory module 703 in next macro-block line of corresponding macro-block line in the decompression reference frame.
Reference frame processing method, video encoding/decoding method and device that the embodiment of the invention provides, by decoded reference frame is compressed in advance, make reference frame not to be compressed to handle in reference frame and the prior art after the compression and compare that the shared memory space of whole reference frame reduces greatly; When decoding present frame macro block, related macro-block line when in reference frame, carrying out motion compensation by determining the present frame macro block, only the view data of each macro block of respective macroblock row in the reference frame after the compression is carried out the decompress(ion) storage of contracing, because storage only is the view data of a part of macro-block line in the reference frame, its memory space that needs is relative also very little.So, compare the processing method of reference frame provided by the invention, video encoding/decoding method and device, the required memory space that takies of reference frame in the time of can reducing decoding greatly with the processing mode of in the prior art whole reference frame being stored in advance.
In addition, video encoding/decoding method that the embodiment of the invention provides and device are in actual application, can be with the reference frame after the compression and the partial reference frame after decompressing be stored in the memory space (as internal storage) that processor can directly visit rapidly, can improve the performance and the efficient of whole decoding like this, and owing to do not need to have saved cost in the memory space that reference frame storing is externally extra.And in embodiment, video encoding/decoding method that the embodiment of the invention provides and device can adopt the mode of software and hardware combination, the mode that the process of present frame macro block of promptly decoding adopts software to realize, and the compression and decompression process of reference frame uses hardware to finish, like this, just not only guaranteed the efficient of present frame decoding, and the compression and decompression process of reference frame is also less to the decode procedure influence of present frame macro block.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.
Claims (12)
1, a kind of reference frame processing method is characterized in that, comprising:
Decoded reference frame is compressed;
During decoding present frame macro block, the view data of each macro block of part macro-block line in the described reference frame after the compression is carried out the decompress(ion) storage of contracing; Related macro-block line when the described present frame macro block of described part macro block behavior carries out motion compensation in described reference frame.
2, the method for claim 1 is characterized in that, described the view data of each macro block of part macro-block line in the described reference frame after the compression is carried out the decompress(ion) storage of contracing, and comprising:
When first macro block of the described present frame macro block first macro-block line that is present frame, the view data of each macro block and storage in first macro-block line and second macro-block line in the described reference frame that decompresses;
When described present frame macro block is first macro block of non-first and last macro-block line of present frame, the view data of each macro block and storage in next macro-block line of corresponding macro-block line in the described reference frame that decompresses.
3, method as claimed in claim 2 is characterized in that, comprising:
By in the described reference frame from left to right, macro block order from top to bottom, the view data after each macro block decompressed deposits in the memory space of described setting successively;
When the memory space of described setting has been filled with, press first in first out, the view data of each macro block in the macro-block line of deletion storage at first.
4, method as claimed in claim 3 is characterized in that, the size of the memory space of described setting is not less than required memory space behind the image data decoding of sum of all pixels * 48 a pixel correspondence of the one-row pixels of picture frame.
5, a kind of video encoding/decoding method is characterized in that, comprising:
Decoded reference frame is compressed;
During decoding present frame macro block, the view data of each macro block of part macro-block line in the described reference frame after the compression is carried out the decompress(ion) storage of contracing; Related macro-block line when the described present frame macro block of described part macro block behavior carries out motion compensation in described reference frame;
From the view data of each macro block of described storage, determine the correspondence image data of mating macro block most, reconstruct present frame macro block.
6, method as claimed in claim 5 is characterized in that, described the view data of each macro block of part macro-block line in the described reference frame after the compression is carried out the decompress(ion) storage of contracing, and comprising:
When first macro block of the described present frame macro block first macro-block line that is present frame, the view data of each macro block and storage in first macro-block line and second macro-block line in the described reference frame that decompresses;
When described present frame macro block is first macro block of non-first and last macro-block line of present frame, the view data of each macro block and storage in next macro-block line of corresponding macro-block line in the described reference frame that decompresses.
7, method as claimed in claim 6 is characterized in that, comprising:
By in the described reference frame from left to right, macro block order from top to bottom, the view data after each macro block decompressed deposits in the memory space of described setting successively;
When the memory space of described setting has been filled with, press first in first out, the view data of each macro block in the macro-block line of deletion storage at first.
8, a kind of reference frame processing unit is characterized in that, comprising: compression module, decompression module and memory module;
Described compression module is used for decoded reference frame is compressed;
Described decompression module when being used to decode the present frame macro block, decompresses to the view data of each macro block of part macro-block line in the described reference frame after the compression; Related macro-block line when the described present frame macro block of described part macro block behavior carries out motion compensation in described reference frame;
Described memory module is used to store the view data of described each macro block of part macro-block line that described decompression module decompresses out.
9, device as claimed in claim 8 is characterized in that, described decompression module specifically comprises: determine submodule, decompression submodule;
Described definite submodule is used to judge and determines first macro block that described present frame macro block is first macro-block line or first macro block of non-first and last macro-block line;
The decompression submodule is used for when determining first macro block that described present frame macro block is first macro-block line, the view data of each macro block and being stored in the described memory module in first macro-block line and second macro-block line in the described reference frame that decompresses;
And when determining that described present frame macro block is first macro block of non-first and last macro-block line of present frame, the view data of each macro block and being stored in the described memory module in next macro-block line of corresponding macro-block line in the described reference frame that decompresses.
10, device as claimed in claim 8 is characterized in that, the memory space of described memory module is not less than required memory space behind the image data decoding of sum of all pixels * 48 a pixel correspondence of the one-row pixels of picture frame.
11, a kind of video decoder is characterized in that, comprising: compression module, decompression module, memory module and decoder module;
Described compression module compresses decoded reference frame;
Described decompression module when being used to decode the present frame macro block, decompresses to the view data of each macro block of part macro-block line in the described reference frame after the compression; Related macro-block line when the described present frame macro block of described part macro block behavior carries out motion compensation in described reference frame;
Described memory module is used to store the view data of described each macro block of part macro-block line that described decompression module decompresses out;
Described decoder module is used for determining the correspondence image data of mating macro block most, reconstruct present frame macro block from the view data of each macro block of described memory module storage.
12, device as claimed in claim 11 is characterized in that, described decompression module specifically comprises: determine submodule, decompression submodule;
Described definite submodule is used to judge and determines first macro block that described present frame macro block is first macro-block line or first macro block of non-first and last macro-block line;
The decompression submodule is used for when determining first macro block that described present frame macro block is first macro-block line, the view data of each macro block and being stored in the described memory module in first macro-block line and second macro-block line in the described reference frame that decompresses;
And when determining that described present frame macro block is first macro block of non-first and last macro-block line of present frame, the view data of each macro block and being stored in the described memory module in next macro-block line of corresponding macro-block line in the described reference frame that decompresses.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810118352 CN101360237A (en) | 2008-08-13 | 2008-08-13 | Reference frame processing method, video decoding method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810118352 CN101360237A (en) | 2008-08-13 | 2008-08-13 | Reference frame processing method, video decoding method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101360237A true CN101360237A (en) | 2009-02-04 |
Family
ID=40332560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200810118352 Pending CN101360237A (en) | 2008-08-13 | 2008-08-13 | Reference frame processing method, video decoding method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101360237A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103236246A (en) * | 2013-04-27 | 2013-08-07 | 深圳市长江力伟股份有限公司 | Display method and display device based on liquid crystal on silicon |
CN106331712A (en) * | 2015-06-30 | 2017-01-11 | 展讯通信(上海)有限公司 | Video image compression method |
CN111355962A (en) * | 2020-03-10 | 2020-06-30 | 珠海全志科技股份有限公司 | Video decoding caching method suitable for multiple reference frames, computer device and computer readable storage medium |
CN112203090A (en) * | 2020-11-30 | 2021-01-08 | 浙江智慧视频安防创新中心有限公司 | Video encoding and decoding method and device, electronic equipment and medium |
WO2022206217A1 (en) * | 2021-04-01 | 2022-10-06 | Oppo广东移动通信有限公司 | Method and apparatus for performing image processing in video encoder, and medium and system |
-
2008
- 2008-08-13 CN CN 200810118352 patent/CN101360237A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103236246A (en) * | 2013-04-27 | 2013-08-07 | 深圳市长江力伟股份有限公司 | Display method and display device based on liquid crystal on silicon |
CN106331712A (en) * | 2015-06-30 | 2017-01-11 | 展讯通信(上海)有限公司 | Video image compression method |
CN106331712B (en) * | 2015-06-30 | 2019-06-25 | 展讯通信(上海)有限公司 | A kind of video image compressing method |
CN111355962A (en) * | 2020-03-10 | 2020-06-30 | 珠海全志科技股份有限公司 | Video decoding caching method suitable for multiple reference frames, computer device and computer readable storage medium |
CN112203090A (en) * | 2020-11-30 | 2021-01-08 | 浙江智慧视频安防创新中心有限公司 | Video encoding and decoding method and device, electronic equipment and medium |
WO2022206217A1 (en) * | 2021-04-01 | 2022-10-06 | Oppo广东移动通信有限公司 | Method and apparatus for performing image processing in video encoder, and medium and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8019002B2 (en) | Parallel batch decoding of video blocks | |
CN1136736C (en) | Multi-mode data reduction for MPEG decoder | |
KR101828099B1 (en) | Video transmission system having reduced memory requirements | |
JP2008543183A (en) | Block noise removal filtering technology for video encoding according to multiple video standards | |
CN101137065A (en) | Image encoding method, decoding method, encoder, decoder, codec method, and codec | |
US9380314B2 (en) | Pixel retrieval for frame reconstruction | |
CN112333446B (en) | Intra-frame block copy reference block compression method | |
US6163576A (en) | Video encoder having reduced memory bandwidth requirements | |
US20160050431A1 (en) | Method and system for organizing pixel information in memory | |
CN101360237A (en) | Reference frame processing method, video decoding method and apparatus | |
JP3918263B2 (en) | Compression encoding apparatus and encoding method | |
CN100446572C (en) | Method for decoding pictures contained in digital image bit stream and digital image decoding system thereof | |
JP2007524309A (en) | Video decoding method | |
KR20130006578A (en) | Residual coding in compliance with a video standard using non-standardized vector quantization coder | |
US6097843A (en) | Compression encoding apparatus, encoding method, decoding apparatus, and decoding method | |
US6278734B1 (en) | Process for decoding and coding a compressed video data stream with reduced memory requirements | |
EP1759532A1 (en) | Method of storing pictures in a memory using compression coding and cost function including power consumption | |
EP1374599B1 (en) | Video encoder and recording apparatus | |
JP2006191642A5 (en) | ||
CN101345874A (en) | Video decoding method, reference frame processing method and apparatus | |
US7804901B2 (en) | Residual coding in compliance with a video standard using non-standardized vector quantization coder | |
KR100349058B1 (en) | video compression and decompression Apparatus | |
US20070153909A1 (en) | Apparatus for image encoding and method thereof | |
CN112004095B (en) | Storage-medium-free still image interframe lossless recovery method | |
Silveira et al. | Memory bandwidth reduction for H. 264 and HEVC encoders using lossless reference frame coding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20090204 |