Skip to content

Enable four six param warp winner mode - #5414

Merged
yeqing-wu merged 1 commit into
AOMediaCodec:av2-encfrom
jadhuran:adhuran/warp-delta-mr
Sep 21, 2026
Merged

yeqing-wu merged 1 commit into
AOMediaCodec:av2-encfrom
jadhuran:adhuran/warp-delta-mr

Conversation

@jadhuran

@jadhuran jadhuran commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Enable four and six param warp in winner motion mode for all tid levels

Reduce winner motion mode candidates to 3

Enabled for speed 6

Results:
Anchor: 16a4fd7
RA configurations
A1 - 17 frames
A2 - 33 frames


+-------+-------+-------+------+--------+--------+--------+
| Class | Y (%) | U(%)  | V(%) | YUV(%) | Enc(%) | Dec(%) |
+-------+-------+-------+------+--------+--------+--------+
| A1    |  0.04 | -0.07 | 0.29 |   0.05 |   98.0 |   99.7 |
| A2    |  0.07 |  0.11 | 0.02 |   0.06 |   98.5 |  101.8 |
+-------+-------+-------+------+--------+--------+--------+

Comment thread av2/encoder/speed_features.c Outdated
@yeqing-wu

Copy link
Copy Markdown
Contributor

Enable four and six param warp in winner motion mode for all tid levels

Reduce winner motion mode candidates to 2

Enabled for speed 6

Results: Anchor: 16a4fd7 RA configurations A1 - 17 frames A2 - 33 frames


+-------+-------+-------+------+--------+--------+--------+
| Class | Y (%) | U(%)  | V(%) | YUV(%) | Enc(%) | Dec(%) |
+-------+-------+-------+------+--------+--------+--------+
| A1    |  0.04 | -0.07 | 0.29 |   0.05 |   98.0 |   99.7 |
| A2    |  0.07 |  0.11 | 0.02 |   0.06 |   98.5 |  101.8 |
+-------+-------+-------+------+--------+--------+--------+

In the code, the new LUT entry is num_winner_motion_modes[3] = 3, not 2. The count is 3, not 2. Thus, should the commit message say "Reduce to 3"?

@yeqing-wu

Copy link
Copy Markdown
Contributor

// Disable the 4 parameter warp delta refinement during initial mode search
// and enable the same during motion mode evaluation for winner candidates.
// For speed = 2, enabled for frames with pyramid_level >= 4.
// For speed >= 3, enabled for frames with pyramid_level >= 3.
int enable_four_param_warp_in_winner_mode;

The comments in the definition of enable_four_param_warp_in_winner_mode is out of date now. Please help update it.

Comment thread av2/encoder/rdopt.c
@jadhuran
jadhuran force-pushed the adhuran/warp-delta-mr branch from b571b2d to 4b9a823 Compare September 18, 2026 17:33
@jadhuran

Copy link
Copy Markdown
Contributor Author

Enable four and six param warp in winner motion mode for all tid levels
Reduce winner motion mode candidates to 2
Enabled for speed 6
Results: Anchor: 16a4fd7 RA configurations A1 - 17 frames A2 - 33 frames


+-------+-------+-------+------+--------+--------+--------+
| Class | Y (%) | U(%)  | V(%) | YUV(%) | Enc(%) | Dec(%) |
+-------+-------+-------+------+--------+--------+--------+
| A1    |  0.04 | -0.07 | 0.29 |   0.05 |   98.0 |   99.7 |
| A2    |  0.07 |  0.11 | 0.02 |   0.06 |   98.5 |  101.8 |
+-------+-------+-------+------+--------+--------+--------+

In the code, the new LUT entry is num_winner_motion_modes[3] = 3, not 2. The count is 3, not 2. Thus, should the commit message say "Reduce to 3"?

Addressed

@jadhuran

Copy link
Copy Markdown
Contributor Author

// Disable the 4 parameter warp delta refinement during initial mode search
// and enable the same during motion mode evaluation for winner candidates.
// For speed = 2, enabled for frames with pyramid_level >= 4.
// For speed >= 3, enabled for frames with pyramid_level >= 3.
int enable_four_param_warp_in_winner_mode;

The comments in the definition of enable_four_param_warp_in_winner_mode is out of date now. Please help update it.

I don't see this comments.

I see the following comments in the code.

// Disable the 4 parameter warp delta refinement during initial mode search
// and enable the same during motion mode evaluation for winner candidates.
// Enabled for speed >= 3.
int enable_four_param_warp_in_winner_mode;

@yeqing-wu

Copy link
Copy Markdown
Contributor

// Disable the 4 parameter warp delta refinement during initial mode search
// and enable the same during motion mode evaluation for winner candidates.
// For speed = 2, enabled for frames with pyramid_level >= 4.
// For speed >= 3, enabled for frames with pyramid_level >= 3.
int enable_four_param_warp_in_winner_mode;

The comments in the definition of enable_four_param_warp_in_winner_mode is out of date now. Please help update it.

I don't see this comments.

I see the following comments in the code.

// Disable the 4 parameter warp delta refinement during initial mode search // and enable the same during motion mode evaluation for winner candidates. // Enabled for speed >= 3. int enable_four_param_warp_in_winner_mode;

On my side, it shows the comments that I copied and pasted.

…all tid levels

Reduce winner motion mode candidates to 2

Enabled for speed 6
@yeqing-wu
yeqing-wu force-pushed the adhuran/warp-delta-mr branch from 4b9a823 to e27fb6e Compare September 21, 2026 04:39
@yeqing-wu
yeqing-wu enabled auto-merge (rebase) September 21, 2026 04:39
@yeqing-wu
yeqing-wu merged commit ba30c4e into AOMediaCodec:av2-enc Sep 21, 2026
107 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.

3 participants