CPC H04N 19/132 (2014.11) [H04N 19/105 (2014.11); H04N 19/137 (2014.11); H04N 19/176 (2014.11); H04N 19/513 (2014.11)] | 14 Claims |
1. An image decoding method performed by an image decoding apparatus, the image decoding method comprising:
deriving a prediction sample of a current block based on motion information of the current block;
deriving a reference picture resampling (RPR) condition for the current block;
determining whether prediction refinement with optical flow (PROF) applies to the current block based on the RPR condition; and
deriving a refined prediction sample for the current block by applying PROF to the current block,
wherein the RPR condition is derived based on a width of the reference picture of the current block being different from that of the current picture or a height of the reference picture of the current block being different from that of the current picture.
|