摘要 |
The invention discloses a method and apparatus for encoding video data stream. In accordance with the method provided by the invention, firstly, compares the difference between each data block of the unit to be encoded and a reference data block having the corresponding address in a reference unit; and, determines whether the difference corresponding to each data block complies with a preset reference value. If it is less than the preset reference value, then the macro-block is indicated for obtaining the video data of the macro-block by decoding on the basis of data of reference data macro-block. Otherwise the macro-block is encoded. With the invention, it can be determined whether the macro-block should be encoded without motion prediction, motion compensation and/or DCT, etc., which greatly simplifies the procedure of determining whether the macro-block should be encoded and saves the system resources. |