BLOCK SIZE BASED MOTION VECTOR CODING IN AFFINE MODE
At least a method and an apparatus are presented for efficiently encoding or decoding video. For example, a plurality of motion vectors are obtained for used in determining motion information for a block using affine modeling, wherein at least one of the plurality of motion vectors is determined based on a block size of the block. The video is then encoded or decoded based on the plurality of motion vectors.
1 - 15 . (canceled)
16 . A method for decoding a block of a video using affine mode motion coding, comprising:
obtaining a plurality of control point motion vectors for the block;
determining motion vector differences between control point motion vectors and their respective predictors; and
decoding the video based on the plurality of motion vector differences,
wherein a quantization of at least one of the plurality of motion vector differences is determined based on a block size of the block.
17 . The method of claim 16 , wherein the block size of the block is a width of the block.
18 . The method of claim 17 , wherein, in the condition that the width of the block is greater than a threshold, the at least one motion vector difference is determined based on a scaling by a factor equal to the integer division of the threshold divided by the width of the block.
19 . The method of claim 17 , wherein the quantization uses only power of 2 quantizer.
20 . The method of claim 19 , wherein the quantization of at least one of the plurality of motion vector differences further comprises selecting a quantizer in a table of quantizers based on the width of the block.
21 . The method of claim 20 , wherein the pixel accuracy decreases with increasing block size larger than a threshold size.
22 . The method of claim 17 , wherein at least another additional one of the plurality of motion vector differences is determined independent of the block size.
23 . The method of claim 17 , wherein the affine mode motion coding is using affine advanced motion vector prediction (AMVP) mode.
24 . A method for decoding a block of a video using affine mode motion coding, comprising:
obtaining a plurality of control point motion vectors for the block;
determining motion vector differences between control point motion vectors and their respective predictors; and
decoding the video based on the plurality of motion vector differences,
wherein a quantization of at least one of the plurality of motion vector differences is determined based on a block size of the block.
25 . The method of claim 24 , wherein the block size of the block is a width of the block.
26 . The method of claim 25 , wherein, in the condition that the width of the block is greater than a threshold, the at least one motion vector difference is determined based on a scaling by a factor equal to the integer division of the threshold divided by the width of the block.
27 . The method of claim 25 , wherein the quantization uses only power of 2 quantizer.
28 . The method of claim 27 , wherein the quantization of at least one of the plurality of motion vector differences further comprises selecting a quantizer in a table of quantizers based on the width of the block.
29 . The method of claim 28 , wherein the pixel accuracy decreases with increasing block size larger than a threshold size.
30 . The method of claim 25 , wherein at least another additional one of the plurality of motion vector differences is determined independent of the block size.
31 . The method of claim 25 , wherein the affine mode motion coding is using affine advanced motion vector prediction (AMVP) mode.
32 . An apparatus for decoding a block of a video using affine mode motion coding, comprising one or more processors, wherein the one or more processors are configured to:
obtain a plurality of control point motion vectors for the block;
determine motion vector differences between control point motion vectors and their respective predictors; and
decode the video based on the plurality of motion vector differences,
wherein a quantization of at least one of the plurality of motion vector differences is determined based on a block size of the block.
33 . An apparatus for encoding a block of a video using affine mode motion coding, comprising one or more processors, wherein the one or more processors are configured to:
obtain a plurality of control point motion vectors for the block;
determine motion vector differences between control point motion vectors and their respective predictors; and
encode the video based on the plurality of motion vector differences,
wherein a quantization of at least one of the plurality of motion vector differences is determined based on a block size of the block.
34 . A non-transitory storage medium having stored therein instructions for causing a processor to decode a block of a video using affine mode motion coding, comprising:
obtaining a plurality of control point motion vectors for the block;
determining motion vector differences between control point motion vectors and their respective predictors; and
decoding the video based on the plurality of motion vector differences,
wherein a quantization of at least one of the plurality of motion vector differences is determined based on a block size of the block.