mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-28 18:17:29 +09:00
Issue #1820 - Part 3: Use Codec detail extractor helper to tell if it's a new style VP8/VP9 codec string.
This commit is contained in:
parent
648430c9f1
commit
b272509dc3
1 changed files with 12 additions and 2 deletions
|
|
@ -642,15 +642,25 @@ IsAACCodecString(const nsAString& aCodec)
|
||||||
bool
|
bool
|
||||||
IsVP8CodecString(const nsAString& aCodec)
|
IsVP8CodecString(const nsAString& aCodec)
|
||||||
{
|
{
|
||||||
|
uint8_t profile = 0;
|
||||||
|
uint8_t level = 0;
|
||||||
|
uint8_t bitDepth = 0;
|
||||||
return aCodec.EqualsLiteral("vp8") ||
|
return aCodec.EqualsLiteral("vp8") ||
|
||||||
aCodec.EqualsLiteral("vp8.0");
|
aCodec.EqualsLiteral("vp8.0") ||
|
||||||
|
(StartsWith(NS_ConvertUTF16toUTF8(aCodec), "vp08") &&
|
||||||
|
ExtractVPXCodecDetails(aCodec, profile, level, bitDepth));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
IsVP9CodecString(const nsAString& aCodec)
|
IsVP9CodecString(const nsAString& aCodec)
|
||||||
{
|
{
|
||||||
|
uint8_t profile = 0;
|
||||||
|
uint8_t level = 0;
|
||||||
|
uint8_t bitDepth = 0;
|
||||||
return aCodec.EqualsLiteral("vp9") ||
|
return aCodec.EqualsLiteral("vp9") ||
|
||||||
aCodec.EqualsLiteral("vp9.0");
|
aCodec.EqualsLiteral("vp9.0") ||
|
||||||
|
(StartsWith(NS_ConvertUTF16toUTF8(aCodec), "vp09") &&
|
||||||
|
ExtractVPXCodecDetails(aCodec, profile, level, bitDepth));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MOZ_AV1
|
#ifdef MOZ_AV1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue