Patent ID: 11956444
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 8:
9. An inter prediction method, comprising:
obtaining a first motion vector predictor of a current picture block and a second motion vector predictor of the current picture block, wherein the first motion vector predictor corresponds to a first reference frame, and the second motion vector predictor corresponds to a second reference frame;
obtaining a first motion vector difference of the current picture block, wherein the first motion vector difference of the current picture block is used to indicate a difference between the first motion vector predictor and a first motion vector target value of the current picture block, and the first motion vector target value and the first motion vector predictor correspond to a same reference frame;
determining a second motion vector difference of the current picture block based on the first motion vector difference, wherein the second motion vector difference of the current picture block is used to indicate a difference between the second motion vector predictor and a second motion vector target value of the current picture block, the second motion vector target value and the second motion vector predictor correspond to a same reference frame, and when a direction of the first reference frame relative to a current frame in which the current picture block is located is the same as a direction of the second reference frame relative to the current frame, the second motion vector difference is the first motion vector difference, or when the direction of the first reference frame relative to the current frame in which the current picture block is located is opposite to the direction of the second reference frame relative to the current frame, a plus or minus sign of the second motion vector difference is opposite to a plus or minus sign of the first motion vector difference, and an absolute value of the second motion vector difference is the same as an absolute value of the first motion vector difference;
determining the first motion vector target value of the current picture block based on the first motion vector difference and the first motion vector predictor;
determining the second motion vector target value of the current picture block based on the second motion vector difference and the second motion vector predictor; and
obtaining a prediction block of the current picture block based on the first motion vector target value and the second motion vector target value.