VLC 4.0.0-dev
Loading...
Searching...
No Matches
picture.h
Go to the documentation of this file.
1/*****************************************************************************
2 * picture.h: picture internals
3 *****************************************************************************
4 * Copyright (C) 2015 Remi Denis-Courmont
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
20
21#include <stdatomic.h>
22#include <stddef.h>
23
24#include <vlc_picture.h>
25#include <vlc_list.h>
26struct vlc_ancillary;
27
28typedef struct
29{
31 struct
32 {
33 void (*destroy)(picture_t *);
34 void *opaque;
35 } gc;
36
37 void *pool; /* Only used by picture_pool.c */
38 struct vlc_list pool_node; /* Only used by picture_pool.c */
39
40 /** Private ancillary struct. Don't use it directly, but use it via
41 * picture_AttachAncillary() and picture_GetAncillary(). */
44
45void *picture_Allocate(int *, size_t);
46void picture_Deallocate(int, void *, size_t);
47
48picture_t * picture_InternalClone(picture_t *, void (*pf_destroy)(picture_t *), void *);
picture_t * picture_InternalClone(picture_t *, void(*pf_destroy)(picture_t *), void *)
Definition picture.c:445
void picture_Deallocate(int, void *, size_t)
Definition picture.c:84
void * picture_Allocate(int *, size_t)
Definition picture.h:29
struct vlc_ancillary ** ancillaries
Private ancillary struct.
Definition picture.h:42
void * opaque
Definition picture.h:34
void * pool
Definition picture.h:37
picture_t picture
Definition picture.h:30
Video picture.
Definition vlc_picture.h:130
Definition ancillary.c:31
Doubly-linked list node.
Definition vlc_list.h:44
This provides convenience helpers for linked lists.
This file defines picture structures and functions in vlc.