Method and device for encoding/decoding image, and recording medium storing bit stream
An image encoding/decoding method and apparatus for predicting a second color component block using a first color component block are provided. An image decoding method of the present invention comprises deriving a prediction parameter using the first color component block, and predicting the second color component block using the derived prediction parameter.
1. An image decoding method comprising:
deriving an intra prediction mode of a current block;
deriving reference samples for an intra prediction on the current block; and
generating a predicted block by performing the intra prediction on the current block based on the intra prediction mode and the reference samples,
wherein in deriving the intra prediction mode of the current block, a chroma intra prediction mode of the current block which is a chroma block is derived,
wherein the chroma intra prediction mode of the current block is derived by using a luma intra prediction mode of a corresponding luma block corresponding to a predetermined position of the current block, and
wherein the predetermined position is equal to a central bottom right sample position among 4 central sample positions of the current block.
2. An image encoding method comprising:
deriving an intra prediction mode of a current block;
deriving reference samples for an intra prediction on the current block; and
generating a predicted block by performing the intra prediction on the current block based on the intra prediction mode and the reference samples,
wherein in deriving the intra prediction mode of the current block, a chroma intra prediction mode of the current block which is a chroma block is derived,
wherein the chroma intra prediction mode of the current block is derived by using a luma intra prediction mode of a corresponding luma block corresponding to a predetermined position of the current block, and
wherein the predetermined position is equal to a central bottom right sample position among 4 central sample positions of the current block.
3. A transmission method for image data, the method comprising:
obtaining a bitstream of encoded image information which is generated by an image encoding method, the image encoding method comprises deriving an intra prediction mode of a current block, deriving reference samples for an intra prediction on the current block, and generating a predicted block by performing the intra prediction on the current block based on the intra prediction mode and the reference samples; and
transmitting the image data comprising the bitstream,
wherein in deriving the intra prediction mode of the current block, a chroma intra prediction mode of the current block which is a chroma block is derived,
wherein the chroma intra prediction mode of the current block is derived by using a luma intra prediction mode of a corresponding luma block corresponding to a predetermined position of the current block, and
wherein the predetermined position is equal to a central bottom right sample position among 4 central sample positions of the current block.