OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ |
6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // Handle pending events when all the decoder jobs finished. | 100 // Handle pending events when all the decoder jobs finished. |
101 void ProcessPendingEvents(); | 101 void ProcessPendingEvents(); |
102 | 102 |
103 // Helper method to configure the decoder jobs. | 103 // Helper method to configure the decoder jobs. |
104 void ConfigureVideoDecoderJob(); | 104 void ConfigureVideoDecoderJob(); |
105 void ConfigureAudioDecoderJob(); | 105 void ConfigureAudioDecoderJob(); |
106 | 106 |
107 // Flush the decoders and clean up all the data needs to be decoded. | 107 // Flush the decoders and clean up all the data needs to be decoded. |
108 void ClearDecodingData(); | 108 void ClearDecodingData(); |
109 | 109 |
110 // Called to decoder more data. | 110 // Called to decode more data. |
111 void DecodeMoreAudio(); | 111 void DecodeMoreAudio(); |
112 void DecodeMoreVideo(); | 112 void DecodeMoreVideo(); |
113 | 113 |
114 // Functions check whether audio/video is present. | 114 // Functions check whether audio/video is present. |
115 bool HasVideo(); | 115 bool HasVideo(); |
116 bool HasAudio(); | 116 bool HasAudio(); |
117 | 117 |
118 // Determine seekability based on duration. | 118 // Determine seekability based on duration. |
119 bool Seekable(); | 119 bool Seekable(); |
120 | 120 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // Test-only callback for hooking the completion of the next decode cycle. | 271 // Test-only callback for hooking the completion of the next decode cycle. |
272 base::Closure decode_callback_for_testing_; | 272 base::Closure decode_callback_for_testing_; |
273 | 273 |
274 friend class MediaSourcePlayerTest; | 274 friend class MediaSourcePlayerTest; |
275 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer); | 275 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer); |
276 }; | 276 }; |
277 | 277 |
278 } // namespace media | 278 } // namespace media |
279 | 279 |
280 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ | 280 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ |
OLD | NEW |