Open
Bug 1995191
Opened 1 year ago
Updated 2 months ago
Implement `rotation` and `flip` support in VideoDecoder
Categories
(Core :: Audio/Video: Web Codecs, task, P3)
Core
Audio/Video: Web Codecs
Tracking
()
NEW
People
(Reporter: chunmin, Unassigned)
References
(Depends on 1 open bug, Blocks 2 open bugs)
Details
Once VideoFrame's rotation and flip support has been implemented (Bug 1995151), extending the these properties to VideoDecoder should be straightforward.
This work involves two main tasks:
- Update
VideoDecoderConfigWebIDL: Add therotationandflipattributes. - Modify the Output VideoFrames Algorithm: Set the
rotationandflipvalues from the currently activeVideoDecoderConfigonto the decodedVideoFrames, as step 6
For this implementation, in addition to updating the WebIDL, we also need to add rotation and flip to VideoDecoderConfigInternal, which represents the internal version of VideoDecoderConfig stripped of unnecessary DOM elements. This allows DecoderTemplate::OutputDecodedData to pass the correct values to VideoDecoder::DecodedDataToOutputType, ensuring that the decoded VideoFrame has the proper rotation and flip values applied.
The expected outcome is to pass the videoDecoder-codec-specific-orientation.https.any.js WPT.
You need to log in
before you can comment on or make changes to this bug.
Description
•