| CPC H04N 19/513 (2014.11) [H04N 19/105 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/423 (2014.11); H04N 19/96 (2014.11)] | 3 Claims |

|
1. A method of decoding an image, the method comprising:
obtaining residual information of a current block and intra prediction mode information of the current block indicating an intra prediction mode of the current block;
determining a first intra prediction mode candidate of the current block from a left neighboring block of the current block and determining a second intra prediction mode candidate of the current block from a top neighboring block of the current block;
determining an intra prediction mode of the current block based on the first intra prediction mode candidate, the second intra prediction mode candidate and the intra prediction mode information;
deriving a prediction block of the current block based on the intra prediction mode of the current block;
deriving a quantization parameter of the current block and deriving a residual block of the current block based on the quantization parameter and the residual information; and
generating a reconstructed picture based on the prediction block and the residual block,
wherein the second intra prediction mode candidate of the current block is determined based on whether the top neighboring block of the current block is out of a current coding tree block row of the current block,
wherein based on the top neighboring block of the current block being out of the current coding tree block row of the current block, the quantization parameter of the current block is derived based on a quantization parameter of a previous coded block of the current block, and
wherein the current coding tree block row of the current block is a coding tree block row where the current block is located.
|