mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
[088/906] fix some caps negociations those pipelines works fine : gst-launch-0.10 -v videotestsrc ! video/x-raw-yuv, width=320, height=240 ! glgraphicmaker ! video/x-raw-gl, width=720 , height=576 ! glfiltercube ! glimagesink and gst-launch-0.10 -v videotestsrc ! video/x-raw-yuv, width=320, height=240 ! glgraphicmaker ! video/x-raw-gl, width=720 , height=576 ! glimagesink
git-svn-id: svn://svn.wobow.com/GStreamer_playground/gst-plugins-gl@500 93df14bb-0f41-7a43-8087-d3e2a2f0e464
This commit is contained in:
parent
1e2ca1dfde
commit
f5f2e51a31
2 changed files with 6 additions and 4 deletions
|
@ -93,7 +93,8 @@ gst_gl_buffer_get_type (void)
|
||||||
|
|
||||||
GstGLBuffer*
|
GstGLBuffer*
|
||||||
gst_gl_buffer_new_from_video_format (GstGLDisplay* display,
|
gst_gl_buffer_new_from_video_format (GstGLDisplay* display,
|
||||||
GstVideoFormat video_format, gint context_width, gint context_height,
|
GstVideoFormat video_format, gint context_width, gint context_height,
|
||||||
|
gint widthGL, gint heightGL,
|
||||||
gint width, gint height)
|
gint width, gint height)
|
||||||
{
|
{
|
||||||
GstGLBuffer *buffer;
|
GstGLBuffer *buffer;
|
||||||
|
@ -109,8 +110,8 @@ gst_gl_buffer_new_from_video_format (GstGLDisplay* display,
|
||||||
buffer->width = width;
|
buffer->width = width;
|
||||||
buffer->height = height;
|
buffer->height = height;
|
||||||
buffer->video_format = video_format;
|
buffer->video_format = video_format;
|
||||||
buffer->widthGL = context_width;
|
buffer->widthGL = widthGL;
|
||||||
buffer->heightGL = context_height;
|
buffer->heightGL = heightGL;
|
||||||
GST_BUFFER_SIZE (buffer) = gst_gl_buffer_format_get_size (video_format, context_width, context_height);
|
GST_BUFFER_SIZE (buffer) = gst_gl_buffer_format_get_size (video_format, context_width, context_height);
|
||||||
|
|
||||||
//blocking call, init texture
|
//blocking call, init texture
|
||||||
|
|
|
@ -59,7 +59,8 @@ GType gst_gl_buffer_get_type (void);
|
||||||
#define gst_gl_buffer_unref(x) (gst_buffer_unref((GstBuffer *)(x)))
|
#define gst_gl_buffer_unref(x) (gst_buffer_unref((GstBuffer *)(x)))
|
||||||
|
|
||||||
GstGLBuffer* gst_gl_buffer_new_from_video_format (GstGLDisplay* display, GstVideoFormat format,
|
GstGLBuffer* gst_gl_buffer_new_from_video_format (GstGLDisplay* display, GstVideoFormat format,
|
||||||
gint context_width, gint context_height,
|
gint context_width, gint context_height,
|
||||||
|
gint widthGL, gint heightGL,
|
||||||
gint width, gint height);
|
gint width, gint height);
|
||||||
gint gst_gl_buffer_format_get_size (GstVideoFormat format, gint width, gint height);
|
gint gst_gl_buffer_format_get_size (GstVideoFormat format, gint width, gint height);
|
||||||
gboolean gst_gl_buffer_format_parse_caps (GstCaps* caps, GstVideoFormat* format,
|
gboolean gst_gl_buffer_format_parse_caps (GstCaps* caps, GstVideoFormat* format,
|
||||||
|
|
Loading…
Reference in a new issue