CPC H04N 19/12 (2014.11) [H04N 19/132 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/70 (2014.11)] | 3 Claims |
1. An image decoding method performed by a decoding apparatus,
the method comprising:
obtaining image information including residual information and prediction mode information from a bitstream;
deriving a prediction sample for a current block based on the prediction mode information;
deriving a residual sample for the current block based on the residual information; and
generating a reconstructed sample based on the residual sample and the prediction sample,
wherein the image information includes adaptive color transform (ACT)-related information,
wherein whether to apply an ACT to the residual sample of the current block is determined based on the ACT-related information,
wherein based on the ACT-related information representing that the ACT is applied, clipping is performed on the residual sample to apply the ACT,
wherein the clipping is performed by a clipping range determined based on a bit depth (BitDepth),
wherein the clipping range includes a clipping range for a luma component and a clipping range for a chroma component,
wherein the clipping range for the luma component includes a range between −(1<<BitDepth) and (1<<BitDepth)−1, and
wherein the clipping range for the chroma component includes a range between −(1<<(BitDepth+1)) and (1<<(BitDepth+1))−1.
|