| CPC H04N 19/124 (2014.11) [H04N 19/172 (2014.11); H04N 19/174 (2014.11); H04N 19/18 (2014.11); H04N 19/186 (2014.11); H04N 19/60 (2014.11); H04N 19/70 (2014.11)] | 3 Claims |

|
1. A video decoding method comprising:
obtaining, from a picture parameter set, a quantization parameter (QP) initial value to be applied to a current picture;
obtaining, from the picture parameter set, a QP difference value flag indicating whether a QP difference value is present in a picture header of the current picture;
when the QP difference value flag indicates that the QP difference value is present in the picture header of the current picture, obtaining a first QP difference value for the current picture from the picture-header, determining a first QP for at least one slice included in the current picture using the QP initial value and the first QP difference value obtained for the current picture, and performing inverse-quantization on transformation coefficients included in a first slice among the at least one slice using the first QP for the at least one slice; and
when the QP difference value flag indicates that the QP difference value is not present in the picture header, obtaining a second QP difference value for a current slice included in the current picture from a slice header of the current-slice, determining a second QP for the current slice included in the current picture using the QP initial value and the second QP difference value obtained for the current slice, and performing inverse-quantization on transformation coefficients included in the current slice using the second QP for the current slice,
wherein, when the first QP difference value is obtained from the picture header for the current picture according to the QP difference value flag, the second QP difference value for the current slice included in the current picture is not obtained from the slice header for the current slice and the second QP for the current slice included in the current picture is determined without the second QP difference value for the current slice.
|