# US 2026/0095600 A1 · Method and electronic device for compressing a video using ai-based in loop filter

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

- Number: US 2026/0095600 A1
- Document ID: US20260095600A1
- Status: Published application
- Kind: A1
- Application number: 19/410,792
- Filed: 2025-12-05
- Published: 2026-04-02
- Earliest claimed: 2023-06-06
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Anubhav SINGH; Aviral AGRAWAL; Raj Narayana GADDE; Yinji PIAO; Minwoo PARK; Kwangpyo CHOI
- Web page: https://patentgrep.com/patent/US20260095600A1

## CPC

- H04N 19/82: involving filtering within a prediction loop
- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- G06V 10/40: Extraction of image or video features
- G06V 10/7715: {Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods}
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/172: the region being a picture, frame or field
- H04N 19/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- G06V 10/60: relating to illumination properties, e.g. using a reflectance or lighting model
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Embodiments herein provide a method and an electronic device for compressing a video for AI-based in loop filter (AILF). The method includes obtaining a video comprising a plurality of frames, wherein each frame of the pluralities of frames comprises a plurality of channels. Further, the method includes extracting at least one feature from each frame of the plurality of frames of the video. Further, the method includes selecting, at least one pre-processor from the multi pre-processors for the AILF based on the at least one feature from each frame of the plurality of frames. Further, the method includes generating an encoded video by encoding the image information from each channel of the plurality of channels of each frame of the plurality of frames using the at least one selected pre-processor.

## Claims

### Claim 1

A method for managing multi pre-processors for an AI-based In Loop Filter (AILF) in a video codec, comprising:
obtaining, by an electronic device, a video comprising a plurality of frames, wherein each frame of the plurality of frames comprises a plurality of channels, and
wherein each channel of the plurality of frames comprises image information;
extracting, by the electronic device, at least one feature from each frame of the plurality of frames;
selecting, by the electronic device, at least one pre-processor from the multi pre-processors for applying the AILF based on the at least one extracted feature, wherein each pre-processor of the multi pre-processors comprises a set of ratios,
wherein each ratio of each set of ratios corresponds to each channel of the plurality of channels;
generating, by the electronic device, an encoded video by encoding the image information from each channel of the plurality of channels using the at least one selected pre-processor; and
transmitting, by the electronic device, the encoded video and an index corresponding to the at least one selected pre-processor to a decoder.

### Claim 2 (depends on 1)

The method of claim 1, wherein the encoding of the image information from each channel using the at least one selected pre-processor comprises:
dividing, by the electronic device, the obtained video into video blocks;
performing intra prediction and inter prediction based on the video blocks;
performing, by the electronic device, a transformation of the video blocks based on the intra prediction and the inter prediction;
performing, by the electronic device, a quantization on the video blocks based on the intra prediction and the inter prediction;
generating, by the electronic device, quantized coefficients for the video blocks based on the intra prediction and the inter prediction, wherein the quantization divides the transformed video blocks and generates the quantized coefficients;
reconstructing, by the electronic device, the video based on the quantized coefficients;
performing, by the electronic device, in-loop filtering of the reconstructed video with the AILF to remove at least one artifact from the reconstructed video; and
performing, by the electronic device, entropy coding to encode the filtered reconstructed video.

### Claim 3 (depends on 1)

The method of claim 1, wherein the encoding of the image information from each channel using the at least one selected pre-processor comprises:
embedding, by the electronic device, the set of ratios of the at least one selected pre-processor into the encoded image information; and
inputting, by the electronic device, the encoded image information from each channel and the plurality of frames to the AILF.

### Claim 4 (depends on 1)

The method of claim 1, wherein the set of ratios for the at least one selected pre-processor is embedded in at least one of a sequence header, a picture header, a slice header, and a Coding Tree Unit (CTU) of each frame of the plurality of frames.

### Claim 5 (depends on 1)

The method of claim 1, wherein the plurality of channels comprises a luma reconstruction, a prediction buffer, a boundary strength patch, a Quantization Parameter (QP) base, a QP Slice, and a block coding type.

### Claim 6 (depends on 2)

The method of claim 2, wherein the performing of the in-loop filtering of the reconstructed video with the AILF comprises:
performing the AILF after at least one of Luma Mapping and Chroma Scaling (LMCS), deblocking filtering, Sample Adaptive Offsetting (SAO), Adaptive Loop Filtering (ALF), and Cross-Component Adaptive Loop Filtering (CC-ALF) is performed.

### Claim 7 (depends on 1)

The method of claim 1, wherein the at least one feature from each frame of the plurality of frames is pre-defined.

### Claim 8

A method for managing multi pre-processors for an AI-based In Loop Filter (AILF) in a video codec, comprising:
obtaining, by an electronic device, an encoded video and an index corresponding to at least one selected pre-processor;
determining, by the electronic device, the at least one selected pre-processor for decoding the encoded video based on the index corresponding to the at least one selected pre-processor; and
decoding, by the electronic device, the encoded video using a set of ratios of the at least one selected pre-processor.

### Claim 9

An electronic device for managing multi pre-processors for an AI-based In Loop Filter (AILF) in a video codec, comprising:
memory configured to store one or more instructions; and
at least one processor comprising the multi pre-processors, wherein the at least one processor is configured to execute the one or more instructions to cause the electronic device to:
obtain a video comprising a plurality of frames, wherein each frame of the plurality of frames comprises a plurality of channels, wherein each channel of the plurality of channels comprises image information;
extract at least one feature from each frame of the plurality of frames;
select at least one pre-processor from the multi pre-processors for applying the AILF based on the at least one extracted feature, wherein each pre-processor of the multi pre-processors comprises a set of ratios,
wherein each ratio of each set of ratios corresponds to the plurality of channels;
generate an encoded video by encoding the image information from each channel of the plurality of channels using the at least one selected pre-processor; and
transmit the encoded video and an index corresponding to the at least one selected pre-processor to a decoder.

### Claim 10 (depends on 9)

The electronic device of claim 9, wherein the at least one processor is configured to execute the one or more instructions to cause the electronic device to:
divide the obtained video into video blocks;
perform intra prediction and inter prediction based on the video blocks;
perform a transformation of the video blocks based on the intra prediction and the inter prediction;
perform a quantization on the video blocks based on the intra prediction and the inter prediction;
generate quantized coefficients for the video blocks based on the intra prediction and the inter prediction, wherein the quantization divides the transformed video blocks and the generates the quantized coefficients;
reconstruct the video blocks based on the quantized coefficients;
perform in-loop filtering of the reconstructed video with the AILF to remove at least one artifact from the reconstructed video; and
encode the filtered reconstructed video through entropy coding.

### Claim 11 (depends on 9)

The electronic device claim 9, wherein the at least one processor is configured to execute the one or more instructions to cause the electronic device to:
embed the set of ratios of the at least one selected pre-processor into the encoded image information; and
input the encoded image information from each channel and the plurality of frames to the AILF.

### Claim 12 (depends on 9)

The electronic device claim 9, wherein the set of ratios for the at least one selected pre-processor is embedded in at least one of a sequence header, a picture header, a slice header, and a Coding Tree Unit (CTU) of each frame of the plurality of frames.

### Claim 13 (depends on 9)

The electronic device claim 9, wherein the plurality of channels comprises a luma reconstruction, a prediction buffer, a boundary strength patch, a Quantization Parameter (QP) base, a QP Slice, and a block coding type.

### Claim 14 (depends on 10)

The electronic device claim 10, wherein the performing of the in-loop filtering of the reconstructed video with the AILF comprises:
performing the AILF after at least one of Luma Mapping and Chroma Scaling (LMCS), deblocking filtering, Sample Adaptive Offsetting (SAO), Adaptive Loop Filtering (ALF), and Cross-Component Adaptive Loop Filtering (CC-ALF) is performed.

### Claim 15 (depends on 9)

The electronic device of claim 9, wherein the at least one feature from each frame of the plurality of frames is pre-defined.

### Claim 16 (depends on 1)

The method of claim 1, wherein each set of ratios is variable.

### Claim 17 (depends on 1)

The method of claim 1, wherein the at least one selected pre-processor is selected from the multi pre-processors based on a quality of the video and the index corresponding to the at least one selected pre-processor.

### Claim 18 (depends on 8)

The method of claim 8, wherein the determining the at least one selected pre-processor for decoding the encoded video is based on the quality of a video output.

### Claim 19 (depends on 9)

The electronic device of claim 9, wherein each set of ratios is variable.

### Claim 20 (depends on 9)

The electronic device of claim 9, wherein the at least one selected pre-processor is selected from the multi pre-processors based on a quality of the video and the index corresponding to the at least one selected pre-processor.
