Top |
Functions
const GstMetaInfo * | gst_gl_sync_meta_get_info () |
GstGLSyncMeta * | gst_buffer_add_gl_sync_meta () |
GstGLSyncMeta * | gst_buffer_add_gl_sync_meta_full () |
#define | gst_buffer_get_gl_sync_meta() |
void | gst_gl_sync_meta_set_sync_point () |
void | gst_gl_sync_meta_wait () |
void | gst_gl_sync_meta_wait_cpu () |
Description
GstGLSyncMeta provides the ability to synchronize the OpenGL command stream with the CPU or with other OpenGL contexts.
Functions
gst_buffer_add_gl_sync_meta ()
GstGLSyncMeta * gst_buffer_add_gl_sync_meta (GstGLContext *context
,GstBuffer *buffer
);
Since: 1.6
gst_buffer_add_gl_sync_meta_full ()
GstGLSyncMeta * gst_buffer_add_gl_sync_meta_full (GstGLContext *context
,GstBuffer *buffer
,gpointer data
);
Since: 1.8
gst_buffer_get_gl_sync_meta()
#define gst_buffer_get_gl_sync_meta(b) ((GstGLSyncMeta*)gst_buffer_get_meta((b),GST_GL_SYNC_META_API_TYPE))
gst_gl_sync_meta_set_sync_point ()
void gst_gl_sync_meta_set_sync_point (GstGLSyncMeta *sync_meta
,GstGLContext *context
);
Set a sync point to possibly wait on at a later time.
Since: 1.6
gst_gl_sync_meta_wait ()
void gst_gl_sync_meta_wait (GstGLSyncMeta *sync_meta
,GstGLContext *context
);
Insert a wait into context
's command stream ensuring all previous OpenGL
commands before sync_meta
have completed.
Since: 1.6
gst_gl_sync_meta_wait_cpu ()
void gst_gl_sync_meta_wait_cpu (GstGLSyncMeta *sync_meta
,GstGLContext *context
);
Perform a wait so that the sync point has passed from the CPU's perspective What that means, is that all GL operations changing CPU-visible data before the sync point are now visible.
Since: 1.8
Types and Values
struct GstGLSyncMeta
struct GstGLSyncMeta { GstMeta parent; GstGLContext *context; gpointer data; void (*set_sync) (GstGLSyncMeta * sync, GstGLContext * context); void (*set_sync_gl) (GstGLSyncMeta * sync, GstGLContext * context); void (*wait) (GstGLSyncMeta * sync, GstGLContext * context); void (*wait_gl) (GstGLSyncMeta * sync, GstGLContext * context); void (*wait_cpu) (GstGLSyncMeta * sync, GstGLContext * context); void (*wait_cpu_gl) (GstGLSyncMeta * sync, GstGLContext * context); void (*copy) (GstGLSyncMeta * src, GstBuffer * sbuffer, GstGLSyncMeta * dest, GstBuffer * dbuffer); void (*free) (GstGLSyncMeta * sync, GstGLContext * context); void (*free_gl) (GstGLSyncMeta * sync, GstGLContext * context); };
Members
GstMeta |
the parent GstMeta |
|
GstGLContext * |
the GstGLContext used to allocate the meta |
|
gpointer |
a custom data pointer for the implementation |
|
set a sync point in the OpenGL command stream |
||
the same as |
||
execute a wait on the previously set sync point into the OpenGL command stream |
||
the same as |
||
wait for the previously set sync point to pass from the CPU |
||
the same as |
||
copy |
||
free |
||
free |