Function webp_picture_alloc

Source
pub unsafe fn webp_picture_alloc(picture: *mut WebPPicture) -> c_int
Expand description

Convenience allocation / deallocation based on picture->width/height

Allocate y/u/v buffers as per colorspace/width/height specification. Note! This function will free the previous buffer if needed. Returns false in case of memory error.