Function webp_picture_copy

Source
pub unsafe fn webp_picture_copy(
    src: *const WebPPicture,
    dst: *mut WebPPicture,
) -> c_int
Expand description

Copy the pixels of *src into *dst, using WebPPictureAlloc.

Upon return, *dst will fully own the copied pixels (this is not a view). The ‘dst’ picture need not be initialized as its content is overwritten. Returns false in case of memory allocation error.