video-blend: minor optimisation

Only need to run matrix on those pixels which
will actually be used.
This commit is contained in:
Tim-Philipp Müller 2014-11-16 23:26:45 +00:00
parent dc3d68d9c2
commit 5339e4507a

View file

@ -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) \