IP Library Granted Patent US 12666025
Granted Patent B2
US 12666025 · App. 18/917,938 · Granted Jun 23, 2026

Quantization matrices in video compression

Inventors: Yu-Chen Sun (Bellevue, WA); Zhijun Lei (Sammamish, WA); Hsiao-Chiang Chuang (Sunnyvale, CA); Shyam Sadhwani (Bellevue, WA); You Zhou (Sammamish, WA)
Assignee: Meta Platforms, Inc.
H04N19/124H04N19/172H04N19/196H04N19/463
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12666025
App. No.
18/917,938
Granted
Jun 23, 2026
Kind
B2
Abstract

An embodiment includes generating, using a first set of parameters, a first quantization matrix. The first set of parameters includes a set of coefficients of a formula that generates quantization values in the first quantization matrix. An embodiment includes encoding, using the first quantization matrix, a frame in an uncompressed video stream, the encoding generating a compressed video stream corresponding to the uncompressed video stream.

Claims (46)

1 . A computer-implemented method, comprising:

generating, using a first set of parameters, a first quantization matrix;

generating a quantization value in the first quantization matrix using a first formula;

adjusting, using a least square fitting, the quantization value; and

encoding, using the first quantization matrix, a frame in an uncompressed video stream, the encoding generating a compressed video stream corresponding to the uncompressed video stream.

2 . The computer-implemented method of claim 1 , further comprising:

selecting, based on a characteristic of the uncompressed video stream, the first set of parameters.

3 . The computer-implemented method of claim 1 , further comprising:

selecting, based on a signal within the uncompressed video stream, the first set of parameters.

4 . The computer-implemented method of claim 1 , wherein the first set of parameters comprises a set of coefficients of the first formula, and wherein the quantization value corresponds to an x-y position in the frame.

5 . The computer-implemented method of claim 1 , further comprising:

generating, using a second set of parameters, a second quantization matrix; and

decoding, using the second quantization matrix, a second frame in a second compressed video stream, the decoding generating a second uncompressed video stream corresponding to the second compressed video stream.

6 . The computer-implemented method of claim 5 , further comprising:

selecting, based on a characteristic of the second compressed video stream, the second set of parameters.

7 . The computer-implemented method of claim 5 , further comprising:

selecting, based on a second signal within the second compressed video stream, the second set of parameters.

8 . A non-transitory computer-readable medium storing a program, which when executed by a computer, configures the computer to:

generate, using a first set of parameters, a first quantization matrix;

generate a quantization value in the first quantization matrix using a first formula;

adjust, using a least square fitting, the quantization value; and

encode, using the first quantization matrix, a frame in an uncompressed video stream, the encoding generating a compressed video stream corresponding to the uncompressed video stream.

9 . The non-transitory computer-readable medium of claim 8 , wherein the program, when executed by the computer, further configures the computer to:

select, based on a characteristic of the uncompressed video stream, the first set of parameters.

10 . The non-transitory computer-readable medium of claim 8 , wherein the program, when executed by the computer, further configures the computer to:

select, based on a signal within the uncompressed video stream, the first set of parameters.

11 . The non-transitory computer-readable medium of claim 8 , wherein the first set of parameters comprises a set of coefficients of the first formula, and wherein the quantization value corresponds to an x-y position in the frame.

12 . The non-transitory computer-readable medium of claim 8 , wherein the program, when executed by the computer, further configures the computer to:

generate, using a second set of parameters, a second quantization matrix; and

decode, using the second quantization matrix, a second frame in a second compressed video stream, the decoding generating a second uncompressed video stream corresponding to the second compressed video stream.

13 . The non-transitory computer-readable medium of claim 12 , wherein the program, when executed by the computer, further configures the computer to:

select, based on a characteristic of the second compressed video stream, the second set of parameters.

14 . The non-transitory computer-readable medium of claim 12 , wherein the program, when executed by the computer, further configures the computer to:

select, based on a second signal within the second compressed video stream, the second set of parameters.

15 . A system comprising:

a processor; and

a non-transitory computer-readable medium storing a set of instructions, which when executed by the processor, configure the system to:

generate, using a first set of parameters, a first quantization matrix;

generate a quantization value in the first quantization matrix using a first formula;

adjust, using a least square fitting, the quantization value; and

encode, using the first quantization matrix, a frame in an uncompressed video stream, the encoding generating a compressed video stream corresponding to the uncompressed video stream.

16 . The system of claim 15 , wherein the instructions, when executed by the processor, further configure the system to:

select, based on a characteristic of the uncompressed video stream, the first set of parameters.

17 . The system of claim 15 , wherein the instructions, when executed by the processor, further configure the system to:

select, based on a signal within the uncompressed video stream, the first set of parameters.

18 . The system of claim 15 , wherein the first set of parameters comprises a set of coefficients of the first formula, and wherein the quantization value corresponds to an x-y position in the frame.