#include "components/mirroring/service/mirror_settings.h"
#include <algorithm>
#include <string>
#include <utility>
#include "base/environment.h"
#include "base/feature_list.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "components/mirroring/service/mirroring_features.h"
#include "media/base/audio_codecs.h"
#include "media/base/audio_parameters.h"
#include "media/base/video_codecs.h"
ResolutionChangePolicy;
AudioCodecParams;
FrameSenderConfig;
RtpPayloadType;
VideoCodecParams;
namespace mirroring {
namespace {
constexpr int kAudioTimebase = …;
constexpr int kVideoTimebase = …;
constexpr int kAudioChannels = …;
constexpr int kAudioFramerate = …;
constexpr int kMinVideoBitrate = …;
constexpr int kMaxVideoBitrate = …;
constexpr int kAudioBitrate = …;
constexpr int kMaxFrameRate = …;
constexpr int kMaxWidth = …;
constexpr int kMaxHeight = …;
constexpr int kMinWidth = …;
constexpr int kMinHeight = …;
base::TimeDelta GetPlayoutDelayImpl() { … }
base::TimeDelta GetPlayoutDelay() { … }
}
MirrorSettings::MirrorSettings()
: … { … }
MirrorSettings::~MirrorSettings() { … }
FrameSenderConfig MirrorSettings::GetDefaultAudioConfig(
RtpPayloadType payload_type,
media::AudioCodec codec) { … }
FrameSenderConfig MirrorSettings::GetDefaultVideoConfig(
RtpPayloadType payload_type,
media::VideoCodec codec) { … }
void MirrorSettings::SetResolutionConstraints(int max_width, int max_height) { … }
void MirrorSettings::SetSenderSideLetterboxingEnabled(bool enabled) { … }
media::VideoCaptureParams MirrorSettings::GetVideoCaptureParams() { … }
media::AudioParameters MirrorSettings::GetAudioCaptureParams() { … }
}