Repository navigation
[WebCodecs] imported/w3c/web-platform-tests/webcodecs/video-encoder-config.https.any.html has two sub-tests failing - #78231
Conversation
|
EWS run on previous version of this PR (hash f0621bb) Details |
youennf
left a comment
There was a problem hiding this comment.
r=me for bitrate change.
I am less sure about the other video frame big size case.
| return false; | ||
|
|
||
| if (config.bitrate && !*config.bitrate) | ||
| return false; |
There was a problem hiding this comment.
Maybe we should have the spec mention this case.
| if (config.codec.startsWith("avc1."_s) && (!!(config.width % 2) || !!(config.height % 2))) | ||
| return Exception { ExceptionCode::TypeError, "H264 only supports even sized frames"_s }; | ||
|
|
||
| if (config.hardwareAcceleration == HardwareAcceleration::PreferHardware && (config.width >= 30000 || config.height >= 30000)) |
There was a problem hiding this comment.
This one is not covered, should we move it to another PR.
Also why the choice of 30000, is it the same as Chromium and/or Firefox
There was a problem hiding this comment.
I checked only Chromium so far, I think the limit is per codec, https://chromium.googlesource.com/chromium/src/+/main/third_party/blink/renderer/modules/webcodecs/video_encoder.cc#242 so using a fixed value here doesn't seem correct actually.
There was a problem hiding this comment.
I'm removing this change...
|
EWS run on current version of this PR (hash 881a1be) Details |
…onfig.https.any.html has two sub-tests failing https://bugs.webkit.org/show_bug.cgi?id=328842 Reviewed by Youenn Fablet. Reject video encoder configurations containing a zero bitrate. * LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-config.https.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder-config.https.any.worker-expected.txt: * Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp: (WebCore::isValidEncoderConfig): Canonical link: https://commits.webkit.org/324824@main
881a1be to
cf3e6fe
Compare
|
Committed 324824@main (cf3e6fe): https://commits.webkit.org/324824@main Reviewed commits have been landed. Closing PR #78231 and removing active labels. |
cf3e6fe
881a1be
🛠 mac🛠 wpe🧪 wpe-wk2🧪 win-tests🧪 api-mac🧪 api-wpe🧪 api-mac-cmake-debug🧪 jsc-wpe🧪 mac-wk2🧪 mac-wk2-stress🧪 gtk-wk2🧪 mac-intel-wk2🧪 api-gtk🧪 mac-site-isolation