glvideomixer: implement glBlendFunc and glBlendEquation
authorMatthew Waters <matthew@centricular.com>
Tue, 12 Jan 2016 07:21:50 +0000 (18:21 +1100)
committerMatthew Waters <matthew@centricular.com>
Wed, 13 Jan 2016 01:00:03 +0000 (12:00 +1100)
commitceec4ad873dba021b82d5d7a06ec2145910f12bf
treea69999203f6daf3ffed38c04e0f257d4963daa2c
parent0be9c9f960a23ea8f53f97dd102550b3b78df702
glvideomixer: implement glBlendFunc and glBlendEquation

Allows more blending options than just A over B

e.g. frame comparisons are now possible.
  glvideomixer name=m
    sink_0::zorder=0
    sink_1::zorder=1
    sink_1::blend-equation-rgb={subtract,reverse-subtract}
    sink_1::blend-function-src-rgb=src-color
    sink_1::blend-function-dst-rgb=dst-color
  ! glimagesinkelement
  videotestsrc pattern=checkers-4 ! m.sink_0
  videotestsrc pattern=checkers-8 ! m.sink_1
ext/gl/gstglvideomixer.c
ext/gl/gstglvideomixer.h