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