Color is not matching and alpha problem.

Sebastian Dröge sebastian at centricular.com
Tue Dec 17 06:30:18 PST 2013


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131217/135eebaf/attachment.pgp>


More information about the gstreamer-devel mailing list