chromium/third_party/openscreen/src/cast/streaming/public/receiver_constraints.cc

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

#include "cast/streaming/public/receiver_constraints.h"

#include <algorithm>
#include <functional>
#include <memory>
#include <utility>
#include <vector>

#include "util/osp_logging.h"
#include "util/std_util.h"

namespace openscreen::cast {

namespace {
// Calculates whether any codecs present in |second| are not present in |first|.
template <typename T>
bool IsMissingCodecs(const std::vector<T>& first,
                     const std::vector<T>& second) {}

// Calculates whether the limits defined by |first| are less restrictive than
// those defined by |second|.
// NOTE: These variables are intentionally passed by copy - the function will
// mutate them.
template <typename T>
bool HasLessRestrictiveLimits(std::vector<T> first, std::vector<T> second) {}

}  // namespace

bool Display::IsSupersetOf(const Display& other) const {}

bool AudioLimits::IsSupersetOf(const AudioLimits& second) const {}

bool VideoLimits::IsSupersetOf(const VideoLimits& second) const {}

bool RemotingConstraints::IsSupersetOf(const RemotingConstraints& other) const {}

ReceiverConstraints::ReceiverConstraints() = default;
ReceiverConstraints::ReceiverConstraints(std::vector<VideoCodec> video_codecs,
                                         std::vector<AudioCodec> audio_codecs)
    :{}

ReceiverConstraints::ReceiverConstraints(std::vector<VideoCodec> video_codecs,
                                         std::vector<AudioCodec> audio_codecs,
                                         std::vector<AudioLimits> audio_limits,
                                         std::vector<VideoLimits> video_limits,
                                         std::unique_ptr<Display> description)
    :{}

ReceiverConstraints::ReceiverConstraints(ReceiverConstraints&&) noexcept =
    default;
ReceiverConstraints& ReceiverConstraints::operator=(
    ReceiverConstraints&&) noexcept = default;

ReceiverConstraints::ReceiverConstraints(const ReceiverConstraints& other) {}

ReceiverConstraints& ReceiverConstraints::operator=(
    const ReceiverConstraints& other) {}

bool ReceiverConstraints::IsSupersetOf(const ReceiverConstraints& other) const {}

}  // namespace openscreen::cast