Skip to content

Tune variance partition thresholds for low resolutions in RTC - #5256

Draft
jianj-g wants to merge 1 commit into
AOMediaCodec:av2-encfrom
jianj-g:rtc-vbp-tune-thresh
Draft

Tune variance partition thresholds for low resolutions in RTC#5256
jianj-g wants to merge 1 commit into
AOMediaCodec:av2-encfrom
jianj-g:rtc-vbp-tune-thresh

Conversation

@jianj-g

@jianj-g jianj-g commented Aug 12, 2026

Copy link
Copy Markdown

Align variance-based partition thresholds and force split logic with AV2's exponential quantizer scale for low resolutions (<= 288p).

  1. Update qindex_low_thr and qindex_high_thr in tune_thresh_based_on_resolution() to 70 and 95, mapping AV1's linear QP scale to AV2's exponential QP scale.
  2. Align the <= 360p 32x32 partition condition by removing the unguarded sub-variance condition that forced all 32x32 blocks to split.

This allows 32x32 partition blocks to be properly selected on low resolution sequences in RTC mode, improving encoding speed.

STATS_CHANGED for RTC mode

Align variance-based partition thresholds and force split logic
with AV2's exponential quantizer scale for low resolutions (<= 288p).

1. Update qindex_low_thr and qindex_high_thr in
   tune_thresh_based_on_resolution() to 70 and 95, mapping AV1's
   linear QP scale to AV2's exponential QP scale.
2. Align the <= 360p 32x32 partition condition by removing the
   unguarded sub-variance condition that forced all 32x32 blocks to split.

This allows 32x32 partition blocks to be properly selected on low
resolution sequences in RTC mode, improving encoding speed.

STATS_CHANGED for RTC mode
@jianj-g
jianj-g marked this pull request as draft August 12, 2026 19:08
@jianj-g
jianj-g requested a review from marpan-max August 12, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants