OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 The Android Open Source Project | 2 * Copyright (C) 2011 The Android Open Source Project |
3 * | 3 * |
4 * Licensed under the Apache License, Version 2.0 (the "License"); | 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
5 * you may not use this file except in compliance with the License. | 5 * you may not use this file except in compliance with the License. |
6 * You may obtain a copy of the License at | 6 * You may obtain a copy of the License at |
7 * | 7 * |
8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
9 * | 9 * |
10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 * struct android_ycbcr (below) is the the struct used to describe it. | 230 * struct android_ycbcr (below) is the the struct used to describe it. |
231 * | 231 * |
232 * This format must be accepted by the gralloc module when | 232 * This format must be accepted by the gralloc module when |
233 * USAGE_HW_CAMERA_WRITE and USAGE_SW_READ_* are set. | 233 * USAGE_HW_CAMERA_WRITE and USAGE_SW_READ_* are set. |
234 * | 234 * |
235 * This format is locked for use by gralloc's (*lock_ycbcr) method, and | 235 * This format is locked for use by gralloc's (*lock_ycbcr) method, and |
236 * locking with the (*lock) method will return an error. | 236 * locking with the (*lock) method will return an error. |
237 */ | 237 */ |
238 HAL_PIXEL_FORMAT_YCbCr_420_888 = 0x23, | 238 HAL_PIXEL_FORMAT_YCbCr_420_888 = 0x23, |
239 | 239 |
| 240 /* |
| 241 * DRM specific format used by drm_gralloc |
| 242 */ |
| 243 HAL_PIXEL_FORMAT_DRM_NV12 = 0x102, |
| 244 |
240 /* Legacy formats (deprecated), used by ImageFormat.java */ | 245 /* Legacy formats (deprecated), used by ImageFormat.java */ |
241 HAL_PIXEL_FORMAT_YCbCr_422_SP = 0x10, // NV16 | 246 HAL_PIXEL_FORMAT_YCbCr_422_SP = 0x10, // NV16 |
242 HAL_PIXEL_FORMAT_YCrCb_420_SP = 0x11, // NV21 | 247 HAL_PIXEL_FORMAT_YCrCb_420_SP = 0x11, // NV21 |
243 HAL_PIXEL_FORMAT_YCbCr_422_I = 0x14, // YUY2 | 248 HAL_PIXEL_FORMAT_YCbCr_422_I = 0x14, // YUY2 |
244 }; | 249 }; |
245 | 250 |
246 /* | 251 /* |
247 * Structure for describing YCbCr formats for consumption by applications. | 252 * Structure for describing YCbCr formats for consumption by applications. |
248 * This is used with HAL_PIXEL_FORMAT_YCbCr_*_888. | 253 * This is used with HAL_PIXEL_FORMAT_YCbCr_*_888. |
249 * | 254 * |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 HAL_TRANSFORM_ROT_270 = 0x07, | 303 HAL_TRANSFORM_ROT_270 = 0x07, |
299 /* don't use. see system/window.h */ | 304 /* don't use. see system/window.h */ |
300 HAL_TRANSFORM_RESERVED = 0x08, | 305 HAL_TRANSFORM_RESERVED = 0x08, |
301 }; | 306 }; |
302 | 307 |
303 #ifdef __cplusplus | 308 #ifdef __cplusplus |
304 } | 309 } |
305 #endif | 310 #endif |
306 | 311 |
307 #endif /* SYSTEM_CORE_INCLUDE_ANDROID_GRAPHICS_H */ | 312 #endif /* SYSTEM_CORE_INCLUDE_ANDROID_GRAPHICS_H */ |
OLD | NEW |