diff options
author | Denis Oliver Kropp <dok@directfb.org> | 2010-10-19 15:56:15 +0200 |
---|---|---|
committer | Denis Oliver Kropp <dok@directfb.org> | 2010-10-19 15:56:15 +0200 |
commit | 27d1e03d7bdf8fcfe7292c06e40bc3e2fca9158e (patch) | |
tree | efee63b09d2f9b73e2ae73a9448660a3cf73c4e6 /src/stretch_hvx_N.h | |
download | pluggit-27d1e03d7bdf8fcfe7292c06e40bc3e2fca9158e.tar.gz pluggit-27d1e03d7bdf8fcfe7292c06e40bc3e2fca9158e.tar.bz2 pluggit-27d1e03d7bdf8fcfe7292c06e40bc3e2fca9158e.zip |
pluggit
Diffstat (limited to 'src/stretch_hvx_N.h')
-rw-r--r-- | src/stretch_hvx_N.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/stretch_hvx_N.h b/src/stretch_hvx_N.h new file mode 100644 index 0000000..168f4e0 --- /dev/null +++ b/src/stretch_hvx_N.h @@ -0,0 +1,42 @@ +#if UPDOWN == 1 +#define FUNC_NAME_(K,P,F) FUNC_NAME(up,K,P,F) +#else +#define FUNC_NAME_(K,P,F) FUNC_NAME(down,K,P,F) +#endif + + +/* NONE */ +static void FUNC_NAME_(_,_,DST_FORMAT) +#include STRETCH_HVX_N_H + + +/* FIXME: DST_FORMAT == DSPF_RGB16 doesn't work */ +#ifdef FORMAT_RGB16 +/* RGB16 <- RGB32 */ +#define SOURCE_TYPE u32 +#define SOURCE_LOOKUP(x) PIXEL_RGB16( ((x) & 0xff0000) >> 16, \ + ((x) & 0x00ff00) >> 8, \ + ((x) & 0x0000ff) ) +static void FUNC_NAME_(_,_,DSPF_RGB32) +#include STRETCH_HVX_N_H + +#undef SOURCE_LOOKUP +#undef SOURCE_TYPE +#endif + + +/* FIXME: DST_FORMAT == DSPF_ARGB doesn't work */ +#ifdef FORMAT_ARGB +/* ARGB <- RGB32 */ +#define SOURCE_TYPE u32 +#define SOURCE_LOOKUP(x) ((x) | 0xff000000) +static void FUNC_NAME_(_,_,DSPF_RGB32) +#include STRETCH_HVX_N_H + +#undef SOURCE_LOOKUP +#undef SOURCE_TYPE +#endif + + +#undef FUNC_NAME_ + |