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

Side by Side Diff: webrtc/api/java/jni/androidvideocapturer_jni.h

Issue 1696553003: Android: Make VideoCapturer an interface for all VideoCapturers to implement (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Replace 'replace' with 'dispose' in jni as well Created 4 years, 10 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 10
(...skipping 24 matching lines...) Expand all
35 AndroidVideoCapturerJni(JNIEnv* jni, 35 AndroidVideoCapturerJni(JNIEnv* jni,
36 jobject j_video_capturer, 36 jobject j_video_capturer,
37 jobject j_surface_texture_helper); 37 jobject j_surface_texture_helper);
38 38
39 void Start(int width, int height, int framerate, 39 void Start(int width, int height, int framerate,
40 webrtc::AndroidVideoCapturer* capturer) override; 40 webrtc::AndroidVideoCapturer* capturer) override;
41 void Stop() override; 41 void Stop() override;
42 42
43 std::string GetSupportedFormats() override; 43 std::string GetSupportedFormats() override;
44 44
45 // Called from VideoCapturerAndroid::NativeObserver on a Java thread. 45 // Called from VideoCapturer::NativeObserver on a Java thread.
46 void OnCapturerStarted(bool success); 46 void OnCapturerStarted(bool success);
47 void OnMemoryBufferFrame(void* video_frame, int length, int width, 47 void OnMemoryBufferFrame(void* video_frame, int length, int width,
48 int height, int rotation, int64_t timestamp_ns); 48 int height, int rotation, int64_t timestamp_ns);
49 void OnTextureFrame(int width, int height, int rotation, int64_t timestamp_ns, 49 void OnTextureFrame(int width, int height, int rotation, int64_t timestamp_ns,
50 const NativeHandleImpl& handle); 50 const NativeHandleImpl& handle);
51 void OnOutputFormatRequest(int width, int height, int fps); 51 void OnOutputFormatRequest(int width, int height, int fps);
52 52
53 protected: 53 protected:
54 ~AndroidVideoCapturerJni(); 54 ~AndroidVideoCapturerJni();
55 55
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 rtc::scoped_ptr<rtc::GuardedAsyncInvoker> invoker_ GUARDED_BY(capturer_lock_); 89 rtc::scoped_ptr<rtc::GuardedAsyncInvoker> invoker_ GUARDED_BY(capturer_lock_);
90 90
91 static jobject application_context_; 91 static jobject application_context_;
92 92
93 RTC_DISALLOW_COPY_AND_ASSIGN(AndroidVideoCapturerJni); 93 RTC_DISALLOW_COPY_AND_ASSIGN(AndroidVideoCapturerJni);
94 }; 94 };
95 95
96 } // namespace webrtc_jni 96 } // namespace webrtc_jni
97 97
98 #endif // WEBRTC_API_JAVA_JNI_ANDROIDVIDEOCAPTURER_JNI_H_ 98 #endif // WEBRTC_API_JAVA_JNI_ANDROIDVIDEOCAPTURER_JNI_H_
OLDNEW
« no previous file with comments | « webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java ('k') | webrtc/api/java/jni/androidvideocapturer_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698