# US 12,225,192 B2 · Separate constrained directional enhancement filter

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

- Number: US 12,225,192 B2
- Document ID: US12225192B2
- Status: Granted
- Kind: B2
- Application number: 17/941,738
- Filed: 2022-09-09
- Published: 2023-01-19
- Granted: 2025-02-11
- Earliest claimed: 2020-06-18
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Yixin Du; Liang Zhao; Xin Zhao; Shan Liu
- Web page: https://patentgrep.com/patent/US12225192B2

## CPC

- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/157: Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- 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 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- 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, a non-transitory computer readable medium, and a computer system is provided for encoding or decoding video data. The method may include: receiving video data comprising a chroma component and a luma component; parsing, deriving or selecting a number of presets for the chroma component in one frame, and a number of presets for the luma component in the one frame; and decoding the video data. The method may further comprise: performing a separate Constrained Directional Enhancement Filter (CDEF) process of filtering luma and chroma components independent from each other based on the number of presets for the chroma component in one frame, and the number of presets for the luma component in the one frame.

## Claims

### Claim 1

A method of video decoding, executable by one or more processors, the method comprising:
receiving video data comprising a plurality of frames, including a current frame having a chroma component and a luma component;
determining that a semi decoupled partitioning (SDP) mode is enabled for the current frame; and
in accordance with the SDP mode being enabled for the current frame:
applying a first Constrained Directional Enhancement Filter (CDEF) process to the chroma component of the current frame;
applying a second CDEF process to the luma component of the current frame, wherein the first CDEF process is different than the second CDEF process;
deriving a first number of presets for the first CDEF process and a second number of presets for the second CDEF process; and
reconstructing the current frame in accordance with the first CDEF process and the second CDEF process.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first CDEF process and the second CDEF process are selected based on the chroma component having a different partitioning than the luma component.

### Claim 3 (depends on 1)

The method of claim 1, wherein a first input to the first CDEF process comprises one or more reconstructed samples of the chroma component, and wherein a second input to the second CDEF process comprises one or more reconstructed samples of the luma component.

### Claim 4 (depends on 3)

The method of claim 3, wherein the method further comprises:
deriving a filtering strength of the second CDEF process based on a size of the luma component.

### Claim 5 (depends on 1)

The method of claim 1, wherein the second number of presets is a positive integer, and the first number of presets is fixed as 1.

### Claim 6 (depends on 1)

The method of claim 1, wherein deriving the first number of presets is separate and independent from deriving the second number of presets.

### Claim 7 (depends on 1)

The method of claim 1, wherein the method further comprises obtaining a same intermediate output for the first CDEF process and the second CDEF process.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first CDEF process and the second CDEF process are selected based on a size of the luma component.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first CDEF process and the second CDEF process are selected based on a size of the chroma component.

### Claim 10

A method of video encoding, executable by one or more processors, the method comprising:
receiving video data comprising a plurality of frames, including a current frame having a chroma component and a luma component;
determining that a semi decoupled partitioning (SDP) mode is enabled for the current frame; and
in accordance with the SDP mode being enabled for the current frame:
selecting a first Constrained Directional Enhancement Filter (CDEF) process to the chroma component of the current frame;
selecting a second CDEF process to the luma component of the current frame, wherein the first CDEF process is different than the second CDEF process;
selecting a first number of presets for the first CDEF process and a second number of presets for the second CDEF process; and
signaling the first CDEF process and the second CDEF process in a video bitstream.

### Claim 11 (depends on 10)

The method of claim 10, wherein the first CDEF process and the second CDEF process are selected based on the chroma component having a different partitioning than the luma component.

### Claim 12 (depends on 10)

The method of claim 10, wherein a first input to the first CDEF process comprises one or more samples of the chroma component, and wherein a second input to the second CDEF process comprises one or more samples of the luma component.

### Claim 13 (depends on 10)

The method of claim 10, further comprising deriving a filtering strength of the second CDEF process based on a size of the luma component.

### Claim 14 (depends on 10)

The method of claim 10, wherein selecting the first number of presets is separate and independent from selecting the second number of presets.

### Claim 15 (depends on 10)

The method of claim 10, wherein the first CDEF process and the second CDEF process are selected based on a size of the luma component or a size of the chroma component.

### Claim 16

A method of processing visual media data, the method comprising:
obtaining video data comprising a plurality of frames, including a first frame; and
performing a conversion between the video data and a bitstream of encoded video data, wherein the bitstream comprises:
a plurality of encoded frames, including an encoded first frame corresponding to the first frame;
an indication that a semi decoupled partitioning (SDP) mode is enabled for the encoded first frame;
indication of a first Constrained Directional Enhancement Filter (CDEF) process used for a chroma component of the encoded first frame; [and]
indication of a second CDEF process used for a luma component of the encoded first frame; and
indication of a first number of presets for the first CDEF process and indication of a second number of presets for the second CDEF process.

### Claim 17 (depends on 16)

The method of claim 16, wherein the first number of presets is signaled separately in the bitstream from the second number of presets.
