FFmpeg
fftools
objpool.h
Go to the documentation of this file.
1
/*
2
* This file is part of FFmpeg.
3
*
4
* FFmpeg is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
8
*
9
* FFmpeg is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with FFmpeg; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
19
#ifndef FFTOOLS_OBJPOOL_H
20
#define FFTOOLS_OBJPOOL_H
21
22
typedef
struct
ObjPool
ObjPool
;
23
24
typedef
void
* (*ObjPoolCBAlloc)(void);
25
typedef
void (*
ObjPoolCBReset
)(
void
*);
26
typedef
void (*
ObjPoolCBFree
)(
void
**);
27
28
void
objpool_free
(
ObjPool
**
op
);
29
ObjPool
*
objpool_alloc
(
ObjPoolCBAlloc
cb_alloc,
ObjPoolCBReset
cb_reset,
30
ObjPoolCBFree
cb_free);
31
ObjPool
*
objpool_alloc_packets
(
void
);
32
ObjPool
*
objpool_alloc_frames
(
void
);
33
34
int
objpool_get
(
ObjPool
*
op
,
void
**obj);
35
void
objpool_release
(
ObjPool
*
op
,
void
**obj);
36
37
#endif // FFTOOLS_OBJPOOL_H
ObjPoolCBAlloc
void *(* ObjPoolCBAlloc)(void)
Definition:
objpool.h:24
op
static int op(uint8_t **dst, const uint8_t *dst_end, GetByteContext *gb, int pixel, int count, int *x, int width, int linesize)
Perform decode operation.
Definition:
anm.c:76
ObjPoolCBReset
void(* ObjPoolCBReset)(void *)
Definition:
objpool.h:25
objpool_release
void objpool_release(ObjPool *op, void **obj)
Definition:
objpool.c:78
objpool_alloc
ObjPool * objpool_alloc(ObjPoolCBAlloc cb_alloc, ObjPoolCBReset cb_reset, ObjPoolCBFree cb_free)
Definition:
objpool.c:39
ObjPool
Definition:
objpool.c:30
objpool_free
void objpool_free(ObjPool **op)
Definition:
objpool.c:54
ObjPoolCBFree
void(* ObjPoolCBFree)(void **)
Definition:
objpool.h:26
objpool_alloc_packets
ObjPool * objpool_alloc_packets(void)
Definition:
objpool.c:124
objpool_alloc_frames
ObjPool * objpool_alloc_frames(void)
Definition:
objpool.c:128
objpool_get
int objpool_get(ObjPool *op, void **obj)
Definition:
objpool.c:67
Generated on Thu Apr 18 2024 22:41:38 for FFmpeg by
1.8.17