QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
vlc_picture_pool.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * vlc_picture_pool.h: picture pool definitions
3  *****************************************************************************
4  * Copyright (C) 2009 VLC authors and VideoLAN
5  * $Id: d4574dc5a1dfd2d873c6f286ee612462f886bb33 $
6  *
7  * Authors: Laurent Aimar <fenrir _AT_ videolan _DOT_ org>
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU Lesser General Public License as published by
11  * the Free Software Foundation; either version 2.1 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23 
24 #ifndef VLC_PICTURE_POOL_H
25 #define VLC_PICTURE_POOL_H 1
26 
32 #include <vlc_picture.h>
33 
41 
45 typedef struct {
46  int picture_count;
47  picture_t **picture;
48 
49  int (*lock)(picture_t *);
50  void (*unlock)(picture_t *);
52 
66 
72 VLC_API picture_pool_t * picture_pool_New( int picture_count, picture_t *picture[] ) VLC_USED;
73 
79 VLC_API picture_pool_t * picture_pool_NewFromFormat( const video_format_t *, int picture_count ) VLC_USED;
80 
87 VLC_API void picture_pool_Delete( picture_pool_t * );
88 
94 VLC_API picture_t * picture_pool_Get( picture_pool_t * ) VLC_USED;
95 
107 VLC_API void picture_pool_NonEmpty( picture_pool_t *, bool reset );
108 
117 VLC_API picture_pool_t * picture_pool_Reserve(picture_pool_t *, int picture_count) VLC_USED;
118 
122 VLC_API int picture_pool_GetSize(picture_pool_t *);
123 
124 
125 #endif /* VLC_PICTURE_POOL_H */
126 
Definition: vlc_picture.h:69
Definition: vlc_picture_pool.h:45
VLC_API picture_t * picture_pool_Get(picture_pool_t *) VLC_USED
VLC_API void picture_pool_NonEmpty(picture_pool_t *, bool reset)
VLC_API void picture_pool_Delete(picture_pool_t *)
VLC_API picture_pool_t * picture_pool_Reserve(picture_pool_t *, int picture_count) VLC_USED
Definition: vlc_es.h:180
VLC_API picture_pool_t * picture_pool_NewFromFormat(const video_format_t *, int picture_count) VLC_USED
struct picture_pool_t picture_pool_t
Definition: vlc_picture_pool.h:40
VLC_API picture_pool_t * picture_pool_NewExtended(const picture_pool_configuration_t *) VLC_USED
VLC_API int picture_pool_GetSize(picture_pool_t *)
VLC_API picture_pool_t * picture_pool_New(int picture_count, picture_t *picture[]) VLC_USED