![]() |
![]() |
![]() |
GStreamer Base Plugins 1.0 Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <gst/video/gstvideopool.h> struct GstVideoBufferPool; struct GstVideoBufferPoolClass; GstBufferPool * gst_video_buffer_pool_new (void
); gboolean gst_buffer_pool_config_get_video_alignment (GstStructure *config
,GstVideoAlignment *align
); void gst_buffer_pool_config_set_video_alignment (GstStructure *config
,GstVideoAlignment *align
); #define GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT #define GST_BUFFER_POOL_OPTION_VIDEO_META
Special GstBufferPool subclass for raw video buffers.
Allows configuration of video-specific requirements such as stride alignments or pixel padding, and can also be configured to automatically add GstVideoMeta to the buffers.
struct GstVideoBufferPool { GstBufferPool bufferpool; GstVideoBufferPoolPrivate *priv; };
GstBufferPool * gst_video_buffer_pool_new (void
);
Create a new bufferpool that can allocate video frames. This bufferpool supports all the video bufferpool options.
Returns : |
a new GstBufferPool to allocate video frames. [transfer floating] |
gboolean gst_buffer_pool_config_get_video_alignment (GstStructure *config
,GstVideoAlignment *align
);
Get the video alignment from the bufferpool configuration config
in
in align
|
a GstStructure |
|
a GstVideoAlignment |
Returns : |
TRUE if config could be parsed correctly. |
void gst_buffer_pool_config_set_video_alignment (GstStructure *config
,GstVideoAlignment *align
);
Set the video alignment in align
to the bufferpool configuration
config
|
a GstStructure |
|
a GstVideoAlignment |
#define GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT "GstBufferPoolOptionVideoAlignment"
A bufferpool option to enable extra padding. When a bufferpool supports this
option, gst_buffer_pool_config_set_video_alignment()
can be called.
When this option is enabled on the bufferpool, GST_BUFFER_POOL_OPTION_VIDEO_META should also be enabled.