Issue #1820 - Part 8: Check bit depth in PDM::Supports.

This commit is contained in:
Moonchild 2022-04-27 16:08:36 +00:00 committed by roytam1
commit 009fb3146f
3 changed files with 38 additions and 4 deletions

View file

@ -77,6 +77,21 @@ public:
}
}
protected:
bool SupportsBitDepth(const uint8_t aBitDepth,
DecoderDoctorDiagnostics* aDiagnostics) const override
{
// We don't support bitDepth > 8 when compositor backend is D3D11.
// But we don't have KnowsCompositor or any object
// that we can ask for the layersbackend type.
// We should remove this restriction until
// we solve the D3D11 compositor backend issue.
#if defined(XP_LINUX) || defined(XP_MACOSX)
return true;
#endif
return aBitDepth == 8;
}
private:
FFmpegLibWrapper* mLib;
};