FFmpeg
Typedefs | Functions
objpool.h File Reference

Go to the source code of this file.

Typedefs

typedef void *(* ObjPoolCBAlloc) (void)
 
typedef void(* ObjPoolCBReset) (void *)
 
typedef void(* ObjPoolCBFree) (void **)
 

Functions

void objpool_free (ObjPool **op)
 
ObjPoolobjpool_alloc (ObjPoolCBAlloc cb_alloc, ObjPoolCBReset cb_reset, ObjPoolCBFree cb_free)
 
ObjPoolobjpool_alloc_packets (void)
 
ObjPoolobjpool_alloc_frames (void)
 
int objpool_get (ObjPool *op, void **obj)
 
void objpool_release (ObjPool *op, void **obj)
 

Typedef Documentation

◆ ObjPoolCBAlloc

typedef void*(* ObjPoolCBAlloc) (void)

Definition at line 24 of file objpool.h.

◆ ObjPoolCBReset

typedef void(* ObjPoolCBReset) (void *)

Definition at line 25 of file objpool.h.

◆ ObjPoolCBFree

typedef void(* ObjPoolCBFree) (void **)

Definition at line 26 of file objpool.h.

Function Documentation

◆ objpool_free()

void objpool_free ( ObjPool **  op)

Definition at line 54 of file objpool.c.

Referenced by sq_free(), thread_start(), and tq_free().

◆ objpool_alloc()

ObjPool* objpool_alloc ( ObjPoolCBAlloc  cb_alloc,
ObjPoolCBReset  cb_reset,
ObjPoolCBFree  cb_free 
)

Definition at line 39 of file objpool.c.

Referenced by objpool_alloc_frames(), and objpool_alloc_packets().

◆ objpool_alloc_packets()

ObjPool* objpool_alloc_packets ( void  )

Definition at line 124 of file objpool.c.

Referenced by sq_alloc(), and thread_start().

◆ objpool_alloc_frames()

ObjPool* objpool_alloc_frames ( void  )

Definition at line 128 of file objpool.c.

Referenced by sq_alloc().

◆ objpool_get()

int objpool_get ( ObjPool op,
void **  obj 
)

Definition at line 67 of file objpool.c.

Referenced by sq_send(), and tq_send().

◆ objpool_release()

void objpool_release ( ObjPool op,
void **  obj 
)

Definition at line 78 of file objpool.c.

Referenced by receive_for_stream(), receive_locked(), sq_free(), sq_send(), and tq_free().