zoukankan      html  css  js  c++  java
  • Android色彩空间像素格式定义及设定

    /system/core/include/system/graphics.h

     1 /**
     2  * pixel format definitions
     3  */
     4 
     5 enum {
     6     HAL_PIXEL_FORMAT_RGBA_8888          = 1,
     7     HAL_PIXEL_FORMAT_RGBX_8888          = 2,
     8     HAL_PIXEL_FORMAT_RGB_888            = 3,
     9     HAL_PIXEL_FORMAT_RGB_565            = 4,
    10     HAL_PIXEL_FORMAT_BGRA_8888          = 5,
    11     HAL_PIXEL_FORMAT_RGBA_5551          = 6,
    12     HAL_PIXEL_FORMAT_RGBA_4444          = 7,
    13     /* 0x8 - 0xF range unavailable */
    14     HAL_PIXEL_FORMAT_YCbCr_422_SP       = 0x10,     // NV16
    15     HAL_PIXEL_FORMAT_YCrCb_420_SP       = 0x11,     // NV21 (_adreno)
    16     HAL_PIXEL_FORMAT_YCbCr_422_P        = 0x12,     // IYUV
    17     HAL_PIXEL_FORMAT_YCbCr_420_P        = 0x13,     // YUV9
    18     HAL_PIXEL_FORMAT_YCbCr_422_I        = 0x14,     // YUY2 (_adreno)
    19     /* 0x15 reserved */
    20     HAL_PIXEL_FORMAT_CbYCrY_422_I       = 0x16,     // UYVY (_adreno)
    21     /* 0x17 reserved */
    22     /* 0x18 - 0x1F range unavailable */
    23     HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED = 0x20,     // NV12_adreno_tiled
    24     HAL_PIXEL_FORMAT_YCbCr_420_SP       = 0x21,     // NV12
    25     HAL_PIXEL_FORMAT_YCrCb_420_SP_TILED = 0x22,     // NV21_adreno_tiled  
    26     HAL_PIXEL_FORMAT_YCrCb_422_SP       = 0x23,     // NV61
    27     HAL_PIXEL_FORMAT_YCrCb_422_P        = 0x24,     // YV12 (_adreno)
    28 };
     
     1 typedef enum {
     2     HAL_PIXEL_FORMAT_RGBA_8888 = 1,
     3     HAL_PIXEL_FORMAT_RGBX_8888 = 2,
     4     HAL_PIXEL_FORMAT_RGB_888 = 3,
     5     HAL_PIXEL_FORMAT_RGB_565 = 4,
     6     HAL_PIXEL_FORMAT_BGRA_8888 = 5,
     7     HAL_PIXEL_FORMAT_YCBCR_422_SP = 16,
     8     HAL_PIXEL_FORMAT_YCRCB_420_SP = 17,
     9     HAL_PIXEL_FORMAT_YCBCR_422_I = 20,
    10     HAL_PIXEL_FORMAT_RGBA_FP16 = 22,
    11     HAL_PIXEL_FORMAT_RAW16 = 32,
    12     HAL_PIXEL_FORMAT_BLOB = 33,
    13     HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED = 34,
    14     HAL_PIXEL_FORMAT_YCBCR_420_888 = 35,
    15     HAL_PIXEL_FORMAT_RAW_OPAQUE = 36,
    16     HAL_PIXEL_FORMAT_RAW10 = 37,
    17     HAL_PIXEL_FORMAT_RAW12 = 38,
    18     HAL_PIXEL_FORMAT_RGBA_1010102 = 43,
    19     HAL_PIXEL_FORMAT_Y8 = 538982489,
    20     HAL_PIXEL_FORMAT_Y16 = 540422489,
    21     HAL_PIXEL_FORMAT_YV12 = 842094169,
    22 } android_pixel_format_t;
  • 相关阅读:
    X11学习
    Linux 实用命令
    Notepad++ 添加右键菜单
    VS Code编译C/C++
    map与unordered_map的区别
    Rtt / vxworks 任务状态装换对比
    awesome computer vision repo
    英语每日金句
    不要在意七十亿分之一对另七十亿分之一的看法
    致知在格物,物格而后知至,知至而后意诚,意诚而后心正,心正而后身修,身修而后家齐,家齐而后
  • 原文地址:https://www.cnblogs.com/SaraMoring/p/14603444.html
Copyright © 2011-2022 走看看