summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/Camera2Client.h
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2012-08-25 17:12:18 -0700
committerEino-Ville Talvala <etalvala@google.com>2012-08-27 09:56:20 -0700
commitf17b6cf6aa7548ca82e7fed96d71db7821103e57 (patch)
tree708a7173885143204487ce9b3b32d08df88ab34a /services/camera/libcameraservice/Camera2Client.h
parentc8474b68e435cd840ba66791fb09e3da59f1d93c (diff)
downloadframeworks_av-f17b6cf6aa7548ca82e7fed96d71db7821103e57.zip
frameworks_av-f17b6cf6aa7548ca82e7fed96d71db7821103e57.tar.gz
frameworks_av-f17b6cf6aa7548ca82e7fed96d71db7821103e57.tar.bz2
Camera2: Fix metering/focusing region coordinates, minor bugs
- Use active pixel array-based coordinates instead of the normalized camera API coordinates for ae/awb/af regions - Fix calculation of UV stride for YV12 format Bug: 6243944 Change-Id: I80cbd989858b0a3cb75c6f536c145e16e44fdb25
Diffstat (limited to 'services/camera/libcameraservice/Camera2Client.h')
-rw-r--r--services/camera/libcameraservice/Camera2Client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/Camera2Client.h b/services/camera/libcameraservice/Camera2Client.h
index e2f5cc4..a3ab128 100644
--- a/services/camera/libcameraservice/Camera2Client.h
+++ b/services/camera/libcameraservice/Camera2Client.h
@@ -464,6 +464,8 @@ private:
// Map from sensor active array pixel coordinates to normalized camera
// parameter coordinates. The former are (0,0)-(array width - 1, array height
// - 1), the latter from (-1000,-1000)-(1000,1000)
+ int normalizedXToArray(int x) const;
+ int normalizedYToArray(int y) const;
int arrayXToNormalized(int width) const;
int arrayYToNormalized(int height) const;