OLD | NEW |
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_FORMATTING_H_ | 5 #ifndef SERVICES_MEDIA_FRAMEWORK_FORMATTING_H_ |
6 #define SERVICES_MEDIA_FRAMEWORK_FORMATTING_H_ | 6 #define SERVICES_MEDIA_FRAMEWORK_FORMATTING_H_ |
7 | 7 |
8 #include <ostream> | 8 #include <ostream> |
9 | 9 |
10 #include "services/media/framework/models/demand.h" | 10 #include "services/media/framework/models/demand.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 std::ostream& operator<<(std::ostream& os, LpcmStreamType::SampleFormat value); | 54 std::ostream& operator<<(std::ostream& os, LpcmStreamType::SampleFormat value); |
55 std::ostream& operator<<( | 55 std::ostream& operator<<( |
56 std::ostream& os, | 56 std::ostream& os, |
57 CompressedAudioStreamType::AudioEncoding value); | 57 CompressedAudioStreamType::AudioEncoding value); |
58 std::ostream& operator<<( | 58 std::ostream& operator<<( |
59 std::ostream& os, | 59 std::ostream& os, |
60 VideoStreamType::VideoEncoding value); | 60 VideoStreamType::VideoEncoding value); |
61 std::ostream& operator<<(std::ostream& os, VideoStreamType::VideoProfile value); | 61 std::ostream& operator<<(std::ostream& os, VideoStreamType::VideoProfile value); |
62 std::ostream& operator<<(std::ostream& os, VideoStreamType::PixelFormat value); | 62 std::ostream& operator<<(std::ostream& os, VideoStreamType::PixelFormat value); |
63 std::ostream& operator<<(std::ostream& os, VideoStreamType::ColorSpace value); | 63 std::ostream& operator<<(std::ostream& os, VideoStreamType::ColorSpace value); |
64 std::ostream& operator<<(std::ostream& os, const BytesPtr& value); | 64 std::ostream& operator<<(std::ostream& os, const std::unique_ptr<Bytes>& value); |
65 | 65 |
66 template<typename T> | 66 template<typename T> |
67 std::ostream& operator<<(std::ostream& os, Range<T> value) { | 67 std::ostream& operator<<(std::ostream& os, Range<T> value) { |
68 return os << value.min << ".." << value.max; | 68 return os << value.min << ".." << value.max; |
69 } | 69 } |
70 | 70 |
71 std::ostream& operator<<(std::ostream& os, Range<bool> value); | 71 std::ostream& operator<<(std::ostream& os, Range<bool> value); |
72 | 72 |
73 // The following overloads add newlines. | 73 // The following overloads add newlines. |
74 | 74 |
75 std::ostream& operator<<(std::ostream& os, const StreamTypePtr& value); | 75 std::ostream& operator<<( |
76 std::ostream& operator<<(std::ostream& os, const StreamTypeSetPtr& value); | 76 std::ostream& os, |
77 std::ostream& operator<<(std::ostream& os, const StreamTypesPtr& value); | 77 const std::unique_ptr<StreamType>& value); |
78 std::ostream& operator<<(std::ostream& os, const StreamTypeSetsPtr& value); | 78 std::ostream& operator<<( |
| 79 std::ostream& os, |
| 80 const std::unique_ptr<StreamTypeSet>& value); |
| 81 std::ostream& operator<<( |
| 82 std::ostream& os, |
| 83 const std::unique_ptr<std::vector<std::unique_ptr<StreamType>>>& value); |
| 84 std::ostream& operator<<( |
| 85 std::ostream& os, |
| 86 const std::unique_ptr<std::vector<std::unique_ptr<StreamTypeSet>>>& value); |
79 | 87 |
80 } // namespace media | 88 } // namespace media |
81 } // namespace mojo | 89 } // namespace mojo |
82 | 90 |
83 #endif // SERVICES_MEDIA_FRAMEWORK_FORMATTING_H_ | 91 #endif // SERVICES_MEDIA_FRAMEWORK_FORMATTING_H_ |
OLD | NEW |