OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MEDIA_CAST_CAST_CONFIG_H_ | 5 #ifndef MEDIA_CAST_CAST_CONFIG_H_ |
6 #define MEDIA_CAST_CAST_CONFIG_H_ | 6 #define MEDIA_CAST_CAST_CONFIG_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 int channels; // Samples in interleaved stereo format. L0, R0, L1 ,R1 ,... | 128 int channels; // Samples in interleaved stereo format. L0, R0, L1 ,R1 ,... |
129 int frequency; | 129 int frequency; |
130 std::vector<int16> samples; | 130 std::vector<int16> samples; |
131 }; | 131 }; |
132 | 132 |
133 // import from media::cast::transport | 133 // import from media::cast::transport |
134 typedef transport::Packet Packet; | 134 typedef transport::Packet Packet; |
135 typedef transport::PacketList PacketList; | 135 typedef transport::PacketList PacketList; |
136 | 136 |
137 enum CastInitializationStatus { | |
138 STATUS_INITIALIZED, | |
139 STATUS_INVALID_CAST_ENVIRONMENT, | |
140 STATUS_INVALID_CRYPTO_CONFIGURATION, | |
141 STATUS_UNSUPPORTED_AUDIO_CODEC, | |
142 STATUS_INVALID_AUDIO_CONFIGURATION, | |
143 STATUS_INVALID_VIDEO_CONFIGURATION, | |
144 STATUS_GPU_ACCELERATION_NOT_SUPPORTED, | |
145 STATUS_GPU_ACCELERATION_ERROR, | |
146 }; | |
147 | |
148 typedef base::Callback<void(CastInitializationStatus)> | 137 typedef base::Callback<void(CastInitializationStatus)> |
149 CastInitializationCallback; | 138 CastInitializationCallback; |
150 | 139 |
151 } // namespace cast | 140 } // namespace cast |
152 } // namespace media | 141 } // namespace media |
153 | 142 |
154 #endif // MEDIA_CAST_CAST_CONFIG_H_ | 143 #endif // MEDIA_CAST_CAST_CONFIG_H_ |
OLD | NEW |