| CPC H04N 19/14 (2014.11) [H04N 19/105 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 8 Claims |

|
1. A video decoding apparatus comprising:
an out-of-boundary (OOB) determination circuit configured to determine, in a bi-prediction, whether a reference block is a target of OOB processing by comparing coordinates of a reference block boundary with coordinates of a picture boundary; and
an OOB mask derivation circuit configured to derive mask data indicating whether a pixel is available by comparing coordinates of the pixel included in the reference block with the coordinates of the picture boundary or coordinates of a region boundary, wherein
the OOB determination circuit further determines, based on top left coordinates and a block size of the reference block that are derived from a motion vector of a target block, whether the reference block includes a region that is out of a valid range,
the OOB mask derivation circuit further derives, based on the determination of whether the reference block includes the region that is out of the valid range, mask data indicating whether a pixel at each position in the reference block is out of the valid range, and
in a case of the bi-prediction, the video decoding apparatus generates a prediction image based on the mask data indicating whether the pixel at each position in the reference block is out of the valid range.
|