jpeg_write_scanlines

Name

jpeg_write_scanlines -- write scanlines of data to JPEG compressor

Synopsis

#include <jpeglib.h>

JDIMENSION jpeg_write_scanlines(j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines);

Description

jpeg_write_scanlines() shall write the number of scanlines of image data to be compressed from in-memory buffers. The image data shall be written in top-to-bottom scanline order.

Return Value

On success, jpeg_read_scanlines() shall return the number of lines actually written.

Errors

jpeg_write_scanlines() shall report a non-fatal error if the requested number of scanlines is greater than the height of the original unscaled image.