blob: 7f3a3fc57efe47964e51ca66636c7e1329eaa8d2 [file] [log] [blame]
// Copyright 2013 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/cast_config.h"
#include "media/base/audio_codecs.h"
#include "media/base/video_codecs.h"
namespace media::cast {
AudioCodec ToAudioCodec(Codec codec) {
switch (codec) {
case Codec::kAudioOpus:
return AudioCodec::kOpus;
case Codec::kAudioPcm16:
return AudioCodec::kPCM;
case Codec::kAudioAac:
return AudioCodec::kAAC;
case Codec::kAudioRemote:
default:
return AudioCodec::kUnknown;
}
}
VideoCodec ToVideoCodec(Codec codec) {
switch (codec) {
case Codec::kVideoVp8:
return VideoCodec::kVP8;
case Codec::kVideoH264:
return VideoCodec::kH264;
case Codec::kVideoVp9:
return VideoCodec::kVP9;
case Codec::kVideoAv1:
return VideoCodec::kAV1;
case Codec::kVideoFake:
case Codec::kVideoRemote:
default:
return VideoCodec::kUnknown;
}
}
VideoCodecParams::VideoCodecParams() = default;
VideoCodecParams::VideoCodecParams(const VideoCodecParams& other) = default;
VideoCodecParams::VideoCodecParams(VideoCodecParams&& other) = default;
VideoCodecParams& VideoCodecParams::operator=(const VideoCodecParams& other) =
default;
VideoCodecParams& VideoCodecParams::operator=(VideoCodecParams&& other) =
default;
VideoCodecParams::~VideoCodecParams() = default;
FrameSenderConfig::FrameSenderConfig() = default;
FrameSenderConfig::FrameSenderConfig(const FrameSenderConfig& other) = default;
FrameSenderConfig::FrameSenderConfig(FrameSenderConfig&& other) = default;
FrameSenderConfig& FrameSenderConfig::operator=(
const FrameSenderConfig& other) = default;
FrameSenderConfig& FrameSenderConfig::operator=(FrameSenderConfig&& other) =
default;
FrameSenderConfig::~FrameSenderConfig() = default;
FrameReceiverConfig::FrameReceiverConfig() = default;
FrameReceiverConfig::FrameReceiverConfig(const FrameReceiverConfig& other) =
default;
FrameReceiverConfig::FrameReceiverConfig(FrameReceiverConfig&& other) = default;
FrameReceiverConfig& FrameReceiverConfig::operator=(
const FrameReceiverConfig& other) = default;
FrameReceiverConfig& FrameReceiverConfig::operator=(
FrameReceiverConfig&& other) = default;
FrameReceiverConfig::~FrameReceiverConfig() = default;
} // namespace media::cast