From 5339e4507a430066bb2f497150a802aea3e8ca60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 16 Nov 2014 23:26:45 +0000 Subject: [PATCH] video-blend: minor optimisation Only need to run matrix on those pixels which will actually be used. --- gst-libs/gst/video/video-blend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/video/video-blend.c b/gst-libs/gst/video/video-blend.c index 2632de970e..7b180459fa 100644 --- a/gst-libs/gst/video/video-blend.c +++ b/gst-libs/gst/video/video-blend.c @@ -367,12 +367,12 @@ gst_video_blend (GstVideoFrame * dest, sinfo->unpack_func (sinfo, 0, tmpsrcline, src->data, src->info.stride, 0, src_yoff, src_width + src_xoff); - matrix (tmpsrcline, src_width); - /* FIXME: use the x parameter of the unpack func once implemented */ tmpdestline += 4 * x; tmpsrcline += 4 * src_xoff; + matrix (tmpsrcline, src_width); + /* Here dest and src are both either in AYUV or ARGB * TODO: Make the orc version working properly*/ #define BLENDLOOP(blender,alpha_val,alpha_scale) \