gstreamer/gst/videomixer
Edward Hervey 3c88249d48 videomixer: I420 blending : Fix main algorithm.
When blending a source layer with an alpha of 'a' on top of another
destination layer we take the sum of:
* 'a' percent of the source layer
* (100 - 'a') percent of the destination layer (the remainder)
2009-07-10 14:37:10 +02:00
..
blend_ayuv.c videomixer: Make checker pattern lookup table constant 2009-07-08 18:19:45 +02:00
blend_bgra.c videomixer: Add support for ARGB 2009-07-08 18:17:48 +02:00
blend_i420.c videomixer: I420 blending : Fix main algorithm. 2009-07-10 14:37:10 +02:00
Makefile.am videomixer: Add support for ARGB 2009-07-08 18:17:48 +02:00
README A plugin to add an alpha channel to I420 video. Can optionally do chroma keying. 2004-05-28 18:01:34 +00:00
videomixer.c videomixer: Make debugging category global to all the code. 2009-07-10 14:37:07 +02:00
videomixer.h videomixer: Make debugging category global to all the code. 2009-07-10 14:37:07 +02:00
videomixer.vcproj more working plugins 2004-07-27 21:41:30 +00:00
videomixerpad.h videomixer: Make debugging category global to all the code. 2009-07-10 14:37:07 +02:00

Video Mixer
-----------

A generice video mixer, it blends the ayuv buffers from all pads onto 
a new buffer. The new buffer has by default a checkerboard pattern but
its color can be changed with a property.
The mixer can mix streams with different framerates and video sizes. It
uses the duration value of the buffer to schedule the rendering of the
buffers. For streams with a different resoltion than the final output
resolution one can specify the position of the top left corner where this
image should be placed with the pad properties xpos and ypos.
The overall alpha value of a stream can also be specified with a pad
property.
By default, the streams are blended in the order that the pads were 
requested from the element. This can be overridden by changing the 
zorder pad property of the stream, a stream with lower zorder gets
drawn first.


TODO
----

- really implement zorder
- take I420 yuv as well
- output AYUV if possible.
- implement different blend modes, some code is already done
- use filter caps on srcpad to decide on the final output size