Repository navigation
merge_pr_64037
Rotated VideoFrames should be properly rendered (#64037)
We introduce VideoFrame::orientation and VideoFrame::rotatedSize as helpers.
We then use those when creating an image bitmap or when rendering to canvas 2d/webgl.
When we need RGB data from video frames via getNativeImage, we apply the rotation in GPU process then convert to RGB as NativeImage does not handle rotation.
We add specific handling for MediaPlayerPrivateMediaStreamAVFObjC which, in WK1 still needs to handle rotation when painting a video frame.
Covered by added WPT tests.
WebKit-Bug: https://bugs.webkit.org/show_bug.cgi?id=328453