Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: media/base/android/sdk_media_codec_bridge.h

Issue 2199913003: media: Remove unneeded RegisterNatives() call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/android/media_jni_registrar.cc ('k') | media/base/android/sdk_media_codec_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « media/base/android/media_jni_registrar.cc ('k') | media/base/android/sdk_media_codec_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698