From 48cd34080c3d4009eca0850001ed380112c8e6ee Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Thu, 17 Dec 2015 13:58:19 -0800 Subject: [PATCH] Name the pixel format and transform enums Adds an actual enum name for the HAL_PIXEL_FORMAT_* and HAL_TRANSFORM_* enums. Change-Id: I8d03c3695e8956b3b525559edcb37213ade6a0de --- include/system/graphics.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/system/graphics.h b/include/system/graphics.h index afd9f7bdb..cf2d7de01 100644 --- a/include/system/graphics.h +++ b/include/system/graphics.h @@ -41,7 +41,7 @@ extern "C" { * pixel format definitions */ -enum { +typedef enum android_pixel_format { /* * "linear" color pixel formats: * @@ -440,7 +440,7 @@ enum { HAL_PIXEL_FORMAT_YCbCr_422_SP = 0x10, // NV16 HAL_PIXEL_FORMAT_YCrCb_420_SP = 0x11, // NV21 HAL_PIXEL_FORMAT_YCbCr_422_I = 0x14, // YUY2 -}; +} android_pixel_format_t; /* * Structure for describing YCbCr formats for consumption by applications. @@ -526,7 +526,7 @@ struct android_depth_points { * */ -enum { +typedef enum android_transform { /* flip source image horizontally (around the vertical axis) */ HAL_TRANSFORM_FLIP_H = 0x01, /* flip source image vertically (around the horizontal axis)*/ @@ -539,7 +539,7 @@ enum { HAL_TRANSFORM_ROT_270 = 0x07, /* don't use. see system/window.h */ HAL_TRANSFORM_RESERVED = 0x08, -}; +} android_transform_t; /** * Dataspace Definitions