CPC H04N 19/105 (2014.11) [H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/30 (2014.11)] | 8 Claims |
1. A method of decoding an image, comprising:
obtaining, from a bitstream, first information indicating whether a color copy mode is supported;
determining whether the color copy mode is supported for a current chroma block in the image based on the first information;
determining, in case the first information indicates that the color copy mode is supported, whether the color copy mode is applied for the current chroma block in the image;
down-sampling a luma block corresponding to the current chroma block in response to the determination that the color copy mode is applied for the current chroma block;
deriving correlation information for the color copy mode based on a pre-determined reference region;
predicting the current chroma block by applying the correlation information to the down-sampled luma block to generate a prediction block of the current chroma block;
obtaining a transform coefficient for the current chroma block;
generating a residual block by inverse-transforming the transform coefficient; and
reconstructing the current chroma block based on the prediction block and the residual block,
wherein the reference region includes at least one of a neighboring region of the current chroma block or a neighboring region of the luma block, and
wherein a number of reference pixel lines belonging to the reference region used for the deriving of the correlation information is adaptively determined based on a determination of whether the current chroma block is located on a boundary of a maximum coding block.
|