FFmpeg
Loading...
Searching...
No Matches
frame_internal.h File Reference
#include <stddef.h>
#include "buffer.h"
#include "frame.h"

Go to the source code of this file.

Functions

int ff_frame_get_video_buffer (AVFrame *frame, int align, AVBufferRef *(*alloc)(void *opaque, size_t size), void *opaque)
 Allocate the buffer of a video frame like av_frame_get_buffer().
 

Function Documentation

◆ ff_frame_get_video_buffer()

int ff_frame_get_video_buffer ( AVFrame * frame,
int align,
AVBufferRef *(* alloc )(void *opaque, size_t size),
void * opaque )

Allocate the buffer of a video frame like av_frame_get_buffer().

Parameters
allocallocates the buffer, av_buffer_alloc() is used if NULL
opaquepassed to alloc

Definition at line 76 of file frame.c.

Referenced by av_frame_get_buffer(), and av_hwframe_get_transfer_buffer().