Skip to content

Add early termination to warp MV refinement - #5335

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:av2-encfrom
deepa-kg:early_term_warp_refine
Aug 28, 2026
Merged

Add early termination to warp MV refinement#5335
urvangjoshi merged 1 commit into
AOMediaCodec:av2-encfrom
deepa-kg:early_term_warp_refine

Conversation

@deepa-kg

Copy link
Copy Markdown

Added a speed feature to terminate warp MV
refinement iterations when the improvement
over the previous iteration is below 5%.

Enabled for speed >= 3.

Results for RA CTC, A1 17 frames, A2 33 frames,
speed 3: (Anchor: 735d104)

+-----+------+-------+-----+-------+---------------+
|Class|  Y   |  U    |   V  | YUV  |EncInstCount(%)|
+-----+------+-------+------+------+---------------+
| A1  | 0.04 | -0.28 | 0.05 | 0.02 | 97.9          |
| A2  | 0.04 | -0.21 | 0.10 | 0.02 | 98.0          |
+-----+------+-------+------+------+---------------+

STATS_CHANGED for speed >= 3

@deepa-kg

Copy link
Copy Markdown
Author

@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.

Good tradeoff!

@yeqing-wu yeqing-wu 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.

Thanks for your efforts. Overall, the code looks good to me. Only two minor suggestions.

Comment thread av2/encoder/mcomp.c
Comment thread av2/encoder/speed_features.h Outdated
@deepa-kg
deepa-kg force-pushed the early_term_warp_refine branch from 2cf0b10 to bdeab11 Compare August 28, 2026 12:58
@deepa-kg

Copy link
Copy Markdown
Author

@yeqing-wu Please review.

@yeqing-wu
yeqing-wu enabled auto-merge (squash) August 28, 2026 21:02
Added a speed feature to terminate warp MV
refinement iterations when the improvement
over the previous iteration is below 5%.

Enabled for speed >= 3.

Results for RA CTC, A1 17 frames, A2 33 frames,
speed 3: (Anchor: 735d104)

```
+-----+------+-------+-----+-------+---------------+
|Class|  Y   |  U    |   V  | YUV  |EncInstCount(%)|
+-----+------+-------+------+------+---------------+
| A1  | 0.04 | -0.28 | 0.05 | 0.02 | 97.9          |
| A2  | 0.04 | -0.21 | 0.10 | 0.02 | 98.0          |
+-----+------+-------+------+------+---------------+
```
STATS_CHANGED for speed >= 3
@urvangjoshi
urvangjoshi force-pushed the early_term_warp_refine branch from bdeab11 to c15e9a3 Compare August 28, 2026 21:03
@urvangjoshi
urvangjoshi disabled auto-merge August 28, 2026 21:03
@urvangjoshi
urvangjoshi merged commit 777b914 into AOMediaCodec:av2-enc Aug 28, 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.

5 participants