problem in displaying PNG image?
vijay
pvijaii at gmail.com
Mon Sep 5 01:19:05 PDT 2011
Hi,
I have written a png decoder plugin with sink as capabilities imge/png and
src with capabilities GST_VIDEO_CAPS_RGB.
The decoder outputs data is raw RGB interleaved data.
I have set the caps as likes.(Input stream i used is having bpp = 24 and
depth = 24)
caps = gst_caps_new_simple ("video/x-raw-rgb",
"bpp", G_TYPE_INT, 24,
"width",
G_TYPE_INT,filter->pngConfPar.u32Width,
"height",
G_TYPE_INT,filter->pngConfPar.u32Height,
"framerate", GST_TYPE_FRACTION, 0,1,
NULL);
templ = gst_static_pad_template_get (&src_factory);
res = gst_caps_intersect (caps, gst_pad_template_get_caps (templ));
ret = gst_pad_set_caps (filter->srcpad, res);
When i am trying to diplay the image using gst launch
gst-launch filesrc location=1.png ! MY_PNG_Decoder ! xvimagesink
I am getting the return type of gst_pad_push as GST_FLOW_NOT_NEGOTIATED.
Can any one say what could be the problem?
How to display the png image and which plugin should i need to use for sink?
Regards,
Vijay P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110905/b42bb548/attachment.html>
More information about the gstreamer-devel
mailing list