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)

task

Tracking

()

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:

  1. Update VideoDecoderConfig WebIDL: Add the rotation and flip attributes.
  2. Modify the Output VideoFrames Algorithm: Set the rotation and flip values from the currently active VideoDecoderConfig onto the decoded VideoFrames, 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.

Blocks: 1995193
See Also: → 2066951
You need to log in before you can comment on or make changes to this bug.