Camera Format

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值