• Lynne's avatar
    imgutils: expose av_image_copy_plane_uc_from() · d5de9965
    Lynne authored
    The reason why the generic av_image_copy_uc_from() doesn't really
    fit in the case for Vulkan is because some planes may be copied via
    other methods (such as mapping GPU memory), and if they don't satisfy
    the strict alignment requirements, a gpu image->gpu buffer->cpu ram
    copy is performed.
    
    We need this for hwcontext_vulkan, and I think this will also be
    useful to API users like libplacebo who would rather not write
    a custom SIMD memcpy.
    d5de9965
imgutils.c 21.5 KB