frameworks/base/core/java/android/hardware/camera2/params/StreamConfigurationMap.java
// from system/core/include/system/graphics.h
private static final int HAL_PIXEL_FORMAT_RAW16 = 0x20; //十进制:32
private static final int HAL_PIXEL_FORMAT_BLOB = 0x21; //十进制:33
private static final int HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED = 0x22;
private static final int HAL_PIXEL_FORMAT_YCbCr_420_888 = 0x23;
private static final int HAL_PIXEL_FORMAT_RAW_OPAQUE = 0x24;
private static final int HAL_PIXEL_FORMAT_RAW10 = 0x25; //十进制:37
private static final int HAL_PIXEL_FORMAT_RAW12 = 0x26; //十进制:38
private static final int HAL_PIXEL_FORMAT_Y16 = 0x20363159;
vendor/qcom/proprietary/camx/src/core/hal/camxcommontypes.h
enum HALPixelFormat
{
// "Linear" color pixel formats. When used with ANativeWindow, the dataspace field describes the color space of the buffer.
HALPixelFormatRGBA8888 = 0x00000001, ///< RGBA8888
HALPixelFormatRGBX8888 = 0x00000002, ///< RGBX8888
HALPixelFormatRGB888 = 0x00000003, ///< RGB888
HALPixelFormatRGB565 = 0x00000004, ///< RGB565
HALPixelFormatBGRA8888 = 0x00000005, ///< BGRA8888
// YUV pixel formats. When used with ANativeWindow, the dataspace field describes the color space of the buffer.
HALPixelFormatYV12 = 0x32315659, ///< YCrCb 4:2:0 Planar, 12-bits per pixel
HALPixelFormatY8 = 0x20203859, ///< Y-only Planar, 8-bits per pixel
HALPixelFormatY16 = 0x20363159, ///< Y-only Planar, 16-bits per pixel
// Raw sensor pixel formats. When used with ANativeWindow, the dataspace should be HAL_DATASPACE_ARBITRARY
HALPixelFormatRaw16 = 0x00000020, ///< 16-bit per pixel, Bayer pattern sensor-dependent
HALPixelFormatRaw10 = 0x00000025, ///< 10-bit per pixel, densely packed per row, Bayer pattern sensor-dependent
HALPixelFormatRaw12 = 0x00000026, ///< 12-bit per pixel, densely packed per row, Bayer pattern sensor-dependent
HALPixelFormatRawOpaque = 0x00000024, ///< Implementation-dependent
// Generic pixel formats. When used with ANativeWindow, the dataSpace field describes the color space of the buffer.
HALPixelFormatBlob = 0x00000021, ///< Carries data which does not have a standard image structure (e.g. JPEG)
HALPixelFormatImplDefined = 0x00000022, ///< Format is up to the device-specific Gralloc implementation.
// Flexible YCbCr 4:2:0 formats. When used with ANativeWindow, the dataSpace field describes the color space of the buffer.
HALPixelFormatYCbCr420_888 = 0x00000023, ///< Efficient YCbCr/YCrCb 4:2:0 buffer layout, layout-independent
// Flexible YCbCr 4:2:2 formats
HALPixelFormatYCbCr422_888 = 0x00000027, ///< Efficient YCbCr/YCrCb 4:2:2 buffer layout, layout-independent
// Flexible YCbCr 4:4:4 formats
HALPixelFormatYCbCr444_888 = 0x00000028, ///< Efficient YCbCr/YCrCb 4:2:2 buffer layout, layout-independent
chi-cdk/api/common/chi.h
chi-cdk/api/node/chinode.h
typedef enum ChiBufferFormat