[gst-devel] import image with transparent background

Tim Müller t.i.m at zen.co.uk
Fri Jan 4 10:44:04 CET 2008


On Fri, 2008-01-04 at 11:38 +0800, Terry Leung wrote:

> I've just complied the plugin you mentioned
> 
> The src caps are as following:
>  ...
>       video/x-raw-rgb
>                     bpp: 32
>                   depth: 32
>              alpha_mask: 255
>  ...
>
> The src of it is still raw rgb (without alpha).

Not according to what you posted (check the second caps; note that this
is a list of possible output caps, it's not the first in the list that
counts).

> If then , how can i use the alpha channel of a png image?

Both

 gst-launch-0.10 -v filesrc location=rgba32.png ! gdkpixbufdec !
fakesink

and

 gst-launch-0.10 -v filesrc location=rgba32.png ! pngdec ! fakesink

give me RGBA output (note the alpha mask in the caps), both with CVS and
the current releases.

Maybe you could make your image file available somewhere so we can try
it?

 Cheers
  -Tim






More information about the gstreamer-devel mailing list