private void rgb_convert(byte[][] input_buf, int input_row, byte[][][] output_buf, int output_row, int num_rows)
{
int num_cols = m_cinfo.m_image_width;
for (int row = 0; row < num_rows; row++)
{
int columnOffset = 0;
for (int col = 0; col < num_cols; col++)
{
/* We can dispense with GETJSAMPLE() here */
output_buf[0][output_row][col] = input_buf[input_row + row][columnOffset];
output_buf[1][output_row][col] = input_buf[input_row + row][columnOffset + 1];
output_buf[2][output_row][col] = input_buf[input_row + row][columnOffset + 2];
columnOffset += JpegConstants.RGB_PIXELSIZE;
}
output_row++;
}
}