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

Unified Diff: services/media/framework_mojo/mojo_type_conversions.h

Issue 1902183002: Motown: Change media type (stream type) representation (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Changes per review feedback. Created 4 years, 8 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
Index: services/media/framework_mojo/mojo_type_conversions.h
diff --git a/services/media/framework_mojo/mojo_type_conversions.h b/services/media/framework_mojo/mojo_type_conversions.h
index 3040b56f40c26b007bc970eb0c1d114aab5dbe57..e75c41991dfb6771c2c78f18582049cccf7fbebc 100644
--- a/services/media/framework_mojo/mojo_type_conversions.h
+++ b/services/media/framework_mojo/mojo_type_conversions.h
@@ -21,17 +21,11 @@ Result ConvertResult(MojoResult mojo_result);
// Converts a MediaResult into a Result.
Result Convert(MediaResult media_result);
-// Creates a StreamType::Scheme from a MediaTypeScheme.
-StreamType::Scheme Convert(MediaTypeScheme media_type_scheme);
+// Creates a StreamType::Medium from a MediaTypeMedium.
+StreamType::Medium Convert(MediaTypeMedium media_type_medium);
-// Creates an LpcmStreamType::SampleFormat from an LpcmSampleFormat.
-LpcmStreamType::SampleFormat Convert(LpcmSampleFormat lpcm_sample_format);
-
-// Creates a CompressedAudioStreamType::VideoEncoding from an AudioEncoding.
-CompressedAudioStreamType::AudioEncoding Convert(AudioEncoding audio_encoding);
-
-// Creates a VideoStreamType::VideoEncoding from a VideoEncoding.
-VideoStreamType::VideoEncoding Convert(VideoEncoding video_encoding);
+// Creates an AudioStreamType::SampleFormat from an AudioSampleFormat.
+AudioStreamType::SampleFormat Convert(AudioSampleFormat audio_sample_format);
// Creates a VideoStreamType::VideoProfile from a VideoProfile.
VideoStreamType::VideoProfile Convert(VideoProfile video_profile);
@@ -57,23 +51,17 @@ std::unique_ptr<StreamTypeSet> Convert(const MediaTypeSetPtr& media_type_set);
std::unique_ptr<std::vector<std::unique_ptr<StreamTypeSet>>> Convert(
const Array<MediaTypeSetPtr>& media_type_sets);
-// Creates Bytes from a base64-encoded string.
-std::unique_ptr<Bytes> Convert(const String& base64);
+// Creates Bytes from an Array of bytes.
+std::unique_ptr<Bytes> Convert(const Array<uint8_t>& bytes_array);
// Creates Metadata from MediaMetadata.
std::unique_ptr<Metadata> Convert(const MediaMetadataPtr& media_metadata);
-// Creates a MediaTypeScheme from a StreamType::Scheme.
-MediaTypeScheme Convert(StreamType::Scheme scheme);
-
-// Creates an LpcmSampleFormat from an LpcmStreamType::SampleFormat.
-LpcmSampleFormat Convert(LpcmStreamType::SampleFormat sample_format);
-
-// Creates an AudioEncoding from a CompressedAudioStreamType::VideoEncoding.
-AudioEncoding Convert(CompressedAudioStreamType::AudioEncoding audio_encoding);
+// Creates a MediaTypeMedium from a StreamType::Medium.
+MediaTypeMedium Convert(StreamType::Medium medium);
-// Creates a VideoEncoding from a VideoStreamType::VideoEncoding.
-VideoEncoding Convert(VideoStreamType::VideoEncoding video_encoding);
+// Creates an AudioSampleFormat from an AudioStreamType::SampleFormat.
+AudioSampleFormat Convert(AudioStreamType::SampleFormat sample_format);
// Creates a VideoProfile from a VideoStreamType::VideoProfile.
VideoProfile Convert(VideoStreamType::VideoProfile video_profile);
@@ -101,8 +89,8 @@ Array<MediaTypeSetPtr> Convert(
const std::unique_ptr<std::vector<std::unique_ptr<StreamTypeSet>>>&
stream_type_sets);
-// Creates a base64-encoded string from Bytes.
-String Convert(const std::unique_ptr<Bytes>& bytes);
+// Creates an Array of bytes from Bytes.
+Array<uint8_t> Convert(const std::unique_ptr<Bytes>& bytes);
// Creates MediaMetadata from Metadata.
MediaMetadataPtr Convert(const std::unique_ptr<Metadata>& metadata);
« no previous file with comments | « services/media/framework_mojo/mojo_formatting.cc ('k') | services/media/framework_mojo/mojo_type_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698