Apple Inc.
Video encoder with quantization control
Last updated:
Abstract:
In one implementation, a method of encoding an image is performed at a device including one or more processors and non-transitory memory. The method includes receiving a first image comprising a plurality of pixels having a respective plurality of pixel locations and a respective plurality of pixel values. The method includes applying a frequency transform to a first spatial portion of the first image to generate a plurality of first frequency coefficients respectively associated with a plurality of spatial frequencies and applying the frequency transform to a second spatial portion of the first image to generate a plurality of second frequency coefficients respectively associated with the plurality of spatial frequencies. The method includes obtaining a first quantization matrix including, for each of the plurality of spatial frequencies, a respective first quantization parameter, wherein a first quantization parameter associated with a first spatial frequency of the plurality of spatial frequencies has a first ratio with a first quantization parameter associated with a second spatial frequency of the plurality of spatial frequencies, and obtaining a second quantization matrix including, for each of the plurality of spatial frequencies, a respective second quantization parameter, wherein a second quantization parameter associated with the first spatial frequency has a second ratio, different than the first ratio, with a second quantization parameter associated with the second spatial frequency. The method includes quantizing the plurality of first frequency coefficients according to the first quantization matrix to generate a plurality of first quantized frequency coefficients and quantizing the plurality of second frequency coefficients according to the second quantization matrix to generate a plurality of second quantized frequency coefficients. The method includes transmitting the plurality of first quantized frequency coefficients and the plurality of second quantized frequency coefficients.
Utility
9 Apr 2020
26 Jul 2022