CPC H04N 19/597 (2014.11) [H04N 13/161 (2018.05); H04N 19/105 (2014.11); H04N 19/107 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/182 (2014.11); H04N 19/426 (2014.11); H04N 19/44 (2014.11); H04N 19/593 (2014.11); H04N 2013/0085 (2013.01); H04N 19/91 (2014.11)] | 9 Claims |
1. A method of decoding a video, the method comprising:
determining a prediction mode of a current block, the prediction mode being determined as one of intra prediction and inter prediction;
obtaining a first prediction sample of the current block by performing the intra prediction or the inter prediction for the current block according to the prediction mode; and
obtaining a second prediction sample of the current block based on the first prediction sample,
wherein reference samples of the current block are derived based on reconstructed samples adjacent to the current block,
wherein the second prediction sample is obtained by applying a first weight to the first prediction sample and applying a second weight to a value derived by at least one of the reference samples, and
wherein the first weight and the second weight are determined based on whether a neighboring block adjacent to the current block is coded by the intra prediction or not.
|