mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
video-blend: minor optimisation
Only need to run matrix on those pixels which will actually be used.
This commit is contained in:
parent
dc3d68d9c2
commit
5339e4507a
1 changed files with 2 additions and 2 deletions
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue