| CPC H04N 19/52 (2014.11) [H04N 19/132 (2014.11); H04N 19/139 (2014.11); H04N 19/577 (2014.11)] | 3 Claims |

|
1. A decoding apparatus for image decoding, the decoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
obtain image information including residual information from a bitstream;
derive a current block based on partitioning of a current picture, wherein the current block is a non-square block;
derive a reference picture list 0 (L0) and a reference picture list 1 (L1);
derive two motion vectors (MVs) for the current block, wherein the two MVs include an MVL0 for the L0, and an MVL1 for the L1;
determine whether bi-directional optical-flow (BIO) prediction is applied to the current block;
generate prediction samples of the current block based on the MVL0, the MVL1 and a result of determining that the BIO prediction is applied to the current block;
generate residual samples based on the residual information; and
generate reconstructed samples based on the prediction samples and the residual samples,
wherein the at least one processor is further configured to:
determine whether the BIO prediction is applied to the current block by comparing a first threshold value with a width of the current block and comparing a second threshold value with a height of the current block,
wherein based on the width of the current block being greater than or equal to the first threshold value and the height of the current block being greater than or equal to the second threshold value, it is determined that the BIO prediction is applied to the current block, and
wherein based on the width of the current block being less than the first threshold value or the height of the current block being less than the second threshold value, it is determined that the BIO prediction is not applied to the current block, and
wherein the first threshold value is 8.
|