diff options
author | Mathias Agopian | 2013-09-18 17:31:28 -0500 |
---|---|---|
committer | Android (Google) Code Review | 2013-09-18 17:31:28 -0500 |
commit | 7b445a8e3a21055a5735585ca0890d14977032f0 (patch) | |
tree | fd57965641974d57689be7c3a669fd8fae0e17c2 | |
parent | 4f18183bd6d3d2ed5d698c176ecc239211bdb82e (diff) | |
parent | 96675ed91ffe1ff95e7b10edf2b285f46b6f5213 (diff) | |
download | platform-system-core-7b445a8e3a21055a5735585ca0890d14977032f0.tar.gz platform-system-core-7b445a8e3a21055a5735585ca0890d14977032f0.tar.xz platform-system-core-7b445a8e3a21055a5735585ca0890d14977032f0.zip |
Merge "Fix rotation in camera2 API" into klp-dev
-rw-r--r-- | include/system/graphics.h | 2 | ||||
-rw-r--r-- | include/system/window.h | 5 |
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 */ |