Save unnecessary copies in VideoDecoder
Categories
(Core :: Audio/Video: Web Codecs, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox117 | --- | fixed |
People
(Reporter: chunmin, Assigned: chunmin)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
D182476 in bug 1831451 will add a VideoDecoderConfigInternal class to hold data from VideoDecoderConfig. However, with the changes, description data from VideoDecoderConfig will be copied twice in VideoDecoder::Configure and VideoDecoder::IsConfigSupported (See https://phabricator.services.mozilla.com/D182476?id=737377#inline-1011335).
We should make it copy once
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
Depends on D182533
| Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 3•3 years ago
|
||
This patch reworks CanDecode(). By making it accept not only
VideoDecoderConfigInternal but also VideoDecoderConfig as its argument,
the description data copied by converting VideoDecoderConfig to
VideoDecoderConfigInternal when checking the decodable information for
the given VideoDecoderConfig can be saved.
Depends on D182534
Updated•3 years ago
|
Updated•3 years ago
|
Comment 5•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/af5948aa8a7f
https://hg.mozilla.org/mozilla-central/rev/da31720ea44f
https://hg.mozilla.org/mozilla-central/rev/b5482dea9fce
Description
•