Method and apparatus for hierarchical data unit-based video encoding and decoding comprising quantization parameter prediction
A method of decoding a video includes determining an initial value of a quantization parameter (QP) used to perform inverse quantization on coding units included in a slice segment, based on syntax obtained from a bitstream; determining a slice-level initial QP for predicting the QP used to perform inverse quantization on the coding units included in the slice segment, based on the initial value of the QP; and determining a predicted QP of a first quantization group of a parallel-decodable data unit included in the slice segment, based on the slice-level initial QP.
1. A video decoding method comprising:
obtaining a quantization parameter of a slice;
generating a predicted quantization parameter of a current quantization group using the quantization parameter of the slice, wherein the current quantization group is a first quantization group in a current row included in the slice;
generating, according to an availability of a neighboring block of a second quantization group in the current row, a predicted quantization parameter of the second quantization group in the current row included in the slice using a determined quantization parameter regarding the neighboring block of the second quantization group;
generating a predicted quantization parameter of a next quantization group using the quantization parameter of the slice, wherein the next quantization group is a first quantization group in a next row included in the slice; and
performing an inverse quantization on the current quantization group, the second quantization group in the current row, and the next quantization group,
wherein each of the current row and the next row comprises a plurality of largest coding units,
wherein the neighboring block of the second quantization group includes at least one of left block of the second quantization group and upper block of the second quantization group, and
wherein a predicted quantization parameter of a quantization group in the next row which is not the next quantization group, is generated using a quantization parameter of a neighboring coding unit of the quantization group in the next row.
2. The video decoding method of claim 1 , wherein the current quantization group is a set of at least one of coding units sharing the predicted quantization parameter of the current quantization group.