| CPC H04N 19/105 (2014.11) [H04N 19/176 (2014.11); H04N 19/1883 (2014.11); H04N 19/46 (2014.11)] | 20 Claims |

|
1. A method of video decoding, comprising:
determining, by a processor, an initial block vector for predicting a current block in a current coding tree unit (CTU) in a current picture when the current block is predicted in an intra block copy (IBC) mode, the initial block vector being determined based on a merge index included in a coded video bitstream;
when the initial block vector points to a first position outside an IBC reference region of the current block,
modifying the initial block vector to point to a second position in the IBC reference region, the second position being spatially closest to the first position among positions in the IBC reference region; and
performing, by the processor, template matching based on the modified initial block vector that points to the second position in the IBC reference region to determine a refined block vector that points to a reference block in the current picture as the current block; and
reconstructing, by the processor, the current block based on the reference block.
|