?? quantization.c
字號:
#include "dct.h"
extern short block[BLOCK_SIZE];
extern short quant[BLOCK_SIZE];
void quantization(void)
{
int i;
for(i=0;i<64;i++)
{
block[i] = (short)(block[i] * quant[i] >> 14);
if((block[i] & 0x0001) == 1) { // test the first bit after the radix point
block[i] += 2; // if it is 1, the value should add 1
}
block[i] = block[i] >> 1;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -