1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
media / cast / encoding / encoding_util.cc [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/cast/encoding/encoding_util.h"
#include "media/base/media_switches.h"
namespace media::cast {
uint8_t GetEncoderDropFrameThreshold() {
// Use a smaller frame drop threshold than WebRTC (30) because a user expects
// frames are not dropped so much in cast mirroring.
return base::FeatureList::IsEnabled(kCastVideoEncoderFrameDrop) ? 10 : 0;
}
} // namespace media::cast