chromium/components/mirroring/service/mirror_settings.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;  // 100 FPS for 10ms packets.
constexpr int kMinVideoBitrate =;
constexpr int kMaxVideoBitrate =;
constexpr int kAudioBitrate =;   // 0 means automatic.
constexpr int kMaxFrameRate =;  // The maximum frame rate for captures.
constexpr int kMaxWidth =;    // Maximum video width in pixels.
constexpr int kMaxHeight =;   // Maximum video height in pixels.
constexpr int kMinWidth =;     // Minimum video frame width in pixels.
constexpr int kMinHeight =;    // Minimum video frame height in pixels.

base::TimeDelta GetPlayoutDelayImpl() {}

base::TimeDelta GetPlayoutDelay() {}

}  // namespace

MirrorSettings::MirrorSettings()
    :{}

MirrorSettings::~MirrorSettings() {}

// static
FrameSenderConfig MirrorSettings::GetDefaultAudioConfig(
    RtpPayloadType payload_type,
    media::AudioCodec codec) {}

// static
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() {}

}  // namespace mirroring