vf_ass: Copy less unnecessary data to/from work area
commit577587ec6ce8dad59c303a76cba03af03db879a3
authorUoti Urpala <uau@symbol.nonexistent.invalid>
Wed, 23 Jul 2008 03:06:22 +0000 (23 06:06 +0300)
committerUoti Urpala <uau@symbol.nonexistent.invalid>
Thu, 24 Jul 2008 22:55:14 +0000 (25 01:55 +0300)
treef77e514f22206918172affcea07beb871857e605
parent4dab4347f5d7bb3642a2c5918fc29855f8f62482
vf_ass: Copy less unnecessary data to/from work area

The filter copied the chroma planes from every potentially changed row
of the original image to its non-subsampled work area. Change it to
calculate the minimum and maximum x coordinate for each chroma row and
only copy the part between those.

The performance increase is only minor (though observable), but I
think the resulting code is no more complex than the original.
libmpcodecs/vf_ass.c