• Eino-Ville Talvala's avatar
    Add ANativeWindow dataSpace; update graphics formats, color spaces · a8cb3cd1
    Eino-Ville Talvala authored
    First stage of adding a new dataSpace field for ANativeWindow,
    for communicating format- (and endpoint-) dependent information
    about graphics buffers. For most formats, dataSpace describes the
    color space of the buffer, while format describes the memory layout.
    
    For some formats, the dataSpace may also specify that the buffer
    contains depth measurements, encoded images, or other kinds of
    information that is not necessarily a simple 2D image.
    Rename the existing colorspace enumeration to dataspace, with an added
    dataspace for depth, and sRGB gamma-corrected and linear colorspaces.
    
    Add in a definition for Android depth point clouds as a
    variable-length list of float-triplet coordinates, as the underlying
    layout of buffers with format HAL_PIXEL_FORMAT_BLOB and dataSpace of
    HAL_DATASPACE_DEPTH.
    
    Also remove now-unnecessary sRGB HAL graphics formats, and remove the
    alias RAW_SENSOR that was left in to ease transition to RAW16.
    
    Change-Id: I8797f67fb9c2b18da5975f2145303ca0bf98e62d
    a8cb3cd1
graphics.h 22.5 KB