Method and device for encoding/decoding image, and recording medium in which bitstream is stored
An image encoding/decoding method and apparatus for performing intra prediction using a plurality of reference sample lines are provided. An image decoding method may comprise configuring a plurality of reference sample lines, reconstructing an intra prediction mode of a current block, and performing intra prediction for the current block based on the intra prediction mode and the plurality of reference sample lines.
1 . An image decoding method performed by a decoding apparatus, the method comprising:
deriving a prediction mode for a luma block;
determining whether the luma block corresponding to a chroma block is used to predict the chroma block;
deriving a prediction luma block based on the prediction mode;
deriving a reconstructed luma block based on the prediction luma block;
deriving a reconfigured luma block based on the reconstructed luma block;
deriving a prediction parameter for the chroma block; and
deriving a chroma prediction block of the chroma block based on the reconfigured luma block and the prediction parameter,
wherein the deriving reconfigured luma block comprises:
sub-sampling the reconstructed luma block,
wherein the deriving the chroma prediction block of the chroma block comprises:
deriving a prediction block based on a DC mode, and
wherein the chroma prediction block of the chroma block is derived based on the reconfigured luma block, the prediction parameter and the prediction block derived based on the DC mode.
2 . The image decoding method of claim 1 , wherein the prediction parameter is applied to the reconfigured luma block, and
wherein the prediction parameter is signaled in a bitstream.
3 . An image encoding method performed by an encoding apparatus, the method comprising:
determining a prediction mode for a luma block;
determining whether the luma block corresponding to a chroma block is used to predict the chroma block;
deriving a reconstructed luma block based on the prediction mode;
deriving a reconfigured luma block based on the reconstructed luma block;
deriving a prediction parameter for the chroma block;
deriving a chroma prediction block of the chroma block based on the reconfigured luma block and the prediction parameter; and
encoding image information including prediction mode information for the chroma block,
wherein the deriving the reconfigured luma block comprises:
sub-sampling the reconstructed luma block,
wherein the deriving the chroma prediction block of the chroma block comprises:
deriving a prediction block based on a DC mode and;
wherein the chroma prediction block of the chroma block is derived based on the reconfigured luma block, the prediction parameter and the prediction block derived based on the DC mode.
4 . The image encoding method of claim 3 , wherein the prediction parameter is applied to the reconfigured luma block, and
wherein the prediction parameter is signaled in a bitstream.
5 . A transmission method for image data, the method comprising:
obtaining a bitstream of encoded image information, wherein the encoded image information is generated based on determining a prediction mode for a luma block, determining whether the luma block corresponding to a chroma block is used to predict the chroma block, deriving a reconstructed luma block based on the prediction mode, deriving a reconfigured luma block based on the reconstructed luma block, deriving a prediction parameter for the chroma block, deriving a chroma prediction block of the chroma block based on the reconfigured luma block and the prediction parameter, and encoding image information including prediction mode information for the chroma block; and
transmitting the image data comprising the bitstream,
wherein the deriving the reconfigured luma block comprises:
sub-sampling the reconstructed luma block,
wherein the deriving the chroma prediction block of the chroma block comprises:
deriving a prediction block based on a DC mode, and
wherein the chroma prediction block of the chroma block is derived based on the reconfigured luma block, the prediction parameter and the prediction block derived based on the DC mode.
6 . The transmission method of claim 5 , wherein the prediction parameter is applied to the reconfigured luma block, and
wherein the prediction parameter is signaled in a bitstream.