Image encoding/decoding method and apparatus, and recording medium for storing bitstream
Disclosed herein is an image encoding/decoding method and apparatus. The image decoding method includes obtaining symmetric motion vector difference mode availability information from a bitstream, obtaining first prediction direction's zero motion vector difference information from the bitstream, obtaining symmetric motion vector difference mode information of a current block from the bitstream on the basis of the symmetric motion vector difference mode availability information and the first prediction direction's zero motion vector difference information, obtaining first prediction direction's reference picture index information, second prediction direction's reference picture index information and a first prediction direction's motion vector difference value on the basis of the symmetric motion vector difference mode information, and generating a prediction block of the current block by using at least one of the first prediction direction's reference picture index information, the second prediction direction's reference picture index information and the first prediction direction's motion vector difference value.
1 . An image decoding method, the method comprising:
determining a prediction mode of a current block in a current picture; and
deriving, in response to the prediction mode of the current block being an intra block copy (IBC) mode, a block vector candidate list of the IBC mode based on a size of the current block,
wherein, in response to only the size of the current block being greater than a threshold value, the block vector candidate list includes a block vector of a neighboring block of the current block as a spatial block vector candidate,
wherein the threshold value is 16, and
wherein the IBC mode is an intra prediction mode that generates a prediction block of the current block by referring to the current picture.
2 . The method of claim 1 ,
wherein the block vector candidate list includes a history-based candidate obtained from a history-based candidate list.
3 . An image encoding method, the method comprising:
determining a prediction mode of a current block in a current picture; and
deriving, in response to the prediction mode of the current block being an intra block copy (IBC) mode, a block vector candidate list of the IBC mode based on a size of the current block,
wherein, in response to only the size of the current block being greater than a threshold value, the block vector candidate list includes a block vector of a neighboring block of the current block as a spatial block vector candidate,
wherein the threshold value is 16, and
wherein the IBC mode is an intra prediction mode that generates a prediction block of the current block by referring to the current picture.
4 . A method of transmitting a bitstream comprising:
determining a prediction mode of a current block in a current picture; and
deriving, in response to the prediction mode of the current block being an intra block copy (IBC) mode, a block vector candidate list of the IBC mode based on a size of the current block; and
transmitting the bitstream obtained based on a prediction block of the current block, the prediction block being generated by using the prediction mode,
wherein, in response to only the size of the current block being greater than a threshold value, the block vector candidate list includes a block vector of a neighboring block of the current block as a spatial block vector candidate,
wherein the threshold value is 16, and
wherein the IBC mode is an intra prediction mode that generates the prediction block of the current block by referring to the current picture.