auto import from //branches/cupcake/...@131421

This commit is contained in:
The Android Open Source Project 2009-02-13 12:57:52 -08:00
parent b376203efb
commit a5d999ff17
3 changed files with 28 additions and 10 deletions

View file

@ -63,15 +63,15 @@ enum {
/* values for copybit_set_parameter(COPYBIT_TRANSFORM) */
enum {
/* flip source image horizontally */
COPYBIT_TRANSFORM_FLIP_H = 0x01,
COPYBIT_TRANSFORM_FLIP_H = HAL_TRANSFORM_FLIP_H,
/* flip source image vertically */
COPYBIT_TRANSFORM_FLIP_V = 0x02,
COPYBIT_TRANSFORM_FLIP_V = HAL_TRANSFORM_FLIP_V,
/* rotate source image 90 degres */
COPYBIT_TRANSFORM_ROT_90 = 0x04,
COPYBIT_TRANSFORM_ROT_90 = HAL_TRANSFORM_ROT_90,
/* rotate source image 180 degres */
COPYBIT_TRANSFORM_ROT_180 = 0x03,
COPYBIT_TRANSFORM_ROT_180 = HAL_TRANSFORM_ROT_180,
/* rotate source image 270 degres */
COPYBIT_TRANSFORM_ROT_270 = 0x07,
COPYBIT_TRANSFORM_ROT_270 = HAL_TRANSFORM_ROT_270,
};
/* enable/disable value copybit_set_parameter */

View file

@ -125,6 +125,24 @@ enum {
HAL_PIXEL_FORMAT_YCbCr_420_I = 0x15
};
/**
* Transformation definitions
*/
enum {
/* flip source image horizontally */
HAL_TRANSFORM_FLIP_H = 0x01,
/* flip source image vertically */
HAL_TRANSFORM_FLIP_V = 0x02,
/* rotate source image 90 degres */
HAL_TRANSFORM_ROT_90 = 0x04,
/* rotate source image 180 degres */
HAL_TRANSFORM_ROT_180 = 0x03,
/* rotate source image 270 degres */
HAL_TRANSFORM_ROT_270 = 0x07,
};
__END_DECLS
#endif /* ANDROID_INCLUDE_HARDWARE_HARDWARE_H */

View file

@ -52,15 +52,15 @@ enum {
/* values for copybit_set_parameter(OVERLAY_TRANSFORM) */
enum {
/* flip source image horizontally */
OVERLAY_TRANSFORM_FLIP_H = 0x01,
OVERLAY_TRANSFORM_FLIP_H = HAL_TRANSFORM_FLIP_V,
/* flip source image vertically */
OVERLAY_TRANSFORM_FLIP_V = 0x02,
OVERLAY_TRANSFORM_FLIP_V = HAL_TRANSFORM_FLIP_H,
/* rotate source image 90 degrees */
OVERLAY_TRANSFORM_ROT_90 = 0x04,
OVERLAY_TRANSFORM_ROT_90 = HAL_TRANSFORM_ROT_90,
/* rotate source image 180 degrees */
OVERLAY_TRANSFORM_ROT_180 = 0x03,
OVERLAY_TRANSFORM_ROT_180 = HAL_TRANSFORM_ROT_180,
/* rotate source image 270 degrees */
OVERLAY_TRANSFORM_ROT_270 = 0x07,
OVERLAY_TRANSFORM_ROT_270 = HAL_TRANSFORM_ROT_270
};
/* names for setParameter() */