Residual Coefficient Encoding With Horizontal Scan Ordinal Updates

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing image and video processing technologies face inefficiencies in reading residual coefficients due to non-horizontal scanning, leading to slow data processing and hindering SIMD optimization.

Innovation Solution

The method involves reading residual coefficients in a horizontal scanning mode, updating an encoding quantity parameter based on ordinal comparisons, and determining an encoding bit number, allowing for efficient data reading and optimization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If non-horizontal scanning mode is used for reading residual coefficients, then the encoding can handle various scanning patterns (vertical, diagonal, etc.), but the data reading speed decreases and continuous reading becomes difficult

Engineering Contradiction:
Improvescanning mode adaptabilityVSAvoiddata reading speed
Core Design Contradiction:
Adaptability or versatilityVSSpeed

Solution Approach 1:

The patent introduces a horizontal scanning reading mechanism as an intermediary approach. Instead of directly reading coefficients in non-horizontal scanning orders (which causes discontinuous memory access), the system reads coefficients in horizontal order and uses scan ordinal comparison to identify the relevant coefficients for the target scanning pattern. This intermediary horizontal reading approach enables continuous data access while still supporting various scanning patterns through logical processing.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent segments the coefficient reading process into two independent parts: (1) continuous horizontal scanning for efficient data retrieval, and (2) scan ordinal comparison for identifying valid coefficients. By separating the physical reading mechanism from the logical selection mechanism, the system achieves both high reading speed and support for multiple scanning patterns.

Inventive Principle:
Principle #1Segmentation

2Adaptability or versatility

If non-horizontal scanning mode is used for residual coefficients, then various encoding standards can be supported, but SIMD optimization becomes difficult and processing time increases

Engineering Contradiction:
Improveencoding standard compatibilityVSAvoidprocessing time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent replaces the mechanical approach of physically accessing coefficients in complex scanning patterns with a logical filtering approach. Instead of reordering memory access to match diagonal or vertical patterns (which prevents SIMD optimization), the system maintains simple horizontal access patterns and uses computational logic (scan ordinal comparison) to identify valid coefficients. This substitution enables efficient SIMD processing while supporting various encoding standards.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Ease of manufacture

If traditional scanning methods are used for residual coefficients, then the implementation is simple, but the encoding efficiency and compression ratio are limited

Engineering Contradiction:
Improveimplementation simplicityVSAvoidencoding efficiency
Core Design Contradiction:
Ease of manufactureVSProductivity

Solution Approach 1:

The patent introduces dynamic adaptability into the encoding process by allowing the system to handle multiple scanning patterns (horizontal, vertical, diagonal, zigzag) through a unified horizontal reading mechanism. The scan ordinal comparison dynamically identifies which coefficients are relevant based on the target scanning pattern, enabling the system to adapt to different encoding requirements without changing the fundamental reading approach. This dynamic approach improves encoding efficiency while maintaining implementation simplicity.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS12526429B2Image encoding quantity parameter update method, electronic device, and storage medium
Publication Date: 2026.01.13 SHANGHAI BILIBILI TECH CO LTD
  • US12526429B2 patent drawing
  • US12526429B2 patent drawing
  • US12526429B2 patent drawing

AI summary

The present disclosure provides techniques for image processing. The techniques comprise obtaining a residual coefficient matrix of a target image, the residual coefficient matrix including at least one non-zero coefficient; determining a maximum scan ordinal for the residual coefficient matrix; sequentially reading a predetermined number of residual coefficients in the residual coefficient matrix in a horizontal scanning mode; updating an encoding quantity parameter for the residual coefficient matrix based on an ordinal comparison result between a scan ordinal of each of the read residual coefficients and the maximum scan ordinal and a coefficient value of each of the read residual coefficients; and determining an encoding bit number of the residual coefficient matrix based on a final encoding quantity parameter after reading all residual coefficients in the residual coefficient matrix.