Remove code duplication in sws_rgb2rgb_init.
authorIvo van Poorten <ivop@euronet.nl>
Wed, 11 Apr 2007 21:00:25 +0000 (21:00 +0000)
committerIvo van Poorten <ivop@euronet.nl>
Wed, 11 Apr 2007 21:00:25 +0000 (21:00 +0000)
commitdf170b81d9c8e7c97e373bb204240bc658b25c2b
tree5dad9555fe2603eedddaa02c4961e968fd9b93e8
parent3b77e48f0a4b6d660cd7eb14cd56f93fcb426ae2
Remove code duplication in sws_rgb2rgb_init.

The lists of assignments of all rgbxtoy variants are removed from
sws_rgb2rgb_init and replaced by a single list inside the template file.
This way, multiple lists are generated by the preprocessor and each list
gets its own initialization function. Those are called from the main
sws_rgb2rgb_init function, if applicable.

Originally committed as revision 22978 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
libswscale/rgb2rgb.c
libswscale/rgb2rgb_template.c