IP Library › Granted Patent US 11,765,372
Granted Patent B1
US 11,765,372 · App. 17/353,188 · Granted Sep 19, 2023

Efficient coefficient film grain synthesis for codecs without film grain synthesis

Inventors: Charles Benjamin Waggoner (Portland, OR); Hai Wei (Seattle, WA)
Assignee: Amazon Technologies, Inc.
H04N19/46H04N19/124H04N19/172H04N19/176H04N19/60H04N19/85H04N19/91
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 11,765,372
App. No.
17/353,188
Granted
Sep 19, 2023
Kind
B1
Abstract

Techniques for emulating frequency coefficients of film grain for video (e.g., frame) encoding are described. According to some embodiments, a computer-implemented method includes receiving a request to encode a video with film grain at a content delivery service, performing a film grain synthesis on a frame of the video with film grain to generate film grain metadata for the frame and generate a degrained frame from the frame, determining film grain emulation frequency coefficients based at least in part on the film grain metadata for the frame, performing a frequency transform on the degrained frame to generate frequency coefficients for the degrained frame, encoding the frame into an encoded frame, by the content delivery service, based at least in part on the frequency coefficients for the degrained frame and the film grain emulation frequency coefficients, and transmitting the encoded frame from the content delivery service to a viewer device.

Claims (48)

1. A computer-implemented method comprising:

receiving a request to encode a video with film grain at a content delivery service;

performing a film grain synthesis on a frame of the video with film grain to generate film grain metadata for the frame and generate a degrained frame from the frame;

determining film grain emulation frequency coefficients based at least in part on the film grain metadata for the frame;

performing a frequency transform on the degrained frame to generate frequency coefficients for the degrained frame;

encoding the frame into an encoded frame including emulated film grain therein, by the content delivery service, based at least in part on the frequency coefficients for the degrained frame and the film grain emulation frequency coefficients; and

transmitting the encoded frame from the content delivery service to a viewer device without transmitting the film grain metadata to the viewer device.

2. The computer-implemented method of claim 1 , wherein the viewer device does not support film grain synthesis for a decode of the encoded frame.

3. The computer-implemented method of claim 1 , wherein the determining the film grain emulation frequency coefficients comprises determining a first set of film grain emulation frequency coefficients for a first block of a plurality of blocks of the frame, and the encoding is based at least in part on each of the plurality of blocks of the frame including the first set of film grain emulation frequency coefficients.

4. A computer-implemented method comprising:

receiving a request to encode a video with film grain at a content delivery service;

performing a film grain removal on a frame of the video with film grain to generate film grain parameters for the frame and generate a degrained frame from the frame;

determining film grain emulation frequency coefficients based at least in part on the film grain parameters for the frame;

performing a frequency transform on the degrained frame to generate frequency coefficients for the degrained frame;

encoding the frame into an encoded frame including emulated film grain therein based at least in part on the frequency coefficients for the degrained frame and the film grain emulation frequency coefficients; and

transmitting the encoded frame from the content delivery service to a viewer device without transmitting the film grain parameters to the viewer device.

5. The computer-implemented method of claim 4 , wherein the viewer device does not support film grain synthesis for a decode of the encoded frame.

6. The computer-implemented method of claim 4 , wherein the determining the film grain emulation frequency coefficients comprises determining a first set of film grain emulation frequency coefficients for a first block of a plurality of blocks of the frame, and the encoding is based at least in part on each of the plurality of blocks of the frame including the first set of film grain emulation frequency coefficients.

7. The computer-implemented method of claim 6 , further comprising adding each film grain emulation frequency coefficient of the first set of film grain emulation frequency coefficients to a corresponding frequency coefficient of each of the plurality of blocks of the degrained frame to form a coefficient matrix, wherein the encoding is performed on the coefficient matrix.

8. The computer-implemented method of claim 7 , further comprising quantizing the coefficients matrix to form a quantized coefficient matrix, wherein the encoding is performed on the quantized coefficient matrix.

9. The computer-implemented method of claim 8 , wherein the quantizing is for a same quantization parameter for the frame.

10. The computer-implemented method of claim 4 , wherein the encoding is entropy encoding.

11. The computer-implemented method of claim 4 , further comprising encoding a second frame of the video into an encoded second frame, wherein the second frame includes film grain during the encoding, and transmitting the encoded second frame from the content delivery service to the viewer device.

12. The computer-implemented method of claim 4 , further comprising generating a plurality of sets of film grain emulation frequency coefficients, including the film grain emulation frequency coefficients, for respective film stocks before receiving the request to encode.

13. The computer-implemented method of claim 4 , wherein the determining the film grain emulation frequency coefficients comprises determining the film grain emulation frequency coefficients based at least in part on the film grain parameters for the frame from a table of sets of film grain emulation frequency coefficients indexed by their film grain parameters.

14. The computer-implemented method of claim 4 , wherein the determining the film grain emulation frequency coefficients comprises determining the film grain emulation frequency coefficients based at least in part on the film grain parameters for the frame and a size of a first block of a plurality of blocks of the frame from a table of sets of film grain emulation frequency coefficients indexed by their film grain parameters and their block size.

15. A system comprising:

a content data store to store a video; and

one or more electronic devices to implement a content delivery service, the content delivery service including instructions that upon execution cause the content delivery service to perform operations comprising:

receiving a request to encode the video with film grain,

performing a film grain removal on a frame of the video with film grain to generate film grain parameters for the frame and generate a degrained frame from the frame,

determining film grain emulation frequency coefficients based at least in part on the film grain parameters for the frame,

performing a frequency transform on the degrained frame to generate frequency coefficients for the degrained frame,

encoding the frame into an encoded frame including emulated film grain therein based at least in part on the frequency coefficients for the degrained frame and the film grain emulation frequency coefficients, and

transmitting the encoded frame from the content delivery service to a viewer device without transmitting the film grain parameters to the viewer device.

16. The system of claim 15 , wherein the viewer device does not support film grain synthesis for a decode of the encoded frame.

17. The system of claim 15 , wherein the instructions upon execution cause the content delivery service to perform operations wherein the determining the film grain emulation frequency coefficients comprises determining a first set of film grain emulation frequency coefficients for a first block of a plurality of blocks of the frame, and the encoding is based at least in part on each of the plurality of blocks of the frame including the first set of film grain emulation frequency coefficients.

18. The system of claim 17 , wherein the instructions upon execution cause the content delivery service to perform operations further comprising adding each film grain emulation frequency coefficient of the first set of film grain emulation frequency coefficients to a corresponding frequency coefficient of each of the plurality of blocks of the degrained frame to form a coefficient matrix, wherein the encoding is performed on the coefficient matrix.

19. The system of claim 18 , wherein the instructions upon execution cause the content delivery service to perform operations further comprising quantizing the coefficients matrix to form a quantized coefficient matrix, wherein the encoding is performed on the quantized coefficient matrix.

20. The system of claim 15 , wherein the instructions upon execution cause the content delivery service to perform operations further comprising encoding a second frame of the video into an encoded second frame, wherein the second frame includes film grain during the encoding, and transmitting the encoded second frame from the content delivery service to the viewer device.

21. A computer-implemented method comprising:

receiving a request to encode a video with film grain at a content delivery service;

performing a film grain removal on a frame of the video with film grain to generate film grain parameters for the frame and generate a degrained frame from the frame;

determining film grain emulation frequency coefficients based at least in part on the film grain parameters for the frame and a size of a first block of a plurality of blocks of the frame from a data structure of sets of film grain emulation frequency coefficients indexed by their film grain parameters and their block size;

performing a frequency transform on the degrained frame to generate frequency coefficients for the degrained frame;

encoding the frame into an encoded frame based at least in part on the frequency coefficients for the degrained frame and the film grain emulation frequency coefficients; and

transmitting the encoded frame from the content delivery service to a viewer device.

22. The computer-implemented method of claim 21 , wherein the viewer device does not support film grain synthesis for a decode of the encoded frame.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 21, 2021
From: WAGGONER, CHARLES BENJAMIN; WEI, HAI
To: AMAZON TECHNOLOGIES, INC.
Reel/Frame 056609/0682 →
Cited By (3)
US 12,262,063 US 12,375,734 US 12,452,464