Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: chromecast/media/base/media_codec_support.h

Issue 2783963002: Add IsSupportedAudioConfig in MediaClient (Closed)
Patch Set: CR feedback Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/common/media/cast_media_client.cc ('k') | chromecast/media/base/media_codec_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/base/media_codec_support.h
diff --git a/chromecast/media/base/media_codec_support.h b/chromecast/media/base/media_codec_support.h
index ed56ad960ebe991d97df35127811c26e0d036461..cd9eacc7cfa20884a6e0831c99d3cabb77842822 100644
--- a/chromecast/media/base/media_codec_support.h
+++ b/chromecast/media/base/media_codec_support.h
@@ -9,6 +9,7 @@
#include "base/callback.h"
#include "chromecast/public/media/decoder_config.h"
+#include "media/base/audio_codecs.h"
#include "media/base/mime_util.h"
#include "media/base/video_codecs.h"
@@ -24,6 +25,10 @@ namespace media {
// representation of the codec id conforming to RFC 6381) is supported or not.
::media::IsCodecSupportedCB GetIsCodecSupportedOnChromecastCB();
+// Converts ::media::AudioCodec to chromecast::media::AudioCodec. Any unknown or
+// unsupported codec will be converted to chromecast::media::kCodecUnknown.
+AudioCodec ToCastAudioCodec(const ::media::AudioCodec codec);
+
// Converts ::media::VideoCodec to chromecast::media::VideoCodec. Any unknown or
// unsupported codec will be converted to chromecast::media::kCodecUnknown. Note
// |codec_profile| is ignored for codecs other than Dolby Vision.
« no previous file with comments | « chromecast/common/media/cast_media_client.cc ('k') | chromecast/media/base/media_codec_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698