blob: a06e6ca4221c69ba9a77afed9d5dd8c746f48a01 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/strings/string_util.h"
#include "chromecast/public/media/media_capabilities_shlib.h"
namespace chromecast {
namespace media {
bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec,
VideoProfile profile,
int level) {
return (codec == kCodecH264 || codec == kCodecVP8 || codec == kCodecVP9);
}
bool MediaCapabilitiesShlib::IsSupportedAudioConfig(const AudioConfig& config) {
return config.codec == kCodecAAC || config.codec == kCodecMP3 ||
config.codec == kCodecPCM || config.codec == kCodecVorbis;
}
} // namespace media
} // namespace chromecast