
return (ArrayUtil.sumInt(leftRow[0]) + ArrayUtil.sumInt3(topLine[0], x, 16) + 16) >> 5;
</BUG>
}
<BUG>private int[][] transform(Picture pic, int comp, int qp, int x, int y) {
</BUG>
int dcc = lumaDCPred(x, y);
int[][] ac = new int[16][16];
for (int i = 0; i < ac.length; i++) {
int[] coeff = ac[i];

if (x == 0 && y == 0)
return 0;
if (y == 0)
return (byte)((ArrayUtil.sumByte(leftRow[0]) + 8) >> 4);
if (x == 0)
return (byte)((ArrayUtil.sumByte3(topLine[0], x, 16) + 8) >> 4);
return (byte)((ArrayUtil.sumByte(leftRow[0]) + ArrayUtil.sumByte3(topLine[0], x, 16) + 16) >> 5);
}
private int[][] transform(Picture8Bit pic, int comp, int qp, int x, int y) {
int dcc = lumaDCPred(x, y);
int[][] ac = new int[16][16];
for (int i = 0; i < ac.length; i++) {
int[] coeff = ac[i];
