# US 2022/0279167 A1 · Affine mode in video coding and decoding

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0279167 A1
- Document ID: US20220279167A1
- Status: Published application
- Kind: A1
- Application number: 17/735,483
- Filed: 2022-05-03
- Published: 2022-09-01
- Earliest claimed: 2018-09-08
- Assignees: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Applicants: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Inventors: Hongbin LIU; Li ZHANG; Kai ZHANG; Yue WANG
- Web page: https://patentgrep.com/patent/US20220279167A1

## CPC

- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/537: Motion estimation other than block-based
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/30: using hierarchical techniques, e.g. scalability (H04N19/63 takes precedence)
- H04N 19/513: Processing of motion vectors
- H04N 19/523: with sub-pixel accuracy
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/186: the unit being a colour or a chrominance component
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Video coding and decoding in which the bitstream is generated using affine motion compensation mode are described. One example includes generating, for a reconstruction of a current video unit, a list of affine motion vector prediction candidates in which each candidate in the list is calculated without using a clipping operation, wherein the clipping operation limits a magnitude of the candidate motion vectors to a range; and performing the reconstruction of the current video unit using the list of affine motion vector prediction candidates.

## Claims

### Claim 1

A method of processing video data, comprising:
constructing, during performing a conversion between a video unit in an affine video coding mode and a bitstream thereof, a list of control point motion vector predictors using a precision that is same as a precision used for a signaled control point motion vector difference of the video unit; wherein a precision of a motion vector related to a neighboring video unit is modified to the precision used for the signaled control point motion vector difference, prior to being used as a motion vector predictor in the list of control point motion vector predictors; and
performing the conversion using the list of control point motion vector predictors,
wherein indication of usage of different precisions of multiple control point motion vector differences of the video unit is selectively signaled in the bitstream of the video unit based at least when one or more conditions are met.

### Claim 2 (depends on 1)

The method of claim 1, wherein the precision used for the signaled motion vector difference is expressed as 1/(2{circumflex over ( )}Prec), and the precision of the motion vector related to the neighboring video unit is expressed as 1/(2{circumflex over ( )}PredPrec).

### Claim 3 (depends on 2)

The method of claim 2, wherein the precision of the motion vector related to the neighboring video unit is modified by modifying the PredPrec.

### Claim 4 (depends on 2)

The method of claim 2, wherein modifying the precision of the motion vector related to the neighboring video unit comprises:
scaling the motion vector related to the neighboring video unit based on at least one of Prec and PredPrec.

### Claim 5 (depends on 4)

The method of claim 4, wherein the motion vector related to the neighboring video unit is scaled based on the difference between the Prec and PredPrec.

### Claim 6 (depends on 2)

The method of claim 2, wherein, if PredPrec>Prec, the motion vectors related to the neighboring video unit are denoted MVPredX, MVPredY, then the motion vector predictors MVPred′X, MVPred′y of the list of control point motion vector predictors are calculated as:
MVPred′X=round(MVPredX,PredPrec−Prec),
MVPred′Y=round(MVPredY,PredPrec−Prec),
wherein round(a, b) is defined as (a+offset)>>b, where >> is bit shift operation and offset is an integer.

### Claim 7 (depends on 6)

The method of claim 6, wherein the offset is equal to (1<<(b−1)).

### Claim 8 (depends on 2)

The method of claim 2, wherein, if PredPrec>Prec, the motion vectors related to the neighboring video unit are denoted MVPredX, MVPredY, then the motion vector predictors MVPred′X, MVPred′y of the list of control point motion vector predictors are calculated as:
MVPred′X=round(MVPredX,PredPrec−Prec),
MVPred′Y=round(MVPredY,PredPrec−Prec),
wherein round(MV, deltaPrec)=MV>>deltaPrec, where >> is bit shifting operation.

### Claim 9 (depends on 2)

The method of claim 2, wherein, if PredPrec<Prec, the motion vectors related to the neighboring video unit are denoted MVPredX, MVPredY, then the motion vector predictors MVPred′X, MVPred′y of the list of control point motion vector predictors are calculated as:
MVPred′X=MVPredX<<(PredPrec−Prec),
MVPred′Y=MVPredY<<(PredPrec−Prec).

### Claim 10 (depends on 1)

The method of claim 1, wherein the indication of the usage is signaled implicitly or explicitly in one or more of the following: a sequence parameter set (SPS), a sequence header, a video parameter set (VPS), a picture parameter set (PSP), a slice header, a picture header, a coding tree unit (CTU), a coding unit (CU), a group of CTU rows, or a group of CU rows.

### Claim 11 (depends on 1)

The method of claim 1, wherein the one or more conditions relate to at least one of: a size of the video unit, a shape of the video unit, a coding mode associated with the video unit, a number of affine parameters associated with the video unit, a slice type associated with the video unit, or a number of temporal layers associated with the video unit.

### Claim 12 (depends on 1)

The method of claim 1, wherein the conversion comprises: encoding the video unit into the bitstream representation.

### Claim 13 (depends on 1)

The method of claim 1, wherein the conversion comprises: decoding the video unit from the bitstream representation.

### Claim 14

An apparatus for coding video data comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to:
construct, during performing a conversion between a video unit in an affine video coding mode and a bitstream thereof, a list of control point motion vector predictors using a precision that is same as a precision used for a signaled control point motion vector difference of the video unit; wherein a precision of a motion vector related to a neighboring video unit is modified to the precision used for the signaled control point motion vector difference, prior to being used as a motion vector predictor in the list of control point motion vector predictors; and
perform the conversion using the list of control point motion vector predictors,
wherein indication of usage of different precisions of multiple control point motion vector differences of the video unit is selectively signaled in the bitstream of the video unit based at least when one or more conditions are met.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the precision used for the signaled motion vector difference is expressed as 1/(2{circumflex over ( )}Prec), and the precision of the motion vector related to the neighboring video unit is expressed as 1/(2{circumflex over ( )}PredPrec).

### Claim 16 (depends on 14)

The apparatus of claim 14, wherein the conversion comprises: encoding the video unit into the bitstream representation.

### Claim 17 (depends on 14)

The apparatus of claim 14, wherein the conversion comprises: decoding the video unit from the bitstream representation.

### Claim 18

A non-transitory computer-readable storage medium storing instructions that cause a processor to:
construct, during performing a conversion between a video unit in an affine video coding mode and a bitstream thereof, a list of control point motion vector predictors using a precision that is same as a precision used for a signaled control point motion vector difference of the video unit; wherein a precision of a motion vector related to a neighboring video unit is modified to the precision used for the signaled control point motion vector difference, prior to being used as a motion vector predictor in the list of control point motion vector predictors; and
perform the conversion using the list of control point motion vector predictors,
wherein indication of usage of different precisions of multiple control point motion vector differences of the video unit is selectively signaled in the bitstream of the video unit based at least when one or more conditions are met.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the precision used for the signaled motion vector difference is expressed as 1/(2{circumflex over ( )}Prec), and the precision of the motion vector related to the neighboring video unit is expressed as 1/(2{circumflex over ( )}PredPrec).

### Claim 20

A non-transitory computer-readable recording medium storing a bitstream representation which is generated by a method performed by a video processing apparatus, wherein the method comprises:
constructing, fora video unit in an affine video coding mode, a list of control point motion vector predictors using a precision that is same as a precision used for the signaled control point motion vector difference of the video unit; wherein a precision of a motion vector related to a neighboring video unit is modified to the precision used for the signaled control point motion vector difference, prior to being used as a motion vector predictor in the list of control point motion vector predictors; and
generating the bitstream from the video unit using the list of control point motion vector predictors,
wherein indication of usage of different precisions of multiple control point motion vector differences of the video unit is selectively signaled in the bitstream of the video unit based at least when one or more conditions are met.
