2 * Copyright (C) <2011> Wim Taymans <wim.taymans@gmail.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library 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 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #ifndef __GST_VIDEO_POOL_H__
21 #define __GST_VIDEO_POOL_H__
25 #include <gst/video/video.h>
30 * GST_BUFFER_POOL_OPTION_VIDEO_META:
32 * An option that can be activated on bufferpool to request video metadata
33 * on buffers from the pool.
35 #define GST_BUFFER_POOL_OPTION_VIDEO_META "GstBufferPoolOptionVideoMeta"
38 * GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT:
40 * A bufferpool option to enable extra padding. When a bufferpool supports this
41 * option, gst_buffer_pool_config_set_video_alignment() can be called.
43 * When this option is enabled on the bufferpool,
44 * #GST_BUFFER_POOL_OPTION_VIDEO_META should also be enabled.
46 #define GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT "GstBufferPoolOptionVideoAlignment"
48 /* setting a bufferpool config */
49 void gst_buffer_pool_config_set_video_alignment (GstStructure *config, GstVideoAlignment *align);
50 gboolean gst_buffer_pool_config_get_video_alignment (GstStructure *config, GstVideoAlignment *align);
52 /* video bufferpool */
53 typedef struct _GstVideoBufferPool GstVideoBufferPool;
54 typedef struct _GstVideoBufferPoolClass GstVideoBufferPoolClass;
55 typedef struct _GstVideoBufferPoolPrivate GstVideoBufferPoolPrivate;
57 #define GST_TYPE_VIDEO_BUFFER_POOL (gst_video_buffer_pool_get_type())
58 #define GST_IS_VIDEO_BUFFER_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VIDEO_BUFFER_POOL))
59 #define GST_VIDEO_BUFFER_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VIDEO_BUFFER_POOL, GstVideoBufferPool))
60 #define GST_VIDEO_BUFFER_POOL_CAST(obj) ((GstVideoBufferPool*)(obj))
62 struct _GstVideoBufferPool
64 GstBufferPool bufferpool;
66 GstVideoBufferPoolPrivate *priv;
69 struct _GstVideoBufferPoolClass
71 GstBufferPoolClass parent_class;
74 GType gst_video_buffer_pool_get_type (void);
76 GstBufferPool * gst_video_buffer_pool_new (void);
80 #endif /* __GST_VIDEO_POOL_H__ */