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

Side by Side Diff: media/video/capture/android/video_capture_device_android.h

Issue 24079003: Add VideoCaptureDevice::GetDeviceSupportedFormats to interface + implementation for Linux and Fake (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
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_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ 5 #ifndef MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_
6 #define MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ 6 #define MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 16 matching lines...) Expand all
27 static VideoCaptureDevice* Create(const Name& device_name); 27 static VideoCaptureDevice* Create(const Name& device_name);
28 static bool RegisterVideoCaptureDevice(JNIEnv* env); 28 static bool RegisterVideoCaptureDevice(JNIEnv* env);
29 29
30 // VideoCaptureDevice implementation. 30 // VideoCaptureDevice implementation.
31 virtual void Allocate(const VideoCaptureCapability& capture_format, 31 virtual void Allocate(const VideoCaptureCapability& capture_format,
32 EventHandler* observer) OVERRIDE; 32 EventHandler* observer) OVERRIDE;
33 virtual void Start() OVERRIDE; 33 virtual void Start() OVERRIDE;
34 virtual void Stop() OVERRIDE; 34 virtual void Stop() OVERRIDE;
35 virtual void DeAllocate() OVERRIDE; 35 virtual void DeAllocate() OVERRIDE;
36 virtual const Name& device_name() OVERRIDE; 36 virtual const Name& device_name() OVERRIDE;
37 virtual void GetDeviceSupportedFormats(
38 const std::string& device_name,
39 VideoCaptureFormats* capture_formats) OVERRIDE;
37 40
38 // Implement org.chromium.media.VideoCapture.nativeOnFrameAvailable. 41 // Implement org.chromium.media.VideoCapture.nativeOnFrameAvailable.
39 void OnFrameAvailable( 42 void OnFrameAvailable(
40 JNIEnv* env, 43 JNIEnv* env,
41 jobject obj, 44 jobject obj,
42 jbyteArray data, 45 jbyteArray data,
43 jint length, 46 jint length,
44 jint rotation, 47 jint rotation,
45 jboolean flip_vert, 48 jboolean flip_vert,
46 jboolean flip_horiz); 49 jboolean flip_horiz);
(...skipping 21 matching lines...) Expand all
68 71
69 // Java VideoCaptureAndroid instance. 72 // Java VideoCaptureAndroid instance.
70 base::android::ScopedJavaGlobalRef<jobject> j_capture_; 73 base::android::ScopedJavaGlobalRef<jobject> j_capture_;
71 74
72 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid); 75 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid);
73 }; 76 };
74 77
75 } // namespace media 78 } // namespace media
76 79
77 #endif // MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ 80 #endif // MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698