Bounding-Box Template Matching for Hardware-Friendly Video Coding

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The template matching process in video coding systems requires accessing external memory for reference data, leading to increased system bandwidth and computational complexity.

Innovation Solution

Implement a bandwidth-restricted template matching algorithm that restricts the search area to a bounding box based on the current motion vector, using techniques such as padding, pre-fetching, and sub-partitioning to reduce memory access and complexity.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If template matching is performed using the full reference picture, then matching accuracy is improved, but memory bandwidth and computational complexity increase

Engineering Contradiction:
Improvematching accuracyVSAvoidmemory bandwidth
Core Design Contradiction:
Measurement precisionVSLoss of energy

Solution Approach 1:

The patent divides the reference picture into multiple regions based on motion vector prediction. Instead of using the entire reference picture for template matching, only the relevant region (first region) corresponding to the predicted motion is used. This segmentation reduces the amount of data accessed from external memory while maintaining matching accuracy for the current block.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies different processing strategies to different regions of the reference picture. The first region (corresponding to the current block's motion) is processed with full template matching, while other regions are either skipped or processed with reduced complexity. This local quality approach optimizes the balance between accuracy and computational resources.

Inventive Principle:
Principle #3Local quality

2Measurement precision

If template matching search area is expanded, then matching accuracy is improved, but device complexity increases

Engineering Contradiction:
Improvematching accuracyVSAvoidcomputational complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent dynamically adjusts the template matching search area based on the motion vector prediction. The search area is restricted to a bounding box defined by the predicted motion vector, making the search region adaptive rather than fixed. This dynamic approach reduces computational complexity by limiting the search to relevant areas only.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent performs motion vector prediction first to determine the search region before performing template matching. This preliminary action allows the system to pre-calculate the bounding box and restrict the search area accordingly, reducing the computational complexity of the subsequent template matching process.

Inventive Principle:
Principle #10Preliminary action

3Adaptability or versatility

If external memory is used for reference data, then reference picture storage is enabled, but system bandwidth increases

Engineering Contradiction:
Improvereference picture storageVSAvoidsystem bandwidth
Core Design Contradiction:
Adaptability or versatilityVSLoss of energy

Solution Approach 1:

The patent extracts only the necessary portion of the reference picture (first region) from external memory for template matching, rather than loading the entire reference picture. This extraction approach reduces the data transfer volume from external memory, thereby reducing system bandwidth consumption while still enabling reference picture storage functionality.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent performs preliminary motion vector prediction and bounding box calculation before accessing external memory. This preliminary action determines exactly which region needs to be loaded from external memory, allowing the system to fetch only the necessary data and minimize bandwidth consumption during the reference picture storage and processing operation.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12432373B2Method and apparatus for hardware-friendly template matching in video coding system
Publication Date: 2025.09.30 MEDIATEK INC
  • US12432373B2 patent drawing
  • US12432373B2 patent drawing
  • US12432373B2 patent drawing

AI summary

Method and apparatus for template matching with a determined area are disclosed. According to this method, a current template comprising current neighbouring pixels on an above side of the current block, on a left side of the current block, or a combination thereof for a current block is received. An area in a reference picture is then determined, where the reference picture corresponds to a previously coded picture. A matching result between a restricted reference template of a reference block and the current template is then determined, wherein the restricted reference template is generating by using only neighbouring reference pixels of a reference template inside the determined area, the reference template has a same shape as the current template, and a location of the reference template is determined according to a target motion vector (MV) from the current template.