FFmpeg
Functions | Variables
buffer.c File Reference
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include "libavutil/buffer.h"
#include "libavutil/mem.h"

Go to the source code of this file.

Functions

static void custom_free (void *opaque, uint8_t *data)
 
static AVBufferRefpool_alloc2 (void *opaque, size_t size)
 
static void pool_free_cb (void *opaque)
 
int main (void)
 

Variables

static int custom_free_called
 
static int pool_free_called
 
static int pool_alloc2_called
 

Function Documentation

◆ custom_free()

static void custom_free ( void *  opaque,
uint8_t *  data 
)
static

Definition at line 30 of file buffer.c.

Referenced by main().

◆ pool_alloc2()

static AVBufferRef* pool_alloc2 ( void *  opaque,
size_t  size 
)
static

Definition at line 36 of file buffer.c.

Referenced by main().

◆ pool_free_cb()

static void pool_free_cb ( void *  opaque)
static

Definition at line 42 of file buffer.c.

Referenced by main().

◆ main()

int main ( void  )

Definition at line 47 of file buffer.c.

Variable Documentation

◆ custom_free_called

int custom_free_called
static

Definition at line 26 of file buffer.c.

Referenced by custom_free(), and main().

◆ pool_free_called

int pool_free_called
static

Definition at line 27 of file buffer.c.

Referenced by main(), and pool_free_cb().

◆ pool_alloc2_called

int pool_alloc2_called
static

Definition at line 28 of file buffer.c.

Referenced by main(), and pool_alloc2().