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

Side by Side Diff: webrtc/modules/video_capture/android/video_capture_android.h

Issue 1347083003: Remove the video capture module on Android. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removed Android Java files Created 5 years, 3 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
(Empty)
1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_ANDROID_VIDEO_CAPTURE_ANDROID_H _
12 #define WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_ANDROID_VIDEO_CAPTURE_ANDROID_H _
13
14 #include <jni.h>
15
16 #include "webrtc/modules/video_capture/android/device_info_android.h"
17 #include "webrtc/modules/video_capture/video_capture_impl.h"
18
19 namespace webrtc {
20 namespace videocapturemodule {
21
22 class VideoCaptureAndroid : public VideoCaptureImpl {
23 public:
24 VideoCaptureAndroid(const int32_t id);
25 virtual int32_t Init(const int32_t id, const char* deviceUniqueIdUTF8);
26
27 virtual int32_t StartCapture(const VideoCaptureCapability& capability);
28 virtual int32_t StopCapture();
29 virtual bool CaptureStarted();
30 virtual int32_t CaptureSettings(VideoCaptureCapability& settings);
31 virtual int32_t SetCaptureRotation(VideoRotation rotation);
32
33 int32_t OnIncomingFrame(uint8_t* videoFrame,
34 size_t videoFrameLength,
35 int32_t degrees,
36 int64_t captureTime = 0);
37
38 protected:
39 virtual ~VideoCaptureAndroid();
40
41 DeviceInfoAndroid _deviceInfo;
42 jobject _jCapturer; // Global ref to Java VideoCaptureAndroid object.
43 VideoCaptureCapability _captureCapability;
44 VideoRotation _rotation;
45 bool _captureStarted;
46 };
47
48 } // namespace videocapturemodule
49 } // namespace webrtc
50 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_ANDROID_VIDEO_CAPTURE_ANDROID _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698