| Summary: | [GTK][WPE] Add support to render video frames with non RGBA/BGRA/ARGB formats through cairo | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Miguel Gomez <magomez> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | bugs-noreply |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Miguel Gomez
2021-05-27 05:31:02 PDT
> At the current revision (r278153) drawing video frames into a non
> accelerated is not supported at all
> (MediaPlayerPrivateGStreamer::nativeImageForCurrentTime returns nullptr). I
> guess the support was removed because of these new formats. Also, this is
> related to need to rotate the video frame according to the orientation flags
> and removing the dependency of videoflip (which is being handled here
> https://bugs.webkit.org/show_bug.cgi?id=225456).
Ah, seems that things have change and now painting into a canvas doesn't use MediaPlayerPrivateGStreamer::nativeImageForCurrentTime, but it ends calling paint in MediaPlayerPrivateGStreamer. So canvas rendering is working in the end. The need to support the video formats is still there though.
After some more digging it seems that the video frame is converted to some RGBx/RBGA format before trying to create the cairo surface from it, so this is not really necessary. |