Began incorporating hqXx filter. Removed old, unused Win32 code.

This commit is contained in:
William Kendrick 2003-12-20 18:03:29 +00:00
parent dba2ecf3b3
commit a6427c94ee
12 changed files with 9247 additions and 335 deletions

48
src/hqxx.h Normal file
View file

@ -0,0 +1,48 @@
/*
hqNx filter look-up table init
Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
Library-ified by Bill Kendrick <bill@newbreedsoftware.com>
Based on "hq3x_src_c.zip" dated August 5, 2003
from: http://www.hiend3d.com/hq3x.html
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef HQINIT_H
#define HQINIT_H
static int YUV1, YUV2;
extern const int Ymask;
extern const int Umask;
extern const int Vmask;
extern const int trY;
extern const int trU;
extern const int trV;
void InitLUTs(int * LUT16to32, int * RGBtoYUV);
inline void Interp1(unsigned char * pc, int c1, int c2);
inline void Interp2(unsigned char * pc, int c1, int c2, int c3);
inline void Interp3(unsigned char * pc, int c1, int c2);
inline void Interp4(unsigned char * pc, int c1, int c2, int c3);
inline void Interp5(unsigned char * pc, int c1, int c2);
inline void Interp6(unsigned char * pc, int c1, int c2, int c3);
inline void Interp7(unsigned char * pc, int c1, int c2, int c3);
inline void Interp8(unsigned char * pc, int c1, int c2);
inline int Diff(unsigned int w1, unsigned int w2);
#endif