aboutsummaryrefslogtreecommitdiffstats
path: root/android/camera/camera-capture.h
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2011-11-23 13:03:37 -0800
committerVladimir Chtchetkine <vchtchetkine@google.com>2011-12-05 09:17:35 -0800
commit37fb84f8b26e3061c1ccb404bf4c962eed5e6057 (patch)
treeb60e5b1f69a291c9396c665ee6556a059f481fc4 /android/camera/camera-capture.h
parent4e61742d4f26cefb1baf8d2dc5e7dc8b85a78549 (diff)
downloadexternal_qemu-37fb84f8b26e3061c1ccb404bf4c962eed5e6057.zip
external_qemu-37fb84f8b26e3061c1ccb404bf4c962eed5e6057.tar.gz
external_qemu-37fb84f8b26e3061c1ccb404bf4c962eed5e6057.tar.bz2
Implements white balance and exposure compensation for emulated webcam
Change-Id: Id2dbb227280f0c0e1b5708ef78b9f19b087f92d5
Diffstat (limited to 'android/camera/camera-capture.h')
-rw-r--r--android/camera/camera-capture.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/android/camera/camera-capture.h b/android/camera/camera-capture.h
index 3025a23..bf754eb 100644
--- a/android/camera/camera-capture.h
+++ b/android/camera/camera-capture.h
@@ -73,6 +73,8 @@ extern int camera_device_stop_capturing(CameraDevice* cd);
* make sure that buffers are large enough to contain entire frame captured
* from the device.
* fbs_num - Number of entries in the 'framebuffers' array.
+ * r_scale, g_scale, b_scale - White balance scale.
+ * exp_comp - Expsoure compensation.
* Return:
* 0 on success, or non-zero value on failure. There is a special vaule 1
* returned from this routine which indicates that frames were not available in
@@ -82,7 +84,11 @@ extern int camera_device_stop_capturing(CameraDevice* cd);
*/
extern int camera_device_read_frame(CameraDevice* cd,
ClientFrameBuffer* framebuffers,
- int fbs_num);
+ int fbs_num,
+ float r_scale,
+ float g_scale,
+ float b_scale,
+ float exp_comp);
/* Closes camera device, opened in camera_device_open routine.
* Param: