Function av_image_copy_plane_uc_from

pub unsafe extern "C" fn av_image_copy_plane_uc_from(
    dst: *mut u8,
    dst_linesize: isize,
    src: *const u8,
    src_linesize: isize,
    bytewidth: isize,
    height: i32,
)
Expand description

Copy image data located in uncacheable (e.g. GPU mapped) memory. Where available, this function will use special functionality for reading from such memory, which may result in greatly improved performance compared to plain av_image_copy_plane().

bytewidth must be contained by both absolute values of dst_linesize and src_linesize, otherwise the function behavior is undefined.

@note The linesize parameters have the type ptrdiff_t here, while they are int for av_image_copy_plane(). @note On x86, the linesizes currently need to be aligned to the cacheline size (i.e. 64) to get improved performance.