/* Expand an image vertically from height input_rows to height output_rows, by duplicating the bottom row.  */
expand_bottom_edge(JSAMPARRAY image_data, JDIMENSION num_cols, int input_rows, int output_rows)
/* Expand an image vertically from height input_rows to height output_rows, by duplicating the bottom row.  */
expand_bottom_edge(JSAMPARRAY image_data, JDIMENSION num_cols, int input_rows, int output_rows)
{
    register int row;
    for (row = input_rows; row < output_rows; row++) {
        jcopy_sample_rows(image_data, input_rows - 1, image_data, row,
            1, num_cols);
    }
}