FFmpeg
Loading...
Searching...
No Matches
get_buffer.c File Reference
#include <stdint.h>
#include "libavutil/avassert.h"
#include "libavutil/avutil.h"
#include "libavutil/buffer.h"
#include "libavutil/frame.h"
#include "libavutil/hwcontext.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/samplefmt.h"
#include "libavutil/version.h"
#include "avcodec.h"
#include "internal.h"
#include "libavutil/refstruct.h"

Go to the source code of this file.

Data Structures

struct  FramePool

Functions

static void frame_pool_free (AVRefStructOpaque unused, void *obj)
static int update_frame_pool (AVCodecContext *avctx, AVFrame *frame)
static int audio_get_buffer (AVCodecContext *avctx, AVFrame *frame)
static int video_get_buffer (AVCodecContext *s, AVFrame *pic)
int avcodec_default_get_buffer2 (AVCodecContext *avctx, AVFrame *frame, int flags)
 The default callback for AVCodecContext.get_buffer2().

Function Documentation

◆ frame_pool_free()

void frame_pool_free ( AVRefStructOpaque unused,
void * obj )
static

Definition at line 56 of file get_buffer.c.

Referenced by update_frame_pool().

◆ update_frame_pool()

int update_frame_pool ( AVCodecContext * avctx,
AVFrame * frame )
static

Definition at line 65 of file get_buffer.c.

Referenced by avcodec_default_get_buffer2().

◆ audio_get_buffer()

int audio_get_buffer ( AVCodecContext * avctx,
AVFrame * frame )
static

Definition at line 172 of file get_buffer.c.

Referenced by avcodec_default_get_buffer2().

◆ video_get_buffer()

int video_get_buffer ( AVCodecContext * s,
AVFrame * pic )
static

Definition at line 217 of file get_buffer.c.

Referenced by avcodec_default_get_buffer2().