Macroblock Rate Control via Real MAD Feedback

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional video encoding systems face inaccuracies and latency in rate control due to reliance on prediction Mean Absolute Difference (MAD) without considering real MAD variances, especially when complexity varies within a video sequence.

Innovation Solution

A method and apparatus for rate control in the macroblock layer that calculates a real MAD of the current macroblock, adjusts the prediction MAD based on this real MAD, and uses the final MAD to determine a quantization parameter, ensuring more accurate rate control by reflecting actual data variances.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If prediction MAD is used for rate control, then calculation speed is improved, but accuracy deteriorates due to inaccuracy and latency

Engineering Contradiction:
Improvecalculation speedVSAvoidrate control accuracy
Core Design Contradiction:
SpeedVSMeasurement precision

Solution Approach 1:

The patent implements feedback by using the real MAD of the current MB to adjust the prediction MAD. The quantization parameter calculator receives the real MAD, compares it with the prediction MAD, and adjusts the quantization parameter accordingly. This closed-loop feedback mechanism corrects the inaccuracy and latency inherent in prediction-based methods, improving rate control accuracy while maintaining computational efficiency.

Inventive Principle:
Principle #23Feedback

2Device complexity

If prediction MAD only is used, then device complexity is reduced, but reliability deteriorates under high complexity variances

Engineering Contradiction:
Improverate control algorithm complexityVSAvoidrate control reliability
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The patent changes the parameter used for rate control from prediction MAD alone to a adjusted value that incorporates real MAD. The quantization parameter calculator modifies the quantization parameter based on the relationship between prediction MAD and real MAD, allowing the system to adapt to varying complexity in video sequences. This parameter adjustment enhances reliability under high complexity variances while keeping the overall algorithm relatively simple.

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If real MAD is calculated and used for adjustment, then rate control accuracy is improved, but calculation time increases

Engineering Contradiction:
Improverate control accuracyVSAvoidcalculation time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent applies preliminary action by calculating the real MAD of the current MB before using it to adjust the quantization parameter. The quantization parameter calculator first obtains the real MAD, then uses it to refine the prediction MAD and determine the final quantization parameter. This preliminary calculation of real MAD enables more accurate rate control decisions to be made efficiently, balancing accuracy improvement with acceptable calculation time.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10375404B1Methods for rate control in an MB (macroblock) layer and apparatuses using the same
Publication Date: 2019.08.06 GLENFLY TECH CO LTD
  • US10375404B1 patent drawing
  • US10375404B1 patent drawing
  • US10375404B1 patent drawing

AI summary

The invention introduces a method for rate control in an MB (macroblock) layer, including: calculating a prediction MAD (Mean Absolute Difference) of a current MB of a current frame according to a real MAD of a previous MB of a previous frame; calculating a real MAD of the current MB of the current frame; performing an adjustment procedure to adjust the prediction MAD of the current MB of the current frame according to the real MAD of the current MB of the current frame to obtain a final MAD of the current MB of the current frame; calculating a quantization parameter of the current MB of the current frame according to the final MAD of the current MB of the current frame; and outputting the quantization parameter of the current MB of the current frame to a quantizer.