Blame gst-libs/gst/video/gstvideopool.h

Packit 971217
/* GStreamer
Packit 971217
 * Copyright (C) <2011> Wim Taymans <wim.taymans@gmail.com>
Packit 971217
 *
Packit 971217
 * This library is free software; you can redistribute it and/or
Packit 971217
 * modify it under the terms of the GNU Library General Public
Packit 971217
 * License as published by the Free Software Foundation; either
Packit 971217
 * version 2 of the License, or (at your option) any later version.
Packit 971217
 *
Packit 971217
 * This library is distributed in the hope that it will be useful,
Packit 971217
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 971217
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 971217
 * Library General Public License for more details.
Packit 971217
 *
Packit 971217
 * You should have received a copy of the GNU Library General Public
Packit 971217
 * License along with this library; if not, write to the
Packit 971217
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 971217
 * Boston, MA 02110-1301, USA.
Packit 971217
 */
Packit 971217
Packit 971217
#ifndef __GST_VIDEO_POOL_H__
Packit 971217
#define __GST_VIDEO_POOL_H__
Packit 971217
Packit 971217
#include <gst/gst.h>
Packit 971217
Packit 971217
#include <gst/video/video.h>
Packit 971217
Packit 971217
G_BEGIN_DECLS
Packit 971217
Packit 971217
/**
Packit 971217
 * GST_BUFFER_POOL_OPTION_VIDEO_META:
Packit 971217
 *
Packit 971217
 * An option that can be activated on bufferpool to request video metadata
Packit 971217
 * on buffers from the pool.
Packit 971217
 */
Packit 971217
#define GST_BUFFER_POOL_OPTION_VIDEO_META "GstBufferPoolOptionVideoMeta"
Packit 971217
Packit 971217
/**
Packit 971217
 * GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT:
Packit 971217
 *
Packit 971217
 * A bufferpool option to enable extra padding. When a bufferpool supports this
Packit 971217
 * option, gst_buffer_pool_config_set_video_alignment() can be called.
Packit 971217
 *
Packit 971217
 * When this option is enabled on the bufferpool,
Packit 971217
 * #GST_BUFFER_POOL_OPTION_VIDEO_META should also be enabled.
Packit 971217
 */
Packit 971217
#define GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT "GstBufferPoolOptionVideoAlignment"
Packit 971217
Packit 971217
/* setting a bufferpool config */
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
void             gst_buffer_pool_config_set_video_alignment  (GstStructure *config, GstVideoAlignment *align);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
gboolean         gst_buffer_pool_config_get_video_alignment  (GstStructure *config, GstVideoAlignment *align);
Packit 971217
Packit 971217
/* video bufferpool */
Packit 971217
typedef struct _GstVideoBufferPool GstVideoBufferPool;
Packit 971217
typedef struct _GstVideoBufferPoolClass GstVideoBufferPoolClass;
Packit 971217
typedef struct _GstVideoBufferPoolPrivate GstVideoBufferPoolPrivate;
Packit 971217
Packit 971217
#define GST_TYPE_VIDEO_BUFFER_POOL      (gst_video_buffer_pool_get_type())
Packit 971217
#define GST_IS_VIDEO_BUFFER_POOL(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VIDEO_BUFFER_POOL))
Packit 971217
#define GST_VIDEO_BUFFER_POOL(obj)      (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VIDEO_BUFFER_POOL, GstVideoBufferPool))
Packit 971217
#define GST_VIDEO_BUFFER_POOL_CAST(obj) ((GstVideoBufferPool*)(obj))
Packit 971217
Packit 971217
struct _GstVideoBufferPool
Packit 971217
{
Packit 971217
  GstBufferPool bufferpool;
Packit 971217
Packit 971217
  GstVideoBufferPoolPrivate *priv;
Packit 971217
};
Packit 971217
Packit 971217
struct _GstVideoBufferPoolClass
Packit 971217
{
Packit 971217
  GstBufferPoolClass parent_class;
Packit 971217
};
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
GType             gst_video_buffer_pool_get_type      (void);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
GstBufferPool *   gst_video_buffer_pool_new           (void);
Packit 971217
Packit 971217
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
Packit 971217
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoBufferPool, gst_object_unref)
Packit 971217
#endif
Packit 971217
Packit 971217
G_END_DECLS
Packit 971217
Packit 971217
#endif /* __GST_VIDEO_POOL_H__ */