CPC H04N 19/105 (2014.11) [H04N 19/137 (2014.11); H04N 19/176 (2014.11); H04N 19/597 (2014.11)] | 5 Claims |
1. A method of decoding an image, the method comprising:
decoding information related to reference samples for predicting a current block;
deriving reference samples based on the information; and
deriving prediction samples of the current block based on the reference samples,
wherein the deriving reference samples includes:
when at least one of the reference samples is located outside the boundary of the image, the at least one of the reference samples outside the boundary of the image is replaced based on at least one of samples located at the opposite plane of the boundary of the image, and
wherein the at least one of samples located at the opposite plane of the boundary of the image is determined based on an offset and a width of the image.
|