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

Unified Diff: media/capture/video/android/photo_capabilities.cc

Issue 2164473002: ImageCapture: wire PhotoCapabilities' ISO, width, height and PhotoSettings' width and height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng@ comments Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: media/capture/video/android/photo_capabilities.cc
diff --git a/media/capture/video/android/photo_capabilities.cc b/media/capture/video/android/photo_capabilities.cc
index 69c9440df3c5062d6b338c0534bd2c703063f175..aa70d07eb614443d81c8c6defc711b5ff275223d 100644
--- a/media/capture/video/android/photo_capabilities.cc
+++ b/media/capture/video/android/photo_capabilities.cc
@@ -24,6 +24,58 @@ bool PhotoCapabilities::RegisterPhotoCapabilities(JNIEnv* env) {
return RegisterNativesImpl(env);
}
+int PhotoCapabilities::getMinIso() const {
+ DCHECK(!object_.is_null());
+ return Java_PhotoCapabilities_getMinIso(AttachCurrentThread(), object_.obj());
+}
+
+int PhotoCapabilities::getMaxIso() const {
+ DCHECK(!object_.is_null());
+ return Java_PhotoCapabilities_getMaxIso(AttachCurrentThread(), object_.obj());
+}
+
+int PhotoCapabilities::getCurrentIso() const {
+ DCHECK(!object_.is_null());
+ return Java_PhotoCapabilities_getCurrentIso(AttachCurrentThread(),
+ object_.obj());
+}
+
+int PhotoCapabilities::getMinHeight() const {
+ DCHECK(!object_.is_null());
+ return Java_PhotoCapabilities_getMinHeight(AttachCurrentThread(),
+ object_.obj());
+}
+
+int PhotoCapabilities::getMaxHeight() const {
+ DCHECK(!object_.is_null());
+ return Java_PhotoCapabilities_getMaxHeight(AttachCurrentThread(),
+ object_.obj());
+}
+
+int PhotoCapabilities::getCurrentHeight() const {
+ DCHECK(!object_.is_null());
+ return Java_PhotoCapabilities_getCurrentHeight(AttachCurrentThread(),
+ object_.obj());
+}
+
+int PhotoCapabilities::getMinWidth() const {
+ DCHECK(!object_.is_null());
+ return Java_PhotoCapabilities_getMinWidth(AttachCurrentThread(),
+ object_.obj());
+}
+
+int PhotoCapabilities::getMaxWidth() const {
+ DCHECK(!object_.is_null());
+ return Java_PhotoCapabilities_getMaxWidth(AttachCurrentThread(),
+ object_.obj());
+}
+
+int PhotoCapabilities::getCurrentWidth() const {
+ DCHECK(!object_.is_null());
+ return Java_PhotoCapabilities_getCurrentWidth(AttachCurrentThread(),
+ object_.obj());
+}
+
int PhotoCapabilities::getMinZoom() const {
DCHECK(!object_.is_null());
return Java_PhotoCapabilities_getMinZoom(AttachCurrentThread(),
« no previous file with comments | « media/capture/video/android/photo_capabilities.h ('k') | media/capture/video/android/video_capture_device_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698