#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 {
template <typename T>
bool IsMissingCodecs(const std::vector<T>& first,
const std::vector<T>& second) { … }
template <typename T>
bool HasLessRestrictiveLimits(std::vector<T> first, std::vector<T> second) { … }
}
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 { … }
}