| CPC H04N 19/105 (2014.11) [H04N 19/132 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/126 (2014.11); H04N 19/503 (2014.11); H04N 19/59 (2014.11); H04N 19/593 (2014.11)] | 18 Claims |

|
1. A method executed by one or more processors in a video decoder, the method comprising:
receiving a coded video bitstream that includes a current picture;
defining, for a block included in the current picture, a template area of neighboring reconstruction or prediction samples of the block;
applying one or more adaptive weighting candidates to the template area to generate one or more prediction samples using a compound inter-intra prediction mode in which one or more wedge masks split the block into at least a first section and a second section, the first section is filled with intra predicted samples and the second section is filled with inter predicted samples;
calculating a cost value for each of the one or more adaptive weighting candidates;
selecting an adaptive weighting candidate from the one or more adaptive weighting candidates that provides a lowest cost as the weighting used for decoding the block; and
decoding the block based on the selected adaptive weighting and the generated one or more prediction samples,
wherein the cost value is defined as a prediction error between (i) reconstruction samples in the template area, and (ii) the one or more prediction samples in the template area generated by weighted intra and inter prediction using the selected adaptive weighting candidate.
|