Adaptive image encoding device and method
Provided are an image encoding method and device. When carrying out image encoding for a block within a slice, at least one block in a restored block of the slice is set as a reference block. When this is done, the encoding parameters of the reference block are distinguished, and the block to be encoded is encoded adaptively based on the encoding parameters.
1. A video decoding device performing a decoding for a target block, which comprises:
a receiving unit which receives a bit stream; and
a control unit which performs the decoding for the target block based on the bit stream received,
wherein the control unit determines a quantization parameter of the target block based on quantization parameters of referencing blocks, and performs the decoding for the target block based on the determined quantization parameter of the target block,
wherein the reference blocks comprise a block adjacent to the left of the target block and a block adjacent above the target block, and
wherein the quantization parameter of the target block is determined by a calculation formula using the quantization parameters of the reference block.
2. An image encoding method for encoding a target block, the image encoding method comprising:
performing an adaptive encoding on the target block,
wherein the adaptive encoding determines a quantization parameter of the target block and performs encoding on the target block based on the determined quantization parameter,
wherein the determined quantization parameter corresponds to a result of a calculation formula using quantization parameters of reference blocks, and
wherein the reference blocks comprise a block adjacent to the left of the target block and a block adjacent above the target block.
3. A non-transitory computer-readable recording medium storing a bitstream for decoding an image, the bitstream comprising:
encoded information of a target block,
wherein the encoded information of the target block is used for performing an adaptive decoding,
wherein the adaptive decoding determines a quantization parameter for decoding the target block based on quantization parameters of reference blocks, and performs decoding of the target block based on the determined quantization parameter,
wherein the reference blocks comprise a block adjacent to the left of the target block and a block adjacent above the target block, and
wherein the quantization parameter to be applied to the target block is determined by a calculation formula using the quantization parameters of the reference blocks.