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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 MediaCodecStatus DequeueInputBuffer(const base::TimeDelta& timeout, | 53 MediaCodecStatus DequeueInputBuffer(const base::TimeDelta& timeout, |
54 int* index) override; | 54 int* index) override; |
55 MediaCodecStatus DequeueOutputBuffer(const base::TimeDelta& timeout, | 55 MediaCodecStatus DequeueOutputBuffer(const base::TimeDelta& timeout, |
56 int* index, | 56 int* index, |
57 size_t* offset, | 57 size_t* offset, |
58 size_t* size, | 58 size_t* size, |
59 base::TimeDelta* presentation_time, | 59 base::TimeDelta* presentation_time, |
60 bool* end_of_stream, | 60 bool* end_of_stream, |
61 bool* key_frame) override; | 61 bool* key_frame) override; |
62 void ReleaseOutputBuffer(int index, bool render) override; | 62 void ReleaseOutputBuffer(int index, bool render) override; |
63 int GetOutputBuffersCount() override; | |
64 size_t GetOutputBuffersCapacity() override; | |
65 void GetInputBuffer(int input_buffer_index, | 63 void GetInputBuffer(int input_buffer_index, |
66 uint8_t** data, | 64 uint8_t** data, |
67 size_t* capacity) override; | 65 size_t* capacity) override; |
68 bool CopyFromOutputBuffer(int index, | 66 bool CopyFromOutputBuffer(int index, |
69 size_t offset, | 67 size_t offset, |
70 void* dst, | 68 void* dst, |
71 int dst_size) override; | 69 int dst_size) override; |
72 | 70 |
73 static bool RegisterSdkMediaCodecBridge(JNIEnv* env); | 71 static bool RegisterSdkMediaCodecBridge(JNIEnv* env); |
74 | 72 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 VideoCodecBridge(const std::string& mime, | 188 VideoCodecBridge(const std::string& mime, |
191 bool is_secure, | 189 bool is_secure, |
192 MediaCodecDirection direction); | 190 MediaCodecDirection direction); |
193 | 191 |
194 int adaptive_playback_supported_for_testing_; | 192 int adaptive_playback_supported_for_testing_; |
195 }; | 193 }; |
196 | 194 |
197 } // namespace media | 195 } // namespace media |
198 | 196 |
199 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ | 197 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ |
OLD | NEW |