当前位置: 技术问答>java相关
初学java,数组问题
来源: 互联网 发布时间:2015-01-04
本文导语: int bil(int i, int j, int k, int l, int i1, int j1) { int ai[] = mweights[i1 & 0xff]; int ai1[] = mweights[255 - i1 & 0xff]; int k1 = ai1[i >> 16 & 0xff] + ai[j >> 16 & 0xff]; ...
int bil(int i, int j, int k, int l, int i1, int j1)
{
int ai[] = mweights[i1 & 0xff];
int ai1[] = mweights[255 - i1 & 0xff];
int k1 = ai1[i >> 16 & 0xff] + ai[j >> 16 & 0xff];
int l1 = ai1[i >> 8 & 0xff] + ai[j >> 8 & 0xff];
int i2 = ai1[i & 0xff] + ai[j & 0xff];
int j2 = ai1[k >> 16 & 0xff] + ai[l >> 16 & 0xff];
int k2 = ai1[k >> 8 & 0xff] + ai[l >> 8 & 0xff];
int l2 = ai1[k & 0xff] + ai[l & 0xff];
int i3 = 255 - j1;
k1 = k1 * i3 + j2 * j1 >> 16;
l1 = l1 * i3 + k2 * j1 >> 16;
i2 = i2 * i3 + l2 * j1 >> 16;
return (k1
{
int ai[] = mweights[i1 & 0xff];
int ai1[] = mweights[255 - i1 & 0xff];
int k1 = ai1[i >> 16 & 0xff] + ai[j >> 16 & 0xff];
int l1 = ai1[i >> 8 & 0xff] + ai[j >> 8 & 0xff];
int i2 = ai1[i & 0xff] + ai[j & 0xff];
int j2 = ai1[k >> 16 & 0xff] + ai[l >> 16 & 0xff];
int k2 = ai1[k >> 8 & 0xff] + ai[l >> 8 & 0xff];
int l2 = ai1[k & 0xff] + ai[l & 0xff];
int i3 = 255 - j1;
k1 = k1 * i3 + j2 * j1 >> 16;
l1 = l1 * i3 + k2 * j1 >> 16;
i2 = i2 * i3 + l2 * j1 >> 16;
return (k1