github web-platform-tests/wpt merge_pr_48529

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
2 months ago

Update the sampling option for imageFilterQuality set to Medium or High

Currently, we are using bi-cubic sampling method, CatmullRom(), when
filter quality is set to High; and using linear sampling when the
quality is set to medium.

However, the bicubic sampling under perform than the linear sampling
when the image is scaled down: https://fiddle.skia.org/c/9822e1bbf3e6e69498fe9a3e86ef49f3 (bicubic)
and https://fiddle.skia.org/c/2b9f1057f9437710a993844fc1b015e2 (linear).

In this cl, I updated the sampling method respected to the image scale,
i.e., uses Mitchell for scaling up and linear for scaling down for both
medium and high quality.

I choose Mitchell over CatmullRom because Mitchell produces less Ringing
around color change.

Bug: 40044062
Change-Id: Iae6df006a5153b0c31959d3767a9e0f782b7d5a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5806239
Commit-Queue: Yi Xu yiyix@chromium.org
Reviewed-by: Florin Malita fmalita@chromium.org
Reviewed-by: Fernando Serboncini fserb@chromium.org
Cr-Commit-Position: refs/heads/main@{#1366572}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.