private void null_convert(byte[][] input_buf, int input_row, byte[][][] output_buf, int output_row, int num_rows)
{
int nc = m_cinfo.m_num_components;
int num_cols = m_cinfo.m_image_width;
for (int row = 0; row < num_rows; row++)
{
/* It seems fastest to make a separate pass for each component. */
for (int ci = 0; ci < nc; ci++)
{
int columnOffset = 0;
for (int col = 0; col < num_cols; col++)
{
/* don't need GETJSAMPLE() here */
output_buf[ci][output_row][col] = input_buf[input_row + row][columnOffset + ci];
columnOffset += nc;
}
}
output_row++;
}
}
}