[102/906] up
git-svn-id: svn://svn.wobow.com/GStreamer_playground/gst-plugins-gl@514 93df14bb-0f41-7a43-8087-d3e2a2f0e464
This commit is contained in:
parent
b2ba65cb9b
commit
7bf48a45ff
@ -132,7 +132,7 @@ static void
|
|||||||
gst_gl_colorscale_set_property (GObject* object, guint prop_id,
|
gst_gl_colorscale_set_property (GObject* object, guint prop_id,
|
||||||
const GValue* value, GParamSpec* pspec)
|
const GValue* value, GParamSpec* pspec)
|
||||||
{
|
{
|
||||||
GstGLColorscale* colorscale = GST_GL_COLORSCALE (object);
|
//GstGLColorscale* colorscale = GST_GL_COLORSCALE (object);
|
||||||
|
|
||||||
switch (prop_id)
|
switch (prop_id)
|
||||||
{
|
{
|
||||||
@ -188,7 +188,7 @@ static GstCaps*
|
|||||||
gst_gl_colorscale_transform_caps (GstBaseTransform* bt,
|
gst_gl_colorscale_transform_caps (GstBaseTransform* bt,
|
||||||
GstPadDirection direction, GstCaps* caps)
|
GstPadDirection direction, GstCaps* caps)
|
||||||
{
|
{
|
||||||
GstGLColorscale* colorscale = GST_GL_COLORSCALE (bt);
|
//GstGLColorscale* colorscale = GST_GL_COLORSCALE (bt);
|
||||||
GstStructure* structure = gst_caps_get_structure (caps, 0);
|
GstStructure* structure = gst_caps_get_structure (caps, 0);
|
||||||
GstCaps* newcaps = gst_caps_new_simple ("video/x-raw-yuv", NULL);
|
GstCaps* newcaps = gst_caps_new_simple ("video/x-raw-yuv", NULL);
|
||||||
GstCaps* newothercaps = gst_caps_new_simple ("video/x-raw-rgb", NULL);
|
GstCaps* newothercaps = gst_caps_new_simple ("video/x-raw-rgb", NULL);
|
||||||
@ -435,7 +435,6 @@ gst_gl_colorscale_transform (GstBaseTransform* trans, GstBuffer* inbuf,
|
|||||||
GstBuffer* outbuf)
|
GstBuffer* outbuf)
|
||||||
{
|
{
|
||||||
GstGLColorscale* colorscale = GST_GL_COLORSCALE (trans);
|
GstGLColorscale* colorscale = GST_GL_COLORSCALE (trans);
|
||||||
guint outputTexture = 0;
|
|
||||||
|
|
||||||
//blocking call
|
//blocking call
|
||||||
GstGLBuffer* gl_tembuf = gst_gl_buffer_new_from_video_format (colorscale->display,
|
GstGLBuffer* gl_tembuf = gst_gl_buffer_new_from_video_format (colorscale->display,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user