VideoFrame copyTo() behavior with non-RGBA/RGBX/BGRA/BGRX formats
domenic opened this issue · comments
From what I can tell from https://w3c.github.io/webcodecs/#dom-videoframe-copyto , formats that are not one of the four allowed formats are... ignored?
This seems like surprising behavior. I would expect the returned promise to get rejected with an exception. Otherwise, web developers might think that they can convert a VideoFrame to one of the many other possible formats.
Nevermind, I found it in a sub-algorithm. https://w3c.github.io/webcodecs/#videoframe-parse-videoframecopytooptions