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_SDK_MEDIA_CODEC_BRIDGE_H_ | 5 #ifndef MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ |
6 #define MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ | 6 #define MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 const base::TimeDelta& presentation_time) override; | 42 const base::TimeDelta& presentation_time) override; |
43 using MediaCodecBridge::QueueSecureInputBuffer; | 43 using MediaCodecBridge::QueueSecureInputBuffer; |
44 MediaCodecStatus QueueSecureInputBuffer( | 44 MediaCodecStatus QueueSecureInputBuffer( |
45 int index, | 45 int index, |
46 const uint8_t* data, | 46 const uint8_t* data, |
47 size_t data_size, | 47 size_t data_size, |
48 const std::vector<char>& key_id, | 48 const std::vector<char>& key_id, |
49 const std::vector<char>& iv, | 49 const std::vector<char>& iv, |
50 const SubsampleEntry* subsamples, | 50 const SubsampleEntry* subsamples, |
51 int subsamples_size, | 51 int subsamples_size, |
52 const EncryptionScheme& encryption_scheme, | |
xhwang
2016/06/15 05:29:05
OOC, can we have Pattern and Subsamples at the sam
dougsteed
2016/06/15 17:57:38
We definitely need both. Pattern applies within th
| |
52 const base::TimeDelta& presentation_time) override; | 53 const base::TimeDelta& presentation_time) override; |
53 void QueueEOS(int input_buffer_index) override; | 54 void QueueEOS(int input_buffer_index) override; |
54 MediaCodecStatus DequeueInputBuffer(const base::TimeDelta& timeout, | 55 MediaCodecStatus DequeueInputBuffer(const base::TimeDelta& timeout, |
55 int* index) override; | 56 int* index) override; |
56 MediaCodecStatus DequeueOutputBuffer(const base::TimeDelta& timeout, | 57 MediaCodecStatus DequeueOutputBuffer(const base::TimeDelta& timeout, |
57 int* index, | 58 int* index, |
58 size_t* offset, | 59 size_t* offset, |
59 size_t* size, | 60 size_t* size, |
60 base::TimeDelta* presentation_time, | 61 base::TimeDelta* presentation_time, |
61 bool* end_of_stream, | 62 bool* end_of_stream, |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
203 VideoCodecBridge(const std::string& mime, | 204 VideoCodecBridge(const std::string& mime, |
204 bool is_secure, | 205 bool is_secure, |
205 MediaCodecDirection direction); | 206 MediaCodecDirection direction); |
206 | 207 |
207 int adaptive_playback_supported_for_testing_; | 208 int adaptive_playback_supported_for_testing_; |
208 }; | 209 }; |
209 | 210 |
210 } // namespace media | 211 } // namespace media |
211 | 212 |
212 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ | 213 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ |
OLD | NEW |