Skip to content

Add a speed feature to prune ref_mv_idx for WARP_NEWMV - #5269

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:av2-encfrom
ranjit-tulabandu:prune_ref_mv_idx_warp_newmv
Aug 17, 2026
Merged

Add a speed feature to prune ref_mv_idx for WARP_NEWMV #5269
urvangjoshi merged 1 commit into
AOMediaCodec:av2-encfrom
ranjit-tulabandu:prune_ref_mv_idx_warp_newmv

Conversation

@ranjit-tulabandu

Copy link
Copy Markdown

A speed feature is added to prune ref_mv_idx > 0 for
WARP_NEWMV modes based on best mode/motion
mode and ref_frame index. For ref_frame = 0,
ref_mv_idx > 0 pruning is based on best motion
mode/mode chosen so far. For other reference frames,
ref_mv_idx > 0 is always pruned.

STATS_CHANGED for speed >= 1

Test results (RA) for Speed 1
Anchor: commit e0b55de
A1 - 17 frames
A2 - 33 frames

+------------+-------+-------+-------+-------+-------------+
| Class      |     Y |    Cb |    Cr |  wAvg |EncInstCount%|
+------------+-------+-------+-------+-------+-------------+
| A1         |  0.12 |  0.15 | -0.04 |  0.11 |    95.01    |
| A2         |  0.09 |  0.20 |  0.23 |  0.10 |    94.54    |
+------------+-------+-------+-------+-------+-------------+

@ranjit-tulabandu
ranjit-tulabandu force-pushed the prune_ref_mv_idx_warp_newmv branch from 3481678 to ed6e356 Compare August 17, 2026 11:52
@ranjit-tulabandu

Copy link
Copy Markdown
Author

Comment thread av2/encoder/speed_features.h Outdated
@yunqingwang1

Copy link
Copy Markdown
Contributor

Good tradeoff!

@yunqingwang1 yunqingwang1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

ref_mv_idx > 0 of WARP_NEWMV modes is pruned based on best mode/
motion mode and ref_frame index. For ref_frame = 0, ref_mv_idx > 0
pruning is based on best motion mode/mode chosen so far. For
subsequent reference frames, ref_mv_idx > 0 is always pruned.

STATS_CHANGED for speed >= 1
@yunqingwang1
yunqingwang1 force-pushed the prune_ref_mv_idx_warp_newmv branch from 5d2cfa8 to 4aedd67 Compare August 17, 2026 18:27
@urvangjoshi
urvangjoshi merged commit 2abcfff into AOMediaCodec:av2-enc Aug 17, 2026
8 checks passed
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.

4 participants