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

Side by Side Diff: webrtc/sdk/android/src/jni/classreferenceholder.cc

Issue 2997663002: Support Java VideoFrames in MediaCodecVideoEncoder. (Closed)
Patch Set: Address comments. Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #include "webrtc/sdk/android/src/jni/classreferenceholder.h" 10 #include "webrtc/sdk/android/src/jni/classreferenceholder.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 LoadClass(jni, "org/webrtc/StatsReport"); 104 LoadClass(jni, "org/webrtc/StatsReport");
105 LoadClass(jni, "org/webrtc/StatsReport$Value"); 105 LoadClass(jni, "org/webrtc/StatsReport$Value");
106 LoadClass(jni, "org/webrtc/SurfaceTextureHelper"); 106 LoadClass(jni, "org/webrtc/SurfaceTextureHelper");
107 LoadClass(jni, "org/webrtc/VideoCapturer"); 107 LoadClass(jni, "org/webrtc/VideoCapturer");
108 LoadClass(jni, "org/webrtc/VideoCodecStatus"); 108 LoadClass(jni, "org/webrtc/VideoCodecStatus");
109 LoadClass(jni, "org/webrtc/VideoDecoder$Settings"); 109 LoadClass(jni, "org/webrtc/VideoDecoder$Settings");
110 LoadClass(jni, "org/webrtc/VideoDecoderWrapperCallback"); 110 LoadClass(jni, "org/webrtc/VideoDecoderWrapperCallback");
111 LoadClass(jni, "org/webrtc/VideoFrame"); 111 LoadClass(jni, "org/webrtc/VideoFrame");
112 LoadClass(jni, "org/webrtc/VideoFrame$Buffer"); 112 LoadClass(jni, "org/webrtc/VideoFrame$Buffer");
113 LoadClass(jni, "org/webrtc/VideoFrame$I420Buffer"); 113 LoadClass(jni, "org/webrtc/VideoFrame$I420Buffer");
114 LoadClass(jni, "org/webrtc/VideoFrame$TextureBuffer");
114 LoadClass(jni, "org/webrtc/VideoRenderer$I420Frame"); 115 LoadClass(jni, "org/webrtc/VideoRenderer$I420Frame");
115 LoadClass(jni, "org/webrtc/VideoTrack"); 116 LoadClass(jni, "org/webrtc/VideoTrack");
116 LoadClass(jni, "org/webrtc/WrappedNativeI420Buffer"); 117 LoadClass(jni, "org/webrtc/WrappedNativeI420Buffer");
117 } 118 }
118 119
119 ClassReferenceHolder::~ClassReferenceHolder() { 120 ClassReferenceHolder::~ClassReferenceHolder() {
120 RTC_CHECK(classes_.empty()) << "Must call FreeReferences() before dtor!"; 121 RTC_CHECK(classes_.empty()) << "Must call FreeReferences() before dtor!";
121 } 122 }
122 123
123 void ClassReferenceHolder::FreeReferences(JNIEnv* jni) { 124 void ClassReferenceHolder::FreeReferences(JNIEnv* jni) {
(...skipping 21 matching lines...) Expand all
145 RTC_CHECK(inserted) << "Duplicate class name: " << name; 146 RTC_CHECK(inserted) << "Duplicate class name: " << name;
146 } 147 }
147 148
148 // Returns a global reference guaranteed to be valid for the lifetime of the 149 // Returns a global reference guaranteed to be valid for the lifetime of the
149 // process. 150 // process.
150 jclass FindClass(JNIEnv* jni, const char* name) { 151 jclass FindClass(JNIEnv* jni, const char* name) {
151 return g_class_reference_holder->GetClass(name); 152 return g_class_reference_holder->GetClass(name);
152 } 153 }
153 154
154 } // namespace webrtc_jni 155 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc ('k') | webrtc/sdk/android/src/jni/native_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698