US 12,003,761 B2
Method and apparatus for decoding video, and method and apparatus for encoding video
Alexander Alshin, Suwon-si (KR); and Elena Alshina, Suwon-si (KR)
Assigned to SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed by SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed on Sep. 20, 2021, as Appl. No. 17/479,674.
Application 17/479,674 is a continuation of application No. 15/774,890, granted, now 11,153,601, previously published as PCT/KR2016/013043, filed on Nov. 11, 2016.
Claims priority of provisional application 62/253,816, filed on Nov. 11, 2015.
Prior Publication US 2022/0078482 A1, Mar. 10, 2022
Int. Cl. H04N 19/577 (2014.01); H04N 19/105 (2014.01); H04N 19/136 (2014.01); H04N 19/176 (2014.01); H04N 19/182 (2014.01); H04N 19/523 (2014.01); H04N 19/537 (2014.01)
CPC H04N 19/577 (2014.11) [H04N 19/105 (2014.11); H04N 19/136 (2014.11); H04N 19/176 (2014.11); H04N 19/182 (2014.11); H04N 19/523 (2014.11); H04N 19/537 (2014.11)] 3 Claims
OG exemplary drawing
 
1. A video decoding method comprising:
obtaining, from a bitstream, information about a first motion vector of a current block and information about a second motion vector of the current block;
obtaining a pixel value of a first pixel using first neighboring pixels determined based on the first motion vector in a first reference picture;
obtaining a pixel value of a second pixel using second neighboring pixels determined based on the second motion vector in a second reference picture;
obtaining a first gradient value of the first pixel using third neighboring pixels of the first pixel;
obtaining a second gradient value of the second pixel using fourth neighboring pixels of the second pixel;
determining a first displacement vector in a horizontal direction and a second displacement vector in a vertical direction; and
obtaining a prediction pixel value of the current block by using the pixel value of the first pixel, the pixel value of the second pixel, the first gradient value, the second gradient value, the first displacement vector and the second displacement vector,
wherein when a first intermediate value used for determining at least one of the first displacement vector and the second displacement vector is greater than a predetermined value, the at least one of the first displacement vector and the second displacement vector is determined by performing a clipping operation based on a first threshold value and a second threshold value to a second intermediate value which is derived from the first intermediate value, and
wherein when the first intermediate value is smaller than or equal to the predetermined value, the at least one of the first displacement vector and the second displacement vector is determined as 0 without the clipping operation.