Function ff_frame_pool_video_init

Source
pub unsafe extern "C" fn ff_frame_pool_video_init(
    alloc: Option<unsafe extern "C" fn(size: c_int) -> *mut AVBufferRef>,
    width: c_int,
    height: c_int,
    format: AVPixelFormat,
    align: c_int,
) -> *mut FFFramePool
Expand description

Allocate and initialize a video frame pool.

@param alloc a function that will be used to allocate new frame buffers when the pool is empty. May be NULL, then the default allocator will be used (av_buffer_alloc()). @param width width of each frame in this pool @param height height of each frame in this pool @param format format of each frame in this pool @param align buffers alignement of each frame in this pool @return newly created video frame pool on success, NULL on error.