From 0a052487f42507af7a0dc2c144f9d11eb98aecfe Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Thu, 7 Jun 2012 17:52:15 -0700 Subject: Add HAL_PIXEL_FORMAT_BLOB This format describes buffers that are not structured like normal image data, and can only be meaningfully understood by the endpoints. As an example, this format is used for transporting JPEG-compressed image buffers from the Camera HAL to the framework/apps. Buffers of this format must have a height of 1 and a width equal to their size in bytes. Otherwise their interpretation is up to the two endpoints. Bug: 6243944 Change-Id: Ia81015694cbf3a89e29bfbf3624c3ea2ef4f66fd --- include/system/graphics.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include') diff --git a/include/system/graphics.h b/include/system/graphics.h index 24e2bfb2..e0ad257f 100644 --- a/include/system/graphics.h +++ b/include/system/graphics.h @@ -109,6 +109,21 @@ enum { */ HAL_PIXEL_FORMAT_RAW_SENSOR = 0x20, + /* + * Android binary blob graphics buffer format: + * + * This format is used to carry task-specific data which does not have a + * standard image structure. The details of the format are left to the two + * endpoints. + * + * A typical use case is for transporting JPEG-compressed images from the + * Camera HAL to the framework or to applications. + * + * Buffers of this format must have a height of 1, and width equal to their + * size in bytes. + */ + HAL_PIXEL_FORMAT_BLOB = 0x21, + /* Legacy formats (deprecated), used by ImageFormat.java */ HAL_PIXEL_FORMAT_YCbCr_422_SP = 0x10, // NV16 HAL_PIXEL_FORMAT_YCrCb_420_SP = 0x11, // NV21 -- cgit v1.2.3