diff options
author | David Schleef <ds@schleef.org> | 2007-12-27 04:15:26 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2007-12-27 04:15:26 +0000 |
commit | 2b704cae584bb3f0749389d57e52dddac32ab89f (patch) | |
tree | 0dba25d1af8c1c1b4abbe2a898ce4b4ea9e18d3f /sys/glsink/gstglbuffer.h | |
parent | 3b15f24af01272a011b9e8d9df500a7c62eb496d (diff) | |
download | gst-plugins-bad-2b704cae584bb3f0749389d57e52dddac32ab89f.tar.gz gst-plugins-bad-2b704cae584bb3f0749389d57e52dddac32ab89f.tar.bz2 gst-plugins-bad-2b704cae584bb3f0749389d57e52dddac32ab89f.zip |
sys/glsink/: Convert gldownload to BaseTransform. Make glfilterexample visually interesting. Add support for variou...
Original commit message from CVS:
* sys/glsink/gltestsrc.c:
* sys/glsink/gstglbuffer.c:
* sys/glsink/gstglbuffer.h:
* sys/glsink/gstgldownload.c:
* sys/glsink/gstglfilter.c:
* sys/glsink/gstglfilterexample.c:
* sys/glsink/gstgltestsrc.c:
* sys/glsink/gstglupload.c:
Convert gldownload to BaseTransform. Make glfilterexample
visually interesting. Add support for various formats to
downloading. Fix a few places where we leak GL state to
other elements (bad, but hard to prevent).
Diffstat (limited to 'sys/glsink/gstglbuffer.h')
-rw-r--r-- | sys/glsink/gstglbuffer.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/glsink/gstglbuffer.h b/sys/glsink/gstglbuffer.h index 1d29aebf..e5a39441 100644 --- a/sys/glsink/gstglbuffer.h +++ b/sys/glsink/gstglbuffer.h @@ -44,7 +44,18 @@ GstGLBuffer * gst_gl_buffer_new (GstGLDisplay *display, GstGLBufferFormat format, int width, int height); GstGLBuffer * gst_gl_buffer_new_from_data (GstGLDisplay *display, GstVideoFormat format, int width, int height, void *data); -void gst_gl_buffer_download (GstGLBuffer *buffer, void *data); +void gst_gl_buffer_download (GstGLBuffer *buffer, GstVideoFormat format, + void *data); + + +#define GST_GL_VIDEO_CAPS \ + "video/x-raw-gl," \ + "format=(int)[0,10]," \ + "width=(int)[1,2048]," \ + "height=(int)[1,2048]," \ + "pixel-aspect-ratio=(fraction)1/1," \ + "framerate=(fraction)[0/1,100/1]" + #endif |