Function android_display_import_buffer

Source
unsafe extern "C" fn android_display_import_buffer(
    ctx: *mut AndroidDisplayContext,
    ahb_info: *const AHardwareBufferInfo,
) -> *mut AHardwareBuffer
Expand description

Creates an AHardwareBuffer from ahb_info and returns an owned reference to it, or null on failure. The buffer keeps its own copies of the file descriptors, so ahb_info does not need to outlive the call. The returned buffer must be released with android_display_release_buffer.