Avoid copying hardware decoded video data if possible on Windows
Categories
(Core :: Audio/Video: Playback, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox100 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: sotaro)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file, 1 obsolete file)
This is the copy here:
https://searchfox.org/mozilla-central/rev/9c91451cc2392d942a42493fc895f5aeeddde45d/dom/media/platforms/wmf/DXVA2Manager.cpp#911
We currently reuse the device on AMD hardware and could potentially elsewhere if this turns out to work well.
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Comment 1•3 years ago
|
||
On my Skylake machine, this copy takes about 2ms of GPU time for a 4k frame.
Assignee | ||
Comment 2•3 years ago
|
||
See also Bug 1724949 comment 7.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Assignee | ||
Comment 4•2 years ago
•
|
||
These diagrams might help
- Diagram of Firefox video decoding with Microsoft Media Foundation
- Diagram of Chromium video decoding with Microsoft Media Foundation
Another diagrams
Assignee | ||
Comment 5•2 years ago
|
||
Video overlay could be 3 types. And decode swap chains do not support shared resources. It causes a problem to video rendering to WebGL texture.
-
RGB SwapChain overlay
-
YUV SwapChain overlay
-
DecodeSwapChain overlay
WebGL uses different D3D11Device, then we need to get SharedHandle from ID3D11Texture2D.
Then for now, I am going to disable DecodeSwapChain overlay for using SharedHandle of ID3D11Texture2D.
Updated•2 years ago
|
Assignee | ||
Comment 6•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 7•2 years ago
|
||
Current implementation uses shared handle for ID3D11Texture2D. Then, Bug 1722987 is not necessary for now.
Updated•2 years ago
|
Pushed by sikeda.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3ad7a42b1ad1 Avoid copying hardware decoded video data if possible on Windows r=media-playback-reviewers,gfx-reviewers,jrmuizel,alwu
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Comment 9•2 years ago
|
||
bugherder |
Description
•