Image encoding method/device, image decoding method/device, and recording medium in which bitstream is stored
View Patent ↗The present invention provides an image encoding method and an image decoding method. The image encoding method of the present invention comprises: a first dividing step of dividing a current image into a plurality of blocks; and a second dividing step of dividing, into a plurality of sub blocks, a block, which is to be divided and includes a boundary of the current image, among the plurality of blocks, wherein the second dividing step is recursively performed by setting a sub block including the boundary of the current images as the block to be divided, until the sub block including the boundary of the current image does not exist among the sub blocks.
1 . A video decoding method comprising:
determining a partition type of an upper block including a current block;
deriving a reference candidate list for the current block based on the partition type of the upper block;
deriving prediction information of the current block based on the reference candidate list; and
generating a prediction block of the current block based on the prediction information,
wherein the reference candidate list includes at least one candidate block or prediction information of the at least one candidate block,
wherein, in a case that the upper block of the current block includes a neighboring block adjacent to the current block, the reference candidate list does not include the neighboring block of the current block, as a candidate block, and the reference candidate list includes one or more blocks adjacent to the neighboring block of the current block but not to the current block, as candidate blocks,
wherein the upper block is obtained by partitioning a current image,
wherein the current image includes a padded area, and
wherein the padded area is constructed by horizontal copying of adjacent pixels in the padded area.
2 . The video decoding method of claim 1 ,
wherein the one or more blocks adjacent to the neighboring block of the current block but not to the current block are blocks vertically adjacent to or horizontally adjacent to the neighboring block.
3 . A video encoding method comprising:
determining a partition type of an upper block including a current block;
deriving a reference candidate list for the current block based on the partition type of the upper block;
generating a prediction block of the current block based on the reference candidate list; and
encoding prediction information of the current block based on the prediction block,
wherein the reference candidate list includes at least one candidate block or prediction information of the at least one candidate block,
wherein, in a case that the upper block of the current block includes a neighboring block adjacent to the current block, the reference candidate list does not include the neighboring block of the current block, as a candidate block, and the reference candidate list includes one or more blocks adjacent to the neighboring block of the current block but not to the current block, as candidate blocks,
wherein the upper block is obtained by partitioning a current image,
wherein the current image includes a padded area, and
wherein the padded area is constructed by horizontal copying of adjacent pixels in the padded area.
4 . A method of transmitting a bitstream, the method comprising:
transmitting the bitstream generated by an image encoding method,
wherein the image encoding method comprises:
determining a partition type of an upper block including a current block;
deriving a reference candidate list for the current block based on the partition type of the upper block;
generating a prediction block of the current block based on the reference candidate list; and
encoding prediction information of the current block based on the prediction block into a bitstream,
wherein the reference candidate list includes at least one candidate block or prediction information of the at least one candidate block,
wherein, in a case that the upper block of the current block includes a neighboring block adjacent to the current block, the reference candidate list does not include the neighboring block of the current block, as a candidate block, and the reference candidate list includes one or more blocks adjacent to the neighboring block of the current block but not to the current block, as candidate blocks,
wherein the upper block is obtained by partitioning a current image,
wherein the current image includes a padded area, and
wherein the padded area is constructed by horizontal copying of adjacent pixels in the padded area.