Color is not matching and alpha problem.

Ramesh Adapa r1m5s81 at gmail.com
Tue Dec 17 21:45:47 PST 2013


Dear Sebastian,

      Thanks for your quick response, now the color problem is solved but
still I have the alpha issue(i.e. alpha pixels are showing as black). If I
write my cairo surface into PNG it works fine. Let me know if there is any
extension of your privious solution that solves the alpha problem.

Any example links would be helpfull.


On Tuesday, December 17, 2013, Sebastian Dröge wrote:

> On Di, 2013-12-17 at 19:57 +0530, Ramesh Adapa wrote:
> > Hello,
> >
> >
> >     Using gstreamer-0.10 I wrote a plugin which reads a text input,
> > process that text and wrote on cairo_surface_t, from this surface I
> > took the raw RGBA(32bit) data and put it on GstBuffer and push to
> > ffmpegcolorspace ! ximagesink all alpha pixels in output window shows
> > black pixels and remaining all colours not showing properly(ex. black
> > pixels showing blue...except white color).
> >
> >
> >     Is this the problem with the caps that I used? If so, suggest me
> > proper caps for the above scenario, Below are the caps that I used to
> > my srcpad.
> >
> >  caps = gst_caps_new_simple ("video/x-raw-rgb",
> >       "width", G_TYPE_INT, data_w,
> >       "height", G_TYPE_INT, data_h,
> >       "bpp", G_TYPE_INT, 32,
> >       "framerate", GST_TYPE_FRACTION, 50, 50, NULL);
> >
> >
> >    If this is not problem with caps let me know what would be the
> > problem.
>
> You have to provide complete RGB caps, i.e. for cairo's ARGB on a
> little-endian architecture that would be:
>
>
> video/x-raw-rgb,bpp=32,depth=32,endianness=4321,red_mask=65280,green_mask=16711680,blue_mask=-16777216,alpha_mask=255,width=X,height=Y,framerate=A/B
>
> --
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>


-- 
*Thanks,*

*R at m€$h Ad at p@.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131218/44d04992/attachment-0001.html>


More information about the gstreamer-devel mailing list