diff options
author | Ivo van Poorten <ivop@euronet.nl> | 2007-04-11 21:00:25 +0000 |
---|---|---|
committer | Ivo van Poorten <ivop@euronet.nl> | 2007-04-11 21:00:25 +0000 |
commit | df170b81d9c8e7c97e373bb204240bc658b25c2b (patch) | |
tree | 5dad9555fe2603eedddaa02c4961e968fd9b93e8 /libswscale/rgb2rgb_template.c | |
parent | 3b77e48f0a4b6d660cd7eb14cd56f93fcb426ae2 (diff) | |
download | ffmpeg-df170b81d9c8e7c97e373bb204240bc658b25c2b.tar.gz |
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
Diffstat (limited to 'libswscale/rgb2rgb_template.c')
-rw-r--r-- | libswscale/rgb2rgb_template.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libswscale/rgb2rgb_template.c b/libswscale/rgb2rgb_template.c index d9511c955a..6489a4db91 100644 --- a/libswscale/rgb2rgb_template.c +++ b/libswscale/rgb2rgb_template.c @@ -2686,3 +2686,35 @@ static inline void RENAME(yvu9_to_yuy2)(const uint8_t *src1, const uint8_t *src2 ); #endif } + +static inline void RENAME(rgb2rgb_init)(void){ + rgb15to16= RENAME(rgb15to16); + rgb15to24= RENAME(rgb15to24); + rgb15to32= RENAME(rgb15to32); + rgb16to24= RENAME(rgb16to24); + rgb16to32= RENAME(rgb16to32); + rgb16to15= RENAME(rgb16to15); + rgb24to16= RENAME(rgb24to16); + rgb24to15= RENAME(rgb24to15); + rgb24to32= RENAME(rgb24to32); + rgb32to16= RENAME(rgb32to16); + rgb32to15= RENAME(rgb32to15); + rgb32to24= RENAME(rgb32to24); + rgb24tobgr15= RENAME(rgb24tobgr15); + rgb24tobgr16= RENAME(rgb24tobgr16); + rgb24tobgr24= RENAME(rgb24tobgr24); + rgb32tobgr32= RENAME(rgb32tobgr32); + rgb32tobgr16= RENAME(rgb32tobgr16); + rgb32tobgr15= RENAME(rgb32tobgr15); + yv12toyuy2= RENAME(yv12toyuy2); + yv12touyvy= RENAME(yv12touyvy); + yuv422ptoyuy2= RENAME(yuv422ptoyuy2); + yuy2toyv12= RENAME(yuy2toyv12); +// uyvytoyv12= RENAME(uyvytoyv12); +// yvu9toyv12= RENAME(yvu9toyv12); + planar2x= RENAME(planar2x); + rgb24toyv12= RENAME(rgb24toyv12); + interleaveBytes= RENAME(interleaveBytes); + vu9_to_vu12= RENAME(vu9_to_vu12); + yvu9_to_yuy2= RENAME(yvu9_to_yuy2); +} |