video: overlay-composition: try to avoid floating point maths in inner loop
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 25 Mar 2012 00:22:29 +0000 (00:22 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 25 Mar 2012 10:31:31 +0000 (11:31 +0100)
commit79953f27a86c9c550e2ccaa68eb37d56ab63575a
treedb28c9fea6d25d82cd069e7ea5eddc14f12245bb
parent32679e1826267a7b63a69bfbc7f0f4c9c6addb15
video: overlay-composition: try to avoid floating point maths in inner loop

Try to avoid floating point maths for each pixel to be blended in
inner loop, and try to avoid the multiplication entirely for the
most common case of the global alpha being 1. Could probably be
refactored a bit more.
gst-libs/gst/video/video-blend.c