Skip to content

Skip the WIENER_NONSEP frame filter rounding search at speed >= 4 - #5515

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:av2-encfrom
xinxiong-xx:xin/lr-skip-ff-rounding
Oct 9, 2026
Merged

urvangjoshi merged 1 commit into
AOMediaCodec:av2-encfrom
xinxiong-xx:xin/lr-skip-ff-rounding

Conversation

@xinxiong-xx

Copy link
Copy Markdown

Skip the WIENER_NONSEP frame filter rounding search at speed >= 4

After choosing the number of classes of the WIENER_NONSEP frame-level
filters, the loop restoration search refines them with
optimize_frame_filters_with_rounding(), on one thread.

This change skips that refinement at speed >= 4, through the new speed
feature lpf_sf.skip_wienerns_frame_filter_rounding.

STATS_CHANGED for speed >= 4.

CTC RA, A1 and A2, 33 frames (Anchor: 9faba93)

speed = 4

Class Y Cb Cr wAvg Enc% Dec%
A1 +0.01 -0.06 +0.10 +0.01 98.5 98.7
A2 -0.02 +0.05 -0.10 -0.02 99.4 99.2

speed = 5

Class Y Cb Cr wAvg Enc% Dec%
A1 +0.02 +0.14 +0.02 +0.02 98.5 99.9
A2 -0.00 +0.00 +0.03 -0.00 99.7 99.9

speed = 6

Class Y Cb Cr wAvg Enc% Dec%
A1 -0.01 -0.07 +0.05 -0.01 97.7 99.8
A2 +0.04 +0.30 -0.07 +0.04 98.8 99.7

After choosing the number of classes of the WIENER_NONSEP frame-level
filters, the loop restoration search refines them with
optimize_frame_filters_with_rounding(), on one thread.

This change skips that refinement at speed >= 4, through the new speed
feature lpf_sf.skip_wienerns_frame_filter_rounding.

STATS_CHANGED for speed >= 4.

CTC RA, A1 and A2, 33 frames (Anchor: 9faba93)

speed = 4

| Class      | Y     | Cb    | Cr    | wAvg  | Enc%  | Dec%  |
|------------|-------|-------|-------|-------|-------|-------|
| A1         | +0.01 | -0.06 | +0.10 | +0.01 | 98.5  | 98.7  |
| A2         | -0.02 | +0.05 | -0.10 | -0.02 | 99.4  | 99.2  |

speed = 5

| Class      | Y     | Cb    | Cr    | wAvg  | Enc%  | Dec%  |
|------------|-------|-------|-------|-------|-------|-------|
| A1         | +0.02 | +0.14 | +0.02 | +0.02 | 98.5  | 99.9  |
| A2         | -0.00 | +0.00 | +0.03 | -0.00 | 99.7  | 99.9  |

speed = 6

| Class      | Y     | Cb    | Cr    | wAvg  | Enc%  | Dec%  |
|------------|-------|-------|-------|-------|-------|-------|
| A1         | -0.01 | -0.07 | +0.05 | -0.01 | 97.7  | 99.8  |
| A2         | +0.04 | +0.30 | -0.07 | +0.04 | 98.8  | 99.7  |
Comment thread av2/encoder/pickrst.c

@urvangjoshi urvangjoshi 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!

@urvangjoshi
urvangjoshi merged commit 64c66e1 into AOMediaCodec:av2-enc Oct 9, 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.

4 participants