Skip to content

Add early termination in warp delta refinement - #5309

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

Add early termination in warp delta refinement#5309
urvangjoshi merged 1 commit into
AOMediaCodec:av2-encfrom
deepa-kg:early_term_warp_delta_refine

Conversation

@deepa-kg

@deepa-kg deepa-kg commented Aug 24, 2026

Copy link
Copy Markdown

Added a speed feature to early terminate the warp
delta refinement loop if the rate-distortion cost
improvement in a pass drops below 5%.

Results for RA CTC, A1 17 frames, A2 33 frames,
speed 1: (Anchor: 7c9dfba)

+-----+-------+-------+-------+-------+---------------+
|Class|   Y   |   Cb  |   Cr  | wAvg  |EncInstCount(%)|
+-----+-------+-------+-------+-------+---------------+
| A2  |-0.0004|-0.0367|-0.2123|-0.0103| 98.93         |
| A1  |-0.0649| 0.1274| 0.0844|-0.0513| 98.89         |
+-----+-------+-------+-------+-------+---------------+

STATS_CHANGED for speed >= 1

@deepa-kg
deepa-kg force-pushed the early_term_warp_delta_refine branch 2 times, most recently from a1c3aaa to 43051f7 Compare August 25, 2026 12:08
@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 performance.

Added a speed feature to early terminate the warp
delta refinement loop if the rate-distortion cost
improvement in a pass drops below 5%.

Results for RA CTC, A1 17 frames, A2 33 frames,
speed 1: (Anchor: 7c9dfba)

```
+-----+-------+-------+-------+-------+---------------+
|Class|   Y   |   Cb  |   Cr  | wAvg  |EncInstCount(%)|
+-----+-------+-------+-------+-------+---------------+
| A2  |-0.0004|-0.0367|-0.2123|-0.0103| 98.93         |
| A1  |-0.0649| 0.1274| 0.0844|-0.0513| 98.89         |
+-----+-------+-------+-------+-------+---------------+
```
STATS_CHANGED for speed >= 1
@urvangjoshi
urvangjoshi force-pushed the early_term_warp_delta_refine branch from 43051f7 to 8bfbbe6 Compare August 25, 2026 18:44
@urvangjoshi
urvangjoshi merged commit 44be072 into AOMediaCodec:av2-enc Aug 25, 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