CPC H04N 19/59 (2014.11) [H04N 19/105 (2014.11); H04N 19/176 (2014.11); H04N 19/33 (2014.11); H04N 19/593 (2014.11)] | 17 Claims |
1. A video coding method performed by an electronic device, the method comprising:
obtaining a first resolution used in decoding a current block and a second resolution used in decoding a reference block in a current video frame, the reference block being used for performing directional prediction on the current block in the current video frame;
building a reconstruction block from the reference block;
when the first resolution is greater than the second resolution:
adjusting the reconstruction block of the reference block to the first resolution to obtain a first reconstruction block; and
performing directional prediction on the current block according to the first reconstruction block and the current block; and
when the first resolution is less than the second resolution:
adjusting the reconstruction block of the reference block to the first resolution to obtain a second reconstruction block; and
performing directional prediction on the current block according to the second reconstruction block and the current block.
|