📄 custfilt.c
字号:
/* Copyright 1996, ESS Technology, Inc. *//* SCCSID @(#)custfilt.c 4.2 07/14/03 */unsigned short filter_sharp[] = { /* this one is original one with 128 gain */ 0xf674, 0x26f2, 0xfe00, 0x0000, /*bank5 -2 0 -10 116 38 -14 0 */ 0xf054, 0x4cf0, 0x0000, 0x0000, /*bank4 0 0 -16 84 76 -16 0 */ 0x4c54, 0xf000, 0x00f0, 0x0000, /*bank3 0 -16 76 84 -16 0 0 */ 0x2674, 0xf600, 0x00f2, 0xfe00, /*bank2 0 -14 38 116 -10 0 -2 */ 0x0077, 0x18f9, 0x00f8, 0x0000 /*bank1 0 -8 0 119 24 -7 0*/#if 0 /* original one */ 0xf674, 0x2ef2, 0xfe00, 0x0000, /*bank5*/ 0xf054, 0x54f0, 0x0000, 0x0000, /*bank4*/ 0x5454, 0xf000, 0x00f0, 0x0000, /*bank3*/ 0x2e74, 0xf600, 0x00f2, 0xfe00, /*bank2*/ 0x007f, 0x18f9, 0x00f8, 0x0000 /*bank1*/ /* shift7 0 7 0 0 0 112 16 0 0*/ 0xed63, 0x30f6, 0xf90a, 0x0700, /* -7 10 -19 99 48 -10 7 */ 0xea44, 0x51f2, 0xf70d, 0x0b00, /* -9 13 -22 68 81 -14 11 */ 0x434f, 0xf30b, 0x0deb, 0xf800, /* 13 -21 67 79 -13 11 -8 */ 0x1f6a, 0xfa08, 0x08f3, 0xfa00, /* 8 -13 31 106 -6 8 -6 */ 0x0070, 0x1000, 0x0000, 0x0000, /* 0 0 0 112 16 0 0 */#endif};unsigned short filter_uv_sharp[] = {#if defined(I2C_BT) || defined(I2C_ADV) || defined(I2C_CS) 0xe648, 0x57f7, 0xfa0c, 0xfe00, /* bank4 -6 12 -26 72 87 -9 -2 */ 0xfd0f, 0x7bf6, 0x0000, 0x0300, /* bank3 0 0 -3 15 123 -10 3 */ 0xef62, 0x38f3, 0x0004, 0x0000, /* bank2 0 4 -17 98 56 -13 0 */ 0x056d, 0x1af6, 0x07f7, 0x0000, /* bank1 7 -9 5 109 26 -10 0 */ 0xef62, 0x38f3, 0x0004, 0x0000, /* bank0 0 4 -17 98 56 -13 0 */#else 0xfb70, 0x25ee, 0xfc00, 0x0600, /* -4 0 -5 112 37 -18 6 */ 0xf058, 0x4ae8, 0xfa05, 0x0700, /* -6 5 -16 88 74 -24 7 */ 0x1477, 0x04f9, 0x00f8, 0x0000, /* 0 -8 20 119 4 -7 0 */ 0x3669, 0xef03, 0x04f0, 0xfb00, /* 4 -16 54 105 -17 3 -5 */ 0x1477, 0x04f9, 0x00f8, 0x0000, /* 0 -8 20 119 4 -7 0 */#endif};#if 1unsigned short filter_34[] = { /* Good for 3:4 upsampling */ 0xf95f, 0x2deb, 0x0afb, 0x0b00, /* 10 -5 -7 95 45 -21 11 */ 0xec4c, 0x4cec, 0x0605, 0x0500, /* 6 5 -20 76 76 -20 5 */ 0x017f, 0x0000, 0x0000, 0x0000, /* 1 127 0 0 0 0 0 */ 0x2d5f, 0xf9fb, 0x0beb, 0x0a00, /* 11 -21 45 95 -7 -5 10 */ 0x1066, 0x10f1, 0x0cf1, 0x0c00, /* 12 -15 16 102 16 -15 12 */};unsigned short filter_23[] = { /* Good for 2:3 upsampling */ 0xf65c, 0x34ea, 0x09fd, 0x0a00, /* 9 -3 -10 92 52 -22 10 */ 0xf45a, 0x38ea, 0x09fe, 0x0900, /* 9 -2 -12 90 56 -22 9 */ 0x385a, 0xf4fe, 0x09ea, 0x0900, /* 9 -22 56 90 -12 -2 9 */ 0xf45a, 0x38ea, 0x09fe, 0x0900, /* 9 -2 -12 90 56 -22 9 */ 0x1066, 0x10f1, 0x0cf1, 0x0c00, /* 12 -15 16 102 16 -15 12 */};unsigned short filter_uv_23[] = {#if defined(I2C_BT) || defined(I2C_ADV) || defined(I2C_CS) 0xf65c, 0x34ea, 0x09fd, 0x0a00, /* 9 -3 -10 92 52 -22 10 */ 0xf45a, 0x38ea, 0x09fe, 0x0900, /* 9 -2 -12 90 56 -22 9 */ 0x385a, 0xf4fe, 0x09ea, 0x0900, /* 9 -22 56 90 -12 -2 9 */ 0xf45a, 0x38ea, 0x09fe, 0x0900, /* 9 -2 -12 90 56 -22 9 */ 0x1066, 0x10f1, 0x0cf1, 0x0c00, /* 12 -15 16 102 16 -15 12 */#else 0x5f2d, 0xec09, 0xfbfc, 0x0800, /* -5 -4 95 45 -20 9 8 */ 0x5e31, 0xeb08, 0xfcfa, 0x0800, /* -4 -6 94 49 -21 8 8 */ 0x53f1, 0x0009, 0xf13b, 0x0700, /* -15 59 83 -15 0 9 7 */ 0x660a, 0xf40a, 0xf416, 0x0800, /* -12 22 102 10 -12 10 8 */ 0x660a, 0xf40a, 0xf416, 0x0800, /* -12 22 102 10 -12 10 8 */#endif};#else/* A much more aggressive set which emphasizes somewhere around Fsc */unsigned short filter_34[] = { /* Good for 3:4 upsampling */ 0xe072, 0x21e9, 0x000f, 0x1500, /* 0 15 -32 114 33 -23 21 */ 0xdc4f, 0x50dc, 0xfa17, 0x1800, /* -6 23 -36 79 80 -36 24 */ 0x017f, 0x0000, 0x0000, 0x0000, /* 0 0 1 127 0 0 0 */ 0x2170, 0xe010, 0x14ea, 0x0100, /* 20 -22 33 112 -32 16 1 */ 0xf87f, 0xf8fe, 0x0afe, 0x0b00, /* 10 -2 -8 127 -8 -2 11 */};unsigned short filter_23[] = { /* Good for 2:3 upsampling */ 0xdd6d, 0x2ae6, 0xfe12, 0x1600, /* -2 18 -35 109 42 -26 22 */ 0xdc6a, 0x30e3, 0xfd13, 0x1700, /* -3 19 -36 106 48 -29 23 */ 0x3068, 0xdc14, 0x16e4, 0xfe00, /* 22 -28 48 104 -36 20 -2 */ 0xdc6a, 0x30e3, 0xfd13, 0x1700, /* -3 19 -36 106 48 -29 23 */ 0xf87f, 0xf8fe, 0x0afe, 0x0b00, /* 10 -2 -8 127 -8 -2 11 */};unsigned short filter_uv_23[] = { 0x5f2d, 0xec09, 0xfbfc, 0x0800, /* -5 -4 95 45 -20 9 8 */ 0x5e31, 0xeb08, 0xfcfa, 0x0800, /* -4 -6 94 49 -21 8 8 */ 0x53f1, 0x0009, 0xf13b, 0x0700, /* -15 59 83 -15 0 9 7 */ 0x660a, 0xf40a, 0xf416, 0x0800, /* -12 22 102 10 -12 10 8 */ 0x660a, 0xf40a, 0xf416, 0x0800, /* -12 22 102 10 -12 10 8 */};#endifunsigned short filter_5[] = { /* Good for x->5 upsampling */ 0xee5e, 0x3cf2, 0xff04, 0x0300, /* -1 4 -18 94 60 -14 3 */ 0xf177, 0x1af9, 0x0004, 0x0100, /* 0 4 -15 119 26 -7 1 */ 0x017f, 0x0000, 0x0000, 0x0000, /* 0 0 1 127 0 0 0 */ 0x1a77, 0xf104, 0x01f9, 0x0000, /* 1 -7 26 119 -15 4 0 */ 0x3c5e, 0xee04, 0x03f2, 0xff00, /* 3 -14 60 94 -18 4 -1 */};/* filters not currently used..disabled to save memory */#ifdef NOT_USED/* 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 */};unsigned 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 */};unsigned short filter_bf43[] = { 0x1064, 0x40ef, 0xffe9, 0xf600, /* -1 -23 16 100 64 -17 -10 */ 0xfd55, 0x55fc, 0x01ee, 0xef00, /* 1 -18 -3 85 85 -4 -17 */ 0x5554, 0xfcef, 0xeefd, 0x0200, /* -18 -3 85 84 -4 -17 2 */ 0x4063, 0x10ea, 0xf5ef, 0x0000, /* -11 -17 64 99 16 -22 0 */ 0x2868, 0x28e9, 0xfbe9, 0xfc00 /* -5 -23 40 104 40 -23 -4 */#if 0 0x0c59, 0x33ee, 0x09ef, 0x0200, /* 9 -17 12 89 51 -18 2 */ 0xfc4e, 0x46f5, 0x0af6, 0xfa00, /* 10 -10 -4 80 70 -11 -6 */ 0x4052, 0x00f4, 0xfdf2, 0x0a01, /* -3 -14 64 81 0 -12 9 */ 0x305a, 0x0eef, 0x03ed, 0x0900, /* 3 -19 48 89 14 -17 9 */ 0x1f5c, 0x1fec, 0x07ec, 0x0700, /* 7 -20 31 92 31 -20 7 */#endif};unsigned short filter_uv_bf43[] = { 0x0c59, 0x33ee, 0x09ef, 0x0200, /* 9 -17 12 89 51 -18 2 */ 0xfc4e, 0x46f5, 0x0af6, 0xfa00, /* 10 -10 -4 80 70 -11 -6 */ 0x4052, 0x00f4, 0xfdf2, 0x0a01, /* -3 -14 64 81 0 -12 9 */ 0x305a, 0x0eef, 0x03ed, 0x0900, /* 3 -19 48 89 14 -17 9 */ 0x1f5c, 0x1fec, 0x07ec, 0x0700, /* 7 -20 31 92 31 -20 7 */};unsigned short filter_uv_digest[] = { 0x7126, 0xf00a, 0x0de9, 0xf800, /* 13 -23 113 38 -16 10 -8 */0x5050, 0xe510, 0x10e5, 0xf500, /* 16 -27 80 80 -27 16 -11 */0x7f00, 0x0000, 0x0000, 0x0000, /* 0 0 127 0 0 0 0 */0x75e9, 0x0df7, 0xef27, 0x0700, /* -17 39 117 -23 13 -9 7 */0x7f00, 0x0000, 0x0000, 0x0000, /* 0 0 127 0 0 0 0 */};/* A much more aggressive set which emphasizes somewhere around Fsc */unsigned short filter_mono[] = { /* Good for monoscope 2:3 upsampling */ 0xdd6d, 0x2ae6, 0xfe12, 0x1600, /* -2 18 -35 109 42 -26 22 */ 0xdc6a, 0x30e3, 0xfd13, 0x1700, /* -3 19 -36 106 48 -29 23 */ 0x3068, 0xdc14, 0x16e4, 0xfe00, /* 22 -28 48 104 -36 20 -2 */ 0xdc6a, 0x30e3, 0xfd13, 0x1700, /* -3 19 -36 106 48 -29 23 */ 0xf87f, 0xf8fe, 0x0afe, 0x0b00, /* 10 -2 -8 127 -8 -2 11 */};#endif /* NOT_USED */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -