Encoder Adaptive Quantization for Bitrate Control

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The existing bitrate control methods in encoders, particularly the R-λ model, are complex and difficult to implement in hardware circuits, leading to challenges in maintaining image quality when encoding images with high complexity, especially under constant bitrate constraints.

Innovation Solution

A simplified bitrate control method is introduced, which includes a frame level processing circuit and a CTU level processing circuit that calculate and adjust quantization parameters adaptively to ensure consistent output bitrate, using formulas to determine average bitrates and energies for each frame, and employing adaptive quantization to improve image quality.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If the R-λ model is used for bitrate control, then the image quality can be optimized, but the calculation complexity increases significantly

Engineering Contradiction:
Improveimage qualityVSAvoidcalculation complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The patent extracts and removes the complex exponential and logarithmic calculation components from the R-λ model, retaining only the essential quantization parameter calculation functionality. This simplification eliminates the hardware implementation difficulties while preserving the core image quality optimization capability.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent replaces the complex R-λ calculation model with simpler, more computationally efficient algorithms that require fewer computational resources. This substitution maintains the bitrate control functionality while significantly reducing the hardware complexity and implementation cost.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

2Productivity

If constant bitrate encoding is used, then transmission over limited bandwidth channels is facilitated, but image quality is sacrificed for high complexity images

Engineering Contradiction:
Improvetransmission efficiencyVSAvoidimage quality
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The patent introduces dynamic quantization parameter adjustment at the CTU level, allowing the encoder to adaptively modify compression strength based on local image complexity. This dynamic approach enables constant bitrate transmission while preserving image quality in high-complexity regions by applying less aggressive quantization where needed.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent applies different quantization parameters to different CTUs (Coding Tree Units) within the same frame based on their individual complexity characteristics. This local adaptation allows the encoder to maintain overall bitrate constraints while ensuring high-quality encoding for complex regions and accepting lower quality for simple regions.

Inventive Principle:
Principle #3Local quality

3Manufacturing precision

If VBR encoding is used, then image quality is maintained, but the output bitrate cannot be determined for subsequent processing

Engineering Contradiction:
Improveimage qualityVSAvoidbitrate predictability
Core Design Contradiction:
Manufacturing precisionVSEase of operation

Solution Approach 1:

The patent implements a feedback mechanism where the quantization parameter calculation incorporates information about the actual bitrate consumption and image complexity. This feedback loop allows the encoder to adaptively adjust parameters to achieve both quality preservation and predictable bitrate output, resolving the uncertainty issue of pure VBR encoding.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11523117B2Encoder using coding tree unit level adaptive quantization mode to adjust frame level quantization parameter and associated signal processing method
Publication Date: 2022.12.06 REALTEK SEMICON CORP
  • US11523117B2 patent drawing
  • US11523117B2 patent drawing

AI summary

An encoder includes a frame level processing circuit, a coding tree unit (CTU) level processing circuit and an encoding circuit. The frame level processing circuit is arranged to calculate a bit number of a current frame according a target bitrate and a frame rate, and the frame level processing circuit is further arranged to calculate a quantization parameter of the current frame according to the bit number of the current frame and at least one parameter. The CTU level processing circuit is arranged to use an adaptive quantization mode to adjust the quantization parameter to generate an adjusted quantization parameter. The encoding circuit is arranged to encode the current frame to generate output data according to the adjusted quantization parameter.