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

Side by Side Diff: media/capture/video/android/photo_capabilities.cc

Issue 2385833002: Image Capture Android: wire color temperature set/get (Closed)
Patch Set: reillyg@s comments Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "media/capture/video/android/photo_capabilities.h" 5 #include "media/capture/video/android/photo_capabilities.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "jni/PhotoCapabilities_jni.h" 10 #include "jni/PhotoCapabilities_jni.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return static_cast<AndroidFillLightMode>( 125 return static_cast<AndroidFillLightMode>(
126 Java_PhotoCapabilities_getFillLightMode(AttachCurrentThread(), object_)); 126 Java_PhotoCapabilities_getFillLightMode(AttachCurrentThread(), object_));
127 } 127 }
128 128
129 bool PhotoCapabilities::getRedEyeReduction() const { 129 bool PhotoCapabilities::getRedEyeReduction() const {
130 DCHECK(!object_.is_null()); 130 DCHECK(!object_.is_null());
131 return Java_PhotoCapabilities_getRedEyeReduction(AttachCurrentThread(), 131 return Java_PhotoCapabilities_getRedEyeReduction(AttachCurrentThread(),
132 object_); 132 object_);
133 } 133 }
134 134
135 int PhotoCapabilities::getMinColorTemperature() const {
136 DCHECK(!object_.is_null());
137 return Java_PhotoCapabilities_getMinColorTemperature(AttachCurrentThread(),
138 object_);
139 }
140
141 int PhotoCapabilities::getMaxColorTemperature() const {
142 DCHECK(!object_.is_null());
143 return Java_PhotoCapabilities_getMaxColorTemperature(AttachCurrentThread(),
144 object_);
145 }
146
147 int PhotoCapabilities::getCurrentColorTemperature() const {
148 DCHECK(!object_.is_null());
149 return Java_PhotoCapabilities_getCurrentColorTemperature(
150 AttachCurrentThread(), object_);
151 }
152
135 } // namespace media 153 } // namespace media
OLDNEW
« no previous file with comments | « media/capture/video/android/photo_capabilities.h ('k') | media/capture/video/android/video_capture_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698