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

Side by Side Diff: media/cast/cast_config.h

Issue 163553006: Cast: Refactoring Cast API's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/cast/audio_sender/audio_sender.cc ('k') | media/cast/cast_defines.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/cast/audio_sender/audio_sender.cc ('k') | media/cast/cast_defines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698