av_image_alloc

Allocate an image with size w and h and pixel format pix_fmt, and fill pointers and linesizes accordingly. The allocated image buffer has to be freed by using av_freep(&pointers[0]).

@param align the value to use for buffer size alignment @return the size in bytes required for the image buffer, a negative error code in case of failure

extern (C) @nogc nothrow
int
av_image_alloc
(
ref ubyte*[4] pointers
,
ref int[4] linesizes
,
int w
,
int h
,,
int align_
)

Meta