Two-Pass Entropy Coding for Video Frame Compression

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing video encoding methods do not optimize entropy coding probabilities effectively, leading to suboptimal compression efficiency, as they often rely on fixed or frame-based probability updates that do not account for the specific characteristics of each frame.

Innovation Solution

A two-pass entropy coding process where the first pass generates a histogram of bin values to update probability distributions, which are then used in the second pass for optimized encoding, allowing for frame-specific probability adaptation without relying on previous frames.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If fixed or frame-based probability updates are used in entropy coding, then encoding speed is maintained, but compression efficiency deteriorates due to inability to adapt to frame-specific characteristics

Engineering Contradiction:
Improvecompression efficiencyVSAvoidencoding process complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The entropy coding process is divided into two distinct passes: a first pass that generates histogram data by encoding bins with initial probabilities, and a second pass that performs final encoding using updated probabilities derived from the histogram. This segmentation allows the system to gather frame-specific statistical information without preventing real-time processing, thereby improving compression efficiency while managing complexity through structured workflow division.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The first pass performs preliminary encoding operations to collect histogram data about bin distributions in the current frame before the final encoding occurs. By performing this preliminary action, the system accumulates necessary statistical information that enables more accurate probability updates in the second pass, improving overall compression efficiency without sacrificing encoding speed.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If frame-specific probability updates are implemented, then compression efficiency improves, but processing time increases due to additional histogram generation

Engineering Contradiction:
Improvecompression efficiencyVSAvoidencoding time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The two-pass entropy coding process operates continuously without interruption: the first pass generates histogram data while the second pass performs final encoding, with both passes working in sequence without idle time. This continuous operation ensures that the additional processing required for frame-specific probability updates does not introduce significant delays, maintaining real-time processing capabilities while improving compression efficiency.

Inventive Principle:
Principle #20Continuity of useful action

3Quantity of substance

If dual pass entropy coding is used, then bit usage is reduced through better probability adaptation, but device complexity increases due to additional encoding pass

Engineering Contradiction:
Improvebit usageVSAvoidencoder structure
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The system dynamically changes the probability parameters used in entropy coding based on actual frame characteristics. The first pass encodes bins using initial probability values, then histogram data from this pass is used to update the probability parameters for the second pass. This parameter adaptation allows the encoder to better match the actual data distribution, reducing bit usage while the modular implementation keeps structural complexity manageable.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS11405617B1Method and system to enhance compression efficiency in encoded video by using dual pass entropy coding
Publication Date: 2022.08.02 XILINX INC
  • US11405617B1 patent drawing
  • US11405617B1 patent drawing
  • US11405617B1 patent drawing

AI summary

Methods and systems for improving encoding of a picture or a frame are disclosed. According to one embodiment, a method for encoding video frames includes receiving for a frame, several binarized symbols that include a number of bins corresponding to one or more contexts. For each context from one or more contexts, the method includes entropy encoding in a first pass bins associated with the context using an initial probability distribution for the context; generating counts of zeros and ones in a set of bins associated with the context; updating the initial probability distribution using the respective counts of zeros and ones, to obtain an updated probability distribution; and entropy encoding in a second pass the bins associated with the context using the updated probability distribution, to provide at least a part of an encoded bitstream.