Go to the documentation of this file.
21 #ifndef AVFILTER_FRAMEPOOL_H
22 #define AVFILTER_FRAMEPOOL_H
FFFramePool * ff_frame_pool_audio_init(AVBufferRef *(*alloc)(size_t size), int channels, int samples, enum AVSampleFormat format, int align)
Allocate and initialize an audio frame pool.
AVPixelFormat
Pixel format.
This structure describes decoded (raw) audio or video data.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample format(the sample packing is implied by the sample format) and sample rate. The lists are not just lists
AVFrame * ff_frame_pool_get(FFFramePool *pool)
Allocate a new AVFrame, reussing old buffers from the pool when available.
FFFramePool * ff_frame_pool_video_init(AVBufferRef *(*alloc)(size_t size), int width, int height, enum AVPixelFormat format, int align)
Allocate and initialize a video frame pool.
static const uint8_t *BS_FUNC() align(BSCTX *bc)
Skip bits to a byte boundary.
int ff_frame_pool_get_audio_config(FFFramePool *pool, int *channels, int *nb_samples, enum AVSampleFormat *format, int *align)
Get the audio frame pool configuration.
int ff_frame_pool_get_video_config(FFFramePool *pool, int *width, int *height, enum AVPixelFormat *format, int *align)
Get the video frame pool configuration.
AVSampleFormat
Audio sample formats.
Filter the word “frame” indicates either a video frame or a group of audio samples
A reference to a data buffer.
void ff_frame_pool_uninit(FFFramePool **pool)
Deallocate the frame pool.