timage_scale_up_by2.h
来自「ADI BF DSP 图象缩放的汇编优化源码」· C头文件 代码 · 共 57 行
H
57 行
#define MAX_PERMISSIBLE_ERROR 1
segment ("mydata3") unsigned char out[64];
/* input array */
segment ("mydata1") unsigned char input[16]={50,100,150,200,
75,125,175,225,
60,80,100,110,
80,90,130,120};
/* Bartlet window */
segment ("mydata2") short coeff[9]= { 0x2000, 0x4000,0x2000,
0x4000, 0x7fff, 0x4000,
0x2000, 0x4000,0x2000};
/* box window */
segment ("mydata2") short coeff1[9]= {0x7fff, 0x7fff,00,
0x7fff, 0x7fff,00,
0x00, 0x00,0x00};
/* window with -Ve coefficients */
short coeff2[9]= { 0x0ccc , 0xd99a,0x2000,
0x6666, 0x7333,0xe667,
0xa667,0x2666 ,0x3333};
unsigned char out1[64]={50,75,100,125,150,175,200,125,
63,88,112,138,162,188,212,138,
75,100,125,150,175,200,225,150,
68,85,102,120,138,152,167,118,
60,70,80,90,100,105,110,85,
70,78,85,100,115,115,115,92,
80,85,90,110,130,125,120,100,
65,80,95,118,140,150,160,112};
unsigned char out2[64]={50,100,100,150,150,200,200,50,
75,125,125,175,175 ,225,225,75,
75,125,125,175,175,225, 225,75,
60, 80 ,80, 100, 100, 110,110,60,
60, 80, 80, 100, 100 ,110,110,60,
80, 90, 90, 130, 130, 120, 120,80,
80, 90, 90, 130, 130, 120, 120, 80,
50, 100,100,150,150, 200, 200, 50};
unsigned char out3[64]={45,70,90,100,135,130,180, 0,
0,0,0,0,0,0 ,0,109,
67, 85, 112,115,157,145,202,15,
4,0,13,0 ,22, 0 ,34,71,
54,52, 72, 64, 90, 68,99,26,
0,0 ,0 ,0 ,0,7,00,40,
72,56,81,86, 117,70,108,40,
9,0,0,0,0,25,00,47};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?