Tacked GPL into comments. More hq4x tweaks.

This commit is contained in:
William Kendrick 2003-12-21 00:50:52 +00:00
parent 7487c3b31b
commit 8dee572c9d
8 changed files with 404 additions and 340 deletions

View file

@ -27,23 +27,25 @@
#include "SDL.h"
static int YUV1, YUV2;
#define Ymask 0x00FF0000
#define Umask 0x0000FF00
#define Vmask 0x000000FF
#define Ymask 0xF800
#define Umask 0x07E0
#define Vmask 0x001F
//#define Ymask 0xF800
//#define Umask 0x07E0
//#define Vmask 0x001F
//trY in 32 = 0x00300000
//trU in 32 = 0x00000700
//trV in 32 = 0x00000006
#define trY 0x00300000
#define trU 0x00000700
#define trV 0x00000006
#define trY 0x3000
#define trU 0x00C0
#define trV 0x0006
//#define trY 0x3000
//#define trU 0x00C0
//#define trV 0x0006
Uint16 hqxx_getpixel(SDL_Surface * surface, int x, int y, Uint8 * alpha);
void InitLUTs(int * RGBtoYUV);
void InitLUTs(Uint32 * RGBtoYUV);
inline void Interp0(SDL_Surface * dest, int x, int y, Uint16 c, Uint8 alpha);
inline void Interp1(SDL_Surface * dest, int x, int y, Uint16 c1, Uint16 c2, Uint8 alpha);
inline void Interp2(SDL_Surface * dest, int x, int y, Uint16 c1, Uint16 c2, Uint16 c3, Uint8 alpha);