summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Agopian2013-09-18 01:48:54 -0500
committerMathias Agopian2013-09-18 01:48:54 -0500
commit96675ed91ffe1ff95e7b10edf2b285f46b6f5213 (patch)
treeb97b51cab48e72fbcc36a38cda0dc011518436a8
parent3a0d4b34816d65e21951f44e4d98a954c5c855ae (diff)
downloadplatform-system-core-96675ed91ffe1ff95e7b10edf2b285f46b6f5213.tar.gz
platform-system-core-96675ed91ffe1ff95e7b10edf2b285f46b6f5213.tar.xz
platform-system-core-96675ed91ffe1ff95e7b10edf2b285f46b6f5213.zip
Fix rotation in camera2 API
Bug: 10804238 Change-Id: I093945789d9c6d373392fc9dfd18ec2c6058d3b9
-rw-r--r--include/system/graphics.h2
-rw-r--r--include/system/window.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/include/system/graphics.h b/include/system/graphics.h
index 154f9cb4c..be86ae42b 100644
--- a/include/system/graphics.h
+++ b/include/system/graphics.h
@@ -293,6 +293,8 @@ enum {
293 HAL_TRANSFORM_ROT_180 = 0x03, 293 HAL_TRANSFORM_ROT_180 = 0x03,
294 /* rotate source image 270 degrees clockwise */ 294 /* rotate source image 270 degrees clockwise */
295 HAL_TRANSFORM_ROT_270 = 0x07, 295 HAL_TRANSFORM_ROT_270 = 0x07,
296 /* don't use. see system/window.h */
297 HAL_TRANSFORM_RESERVED = 0x08,
296}; 298};
297 299
298#ifdef __cplusplus 300#ifdef __cplusplus
diff --git a/include/system/window.h b/include/system/window.h
index 7ce59e02f..649bd71fd 100644
--- a/include/system/window.h
+++ b/include/system/window.h
@@ -296,12 +296,15 @@ enum {
296 NATIVE_WINDOW_TRANSFORM_FLIP_H = HAL_TRANSFORM_FLIP_H , 296 NATIVE_WINDOW_TRANSFORM_FLIP_H = HAL_TRANSFORM_FLIP_H ,
297 /* flip source image vertically */ 297 /* flip source image vertically */
298 NATIVE_WINDOW_TRANSFORM_FLIP_V = HAL_TRANSFORM_FLIP_V, 298 NATIVE_WINDOW_TRANSFORM_FLIP_V = HAL_TRANSFORM_FLIP_V,
299 /* rotate source image 90 degrees clock-wise */ 299 /* rotate source image 90 degrees clock-wise, and is applied after TRANSFORM_FLIP_{H|V} */
300 NATIVE_WINDOW_TRANSFORM_ROT_90 = HAL_TRANSFORM_ROT_90, 300 NATIVE_WINDOW_TRANSFORM_ROT_90 = HAL_TRANSFORM_ROT_90,
301 /* rotate source image 180 degrees */ 301 /* rotate source image 180 degrees */
302 NATIVE_WINDOW_TRANSFORM_ROT_180 = HAL_TRANSFORM_ROT_180, 302 NATIVE_WINDOW_TRANSFORM_ROT_180 = HAL_TRANSFORM_ROT_180,
303 /* rotate source image 270 degrees clock-wise */ 303 /* rotate source image 270 degrees clock-wise */
304 NATIVE_WINDOW_TRANSFORM_ROT_270 = HAL_TRANSFORM_ROT_270, 304 NATIVE_WINDOW_TRANSFORM_ROT_270 = HAL_TRANSFORM_ROT_270,
305 /* transforms source by the inverse transform of the screen it is displayed onto. This
306 * transform is applied last */
307 NATIVE_WINDOW_TRANSFORM_INVERSE_DISPLAY = 0x08
305}; 308};
306 309
307/* parameter for NATIVE_WINDOW_SET_SCALING_MODE */ 310/* parameter for NATIVE_WINDOW_SET_SCALING_MODE */