Merge "graphics: polish Transform docs and indent ColorMode" into oc-dev

This commit is contained in:
TreeHugger Robot 2017-05-01 21:09:36 +00:00 committed by Android (Google) Code Review
commit 76061d7881
2 changed files with 213 additions and 210 deletions

View file

@ -98,7 +98,7 @@ bd366b83d8d565d0e8bfabff3adfcab0259d75b4e2a9f8e1b91e11d1593a2ffb android.hardwar
17971eb8a482893dadcfc16e0583f492d42a034ef95d9b0b709417af30838396 android.hardware.graphics.allocator@2.0::IAllocator
60bf42a4898e4fb70dbd720b263aeafd7f35f5e1a5effeabb4d5d659878a5f18 android.hardware.graphics.bufferqueue@1.0::IGraphicBufferProducer
b8a75617b9ec12bea641f3a73d4025a33e8b9a2f9169dd46094af56adf9249c5 android.hardware.graphics.bufferqueue@1.0::IProducerListener
862cd4c41884b6c06d843b88061a021ed117e751b60b8efe8916eb64a0b3c062 android.hardware.graphics.common@1.0::types
4f6dedbcdd21c309dfc650acea81a096d6b242493ffe49c8d61bd3c43aad354e android.hardware.graphics.common@1.0::types
b3aac6c3817f039964fcd62268274b3039e17bd7d0d5b40b4d1d1c7b19a1f866 android.hardware.graphics.composer@2.1::IComposer
b19d00eb8a8b3b0034a0321f22e8f32162bf4c2aebbce6da22c025f56e459ea2 android.hardware.graphics.composer@2.1::IComposerCallback
e992684e690dfe67a8cbeab5005bfa3fa9c2bf3d4b0b75657fb1f0c2d5dd2bae android.hardware.graphics.composer@2.1::IComposerClient

View file

@ -505,26 +505,29 @@ enum BufferUsage : uint64_t {
/**
* Transformation definitions
*
* IMPORTANT NOTE:
* ROT_90 is applied CLOCKWISE and AFTER FLIP_{H|V}.
*
*/
@export(name="android_transform_t", value_prefix="HAL_TRANSFORM_")
enum Transform : int32_t {
/** flip source image horizontally (around the vertical axis) */
FLIP_H = 0x01,
/**
* flip source image vertically (around the horizontal axis)*/
FLIP_V = 0x02,
/** rotate source image 90 degrees clockwise */
ROT_90 = 0x04,
/** rotate source image 180 degrees */
ROT_180 = 0x03,
/** rotate source image 270 degrees clockwise */
ROT_270 = 0x07,
* Horizontal flip. FLIP_H/FLIP_V is applied before ROT_90.
*/
FLIP_H = 1 << 0,
/** 0x08 is reserved */
/**
* Vertical flip. FLIP_H/FLIP_V is applied before ROT_90.
*/
FLIP_V = 1 << 1,
/**
* 90 degree clockwise rotation. FLIP_H/FLIP_V is applied before ROT_90.
*/
ROT_90 = 1 << 2,
/**
* Commonly used combinations.
*/
ROT_180 = FLIP_H | FLIP_V,
ROT_270 = FLIP_H | FLIP_V | ROT_90,
};
/**