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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 void ReleaseOutputBuffer(int index, bool render) override; | 62 void ReleaseOutputBuffer(int index, bool render) override; |
63 MediaCodecStatus GetInputBuffer(int input_buffer_index, | 63 MediaCodecStatus GetInputBuffer(int input_buffer_index, |
64 uint8_t** data, | 64 uint8_t** data, |
65 size_t* capacity) override; | 65 size_t* capacity) override; |
66 MediaCodecStatus GetOutputBufferAddress(int index, | 66 MediaCodecStatus GetOutputBufferAddress(int index, |
67 size_t offset, | 67 size_t offset, |
68 const uint8_t** addr, | 68 const uint8_t** addr, |
69 size_t* capacity) override; | 69 size_t* capacity) override; |
70 std::string GetName() override; | 70 std::string GetName() override; |
71 | 71 |
72 static bool RegisterSdkMediaCodecBridge(JNIEnv* env); | |
73 | |
74 protected: | 72 protected: |
75 SdkMediaCodecBridge(const std::string& mime, | 73 SdkMediaCodecBridge(const std::string& mime, |
76 bool is_secure, | 74 bool is_secure, |
77 MediaCodecDirection direction, | 75 MediaCodecDirection direction, |
78 bool require_software_codec); | 76 bool require_software_codec); |
79 | 77 |
80 jobject media_codec() { return j_media_codec_.obj(); } | 78 jobject media_codec() { return j_media_codec_.obj(); } |
81 MediaCodecDirection direction_; | 79 MediaCodecDirection direction_; |
82 | 80 |
83 private: | 81 private: |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 bool is_secure, | 203 bool is_secure, |
206 MediaCodecDirection direction, | 204 MediaCodecDirection direction, |
207 bool require_software_codec); | 205 bool require_software_codec); |
208 | 206 |
209 int adaptive_playback_supported_for_testing_; | 207 int adaptive_playback_supported_for_testing_; |
210 }; | 208 }; |
211 | 209 |
212 } // namespace media | 210 } // namespace media |
213 | 211 |
214 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ | 212 #endif // MEDIA_BASE_ANDROID_SDK_MEDIA_CODEC_BRIDGE_H_ |
OLD | NEW |