摘要:
Provided is a method of determining whether an image is to be re-encoded, the method including obtaining a first quantization matrix from an image file including the image, the image being encoded by quantization based on the first quantization matrix including a plurality of first quantization parameters; obtaining a second quantization matrix from a re-encoding device, the second quantization matrix including a plurality of second quantization parameters and having the same size as the first quantization matrix; determining a comparison coefficient based on elements greater than '0' among elements of a comparison matrix obtained by subtracting the first quantization matrix from the second quantization matrix; and determining that the image is to be decoded by inverse quantization based on the first quantization matrix and the decoded image is to be re-encoded by quantization based on the second quantization matrix, when the comparison coefficient is greater than a first threshold value.
摘要:
A method and apparatus for encoding and decoding an image. The encoding method includes: deciding whether pixel values of a first block of an image are identical to pixel values of a second block of the image that is encoded prior to the first block in a current slice of the image, and determining whether to encode the first block in a first mode according to the deciding; and selectively encoding the first block in the first mode based on the determining, wherein the first mode is a mode for encoding information representing that the first block is encoded in the first mode, instead of encoding the pixel values of the first block, when the first block is identical or similar to the second block.
摘要:
Provided is a re-encoding method including obtaining a first quantization table from a bitstream including an image encoded using the first quantization table; obtaining a second quantization table based on a pattern representing a size distribution of values of elements of the first quantization table, the second quantization table including elements respectively corresponding to the elements of the first quantization table; and re-encoding a reconstructed image by using the second quantization table, the reconstructed image being obtained by decoding the encoded image by using the first quantization table.