| CPC H04N 19/593 (2014.11) [H04N 19/105 (2014.11); H04N 19/176 (2014.11); H04N 19/513 (2014.11)] | 9 Claims |

|
1. A method of decoding an image, the method comprising:
constructing a block vector candidate list of a current block;
deriving a block vector of the current block based on one of block vector candidates included in the block vector candidate list; and
obtaining prediction samples of the current block based on the block vector of the current block,
wherein constructing the block vector candidate list comprises,
in response to a number of block vector candidates included in the block vector candidate list being less than a maximum number, adding at least one of history-based block vector candidates included in a history-based block vector candidate list to the block vector candidate list; and
wherein whether a history-based block vector candidate is added to the block vector candidate list is determined by comparing the history-based block vector candidate with a block vector candidate already included in the block vector candidate list.
|