File: RTquant.c

package info (click to toggle)
libvideo-capture-v4l-perl 0.902-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 644 kB
  • ctags: 323
  • sloc: perl: 2,749; ansic: 1,494; sh: 22; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 159 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
void RTjpeg_quant_init(void)
{
}

void RTjpeg_quant(s16 *block, s32 *qtbl)
{
 int i;
 
 for(i=0; i<64; i++)
   block[i]=(s16)((block[i]*qtbl[i]+32767)>>16);
}