SCALERS: Get rid of MAKE_WRAPPER; make RGBtoYUV internal

svn-id: r48189
This commit is contained in:
Max Horn 2010-03-08 10:30:23 +00:00
parent 78b6bed8db
commit a558e60fec
8 changed files with 93 additions and 43 deletions

View file

@ -211,22 +211,4 @@ static inline bool diffYUV(int yuv1, int yuv2) {
*/
}
/**
* 16bit RGB to YUV conversion table. This table is setup by InitLUT().
* Used by the hq scaler family.
*/
extern "C" uint32 *RGBtoYUV;
/** Auxiliary macro to simplify creating those template function wrappers. */
#define MAKE_WRAPPER(FUNC) \
void FUNC(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) { \
if (gBitFormat == 565) \
FUNC ## Template<Graphics::ColorMasks<565> >(srcPtr, srcPitch, dstPtr, dstPitch, width, height); \
else \
FUNC ## Template<Graphics::ColorMasks<555> >(srcPtr, srcPitch, dstPtr, dstPitch, width, height); \
}
/** Specifies the currently active 16bit pixel format, 555 or 565. */
extern int gBitFormat;
#endif