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

Side by Side Diff: services/media/framework_mojo/mojo_formatting.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_ 5 #ifndef SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_
6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_ 6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_
7 7
8 #include "mojo/services/media/common/interfaces/media_common.mojom.h" 8 #include "mojo/services/media/common/interfaces/media_common.mojom.h"
9 #include "mojo/services/media/common/interfaces/media_transport.mojom.h" 9 #include "mojo/services/media/common/interfaces/media_transport.mojom.h"
10 #include "mojo/services/media/common/interfaces/media_types.mojom.h" 10 #include "mojo/services/media/common/interfaces/media_types.mojom.h"
11 #include "mojo/services/media/common/interfaces/rate_control.mojom.h" 11 #include "mojo/services/media/common/interfaces/rate_control.mojom.h"
12 #include "mojo/services/media/control/interfaces/media_source.mojom.h" 12 #include "mojo/services/media/control/interfaces/media_source.mojom.h"
13 #include "mojo/services/network/interfaces/network_service.mojom.h" 13 #include "mojo/services/network/interfaces/network_service.mojom.h"
14 #include "services/media/framework/formatting.h" 14 #include "services/media/framework/formatting.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace media { 17 namespace media {
18 18
19 // See services/media/framework/ostream.h for details. 19 // See services/media/framework/ostream.h for details.
20 20
21 // Mojo defines versions of operator<< for this that produce only numbers. 21 // Mojo defines versions of operator<< for this that produce only numbers.
22 const char* StringFromMediaTypeScheme(MediaTypeScheme value); 22 const char* StringFromMediaTypeMedium(MediaTypeMedium value);
23 const char* StringFromLpcmSampleFormat(LpcmSampleFormat value); 23 const char* StringFromAudioSampleFormat(AudioSampleFormat value);
24 const char* StringFromAudioEncoding(AudioEncoding value);
25 const char* StringFromVideoEncoding(VideoEncoding value);
26 const char* StringFromMediaState(MediaState value); 24 const char* StringFromMediaState(MediaState value);
27 25
28 // The following overloads add newlines. 26 // The following overloads add newlines.
29 27
30 template <typename T> 28 template <typename T>
31 std::ostream& operator<<(std::ostream& os, const InterfacePtr<T>& value); 29 std::ostream& operator<<(std::ostream& os, const InterfacePtr<T>& value);
32 30
33 std::ostream& operator<<(std::ostream& os, const MediaTypePtr& value); 31 std::ostream& operator<<(std::ostream& os, const MediaTypePtr& value);
34 std::ostream& operator<<(std::ostream& os, const MediaTypeSetPtr& value); 32 std::ostream& operator<<(std::ostream& os, const MediaTypeSetPtr& value);
35 std::ostream& operator<<(std::ostream& os, const MediaTypeDetailsPtr& value); 33 std::ostream& operator<<(std::ostream& os, const MediaTypeDetailsPtr& value);
36 std::ostream& operator<<(std::ostream& os, const MediaTypeSetDetailsPtr& value); 34 std::ostream& operator<<(std::ostream& os, const MediaTypeSetDetailsPtr& value);
37 std::ostream& operator<<(std::ostream& os, 35 std::ostream& operator<<(std::ostream& os,
38 const MultiplexedMediaTypeDetailsPtr& value); 36 const AudioMediaTypeDetailsPtr& value);
39 std::ostream& operator<<(std::ostream& os, 37 std::ostream& operator<<(std::ostream& os,
40 const MultiplexedMediaTypeSetDetailsPtr& value); 38 const AudioMediaTypeSetDetailsPtr& value);
41 std::ostream& operator<<(std::ostream& os,
42 const LpcmMediaTypeDetailsPtr& value);
43 std::ostream& operator<<(std::ostream& os,
44 const LpcmMediaTypeSetDetailsPtr& value);
45 std::ostream& operator<<(std::ostream& os,
46 const CompressedAudioMediaTypeDetailsPtr& value);
47 std::ostream& operator<<(std::ostream& os,
48 const CompressedAudioMediaTypeSetDetailsPtr& value);
49 std::ostream& operator<<(std::ostream& os, 39 std::ostream& operator<<(std::ostream& os,
50 const VideoMediaTypeDetailsPtr& value); 40 const VideoMediaTypeDetailsPtr& value);
51 std::ostream& operator<<(std::ostream& os, 41 std::ostream& operator<<(std::ostream& os,
52 const VideoMediaTypeSetDetailsPtr& value); 42 const VideoMediaTypeSetDetailsPtr& value);
53 std::ostream& operator<<(std::ostream& os, 43 std::ostream& operator<<(std::ostream& os,
44 const TextMediaTypeDetailsPtr& value);
45 std::ostream& operator<<(std::ostream& os,
46 const TextMediaTypeSetDetailsPtr& value);
47 std::ostream& operator<<(std::ostream& os,
48 const SubpictureMediaTypeDetailsPtr& value);
49 std::ostream& operator<<(std::ostream& os,
50 const SubpictureMediaTypeSetDetailsPtr& value);
51 std::ostream& operator<<(std::ostream& os,
54 const MediaSourceStreamDescriptorPtr& value); 52 const MediaSourceStreamDescriptorPtr& value);
55 std::ostream& operator<<(std::ostream& os, const TimelineQuadPtr& value); 53 std::ostream& operator<<(std::ostream& os, const TimelineQuadPtr& value);
56 std::ostream& operator<<(std::ostream& os, const TimelineTransformPtr& value); 54 std::ostream& operator<<(std::ostream& os, const TimelineTransformPtr& value);
57 55
58 std::ostream& operator<<(std::ostream& os, const HttpHeaderPtr& value); 56 std::ostream& operator<<(std::ostream& os, const HttpHeaderPtr& value);
59 std::ostream& operator<<(std::ostream& os, const URLRequestPtr& value); 57 std::ostream& operator<<(std::ostream& os, const URLRequestPtr& value);
60 std::ostream& operator<<(std::ostream& os, const URLResponsePtr& value); 58 std::ostream& operator<<(std::ostream& os, const URLResponsePtr& value);
61 std::ostream& operator<<(std::ostream& os, const NetworkErrorPtr& value); 59 std::ostream& operator<<(std::ostream& os, const NetworkErrorPtr& value);
62 std::ostream& operator<<(std::ostream& os, 60 std::ostream& operator<<(std::ostream& os,
63 const ScopedDataPipeConsumerHandle& value); 61 const ScopedDataPipeConsumerHandle& value);
(...skipping 13 matching lines...) Expand all
77 os << begl << "[" << index++ << "] " << element; 75 os << begl << "[" << index++ << "] " << element;
78 } 76 }
79 77
80 return os; 78 return os;
81 } 79 }
82 80
83 } // namespace media 81 } // namespace media
84 } // namespace mojo 82 } // namespace mojo
85 83
86 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_ 84 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_
OLDNEW
« no previous file with comments | « services/media/framework_mojo/BUILD.gn ('k') | services/media/framework_mojo/mojo_formatting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698