Skip to content
  • Gurchetan Singh's avatar
    anv: allow NV12 <--> AHARDWAREBUFFER_FORMAT_Y8Cb8Cr8_420 inter-op · 110f139f
    Gurchetan Singh authored
    
    
    AHARDWAREBUFFER_FORMAT_Y8Cb8Cr8_420 is an implementation defined
    flexible YUV format.  Most of the times, it's NV12 or YV12.
    On Intel, NV12 is preferred since it can be used by the display
    engine.  
    
    This API adds a dependency between gralloc and buffer consumers,
    unfortunately.  Right now, the code seems to work for i915 gralloc,
    but not cros_gralloc.  Add a preprocessor flag to fix this.
    
    TEST=android.graphics.cts.MediaVulkanGpuTest#testMediaImportAndRendering
    
    Reviewed-by: default avatarTapani Pälli <tapani.palli@intel.com>
    110f139f