custfilt.c

来自「一个不错的硬盘播放器程序,包含VFD显示程序,红外线遥控程序,硬盘读写程序,及解」· C语言 代码 · 共 80 行

C
80
字号
/* Copyright 1996, ESS Technology, Inc.					*//* SCCSID @(#)custfilt.c	1.8 12/11/97		*/#ifdef CUST4/* CUST4 normal filter */unsigned short filter_normal[] = { /* unity gain */    0x065a, 0x32f3, 0x02f8, 0x0000,	/*   2	-8   6	90  50 -13   0	*/    0xf949, 0x49f9, 0x01fd, 0xfd00,	/*   1	-3  -7	73  73	-7  -3	*/    0x4949, 0xf9fd, 0xfdf9, 0x0100,	/*  -3	-7  73	73  -7	-3   1	*/    0x325a, 0x06f8, 0x00f3, 0x0200,	/*   0 -13  50	90   6	-8   2	*/    0x1a5f, 0x1af4, 0x02f4, 0x0200	/*   2 -12  26	95  26 -12   2	*/};/* CUST4 soft filter */unsigned short filter_soft[] = { /* soften display */    0x1a36, 0x2b0a, 0xfe00, 0xfd00,	/*  -2	 0  26	54  43	10  -3	*/    0x1132, 0x3111, 0xfffe, 0xfe00,	/*  -1	-2  17	50  49	17  -2  */    0x3231, 0x11fe, 0xfe11, 0xff00,	/*  -2	17  50	49  17	-2  -1	*/    0x2b36, 0x1a00, 0xfd0a, 0xfe00,	/*  -3	10  43	54  26	 0  -2	*/    0x2338, 0x2304, 0xfd04, 0xfd00	/*  -3   4  35	56  35	 4  -3	*/};#endifunsigned short filter_repeat[] = {    0xe972, 0x27f0, 0xf70d, 0x0a00,	/*  -9  13 -23 114  39 -16  10  */    0x007f, 0x0100, 0x0000, 0x0000,	/*   0   0   0 127   1   0   0  */    0x007f, 0x0100, 0x0000, 0x0000,	/*   0   0   0 127   1   0   0  */    0x007f, 0x0100, 0x0000, 0x0000,	/*   0   0   0 127   1   0   0  */    0x007f, 0x0100, 0x0000, 0x0000	/*   0   0   0 127   1   0   0  */};#ifdef FILTER_CHROMAunsigned short filter_0_85[] = { /* This is 85% gain */    /* shift7 0 7 0 0 0 108 0 0 0 */#if 0    0xed61, 0x20f2, 0xf90b, 0x0900,	/*  -7  11 -19  97  32 -14   9  */    0xe945, 0x45e9, 0xf60e, 0x0e00,	/* -10  14 -23  69  69 -23  14  */    0x4545, 0xe90e, 0x0ee9, 0xf600,	/*  14 -23  69  69 -23  14 -10  */    0x2061, 0xed0b, 0x09f2, 0xf900,	/*   9 -14  32  97 -19  11  -7  */    0x006c, 0x0000, 0x0000, 0x0000,	/*   0   0   0 108   0   0   0  */#else    /* shift7 0 7 0 0 0 90 18 0 0 */    0xf24d, 0x2bfa, 0xfb08, 0x0500,	/*  -5   8 -14  77  43  -6   5  */    0xef35, 0x45f8, 0xf90a, 0x0800,	/*  -7  10 -17  53  69  -8   8  */    0x3544, 0xf808, 0x0aef, 0xfa00,	/*  10 -17  53  68  -8   8  -6  */    0x1955, 0x0006, 0x06f6, 0xfc00,	/*   6 -10  25  85   0   6  -4  */    0x005a, 0x1200, 0x0000, 0x0000,	/*   0   0   0  90  18   0   0  */#endif};#if 0unsigned short filter_unity[] = { /* This one is unity gain */    0x0b55, 0x35f2, 0x06f3, 0x0000,    0xfb48, 0x48fb, 0x05fa, 0xfa00,    0x4848, 0xfbfa, 0xfafb, 0x0500,    0x3555, 0x0bf3, 0x00f2, 0x0600,    0x1f5a, 0x1ff0, 0x04f0, 0x0400};#elseunsigned short filter_unity[] = { /* This one is unity */    0xe972, 0x27f0, 0xf70d, 0x0a00,	/*  -9  13 -23 114  39 -16  10  */    0xe551, 0x51e6, 0xf510, 0x1000,	/* -11  16 -27  81  81 -26  16  */    0x5151, 0xe610, 0x10e5, 0xf500,	/*  16 -27  81  81 -26  16 -11  */    0x2673, 0xea0d, 0x0af0, 0xf700,	/*  10 -16  38 115 -22  13  -9  */    0x007f, 0x0100, 0x0000, 0x0000	/*   0   0   0 127   1   0   0  */};#endif#else/* Place holders. Will never be used, but need to make compiler happy */unsigned short filter_0_85[] = {     0};unsigned short filter_unity[] = {    0};#endif /* FILTER_CHROMA */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?