# US 2025/0220239 A1 · Method and Apparatus for Sign Coding of Transform Coefficients in Video Coding System

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

- Number: US 2025/0220239 A1
- Document ID: US20250220239A1
- Status: Published application
- Kind: A1
- Application number: 19/082,522
- Filed: 2025-03-18
- Published: 2025-07-03
- Earliest claimed: 2021-12-09
- Assignees: Mediatek Inc.
- Applicants: Mediatek Inc.
- Inventors: Shih-Ta HSIANG
- Web page: https://patentgrep.com/patent/US20250220239A1

## CPC

- H04N 19/61: in combination with predictive coding
- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/12: Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/167: Position within a video image, e.g. region of interest [ROI]
- H04N 19/18: the unit being a set of transform coefficients
- H04N 19/182: the unit being a pixel
- H04N 19/186: the unit being a colour or a chrominance component
- 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 and apparatus for joint sign prediction of transform coefficients. At the encoder side, a maximum number is determined according to coding context of the current block. A set of jointly predicted coefficient signs associated with a set of selected transform coefficients is determined where a total number of the set of jointly predicted coefficient signs is equal to or smaller than the maximum number. Joint sign prediction for the set of jointly predicted coefficient signs is determined by selecting one hypothesis from a group of hypotheses corresponding to combinations of the set of jointly predicted coefficient signs that achieves a minimum cost.

## Claims

### Claim 1

A method of video decoding, the method comprising:
receiving coded transform coefficients corresponding to a residual block of a current block, wherein the coded transform coefficients comprise coded sign residues associated with a set of predicted coefficient signs;
dividing the set of predicted coefficient signs into one or more subsets, wherein each subset includes one or more jointly predicted coefficient signs;
decoding the coded sign residues into decoded sign residues for each subset;
determining joint sign prediction for each subset of jointly predicted coefficient signs by selecting one hypothesis from a group of hypotheses corresponding to combinations of the subset of jointly predicted coefficient signs that achieves a minimum cost, wherein costs are computed between boundary pixels of the current block and corresponding neighboring pixels of the current block for the group of hypotheses respectively, and wherein the boundary pixels of the current block associated with each hypothesis are reconstructed using information comprising said each hypothesis; and
reconstructing the set of predicted coefficient signs based on the decoded sign residues and the joint sign prediction for each subset.

### Claim 2 (depends on 1)

The method of claim 1, wherein one or more syntax elements for deriving an allowed maximum number for the set of predicted coefficient signs are parsed from one or more high-level parameter sets.

### Claim 3 (depends on 2)

The method of claim 2, wherein said one or more high-level parameter sets comprise a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, or a combination thereof.

### Claim 4 (depends on 2)

The method of claim 2, wherein the allowed maximum number is determined depending on block size of the current block.

### Claim 5 (depends on 4)

The method of claim 4, wherein the allowed maximum number is less than or equal to 4 when the block size is equal to 4×4.

### Claim 6 (depends on 2)

The method of claim 2, wherein the allowed maximum number is determined depending on transform type of the current block.

### Claim 7 (depends on 1)

The method of claim 1, wherein bins for the coded sign residues associated with the set of predicted coefficient signs are entropy coded in a residual coding process for entropy coding of the current block.

### Claim 8 (depends on 7)

The method of claim 7, wherein the residual coding process further comprises a subblock sign coding pass for entropy coding the set of predicted coefficient signs from one or more subblocks in a top-left region of the current block after one or more sub-block coding passes for entropy coding of absolute values of transform coefficient levels of said one or more subblocks.

### Claim 9 (depends on 1)

The method of claim 1, wherein the costs are computed between boundary pixels of the current block and corresponding neighboring pixels of the current block on a top boundary of the current block only or on a left boundary of the current block only.

### Claim 10 (depends on 9)

The method of claim 9, wherein selection between the top boundary of the current block and the left boundary of the current block depends on selected Intra prediction direction of the current block.

### Claim 11

An apparatus of video decoding, the apparatus comprising one or more electronic circuits or processors arranged to:
receiving coded transform coefficients corresponding to a residual block of a current block, wherein the coded transform coefficients comprise coded sign residues associated with a set of predicted coefficient signs;
dividing the set of predicted coefficient signs into one or more subsets, wherein each subset includes one or more jointly predicted coefficient signs;
decoding the coded sign residues into decoded sign residues for each subset;
determining joint sign prediction for each subset of jointly predicted coefficient signs by selecting one hypothesis from a group of hypotheses corresponding to combinations of the subset of jointly predicted coefficient signs that achieves a minimum cost, wherein costs are computed between boundary pixels of the current block and corresponding neighboring pixels of the current block for the group of hypotheses respectively, and wherein the boundary pixels of the current block associated with each hypothesis are reconstructed using information comprising said each hypothesis; and
reconstructing the set of predicted coefficient signs based on the decoded sign residues and the joint sign prediction for each subset.

### Claim 12

A method of video encoding, the method comprising:
receiving transform coefficients corresponding to a residual block of a current block;
determining a set of predicted coefficient signs associated with a set of selected transform coefficients;
dividing the set of predicted coefficient signs into one or more subsets, wherein each subset includes one or more jointly predicted coefficient signs;
determining joint sign prediction for each subset of jointly predicted coefficient signs by selecting one hypothesis from a group of hypotheses corresponding to combinations of the subset of jointly predicted coefficient signs that achieves a minimum cost, wherein costs are computed between boundary pixels of the current block and corresponding neighboring pixels of the current block for the group of hypotheses respectively, and wherein the boundary pixels of the current block associated with each hypothesis are reconstructed using information comprising said each hypothesis;
determining sign residues between the set of predicted coefficient signs and the joint sign prediction for each subset; and
applying context coding to the sign residues to generate coded sign residues for each subset.

### Claim 13 (depends on 12)

The method of claim 12, further comprises signaling one or more syntax elements for deriving an allowed maximum number for the set of predicted coefficient signs.

### Claim 14 (depends on 12)

The method of claim 12, wherein the coding context corresponds to block size of the current block.

### Claim 15 (depends on 12)

The method of claim 12, wherein bins for the coded sign residues associated with the set of predicted coefficient signs are entropy coded in a residual coding process for entropy coding of the current block.

### Claim 16 (depends on 15)

The method of claim 15, wherein the residual coding process further comprises a subblock sign coding pass for entropy coding the set of predicted coefficient signs from one or more subblocks in a top-left region of the current block after one or more sub-block coding passes for entropy coding of absolute values of transform coefficient levels of said one or more subblocks.

### Claim 17 (depends on 12)

The method of claim 12, wherein the costs are computed between boundary pixels of the current block and corresponding neighboring pixels of the current block on a top boundary of the current block only or on a left boundary of the current block only.

### Claim 18 (depends on 17)

The method of claim 17, wherein selection between the top boundary of the current block and the left boundary of the current block depends on selected Intra prediction direction of the current block.
