summaryrefslogtreecommitdiffstats
path: root/include/hardware
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-10-26 12:21:50 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-10-26 12:21:50 -0700
commit2ec5715af2237e2f56a5269fa1e1305644c916b1 (patch)
tree82cf654d5e430eb1cd6740b777da3db706be112c /include/hardware
parent871815b5f144048b63a18ef764f82e89394899fa (diff)
parentcaf9528e32201237c35284c253cb4503cafb73c6 (diff)
downloadhardware_libhardware-2ec5715af2237e2f56a5269fa1e1305644c916b1.zip
hardware_libhardware-2ec5715af2237e2f56a5269fa1e1305644c916b1.tar.gz
hardware_libhardware-2ec5715af2237e2f56a5269fa1e1305644c916b1.tar.bz2
am caf9528e: am 2d1e978e: improve hardware.h documentation
Diffstat (limited to 'include/hardware')
-rw-r--r--include/hardware/hardware.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/hardware/hardware.h b/include/hardware/hardware.h
index c41c81c..598ec2c 100644
--- a/include/hardware/hardware.h
+++ b/include/hardware/hardware.h
@@ -179,18 +179,22 @@ enum {
/**
* Transformation definitions
+ *
+ * IMPORTANT NOTE:
+ * HAL_TRANSFORM_ROT_90 is applied CLOCKWISE and AFTER HAL_TRANSFORM_FLIP_{H|V}.
+ *
*/
enum {
- /* flip source image horizontally */
+ /* flip source image horizontally (around the vertical axis) */
HAL_TRANSFORM_FLIP_H = 0x01,
- /* flip source image vertically */
+ /* flip source image vertically (around the horizontal axis)*/
HAL_TRANSFORM_FLIP_V = 0x02,
- /* rotate source image 90 degrees */
+ /* rotate source image 90 degrees clockwise */
HAL_TRANSFORM_ROT_90 = 0x04,
/* rotate source image 180 degrees */
HAL_TRANSFORM_ROT_180 = 0x03,
- /* rotate source image 270 degrees */
+ /* rotate source image 270 degrees clockwise */
HAL_TRANSFORM_ROT_270 = 0x07,
};