| CPC H04N 19/44 (2014.11) [H04N 19/105 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 9 Claims |

|
1. A method for decoding a bi-prediction coding block, comprising:
deriving, by a decoder, a first reference picture for a current coding block;
deriving, by the decoder, a first predictor sample based on a motion vector associated with the first reference picture using a motion compensation process from the first reference picture;
determining, by the decoder, whether the first predictor sample is out-of-boundary (OOB), and in response to determining the first predictor sample is OOB, replacing, by the decoder, the first predictor sample with a first alternative predictor sample;
deriving, by the decoder, a second reference picture for the current coding block;
deriving, by the decoder, a second predictor sample based on a motion vector associated with the second reference picture using a motion compensation process from the second reference picture;
determining, by the decoder, whether the second predictor sample is out-of-boundary (OOB), and in response to determining the second predictor sample is OOB, replacing, by the decoder, the second predictor sample with a second alternative predictor sample; and
generating a final prediction sample by averaging sample values of the first predictor sample and the second predictor sample.
|