# US 2025/0097445 A1 · Signaling general constraints information for video coding

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

- Number: US 2025/0097445 A1
- Document ID: US20250097445A1
- Status: Published application
- Kind: A1
- Application number: 18/963,989
- Filed: 2024-11-29
- Published: 2025-03-20
- Earliest claimed: 2022-01-10
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Jonathan GAN; Yue YU; Haoping YU
- Web page: https://patentgrep.com/patent/US20250097445A1

## CPC

- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/103: Selection of coding mode or of prediction mode
- H04N 19/124: Quantisation
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/463: by compressing encoding parameters before transmission
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for decoding a video includes that: a decoder decodes a video from a bitstream of the video; the decoder accesses a bitstream of the video and extracts a GCI flag from the bitstream; the decoder determines that one or more general constraints are imposed for the video based on the GCI flag value and extracts, from the bitstream of the video, a value indicating a quantity of additional bits included in the bitstream of the video, the additional bits include flag bits indicating respective additional coding tools to be constrained for the video; if the value is greater than five, the decoder extracts six flags from the bitstream of the video that indicate respective constraints for six additional coding tools; and the decoder decodes the bitstream of the video into images based on the constraints for the six additional coding tools indicated by the six flags.

## Claims

### Claim 1

A method for decoding a video, performed by a video decoder, the method comprising:
extracting a general constraints information (GCI) flag from a bitstream of the video;
determining that one or more general constraints are imposed for the video based on a value of the GCI flag;
in response to determining that one or more general constraints are imposed for the video, extracting, from the bitstream of the video, a value indicating a quantity of additional bits included in the bitstream of the video, the additional bits comprising flag bits indicating respective additional coding tools to be constrained for the video;
determining whether the value is greater than five;
in response to determining that the value is greater than five:
setting a value numAdditionalBitsUsed indicating extracted additional bits to be 6;
extracting a set of bits from the bitstream, wherein a number of bits in the set of bits equals to gci_num_additional_bits-numAdditionalBitsUsed, gci_num_additional_bits representing the value, and the set of bits comprises six flag bits representing six respective flags indicating respective constraints for six additional coding tools; and
independent of the set of bits, decoding a remaining portion of the bitstream of the video into images based, at least in part, upon the constraints for the six additional coding tools indicated by the six flags;
in response to determining that the value is not greater than five:
setting a value numAdditionalBitsUsed indicating extracted additional bits to be 0;
extracting a set of bits from the bitstream, wherein a number of bits in the set of bits equals to gci_num_additional_bits-numAdditionalBitsUsed, gci_num_additional_bits representing the value; and
decoding the remaining portion of the bitstream of the video into images independent of the extracted set of bits.

### Claim 2 (depends on 1)

The method of claim 1, wherein the six flags comprise:
a first flag indicating a restriction on pictures of the video to be either Intra random access point (IRAP) pictures or gradual decoder refresh (GDR) pictures;
a second flag indicating whether an extended transform precision is constrained;
a third flag indicating whether an explicit Rice parameter signaling is constrained;
a fourth flag indicating an alternative Rice parameter derivation for binarization of quantization residuals of the video;
a fifth flag indicating whether to initialize Rice parameter derivation for binarization based on previous transform units; and
a sixth flag indicating whether to impose a constraint on pictures in an in-scope output layer set OlsInScope when decoding a position of a last non-zero level in a transform unit.

### Claim 3 (depends on 2)

The method of claim 2, further comprising one or more of:
determining that the first flag is not present in the bitstream and inferring a value of the first flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the second flag is not present in the bitstream and inferring a value of the second flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the third flag is not present in the bitstream and inferring a value of the third flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the fourth flag is not present in the bitstream and inferring a value of the fourth flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the fifth flag is not present in the bitstream and inferring a value of the fifth flag to be 0 indicating no constraint is imposed for a corresponding coding tool; or determining that the sixth flag is not present in the bitstream and inferring a value of the sixth flag to be 0 indicating no constraint is imposed for a corresponding coding tool.

### Claim 4 (depends on 2)

The method of claim 2, wherein decoding the remaining portion of the bitstream of the video into images based, at least in part, upon the constraints for the six additional coding tools indicated by the six flags comprises one or more of:
determining all pictures in one or more output layer sets are GDR pictures with ph_recovery_poc_cnt equal to 0 or IRAP pictures based on the first flag being one, and decoding the GDR pictures or IRAP pictures in the one or more output layer sets;
determining that an extended transform precision is constrained based on the second flag being one and decoding the remaining portion of the bitstream of the video by setting sps_extended_precision_flag for pictures in an in-scope output layer set OlsInScope be equal to 0 so that extended dynamic range is not used;
determining that an explicit Rice parameter signaling is constrained based on the third flag being one, and decoding the remaining portion of the bitstream of the video by disabling alternative Rice parameter signaling for pictures in the in-scope output layer set OlsInScope;
determining that an alternative Rice parameter derivation for binarization of quantization residuals of the video is constrained based on the fourth flag being one, and decoding the remaining portion of the bitstream of the video by disabling alternative Rice parameter signaling for pictures in the in-scope output layer set OlsInScope;
determining that an initialization of Rice parameter derivation for binarization based on previous transform unit state is constrained based on determining the fifth flag being one, and decoding the remaining portion of the bitstream of the video without initializing Rice parameter based on previous transform unit state for pictures in the in-scope output layer set OlsInScope; or
determining that coordinates of a last significant coefficient are coded relative to a top-left corner for each transform block of a slice based on the sixth flag being one and decoding the remaining portion of the bitstream of the video by interpreting decoded coordinates of the last significant coefficient as being relative to the top-left corner for each transform block of the slice.

### Claim 5 (depends on 1)

The method of claim 1, wherein the GCI flag is extracted from a network packet of the video, a video parameter set of the video, or a sequence parameter set of the video.

### Claim 6

A non-transitory computer-readable medium having program code that is stored thereon, the program code executable by one or more processing devices for performing operations comprising:
extracting a general constraints information (GCI) flag from a bitstream of a video;
determining that one or more general constraints are imposed for the video based on a value of the GCI flag;
in response to determining that one or more general constraints are imposed for the video, extracting, from the bitstream of the video, a value indicating a quantity of additional bits included in the bitstream of the video, the additional bits comprising flag bits indicating respective additional coding tools to be constrained for the video;
determining whether the value is greater than five;
in response to determining that the value is greater than five:
setting a value numAdditionalBitsUsed indicating extracted additional bits to be 6;
extracting a set of bits from the bitstream, wherein a number of bits in the set of bits equals to gci_num_additional_bits-numAdditionalBitsUsed, gci_num_additional_bits representing the value, and the set of bits comprises six flag bits representing six respective flags indicating respective constraints for six additional coding tools; and
independent of the set of bits, decoding a remaining portion of the bitstream of the video into images based, at least in part, upon the constraints for the six additional coding tools indicated by the six flags;
in response to determining that the value is not greater than five:
setting a value numAdditionalBitsUsed indicating extracted additional bits to be 0;
extracting a set of bits from the bitstream, wherein a number of bits in the set of bits equals to gci_num_additional_bits-numAdditionalBitsUsed, gci_num_additional_bits representing the value; and
decoding the remaining portion of the bitstream of the video into images independent of the extracted set of bits.

### Claim 7 (depends on 6)

The non-transitory computer-readable medium of claim 6, wherein the six flags comprise:
a first flag indicating a restriction on pictures of the video to be either Intra random access point (IRAP) pictures or gradual decoder refresh (GDR) pictures;
a second flag indicating whether an extended transform precision is constrained;
a third flag indicating whether an explicit Rice parameter signaling is constrained;
a fourth flag indicating an alternative Rice parameter derivation for binarization of quantization residuals of the video;
a fifth flag indicating whether to initialize Rice parameter derivation for binarization based on previous transform units; and
a sixth flag indicating whether to impose a constraint on pictures in an in-scope output layer set OlsInScope when decoding a position of a last non-zero level in a transform unit.

### Claim 8 (depends on 7)

The non-transitory computer-readable medium of claim 7, wherein the operations further comprise one or more of:
determining that the first flag is not present in the bitstream and inferring a value of the first flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the second flag is not present in the bitstream and inferring a value of the second flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the third flag is not present in the bitstream and inferring a value of the third flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the fourth flag is not present in the bitstream and inferring a value of the fourth flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the fifth flag is not present in the bitstream and inferring a value of the fifth flag to be 0 indicating no constraint is imposed for a corresponding coding tool; and
determining that the sixth flag is not present in the bitstream and inferring a value of the sixth flag to be 0 indicating no constraint is imposed for a corresponding coding tool.

### Claim 9 (depends on 7)

The non-transitory computer-readable medium of claim 7, wherein decoding the remaining portion of the bitstream of the video into images based, at least in part, upon the constraints for the six additional coding tools indicated by the six flags comprises one or more of:
determining all pictures in one or more output layer sets are GDR pictures with ph_recovery_poc_cnt equal to 0 or IRAP pictures based on the first flag being one, and decoding the GDR pictures or IRAP pictures in the one or more output layer sets;
determining that an extended transform precision is constrained based on the second flag being one and decoding the remaining portion of the bitstream of the video by setting sps_extended_precision_flag for pictures in an in-scope output layer set OlsInScope be equal to 0 so that extended dynamic range is not used;
determining that an explicit Rice parameter signaling is constrained based on the third flag being one, and decoding the remaining portion of the bitstream of the video by disabling alternative Rice parameter signaling for pictures in the in-scope output layer set OlsInScope;
determining that an alternative Rice parameter derivation for binarization of quantization residuals of the video is constrained based on the fourth flag being one, and decoding the remaining portion of the bitstream of the video by disabling alternative Rice parameter signaling for pictures in the in-scope output layer set OlsInScope;
determining that an initialization of Rice parameter derivation for binarization based on previous transform unit state is constrained based on determining the fifth flag being one, and decoding the remaining portion of the bitstream of the video without initializing Rice parameter based on previous transform unit state for pictures in the in-scope output layer set OlsInScope; or
determining that coordinates of a last significant coefficient are coded relative to a top-left corner for each transform block of a slice based on the sixth flag being one and decoding the remaining portion of the bitstream of the video by interpreting decoded coordinates of the last significant coefficient as being relative to the top-left corner for each transform block of the slice.

### Claim 10 (depends on 6)

The non-transitory computer-readable medium of claim 6, wherein the GCI flag is extracted from a network packet of the video, a video parameter set of the video, or a sequence parameter set of the video.

### Claim 11

A system comprising:
a processing device; and
a non-transitory computer-readable medium communicatively coupled to the processing device, wherein the processing device is configured to execute program code stored in the non-transitory computer-readable medium and thereby perform operations comprising:
extracting a general constraints information (GCI) flag from a bitstream of a video;
determining that one or more general constraints are imposed for the video based on a value of the GCI flag;
in response to determining that one or more general constraints are imposed for the video, extracting, from the bitstream of the video, a value indicating a quantity of additional bits included in the bitstream of the video, the additional bits comprising flag bits indicating respective additional coding tools to be constrained for the video;
determining whether the value is greater than five;
in response to determining that the value is greater than five,
setting a value numAdditionalBitsUsed indicating extracted additional bits to be 6;
extracting a set of bits from the bitstream, wherein a number of bits in the set of bits equals to gci_num_additional_bits-numAdditionalBitsUsed, gci_num_additional_bits representing the value, and the set of bits comprises six flag bits representing six respective flags indicating respective constraints for six additional coding tools; and
independent of the set of bits, decoding a remaining portion of the bitstream of the video into images based, at least in part, upon the constraints for the six additional coding tools indicated by the six flags;
in response to determining that the value is not greater than five:
setting a value numAdditionalBitsUsed indicating extracted additional bits to be 0;
extracting a set of bits from the bitstream, wherein a number of bits in the set of bits equals to gci_num_additional_bits-numAdditionalBitsUsed, gci_num_additional_bits representing the value; and
decoding the remaining portion of the bitstream of the video into images independent of the extracted set of bits.

### Claim 12 (depends on 11)

The system of claim 11, wherein the six flags comprise:
a first flag indicating a restriction on pictures of the video to be either Intra random access point (IRAP) pictures or gradual decoder refresh (GDR) pictures;
a second flag indicating whether an extended transform precision is constrained;
a third flag indicating whether an explicit Rice parameter signaling is constrained;
a fourth flag indicating an alternative Rice parameter derivation for binarization of quantization residuals of the video;
a fifth flag indicating whether to initialize Rice parameter derivation for binarization based on previous transform units; and
a sixth flag indicating whether to impose a constraint on pictures in an in-scope output layer set OlsInScope when decoding a position of a last non-zero level in a transform unit.

### Claim 13 (depends on 12)

The system of claim 12, wherein the operations further comprise one or more of:
determining that the first flag is not present in the bitstream and inferring a value of the first flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the second flag is not present in the bitstream and inferring a value of the second flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the third flag is not present in the bitstream and inferring a value of the third flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the fourth flag is not present in the bitstream and inferring a value of the fourth flag to be 0 indicating no constraint is imposed for a corresponding coding tool;
determining that the fifth flag is not present in the bitstream and inferring a value of the fifth flag to be 0 indicating no constraint is imposed for a corresponding coding tool; or determining that the sixth flag is not present in the bitstream and inferring a value of the sixth flag to be 0 indicating no constraint is imposed for a corresponding coding tool.

### Claim 14 (depends on 12)

The system of claim 12, wherein decoding the remaining portion of the bitstream of the video into images based, at least in part, upon the constraints for the six additional coding tools indicated by the six flags comprises one or more of:
determining all pictures in one or more output layer sets are GDR pictures with ph_recovery_poc_cnt equal to 0 or IRAP pictures based on the first flag being one, and decoding the GDR pictures or IRAP pictures in the one or more output layer sets;
determining that an extended transform precision is constrained based on the second flag being one and decoding the remaining portion of the bitstream of the video by setting sps_extended_precision_flag for pictures in an in-scope output layer set OlsInScope be equal to 0 so that extended dynamic range is not used;
determining that an explicit Rice parameter signaling is constrained based on the third flag being one, and decoding the remaining portion of the bitstream of the video by disabling alternative Rice parameter signaling for pictures in the in-scope output layer set OlsInScope;
determining that an alternative Rice parameter derivation for binarization of quantization residuals of the video is constrained based on the fourth flag being one, and decoding the remaining portion of the bitstream of the video by disabling alternative Rice parameter signaling for pictures in the in-scope output layer set OlsInScope;
determining that an initialization of Rice parameter derivation for binarization based on previous transform unit state is constrained based on determining the fifth flag being one, and decoding the remaining portion of the bitstream of the video without initializing Rice parameter based on previous transform unit state for pictures in the in-scope output layer set OlsInScope; or
determining that coordinates of a last significant coefficient are coded relative to a top-left corner for each transform block of a slice based on the sixth flag being one and decoding the remaining portion of the bitstream of the video by interpreting decoded coordinates of the last significant coefficient as being relative to the top-left corner for each transform block of the slice.

### Claim 15 (depends on 11)

The system of claim 11, wherein the GCI flag is extracted from a network packet of the video, a video parameter set of the video, or a sequence parameter set of the video.
