# US 2023/0421797 A1 · Method for wrap around motion compensation with reference picture resampling

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

- Number: US 2023/0421797 A1
- Document ID: US20230421797A1
- Status: Published application
- Kind: A1
- Application number: 18/465,652
- Filed: 2023-09-12
- Published: 2023-12-28
- Earliest claimed: 2019-12-31
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Byeongdoo CHOI; Stephan WENGER; Shan LIU
- Web page: https://patentgrep.com/patent/US20230421797A1

## CPC

- H04N 19/51: Motion estimation or motion compensation
- 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/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/172: the region being a picture, frame or field
- H04N 19/55: Motion estimation with spatial constraints, e.g. at image or region borders
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/573: Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method of generating a coded video bitstream including setting a flag pps_ref_wraparound_enabled_flag, wherein the flag pps_ref_wraparound_enabled_flag being equal to 1 specifies that a horizontal wrap-around motion compensation is enabled for pictures referring to a picture parameter set (PPS) in a coded video stream; determining whether the reference picture is to be scaled based on whether reference picture resampling is enabled; in response to the reference picture being not scaled, setting a second flag refWraparoundEnabledFlag to be equal to a value of the flag pps_ref_wraparound_enabled_flag; and encoding the coded video bitstream comprising at least the current picture and the flag pps_ref_wraparound_enabled_flag.

## Claims

### Claim 1

A method of generating a coded video bitstream comprising a current picture and a reference picture associated with the current picture using at least one processor, the method comprising:
setting a flag pps_ref_wraparound_enabled_flag, wherein the flag pps_ref_wraparound_enabled_flag being equal to 1 specifies that a horizontal wrap-around motion compensation is enabled for pictures referring to a picture parameter set (PPS) in a coded video stream;
determining whether the reference picture is to be scaled based on whether reference picture resampling is enabled;
in response to the reference picture being not scaled, setting a second flag refWraparoundEnabledFlag to be equal to a value of the flag pps_ref_wraparound_enabled_flag; and
encoding the coded video bitstream comprising at least the current picture and the flag pps_ref_wraparound_enabled_flag.

### Claim 2 (depends on 1)

The method of claim 1, wherein the horizontal wrap-around motion compensation is disabled based on at least one of a first determination indicating that a current layer is not an independent layer, or a second determination indicating that the reference picture resampling is enabled for the current layer.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first determination is made based on a flag signaled in a first syntax structure, and
wherein the second determination is made based on a flag signaled in a second syntax structure lower than the first syntax structure.

### Claim 4 (depends on 1)

The method of claim 1, wherein the flag pps_ref_wraparound_enabled_flag is signaled in the picture parameter set.

### Claim 5 (depends on 4)

The method of claim 4, wherein the horizontal wrap-around motion compensation is disabled based on the flag pps_ref_wraparound_enabled_flag being absent from a sequence parameter set.

### Claim 6 (depends on 2)

The method of claim 2, further comprising:
based on the first determination indicating that the current layer is not the independent layer, and the second determination indicating that the reference picture resampling is enabled for the current layer, making a third determination regarding whether a width of the current picture is different from a width of a current reference picture,
wherein the horizontal wrap-around motion compensation is disabled based the third determination indicating that the width of the current picture is different from the width of the current reference picture.

### Claim 7 (depends on 6)

The method of claim 6, wherein the third determination is made during an interpolation process for motion compensation.

### Claim 8

A device for generating a coded video bitstream comprising a current picture and a reference picture associated with the current picture, the device comprising:
at least one memory configured to store program code; and
at least one processor configured to read the program code and operate as instructed by the program code, the program code including:
first setting code configured to cause the at least one processor to set a first flag pps_ref_wraparound_enabled_flag, wherein the first flag pps_ref_wraparound_enabled_flag being equal to 1 specifies that a horizontal wrap-around motion compensation is enabled for pictures referring to a picture parameter set (PPS) in a coded video stream;
determining code configured to cause the at least one processor to determine whether the reference picture is to be scaled based on whether reference picture resampling is enabled;
second setting code configured to, in response to the reference picture being not scaled, set a second flag refWraparoundEnabledFlag to be equal to a value of the first flag pps_ref_wraparound_enabled_flag; and
encoding code configured to encode the coded video bitstream comprising at least the current picture and the first flag pps_ref_wraparound_enabled_flag.

### Claim 9 (depends on 8)

The device of claim 8, wherein the horizontal wrap-around motion compensation is disabled based on at least one of a first determination indicating that a current layer is not an independent layer, or a second determination indicating that the reference picture resampling is enabled for the current layer.

### Claim 10 (depends on 9)

The device of claim 9, wherein the first determination is made based on a flag signaled in a first syntax structure, and
wherein the second determination is made based on a flag signaled in a second syntax structure lower than the first syntax structure.

### Claim 11 (depends on 8)

The device of claim 8, wherein the first flag pps_ref_wraparound_enabled_flag is signaled in the picture parameter set.

### Claim 12 (depends on 11)

The device of claim 11, wherein the horizontal wrap-around motion compensation is disabled based on the first flag pps_ref_wraparound_enabled_flag being absent from a sequence parameter set.

### Claim 13 (depends on 9)

The device of claim 9, wherein the program code further includes third determining code configured to cause the at least one processor to, based on the first determination indicating that the current layer is not the independent layer, and the second determination indicating that the reference picture resampling is enabled for the current layer, make a third determination regarding whether a width of the current picture is different from a width of a current reference picture, and
wherein the horizontal wrap-around motion compensation is disabled based the third determination indicating that the width of the current picture is different from the width of the current reference picture.

### Claim 14 (depends on 13)

The device of claim 13, wherein the third determination is made during an interpolation process for motion compensation.

### Claim 15

A non-transitory computer-readable medium storing instructions, the instructions comprising: one or more instructions that are configured to, when executed by one or more processors of a device for generating a coded video bitstream comprising a current picture and a reference picture associated with the current picture, cause the one or more processors to:
set a flag pps_ref_wraparound_enabled_flag, wherein the flag pps_ref_wraparound_enabled_flag being equal to 1 specifies that a horizontal wrap-around motion compensation is enabled for pictures referring to a picture parameter set (PPS) in a coded video stream;
determine whether the reference picture is to be scaled based on whether reference picture resampling is enabled;
in response to the reference picture being not scaled, set a second flag refWraparoundEnabledFlag to be equal to a value of the flag pps_ref_wraparound_enabled_flag; and
encode the coded video bitstream comprising at least the current picture and the flag pps_ref_wraparound_enabled_flag.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the horizontal wrap-around motion compensation is disabled based on at least one of a first determination indicating that a current layer is not an independent layer, or a second determination indicating that the reference picture resampling is enabled for the current layer.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the flag pps_ref_wraparound_enabled_flag is signaled in the picture parameter set.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the horizontal wrap-around motion compensation is disabled based on the flag pps_ref_wraparound_enabled_flag being absent from a sequence parameter set.

### Claim 19 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein the one or more instructions further cause the one or more processors to, based on the first determination indicating that the current layer is not the independent layer, and the second determination indicating that the reference picture resampling is enabled for the current layer, make a third determination regarding whether a width of the current picture is different from a width of a current reference picture,
wherein the horizontal wrap-around motion compensation is disabled based the third determination indicating that the width of the current picture is different from the width of the current reference picture.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the third determination is made during an interpolation process for motion compensation.
