US 12,425,633 B2
Motion vector obtaining method and apparatus
Huanbang Chen, Shenzhen (CN); Yin Zhao, Hangzhou (CN); Haitao Yang, Shenzhen (CN); and Jianle Chen, San Diego, CA (US)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed on Oct. 12, 2023, as Appl. No. 18/485,330.
Application 18/485,330 is a continuation of application No. 17/898,044, filed on Aug. 29, 2022, granted, now 11,812,050.
Application 17/898,044 is a continuation of application No. 17/111,376, filed on Dec. 3, 2020, granted, now 11,463,721, issued on Oct. 4, 2022.
Application 17/111,376 is a continuation of application No. PCT/CN2019/090031, filed on Jun. 4, 2019.
Claims priority of application No. 201810564560.8 (CN), filed on Jun. 4, 2018.
Prior Publication US 2024/0121421 A1, Apr. 11, 2024
This patent is subject to a terminal disclaimer.
Int. Cl. H04N 19/513 (2014.01); H04N 19/176 (2014.01); H04N 19/189 (2014.01); H04N 19/567 (2014.01)
CPC H04N 19/513 (2014.11) [H04N 19/176 (2014.11); H04N 19/189 (2014.11); H04N 19/567 (2014.11)] 18 Claims
OG exemplary drawing
 
1. A motion vector obtaining method for use in image encoding or image decoding implemented by a coding device, comprising:
determining a target offset motion vector of a to-be-processed block in a current picture and identifier information of a target picture, wherein the to-be-processed block comprises at least one to-be-processed sub-block;
determining, based on a location of the to-be-processed sub-block and the target offset motion vector, an initial location of a collocated sub-block that is of the to-be-processed sub-block and that is in the target picture;
determining the initial location as a target location when the initial location is inside a preset area of the target picture;
determining a location that is in the preset area and that is closest to the initial location as a target location when the initial location is outside the preset area; and
obtaining a motion vector of the to-be-processed sub-block based on a motion vector corresponding to the target location,
wherein
the preset area is represented by a horizontal coordinate value range and a vertical coordinate value range,
wherein the horizontal coordinate value range comprises a minimum horizontal coordinate value and a maximum horizontal coordinate value, and the vertical coordinate value range comprises a minimum vertical coordinate value and a maximum vertical coordinate value, and
wherein the target location is determined according to following formulas:
x(i,j)=Clip3(HorMin,HorMax,x(i,j)); and
y(i,j)=Clip3(VerMin,VerMax,y(i,j)), wherein
HorMin is the minimum horizontal coordinate value, HorMax is the maximum horizontal coordinate value, VerMin is the minimum vertical coordinate value, VerMax is the maximum vertical coordinate value, a Clip3 function is a clipping function, and the Clip3 function is defined as follows:

OG Complex Work Unit Math
and
wherein one or more of HorMin, HorMax, VerMin or VerMax of the preset area is determined based on a location and a size of a coding tree unit (CTU) in which the to-be-processed block is included, a size of the target picture, and an extension range of a temporal motion vector field of the CTU.