Bug 1921154 - add AV1 pref;r=pehrsons

Differential Revision: https://phabricator.services.mozilla.com/D223803
This commit is contained in:
Nico Grunbaum 2024-11-20 21:21:14 +00:00
parent 9bc73e1993
commit b3ba0d4a00
3 changed files with 19 additions and 0 deletions

View File

@ -2080,6 +2080,14 @@ bool WebrtcVideoConduit::HasH264Hardware() {
status == nsIGfxInfo::FEATURE_STATUS_OK;
}
bool WebrtcVideoConduit::HasAv1() {
#if defined(MOZ_AV1)
return true;
#else
return false;
#endif
}
Maybe<int> WebrtcVideoConduit::ActiveSendPayloadType() const {
MOZ_ASSERT(mCallThread->IsOnCurrentThread());

View File

@ -69,6 +69,8 @@ class WebrtcVideoConduit
public:
// Returns true when both encoder and decoder are HW accelerated.
static bool HasH264Hardware();
// Returns true when AV1 is supported in the build.
static bool HasAv1();
Maybe<int> ActiveSendPayloadType() const override;
Maybe<int> ActiveRecvPayloadType() const override;

View File

@ -11996,6 +11996,15 @@
#endif
mirror: always
- name: media.webrtc.codec.video.av1.enabled
type: RelaxedAtomicBool
#if defined(MOZ_AV1)
value: @IS_NIGHTLY_BUILD@
#else
value: false
#endif
mirror: always
- name: media.webrtc.tls_tunnel_for_all_proxy
type: bool
value: true