Motion Vector Rounding And Clipping for Overflow-Safe Inter Prediction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing video coding technologies face challenges in efficiently encoding and decoding high-resolution video data while maintaining image quality, particularly in handling motion vectors that exceed the valid bit-depth range, leading to arithmetic overflows and ambiguity in motion vector values.

Innovation Solution

Implement motion vector rounding and clipping processes to ensure motion vectors are within the valid bit-depth range, using unified rounding methods for various prediction tools and clipping operations for modes like MMVD, DMVR, and affine inheritance to prevent overflow.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If motion vector rounding and clipping operations are applied to all prediction tools uniformly, then implementation complexity is reduced, but prediction accuracy may be compromised for specific modes requiring different rounding behaviors

Engineering Contradiction:
Improveimplementation complexityVSAvoidprediction accuracy
Core Design Contradiction:
Device complexityVSMeasurement precision

Solution Approach 1:

The patent applies different rounding modes to different prediction tools based on their specific requirements. Template-based prediction tools use one rounding mode while non-template-based tools use another, allowing each prediction tool to receive the appropriate rounding treatment for optimal accuracy without unnecessary complexity in other areas.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent establishes a unified rounding framework that can accommodate multiple prediction tool types through a single interface, where the rounding mode is selected based on the prediction tool category. This provides universal applicability while maintaining tool-specific optimization through mode selection.

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Ease of manufacture

If motion vectors are rounded using standard rounding methods, then implementation is simplified, but arithmetic overflow may occur when motion vectors exceed valid bit-depth range

Engineering Contradiction:
Improveimplementation simplicityVSAvoidarithmetic overflow prevention
Core Design Contradiction:
Ease of manufactureVSReliability

Solution Approach 1:

The patent applies clipping operations before rounding to constrain motion vectors within the valid bit-depth range. This preliminary action prevents arithmetic overflow during subsequent rounding operations, ensuring reliable processing of high-resolution video data while maintaining implementation simplicity.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent modifies the motion vector parameters by clipping them to valid ranges before rounding. This parameter change ensures that the motion vectors remain within representable bit-depth limits, preventing overflow while allowing standard rounding operations to proceed without additional complexity.

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If different rounding modes are applied to different prediction tools, then prediction accuracy is optimized, but processing time increases due to additional mode selection and application logic

Engineering Contradiction:
Improveprediction accuracyVSAvoidprocessing speed
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent segments prediction tools into distinct categories (template-based and non-template-based) and applies appropriate rounding modes to each segment. This segmentation allows optimized rounding for each tool type while using efficient classification logic to minimize processing overhead during mode selection.

Inventive Principle:
Principle #1Segmentation

4Reliability

If motion vectors are clipped to valid bit-depth range, then arithmetic overflow is prevented, but motion vector precision is reduced for high-resolution video

Engineering Contradiction:
Improvearithmetic overflow preventionVSAvoidmotion vector precision
Core Design Contradiction:
ReliabilityVSMeasurement precision

Solution Approach 1:

The patent applies clipping as a preliminary action before rounding to ensure motion vectors are within valid ranges. This prevents overflow while the subsequent rounding operation maintains sufficient precision for high-resolution video by applying appropriate rounding modes that preserve as much accuracy as possible within the constrained range.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12413770B2Methods and apparatus of motion vector rounding, clipping and storage for inter prediction
Publication Date: 2025.09.09 BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
  • US12413770B2 patent drawing
  • US12413770B2 patent drawing
  • US12413770B2 patent drawing

AI summary

A method for video coding is provided, including: providing a motion vector (MV) rounding process that is configured to perform a MV rounding operation; applying the MV rounding process to at least a first MV used in a first prediction tool selected from a first set of tools including: pair-wise merge candidate, triangle prediction mode, and affine mode; and applying the MV rounding process to at least a second MV used in a second prediction tool selected from a second set of tools including: temporal motion vector prediction (TMVP), alternative temporal motion vector prediction (ATMVP), and merge mode with motion vector differences (MMVD).