mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
Issue #2357 - VPXDecoder does not decode alpha frames.
Another requirement to have transparency in videos. Straight port of Firefox 53 implementation, save for some oddities relating to needing to put uint8_t instead of uint8 in yuv_convert to get this to compile. Ref: BZ 1321076, 1329104
This commit is contained in:
parent
71cc0ef940
commit
c0ba3a8d2e
9 changed files with 315 additions and 65 deletions
|
|
@ -32,6 +32,13 @@ public:
|
|||
already_AddRefed<MediaDataDecoder>
|
||||
CreateVideoDecoder(const CreateDecoderParams& aParams) override
|
||||
{
|
||||
// Temporary - forces use of VPXDecoder when alpha is present.
|
||||
// Bug 1263836 will handle alpha scenario once implemented. It will shift
|
||||
// the check for alpha to PDMFactory but not itself remove the need for a
|
||||
// check.
|
||||
if (aParams.VideoConfig().HasAlpha()) {
|
||||
return nullptr;
|
||||
}
|
||||
RefPtr<MediaDataDecoder> decoder =
|
||||
new FFmpegVideoDecoder<V>(mLib,
|
||||
aParams.mTaskQueue,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue