Image encoding/decoding method and device, and recording medium in which bitstream is stored
The present invention is about an image encoding/decoding method and apparatus. According to present invention, a method of decoding an image, the method comprising, loading information of a neighboring block of a current block; decoding a current block using the loaded information of the neighboring block; and saving information of the current block that is decoded.
1 . A method of decoding an image, the method comprising:
determining a first sub-block merge candidate based on a left block of a current block;
determining a second sub-block merge candidate based on an upper block of the current block;
determining sub-block merge information of the current block from a sub-block merge candidate list including the first sub-block merge candidate and the second sub-block merge candidate;
deriving a prediction sample of the current block based on the sub-block merge information;
deriving a residual sample of the current block based on residual information for the current block; and
generating a reconstructed picture based on the prediction sample and the residual sample,
based on the current block being adjacent to an upper boundary of the current coding tree block of the current block, the second sub-block merge candidate is determined based on motion vectors corresponding to locations adjacent to the upper boundary of a current coding tree block of the current block, and
the locations adjacent to the upper boundary of the current coding tree block comprise a lower-left location of the upper block and a lower-right location of the upper block.
2 . A method of encoding an image, the method comprising:
determining a first sub-block merge candidate based on a left block of a current block;
determining a second sub-block merge candidate based on an upper block of the current block;
determining sub-block merge information of the current block from a sub-block merge candidate list including the first sub-block merge candidate and the second sub-block merge candidate;
deriving a prediction sample of the current block based on the sub-block merge information;
deriving a residual sample of the current block based on the prediction sample; and
encoding image information including prediction related information and residual information of the current block,
based on the current block being adjacent to an upper boundary of the current coding tree block of the current block, the second sub-block merge candidate is determined based on motion vectors corresponding to locations adjacent to the upper boundary of a current coding tree block of the current block, and
the locations adjacent to the upper boundary of the current coding tree block comprise a lower-left location of the upper block and a lower-right location of the upper block.
3 . 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 first sub-block merge candidate based on a left block of a current block, determining a second sub-block merge candidate based on an upper block of the current block, determining sub-block merge information of the current block from a sub-block merge candidate list including the first sub-block merge candidate and the second sub-block merge candidate, deriving a prediction sample of the current block based on the sub-block merge information, deriving a residual sample of the current block based on the prediction sample, and encoding image information including prediction related information and residual information of the current block; and
transmitting the image data comprising the bitstream,
based on the current block being adjacent to an upper boundary of the current coding tree block of the current block, the second sub-block merge candidate is determined based on motion vectors corresponding to locations adjacent to the upper boundary of a current coding tree block of the current block, and
the locations adjacent to the upper boundary of the current coding tree block comprise a lower-left location of the upper block and a lower-right location of the upper block.