Commit Graph
409 Commits
Author SHA1 Message Date
Chris Dumez 84fcb6d02a Bug 2044699 [wpt PR 60361] - Limit webcodecs/audio-data-copyTo.any.js to dedicatedworker instead o…, a=testonly
Automatic update from web-platform-tests
Limit webcodecs/audio-data-copyTo.any.js to dedicatedworker instead of worker (#60361)

Apply review comment from Youenn that was missed in my previous PR.
--

wpt-commits: 9ddbfb1f94a093cd4824380ecab9e5741313f4bc
wpt-pr: 60361
2026-06-08 08:16:44 +00:00
Chris Dumez 4e2325331a Bug 2044637 [wpt PR 60357] - Upstream webcodecs/audio-data-copyTo.any.js from WebKit, a=testonly
Automatic update from web-platform-tests
Upstream webcodecs/audio-data-copyTo.any.js from WebKit (#60357)

This test was introduced in https://commits.webkit.org/296217@main
but never upstreamed.
--

wpt-commits: b3f253e60c3b292ba8d0659ed8dc9f989fbccd19
wpt-pr: 60357
2026-06-08 08:16:41 +00:00
Xidorn QuanandClaude Opus 4.6 06e6579ee6 Bug 2036986 - Fix ImageDecoder failing to decode animated GIFs with zero first-frame delay. r=aosmond
Some animated GIFs have a first-frame delay of zero (or no Graphic Control Extension for the first frame). The metadata decoder terminates after parsing the first frame's image descriptor without ever encountering a second frame, so it reports the image as non-animated. Previously, `AnonymousDecoderImpl` would trust this result, set `frameCount=1`/`frameCountComplete=true`, and destroy the frame count task. This caused `ImageDecoder` to return zero for frame count making code running it consider the GIF to be non-animated, differing from the rendering result when such a GIF presents in DOM.

The fix always runs the frame count task after metadata completes, even when the metadata decoder reported non-animated. The frame count task does a full parse (with `COUNT_FRAMES` flag) and will discover additional frames. If it finds more than one frame, we update the animated flag before resolving the metadata promise to `ImageDecoder`.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D298735
2026-05-20 18:17:46 +00:00
Timothy Nikkel 2c27af2ed0 Bug 2038910. Add test for bug 2022252. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D287913
2026-05-12 09:43:29 +00:00
Dale Curtis 69f0b98430 Bug 2037349 [wpt PR 59684] - [WebCodecs] Route 4:4:4 H.264 content to the software decoder., a=testonly
Automatic update from web-platform-tests
[WebCodecs] Route 4:4:4 H.264 content to the software decoder.

As with https://crrev.com/c/7115500, hardware support for 4:4:4 H.264
is rare. Instead route this content to the software decoder. Also like
the linked issue, we can only do this for AVC formatted content since
we need the SPS/PPS information to determine this.

R=eugene

Fixed: 503709314
Change-Id: If2a68fd8a5dad274b2a101a934c2d4d9e1e0d702
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7818666
Reviewed-by: Eugene Zemtsov <[email protected]>
Commit-Queue: Eugene Zemtsov <[email protected]>
Auto-Submit: Dale Curtis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1625926}

--

wpt-commits: 05637f455968b011be7566e7e0a14e49ae00fe63
wpt-pr: 59684
2026-05-12 08:46:25 +00:00
Paul Adenot 13f1f85959 Bug 2035883 - Add WPT tests for multichannel Opus encode/decode roundtrip. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D298586
2026-05-11 11:26:56 +00:00
Paul Adenot 924b9f8885 Bug 2017470 - Test that VideoFrame copy throws when computed display size rounds to zero. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D284122
2026-02-20 16:25:27 +00:00
Timothy Nikkel f04b41d20e Bug 2017477. Handle aLength being zero in SourceBuffer::Append. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D283823
2026-02-18 11:35:13 +00:00
Eugene Zemtsov 11b99a0665 Bug 2004335 [wpt PR 56505] - webcodecs: Enable flag to change QP range for VP9 and AV1, a=testonly
Automatic update from web-platform-tests
webcodecs: Enable flag to change QP range for VP9 and AV1

and fixing the tests

Bug: 446157737
Change-Id: I4f86bd721fcb69d18c7070dd264eacf1df9dee34
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7224767
Reviewed-by: Dale Curtis <[email protected]>
Commit-Queue: Eugene Zemtsov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1554219}

--

wpt-commits: 87a6d9877d6eb08755c742cd7df6a528cebb64ff
wpt-pr: 56505
2025-12-11 08:58:27 +00:00
Dale Curtis 3de7a3b689 Bug 1998771 [wpt PR 55919] - [WebCodecs] Route interlaced H.264 content to the software decoder, a=testonly
Automatic update from web-platform-tests
[WebCodecs] Route interlaced H.264 content to the software decoder

None of our hardware decoders support interlaced decoding, so we
should route this content to the software decoder.

The wrinkle is that there's no information in the codec string
which would tell us that the content is interlaced. For AVC content
we can peek at the description, but for annex-b content we won't
know until the first decode() call.

Given how rare this content is, it's not worth holding all annex-b
configure() calls until the first decode().

As such, this fix only works for AVC formatted content, annex-b
content will continue to throw a decoding error; though I've
promoted the DVLOG to a DLOG to help identify this case more
quickly in the future.

Bug: 456919096

Change-Id: I8a5578e3abdf6a018316931f883796d84f080d8b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7115500
Commit-Queue: Dale Curtis <[email protected]>
Reviewed-by: Eugene Zemtsov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1541313}

--

wpt-commits: ba6d2f9a0c3bbe8fa7f28df932f4de31cf19d91a
wpt-pr: 55919
2025-11-11 15:30:48 +00:00
Dale Curtis 5df0619cef Bug 1997439 [wpt PR 55773] - [WebCodecs] Fix AV1 corruption test so dav1d actually fails, a=testonly
Automatic update from web-platform-tests
[WebCodecs] Fix AV1 corruption test so dav1d actually fails

Test data was insufficiently corrupted, so dav1d just treats it as
partial data and expects more data to come. This change increases
the corruption of chunks.

R=eugene

Change-Id: Ia3eeea8faaf9dafe53a0a7fd3c148821fbc91f1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7102887
Reviewed-by: Eugene Zemtsov <[email protected]>
Commit-Queue: Dale Curtis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1538882}

--

wpt-commits: fac3072726a3cd157d4442698276ccf4bf4dd150
wpt-pr: 55773
2025-11-10 09:57:27 +00:00
Dale Curtis 16cae068bb Bug 1997420 [wpt PR 55771] - [WebCodecs] When verifying key frames, always throw for type==delta, a=testonly
Automatic update from web-platform-tests
[WebCodecs] When verifying key frames, always throw for type==delta

We shouldn't override the type of the EncodedVideoChunk just because
packet analysis indicates that it's actually a key frame. This aligns
Chrome's behavior with Safari/Firefox.

R=eugene

Fixed: 456164625
Change-Id: I5812c9c87ae34344da2cc94872c4dd6219eef085
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7103067
Commit-Queue: Dale Curtis <[email protected]>
Commit-Queue: Eugene Zemtsov <[email protected]>
Auto-Submit: Dale Curtis <[email protected]>
Reviewed-by: Eugene Zemtsov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1538178}

--

wpt-commits: d4c91d582bb640a129149fc7d45d64584fee202e
wpt-pr: 55771
2025-11-10 09:56:39 +00:00
Dale Curtis 18b1f3ac11 Bug 1997234 [wpt PR 55757] - Ensure SEI test properly marks EncodedVideoChunks as keyframes., a=testonly
Automatic update from web-platform-tests
Ensure SEI test properly marks EncodedVideoChunks as keyframes.

This also reveals that Chromium overrides the type==delta when
the underlying encoded data is actually a key frame. Filed
https://crbug.com/456164625 for that.

R=eugene

Bug: 451536366
Change-Id: I880cd1765706efd450eb3ec7e3b29ac4a5d3d7a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7098762
Commit-Queue: Dale Curtis <[email protected]>
Reviewed-by: Eugene Zemtsov <[email protected]>
Commit-Queue: Eugene Zemtsov <[email protected]>
Auto-Submit: Dale Curtis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1537685}

--

wpt-commits: aa2cdab77e17a8acacf44771312774978e242b3d
wpt-pr: 55757
2025-11-06 10:25:41 +00:00
Dale Curtis 3153a052d2 Bug 1997001 [wpt PR 55741] - Support H.264 SEI recovery points as keyframes, a=testonly
Automatic update from web-platform-tests
Support H.264 SEI recovery points as keyframes

H.264 SEI recovery points with a recovery_frame_cnt=0 are well
supported as keyframes throughout our pipeline. ffmpeg has support
and our hardware decoders have exposed support since 2021. With
Safari and Firefox both supporting these as keyframes, we should
move to add support as well.

Bug: 451536366

Change-Id: I268e060559724fd92c7f53ebb3aa5cee6ed1e3ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7082888
Commit-Queue: Dale Curtis <[email protected]>
Reviewed-by: Eugene Zemtsov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1536952}

--

wpt-commits: 9ab188bddfef32d970a8ae38d02577d29d61af7b
wpt-pr: 55741
2025-11-06 10:25:16 +00:00
pommicket 77f736a623 Bug 1995659 - Fix handling of duplicate transfer ArrayBuffers in ImageDecoder r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D269505
2025-10-23 14:00:53 +00:00
Anantanarayanan G Iyengar b46e7fccbc Bug 1993999 [wpt PR 55392] - Add Web Platform Test for the VideoFrame RTP timestamp feature, a=testonly
Automatic update from web-platform-tests
Add Web Platform Test for the VideoFrame RTP timestamp feature

https://chromestatus.com/feature/5186046555586560

This patch includes the following changes.

1. Web platform Test for the VideoFrame RTP timestamp feature which is
exposed via the metadata object to javascript. For details on the spec
please refer to
https://www.w3.org/TR/webcodecs-video-frame-metadata-registry/#dom-videoframemetadata.

TEST=Web Platform test videoFrame-metadata-rtpTimestamp.https.html

BUG: 414545889
Change-Id: I8810953cb101a765ad815055f49045e5c6ef911f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7019306
Reviewed-by: Dale Curtis <[email protected]>
Commit-Queue: Anantanarayanan Iyengar US <[email protected]>
Reviewed-by: Guido Urdaneta <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1529015}

--

wpt-commits: 6471d8c7bb1220c70a2199445ccae614c96f9daa
wpt-pr: 55392
2025-10-20 16:41:06 +00:00
Syed AbuTalib c89853f570 Bug 1989450 [wpt PR 54937] - Separate Encoder Decoder Flush() promises to improve reliability, a=testonly
Automatic update from web-platform-tests
Separate Encoder Decoder Flush() promises to improve reliability

This is to make sure we do not flush the decoder until the encoder is
completely flushed. This will improve the reliability of the test.

Bug: 40243924
Change-Id: I96f89a8d54e00a8c46eeb04a5f9b6ad1c44b7c74
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6966926
Reviewed-by: Thomas Guilbert <[email protected]>
Commit-Queue: Syed AbuTalib <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1517521}

--

wpt-commits: 0d0199a406fae5eebd0dc7129867c0006db97eb7
wpt-pr: 54937
2025-09-24 11:05:10 +00:00
Syed AbuTalib d25683f701 Bug 1989222 [wpt PR 54915] - Add WPTs to cover all valid Opus frame durations, a=testonly
Automatic update from web-platform-tests
Add WPTs to cover all valid Opus frame durations

According to RFC6716 section 2.1.4, "[Opus] can also combine multiple
frames into packets". This means that packets such as 7.5ms (3 * 2.5ms
packets) are considered valid frame durations. This CL adds valid frame
durations that are not of the standard durations.

Bug: 40243924
Change-Id: Iea0e6ebcebfda68ed4fdd8cc144494d51532d9a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6952086
Reviewed-by: Thomas Guilbert <[email protected]>
Auto-Submit: Syed AbuTalib <[email protected]>
Commit-Queue: Syed AbuTalib <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1516965}

--

wpt-commits: 7342619635eccfa4aa6e87c025aac2614674dca6
wpt-pr: 54915
2025-09-24 11:03:12 +00:00
Dale Curtis 2f1b485687 Bug 1988276 [wpt PR 54818] - [WebCodecs] Ensure aborted configure continues request processing, a=testonly
Automatic update from web-platform-tests
[WebCodecs] Ensure aborted configure continues request processing

With the right timing an aborted configure could leave the request
queue hanging forever if no additional operations come in after
the aborted configure. The fix is simply that we should continue
request processing after dropping the aborted configure request.

R=eugene

Fixed: 444065293
Change-Id: I4e50e7e2204d0602ca009b5e50823a5977ab6cb8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6938997
Auto-Submit: Dale Curtis <[email protected]>
Reviewed-by: Eugene Zemtsov <[email protected]>
Commit-Queue: Eugene Zemtsov <[email protected]>
Commit-Queue: Dale Curtis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1514506}

--

wpt-commits: a4bbabd683561a7d5df7204b19d36575a17c73e9
wpt-pr: 54818
2025-09-16 08:38:55 +00:00
Dale Curtis 739f036515 Bug 1983728 [wpt PR 54393] - [WebCodecs] Implement high-bit-depth YUV decoding for ImageDecoder, a=testonly
Automatic update from web-platform-tests
[WebCodecs] Implement high-bit-depth YUV decoding for ImageDecoder

This was forgotten after we added support for high-bit-depth pixel
formats some time ago. Support is only added for AVIF since the
other image decoders decode to float16 instead of YUV, and we don't
have plans to support a software float16 pixel format at this time.

Bug: 40215121
Change-Id: Ifc1e222b50622bce2e85f1871236e753264f7772
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6829051
Reviewed-by: Eugene Zemtsov <[email protected]>
Reviewed-by: Wan-Teh Chang <[email protected]>
Commit-Queue: Dale Curtis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1502991}

--

wpt-commits: 42a7b3e07cfebc2dfe30468034c3852e857d9eda
wpt-pr: 54393
2025-08-25 08:48:21 +00:00
Dale Curtis 78e916a18d Bug 1973870 [wpt PR 53374] - Fix I444P10 VideoFrame construction and extend test coverage, a=testonly
Automatic update from web-platform-tests
Fix I444P10 VideoFrame construction and extend test coverage

A copy/paste error mapped I444 to I422. This was uncaught since the
VideoFrame tests didn't check the returned format. Per the current
spec text, format shifting isn't allowed, so the format must match.

R=eugene

Fixed: 425901172
Change-Id: I45e378fe176c541018933b00dbac832e9ca2ee90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6669718
Reviewed-by: Eugene Zemtsov <[email protected]>
Auto-Submit: Dale Curtis <[email protected]>
Commit-Queue: Eugene Zemtsov <[email protected]>
Commit-Queue: Dale Curtis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1478230}

--

wpt-commits: 03405138c984b7119a79eb375a236c07a0e2b198
wpt-pr: 53374
2025-07-04 08:43:11 +00:00
Christoph Guttandin d2f36dbdb2 Bug 1961784 [wpt PR 52062] - [webcodecs] Test non zero timestamps, a=testonly
Automatic update from web-platform-tests
[webcodecs] Test non zero timestamps (#52062)

* Test AudioDecoder with a positive timestamp

* Verify AudioDecoder copies the initial timestamp

* Fix typo in AudioDecoder test description
--

wpt-commits: cc89a3c0ee45a990e9c7fcb7a597b51ac3c547ed
wpt-pr: 52062
2025-04-24 11:44:38 +00:00
Paul Adenot 449aa0ad89 Bug 1959072 - Handle division by zero after AudioData.close. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D244753
2025-04-24 08:55:49 +00:00
omahs d13f9f5f85 Bug 1946734 [wpt PR 50557] - Remove duplicated words, a=testonly
Automatic update from web-platform-tests
Remove duplicated words (#50557)

--

wpt-commits: cefb7d3cd6142e86a985eb5797d6ff677295557c
wpt-pr: 50557
2025-04-23 10:43:42 +00:00
Eugene Zemtsov 9536d32865 Bug 1956195 [wpt PR 51564] - webcodecs: Use visible size instead of coded size in video rescaling WPT, a=testonly
Automatic update from web-platform-tests
webcodecs: Use visible size instead of coded size in video rescaling WPT

VideoFrame.copyTo() uses visible size and it's a mistake to assume
that coded size is always the same as visible size.

Bug: 404887295
Change-Id: I1ace9d944d4920a30ba8967b5cb08305d3f4adbc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6386530
Reviewed-by: Thomas Guilbert <[email protected]>
Commit-Queue: Eugene Zemtsov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1437076}

--

wpt-commits: 1960f7d0132625698b80681577f265587cb4be26
wpt-pr: 51564
2025-03-26 09:40:53 +00:00
Dale Curtis eb8a15622a Bug 1955439 [wpt PR 51504] - Update video-decoder-no-size-in-configure to only check visible rect, a=testonly
Automatic update from web-platform-tests
Update video-decoder-no-size-in-configure to only check visible rect

The coded size of decoded frames is not guaranteed, it may vary based
on whatever the decoder thinks is appropriate for decoding. The visible
size is what should remain constant across an encode / decode cycle.

R=eugene

Fixed: 404905693
Change-Id: I21a80d35a130232eb0f720e4e880503334a31c0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6378425
Commit-Queue: Eugene Zemtsov <[email protected]>
Auto-Submit: Dale Curtis <[email protected]>
Reviewed-by: Eugene Zemtsov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1435672}

--

wpt-commits: dadeb9b1027c75d48c61e960a10973c1edc1c0b9
wpt-pr: 51504
2025-03-23 08:13:12 +00:00
Dale Curtis 810de1b5f1 Bug 1955159 [wpt PR 51479] - Implement VideoEncoder orientation support., a=testonly
Automatic update from web-platform-tests
Implement VideoEncoder orientation support.

This assumes the spec text will be written to say the following:
* The first frame after a configure() will lock in the orientation.
* Calling configure() again will reset the orientation metadata.
* If subsequent frames mismatch on orientation encode() will throw
a non-fatal exception.

R=eugene

Bug: 40243431
Change-Id: Id9d68f036e34fd5c697a49921c853c4f199195f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6311293
Reviewed-by: Eugene Zemtsov <[email protected]>
Commit-Queue: Eugene Zemtsov <[email protected]>
Commit-Queue: Dale Curtis <[email protected]>
Auto-Submit: Dale Curtis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1435163}

--

wpt-commits: 96e039f795d305842397e32fbfc06604a2faa36e
wpt-pr: 51479
2025-03-23 08:12:45 +00:00
Dale Curtis b8505b513e Bug 1953222 [wpt PR 51264] - Fix VideoFrame construction for non-default visibleRects., a=testonly
Automatic update from web-platform-tests
Fix VideoFrame construction for non-default visibleRects.

When constructing from a buffer source, VideoFrame construction was
not properly taking the visible data into account. This is always
tricky to get right, so instead of replicating fragile code, the
fix just lets media::VideoFrame handle all the work.

A new web platform test is added to verify the correct behavior.

R=eugene

Fixed: 402171646
Change-Id: I6860a4dee3347c9cb1975028abd0049c5e90374c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6341248
Reviewed-by: Eugene Zemtsov <[email protected]>
Commit-Queue: Eugene Zemtsov <[email protected]>
Auto-Submit: Dale Curtis <[email protected]>
Commit-Queue: Dale Curtis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1430997}

--

wpt-commits: 3ea11d8a827d92546668780e1827eeb32b1a85bc
wpt-pr: 51264
2025-03-18 10:40:24 +00:00
maryla-uc 19ac506a46 Bug 1949129 [wpt PR 50792] - Update four-colors-flip.avif, a=testonly
Automatic update from web-platform-tests
Update four-colors-flip.avif (#50792)

The existing file was not compliant because the track
had a handler type of "vide" instead of "pict".
Compliance Warden reports the following error:
[avif][Rule #10] Error: Primary item that is an AV1 image item found,
but no track with 'pict' handler found.
--

wpt-commits: 00061c894620734c21a3f314558dafd5e4a4e798
wpt-pr: 50792
2025-02-28 06:53:51 +00:00
Christopher Cameron 61f5cc1c9f Bug 1948235 [wpt PR 50710] - WPT tests: Remove use of never-shipped APIs, a=testonly
Automatic update from web-platform-tests
WPT tests: Remove use of never-shipped APIs

Some WPT tests use the ImageDataSettings {storageFormat:"uint8"} API.
This never shipped.

Some WPT tests also use the PredefinedColorSpace "rec2020". This, too,
never shipped.

Bug: 40277213
Change-Id: Ie99cc6bba6dc59986157e12447b21a8cc9cc16f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6253238
Reviewed-by: Philip Jägenstedt <[email protected]>
Commit-Queue: ccameron chromium <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1420403}

--

wpt-commits: fad8d1b80a9e290bdeb1c7c2fa30f969cf1c4922
wpt-pr: 50710
2025-02-18 09:16:03 +00:00
Dale Curtis 6e4cb41e67 Bug 1947322 [wpt PR 50618] - Implement orientation support for WebCodecs VideoDecoder., a=testonly
Automatic update from web-platform-tests
Implement orientation support for WebCodecs VideoDecoder.

This implements the current spec language by copying the provided
transform from the VideoDecoderConfig to each output frame. See
https://github.com/w3c/webcodecs/pull/874 for spec details.

As part of this, the codec specific wpt test code is split into
its own file to make adding new tests (to avoid breaking interop
agreements).

R=eugene

Bug: 327625558
Change-Id: I7c96007a27a634c8da80b72266171c8e13645e46
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6221543
Commit-Queue: Dale Curtis <[email protected]>
Reviewed-by: Eugene Zemtsov <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1418353}

--

wpt-commits: e905cf1339f0f65cbd8c063f4699aaeae4126587
wpt-pr: 50618
2025-02-12 13:35:36 +00:00
Lukasz Anforowicz c31d772b94 Bug 1943459 [wpt PR 50253] - [rust png] Legacy codec: Report failure for truncated, complete input., a=testonly
Automatic update from web-platform-tests
[rust png] Legacy codec: Report failure for truncated, complete input.

This CL modifies `blink::PNGImageDecoder` to call `SetFailed` when
working with a truncated, complete input.  Before this CL the code
has incorrectly treated this situation as recoverable.

After this CL, the behavior of `blink::PNGImageDecoder` matches that
of `blink::SkiaImageDecoderBase`.  Aligning the behavior it the main
motivation for this CL.

Bug: chromium:391701378
Change-Id: I499a69da6994659ea03dc93967779f691436d0d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6191776
Reviewed-by: Peter Kasting <[email protected]>
Reviewed-by: Dale Curtis <[email protected]>
Commit-Queue: Łukasz Anforowicz <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1410559}

--

wpt-commits: 2ec2b730952d6145b9c16156207bd026a66cc736
wpt-pr: 50253
2025-01-28 08:35:06 +00:00
Qiu Jianlin af524a3a43 Bug 1942612 [wpt PR 50174] - Fix per-frame-qp WPT test page for HEVC., a=testonly
Automatic update from web-platform-tests
Fix per-frame-qp WPT test page for HEVC.

Correct VideoEncoderConfig's member name.

Bug: 40242198
Change-Id: Ia36bde67af796bd847c5753a05a4ac6c98d8b77e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6184842
Commit-Queue: Jianlin Qiu <[email protected]>
Reviewed-by: Eugene Zemtsov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1408599}

--

wpt-commits: 760dad3c27cbb550d803f0ddf3e1c6498a81f2e6
wpt-pr: 50174
2025-01-21 09:33:57 +00:00
Qiu Jianlin 5274c80141 Bug 1941943 [wpt PR 50111] - [Win] Add per-frame-qp support for HEVC encoding, a=testonly
Automatic update from web-platform-tests
[Win] Add per-frame-qp support for HEVC encoding

Make sure https://www.w3.org/TR/webcodecs-hevc-codec-registration/ is
implemented on Windows.

Bug: 40242198
Change-Id: I0e4dbbd407de53716ce92324d14dce1d3bf2b544
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6177205
Commit-Queue: Jianlin Qiu <[email protected]>
Reviewed-by: Eugene Zemtsov <[email protected]>
Reviewed-by: Brian Sheedy <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1407094}

--

wpt-commits: 3fb9825ad9ae531239e31ba0ae934afb980c7331
wpt-pr: 50111
2025-01-20 08:36:29 +00:00
Dan Sanders ce0d010094 Bug 1940309 [wpt PR 49959] - Remove sandersdan from webcodecs/META.yml, a=testonly
Automatic update from web-platform-tests
Remove sandersdan from META.yml (#49959)

--

wpt-commits: af79237f19142a4639a03b4650fcd621156730b4
wpt-pr: 49959
2025-01-10 09:27:19 +00:00
Chun-Min Chang 03b5ed3343 Bug 1928120 - Add a testcase r=media-playback-reviewers,alwu
This patch introduces a new WPT verifying that `VideoDecoder` can decode
data without providing an image size during `configure()` step. Although
the issue was initially observed with the VP8 decoder
(FFmpegVideoDecoder via libvpx), the test applies to all supported
codecs, ensuring robust behavior across different decoder
implementations.

Differential Revision: https://phabricator.services.mozilla.com/D232914
2024-12-31 01:12:48 +00:00
Chun-Min Chang 2e72707782 Bug 1936352 - VideoEncoder: Return unsupported for codec strings with spaces r=media-playback-reviewers,alwu
This patch fixes a crash that occurs when a codec string with leading
spaces is passed to `VideoEncoder::IsConfigSupported`.

The crash happens because `VideoEncoderConfigInternal::ToEncoderConfig`
assumes that its codec string member begins with a supported codec name
(which should be non-space character). When the codec string has leading
spaces, this assumption is invalidated, leading to a crash.

To resolve this issue, the patch removes the space-trimming in
`CanEncode` and calling `IsSupportedVideoCodec` with the given codec
string directly before `ToEncoderConfig`. By doing so, codec strings
with leading spaces are correctly identified as "unsupported", and
`ToEncoderConfig` is not invoked with invalid input, preventing the
crash.

Additionally, this patch adds a WPT to ensure that codec string
containing spaces are reported as "unsupported" and the no crash occurs
when such strings are processed.

Differential Revision: https://phabricator.services.mozilla.com/D231719
2024-12-23 17:50:42 +00:00
Chun-Min Chang 7ce7a6d4db Bug 1931827 - AudioEncoder: Return unsupported for codec strings with spaces r=media-playback-reviewers,alwu
This patch updates AudioEncoder to return "unsupported" for codec
strings containing spaces, consistent with the approach taken in the
preceding patch.

By moving `IsSupportedAudioCodec` to `CanEncode` and removing the
unnecessary codec string trimming, AudioEncoder now behaves as expected
since codec string with spaces fails to pass `IsSupportedAudioCodec`'s
check.

A WPT is also added to verify that AudioEncoder returns "unsupported"
when passing codec strings that contains spaces to `IsConfigSupported`
or `configure`.

Differential Revision: https://phabricator.services.mozilla.com/D231718
2024-12-23 17:50:41 +00:00
Chun-Min Chang 0132d73ca6 Bug 1931827 - AudioDecoder: Return unsupported for codec strings with spaces r=media-playback-reviewers,alwu
This patch updates AudioDecoder to return "unsupported" for codec
strings containing spaces, consistent with the approach taken in the
preceding patch.

As part of this update, the `AudioMIMECreateParam` class is removed
since there is no longer a need to trim spaces from codec strings. Any
codec string containing spaces is immediately considered "unsupported".

Additionally, this patch adds a WPT to verify that AudioDecoder
correctly returns "unsupported" for codec strings with spaces, ensuring
the decoder behaves as expected.

Differential Revision: https://phabricator.services.mozilla.com/D231717
2024-12-23 17:50:41 +00:00
Chun-Min Chang 481dbee347 Bug 1931827 - VideoDecoder: Return unsupported for codec strings with spaces r=media-playback-reviewers,alwu
Previously, codec strings containing spaces were trimmed, and
VideoDecoder would report them as "supported". However, per changes
introduced in PR #48870 [1], such codec strings, while "valid" in terms
of syntax, should be considered "unsupported" by the VideoDecoder.

Given that codec strings with spaces should be marked as "unsupported",
it's unnecessary to parse these codec strings before checking if they
are supported video codecs. The underlying checking method reports codec
strings containing spaces as "unsupported", naturally aligning with the
expected behavior.

[1] https://github.com/web-platform-tests/wpt/pull/48870

Differential Revision: https://phabricator.services.mozilla.com/D231716
2024-12-23 17:50:40 +00:00
Christoph Guttandin d0102842a0 Bug 1911245 [wpt PR 47429] - [webcodecs] Add vorbis test case, a=testonly
Automatic update from web-platform-tests
Add vorbis test case

--
Ignore *.ogg files when linting

--
Remove whitespace

--
Use full config when checking for codec support

--
Handle priming samples discarded by vorbis

--
Add accidentially removed handling for unsupported codecs

--
Explain description for vorbis codec

--

wpt-commits: b5ddbed0d2e23772f881adae6adda75d1c438a41, c6f16338bd4a855f7f3a1400199447dc67bfb024, 9b889f5013eda0ee6bf77669303595946f8b3536, 98347e02f86af09f5c0068ccbe26e8581d08694e, d6dd417771d3bb27e098ad0534375f6c288963b9, 4c4211933dc921706e8287ab6433c8f568635f9a, 550fb109615cf434b03b30b76aa0dea6bfb0ebe1
wpt-pr: 47429
2024-11-28 11:57:46 +00:00
Eugene Zemtsov 5a590ae2f2 Bug 1927948 [wpt PR 48870] - Move 'valid codec with spaces' to validButUnsupportedConfigs configs, a=testonly
Automatic update from web-platform-tests
Move 'valid codec with spaces' to validButUnsupportedConfigs configs (#48870)

* Move 'valid codec with spaces' to validButUnsupported configs

UA is not expected to support codec strings with whitespaces around it, even though it's a valid config.

* Remove trailing whitespaces at line 100
--

wpt-commits: 30ee69b644196db4964bc2597d6aad7d37e3beed
wpt-pr: 48870
2024-11-27 16:48:29 +00:00
Marten Richter b9c6bf027a Bug 1921623 - Adding rescaling support to WMFMediaDataEncoder r=chunmin
This patch adds rescaling support to WMFMediaDataEncoder.
It fixes distorted Images when rescaling.
Furthermore, wpt tests are added to find similar errors on other platforms.
Includes revisions by chunmin

Differential Revision: https://phabricator.services.mozilla.com/D225445
2024-11-21 03:25:39 +00:00
Marten Richter 59383c4a20 Bug 1927280 - Prevents for h264 attaching SPS and PPS Nalu if already present on Windows r=chunmin
This patch prevents adding the SPS and PPS present in extradata WMFMediaDataEncoder,
if the data already contains SPS and PPS. Otherwise, the resulting Byte stream would
 not be spec complained and be rejected by Chromium, for example.
It also includes a WPT test.

Differential Revision: https://phabricator.services.mozilla.com/D226985
2024-11-21 03:25:30 +00:00
Cristina Horotan 119e6f8a49 Backed out 39 changesets (bug 1932057, bug 1931932, bug 1931968, bug 1931969, bug 1932001, bug 1931937, bug 1931882, bug 1931995, bug 1931975, bug 1931879, bug 1932009, bug 1931448, bug 1932015, bug 1931912, bug 1927948, bug 1931923, bug 1932026, bug 1931999, bug 1931875, bug 1931981, bug 1931895, bug 1931126, bug 1930534, bug 1932077, bug 1931955) for causing wpt failures ShadowRealm related
Backed out changeset 13ebc1b5ef8e (bug 1932077)
Backed out changeset a0c02fa6ece7 (bug 1932026)
Backed out changeset a03fdf9cc2ea (bug 1932057)
Backed out changeset fdc02b8115ba (bug 1932057)
Backed out changeset e48c6e6ed430 (bug 1932009)
Backed out changeset 2c58a9927b34 (bug 1932009)
Backed out changeset 3c72550ec134 (bug 1932015)
Backed out changeset 19c27654bc2a (bug 1932001)
Backed out changeset 3f70f0dfa126 (bug 1931999)
Backed out changeset 15928df9cf2e (bug 1931999)
Backed out changeset 87371d78ed4e (bug 1931995)
Backed out changeset c9d90492cb6e (bug 1931448)
Backed out changeset 7b4a08d3a473 (bug 1931448)
Backed out changeset 8fee75905953 (bug 1931126)
Backed out changeset 1cb731d69125 (bug 1931126)
Backed out changeset 66fbbddb5895 (bug 1930534)
Backed out changeset 0a625225a525 (bug 1930534)
Backed out changeset ce191cb10c4d (bug 1931981)
Backed out changeset abc45a300701 (bug 1931975)
Backed out changeset f3d139af80a1 (bug 1931955)
Backed out changeset 7726ba113e46 (bug 1931955)
Backed out changeset eacb3e62688f (bug 1931968)
Backed out changeset ebf7d0374aa2 (bug 1931968)
Backed out changeset 969e670282e1 (bug 1931969)
Backed out changeset 0aa42f2f7af7 (bug 1931937)
Backed out changeset 1bc5ed8ce26d (bug 1931937)
Backed out changeset 8c6399a25139 (bug 1927948)
Backed out changeset 6c135cb96bab (bug 1927948)
Backed out changeset c5151a9fb53a (bug 1931923)
Backed out changeset c7644c5cd474 (bug 1931923)
Backed out changeset 18f18480637f (bug 1931932)
Backed out changeset 5e4e0baf94ba (bug 1931912)
Backed out changeset 2890be320ac4 (bug 1931882)
Backed out changeset 397355de74b0 (bug 1931882)
Backed out changeset 70149a7a1993 (bug 1931895)
Backed out changeset 0661a65a2454 (bug 1931875)
Backed out changeset 6b098292cbe3 (bug 1931875)
Backed out changeset 62239921d19b (bug 1931879)
Backed out changeset 73e41baa89bb (bug 1931879)
2024-11-20 15:55:56 +02:00
Eugene Zemtsov 3589643064 Bug 1927948 [wpt PR 48870] - Move 'valid codec with spaces' to validButUnsupportedConfigs configs, a=testonly
Automatic update from web-platform-tests
Move 'valid codec with spaces' to validButUnsupportedConfigs configs (#48870)

* Move 'valid codec with spaces' to validButUnsupported configs

UA is not expected to support codec strings with whitespaces around it, even though it's a valid config.

* Remove trailing whitespaces at line 100
--

wpt-commits: 30ee69b644196db4964bc2597d6aad7d37e3beed
wpt-pr: 48870
2024-11-20 09:14:54 +00:00
Eugene Zemtsov c26a97705d Bug 1931656 [wpt PR 49210] - webcodecs: Fix plane size for VideoFrames that transfer ArrayBuffers, a=testonly
Automatic update from web-platform-tests
webcodecs: Fix plane size for VideoFrames that transfer ArrayBuffers

Before this change we would lose the last row of I420 frames with an odd
number of rows.

Bug: 379066963
Change-Id: I19c1459984645eda718e7e84fd3ccb773fea1f45
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6026685
Reviewed-by: Dale Curtis <[email protected]>
Commit-Queue: Eugene Zemtsov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1383923}

--

wpt-commits: 100af9edd3180d28901b566c3f5ae4c8ddd36d7d
wpt-pr: 49210
2024-11-17 08:03:24 +00:00
Dan Sanders 543b4229b2 Bug 1929692 [wpt PR 49013] - [webcodecs] Add rotation and flip init options on VideoFrame, a=testonly
Automatic update from web-platform-tests
[webcodecs] Add rotation and flip init options on VideoFrame

This change implements `rotation` and `flip` options in `VideoFrameInit`
and `VideoFrameBufferInit`, as described in
https://github.com/w3c/webcodecs/issues/351#issuecomment-2359389479.

Bug: 40243431
Change-Id: I9eae4f4f101df7a285abd6575f7271b7589a512c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5939863
Reviewed-by: Eugene Zemtsov <[email protected]>
Commit-Queue: Eugene Zemtsov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1379353}

--

wpt-commits: a525424ff744bca3cb7e11c8aa19127c95a60cb0
wpt-pr: 49013
2024-11-07 14:50:48 +00:00
Dale Curtis 5894ffb886 Bug 1926476 [wpt PR 48766] - Bump maximum video frame size by one bit., a=testonly
Automatic update from web-platform-tests
Bump maximum video frame size by one bit.

This increases the maximum canvas size from 268,435,456 or roughly
16384x16384 to 536,870,911 or roughly 23170x23170. This increase
still allows us to represent up to 8 bytes per pixel (which matches
our largest pixel formats) without overflowing a uint32_t.

This also updates the file to use inline constexpr per the
presubmit check and adds tests for these allocation limits.

Fixed: 374807001
Change-Id: I7eef8b488fa758bfcd0202917469d585724e23ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5955549
Commit-Queue: Eugene Zemtsov <[email protected]>
Auto-Submit: Dale Curtis <[email protected]>
Reviewed-by: Eugene Zemtsov <[email protected]>
Commit-Queue: Dale Curtis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1372466}

--

wpt-commits: 9220b4d4810e89642f7b21609cee40de875ebce8
wpt-pr: 48766
2024-10-24 06:57:54 +00:00
Chun-Min Chang 0068d655ca Bug 1917721 - Make AAC-w/o-description WPT a mozilla-specific WPT r=media-playback-reviewers,padenot
Due to the ongoing discussion in issue 832 [1], which has not yet
reached a consensus among all parties, the AAC-without-description WPT
introduced in the previous patch should be relocated to the *mozilla*
folder under WPT. This ensures that the test remains specific to Mozilla
and avoids unintentionally causing failures in other browers' test
suites.

[1] https://github.com/w3c/webcodecs/issues/832

Differential Revision: https://phabricator.services.mozilla.com/D222712
2024-10-03 21:53:27 +00:00