Abstract:
Provided are a method and apparatus for encoding an image capable of improving compression efficiency of the image by compensating for a loss due to quantization of a residual block in the frequency domain, and a method and apparatus for decoding the image. The method of encoding an image includes: generating a prediction macro block for a current macro block; generating a first residual block which is a difference between the prediction macro block and the current macro block; generating a compensation residual block by compensating for a quantization loss of the first residual block in the frequency domain; compensating for the prediction macro block by adding the compensation residual block and the prediction macro block.
Abstract:
Provided are a method and apparatus for encoding an image capable of improving compression efficiency of the image by compensating for a loss due to quantization of a residual block in the frequency domain, and a method and apparatus for decoding the image. The method of encoding an image includes: generating a prediction macro block for a current macro block; generating a first residual block which is a difference between the prediction macro block and the current macro block; generating a compensation residual block by compensating for a quantization loss of the first residual block in the frequency domain; compensating for the prediction macro block by adding the compensation residual block and the prediction macro block.
Abstract:
A method of and apparatus for encoding and decoding an image are provided. According to the method and apparatus, a virtual motion vector is assigned to a block which is encoded in intra prediction mode, and when a motion vector of a block which is encoded in inter prediction mode after the intra block is decoded, the virtual motion vector assigned to the intra block is used.
Abstract:
A method of and apparatus for encoding and decoding an image are provided. According to the method and apparatus, a virtual motion vector is assigned to a block which is encoded in intra prediction mode, and when a motion vector of a block which is encoded in inter prediction mode after the intra block is decoded, the virtual motion vector assigned to the intra block is used.