Add sami extension for auto-loading of subs
[vlc.git] / modules / codec / gstreamer / gstvlcvideopool.h
blob373a5665e4e35d79acf6c034d0feadca7ffbf77a
1 /*****************************************************************************
2 * gstvlcvideopool.h: VLC pictures managed by GstBufferPool
3 *****************************************************************************
4 * Copyright (C) 2016 VLC authors and VideoLAN
5 * $Id:
7 * Author: Vikram Fugro <vikram.fugro@gmail.com>
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library 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 GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Library General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 *****************************************************************************/
24 /*****************************************************************************
25 * Preamble
26 *****************************************************************************/
27 #ifndef VLC_GST_VIDEO_POOL_H
28 #define VLC_GST_VIDEO_POOL_H
30 #include <gst/gstbufferpool.h>
31 #include <gst/video/gstvideopool.h>
33 #include "gstvlcpictureplaneallocator.h"
35 typedef struct _GstVlcVideoPool GstVlcVideoPool;
36 typedef struct _GstVlcVideoPoolClass GstVlcVideoPoolClass;
38 /* buffer pool functions */
39 #define GST_TYPE_VLC_VIDEO_POOL (gst_vlc_video_pool_get_type())
40 #define GST_IS_VLC_VIDEO_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
41 GST_TYPE_VLC_VIDEO_POOL))
42 #define GST_VLC_VIDEO_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
43 GST_TYPE_VLC_VIDEO_POOL, \
44 GstVlcVideoPool))
45 #define GST_VLC_VIDEO_POOL_CAST(obj) ((GstVlcVideoPool*)(obj))
47 struct _GstVlcVideoPool
49 GstBufferPool bufferpool;
50 GstVlcPicturePlaneAllocator *p_allocator;
52 GstCaps *p_caps;
53 GstVideoInfo info;
54 GstVideoAlignment align;
55 bool b_add_metavideo;
56 bool b_need_aligned;
58 decoder_t *p_dec;
61 struct _GstVlcVideoPoolClass
63 GstBufferPoolClass parent_class;
66 GType gst_vlc_video_pool_get_type( void );
67 GstVlcVideoPool* gst_vlc_video_pool_new(
68 GstAllocator *p_allocator, decoder_t *p_dec );
70 #endif /*__GST_VLC_VIDEO_POOL_H__*/