Closed Bug 946027 Opened 10 years ago Closed 10 years ago

MSE needs to expose the layer manager backend type to MP4Reader

Categories

(Core :: Audio/Video, defect)

x86_64
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: cpearce, Assigned: kinetik)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

The BufferDecoder that owns the MP4Reader doesn't return a MediaDecoderOwner in its GetOwner() implementation, so MP4Reader::InitLayersBackendType() fails to determine the backend type, so it can't initialize DXVA.

The same thing happens when WMFReader is used in MSE.

This means we don't get DXVA decoding, which makes the perf fairy is sad.

We need a way to expose to the decoder whether it's safe to use hardware accelerated decoding or not.

Testcase: http://people.mozilla.org/~ydelendik/mse/demo-mse4.html
I haven't actually tested this, but it's a simple change.  There's probably other stuff on the SubBufferDecoders that need to be forwarded too; they'll be fixed as necessary.
Attachment #8413463 - Flags: review?(cpearce) → review+
https://hg.mozilla.org/mozilla-central/rev/dcbcab7596ae
Assignee: nobody → kinetik
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Target Milestone: mozilla32 → mozilla31
You need to log in before you can comment on or make changes to this bug.