blob: 5b8428ee26859ef16f63eeec558700afb062a1bb [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.
#ifndef CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_
#define CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_
#include <string>
#include "base/callback.h"
#include "chromecast/public/media/decoder_config.h"
#include "media/base/mime_util.h"
#include "media/base/video_codecs.h"
// TODO(slan|servolk): remove when this definition exists in //media.
namespace media {
typedef base::Callback<bool(const std::string&)> IsCodecSupportedCB;
}
namespace chromecast {
namespace media {
// Returns the callback to decide whether a given codec (passed in as a string
// representation of the codec id conforming to RFC 6381) is supported or not.
::media::IsCodecSupportedCB GetIsCodecSupportedOnChromecastCB();
VideoCodec ToCastVideoCodec(const ::media::VideoCodec codec);
VideoProfile ToCastVideoProfile(const ::media::VideoCodecProfile profile);
} // namespace media
} // namespace chromecast
#endif // CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_