摘要 |
A method and apparatus for encoding and/or decoding an image are provided. The method of encoding an image includes: generating a prediction block that is an intra or inter prediction value of a current block; calculating a color difference between the current block and the generated prediction block; and, encoding the current block by adjusting a quantization step, based on the calculated color difference. In this way, color distortion in a restored image that can occur when a color of a current block is incorrectly predicted can be prevented. |