From 91eb477176f30904d146d5afb7ec5cbc3b00f735 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Wed, 28 May 2008 20:49:41 -0700 Subject: [PATCH] Add a parameter for sequential/progressive mode. --- libqscale.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libqscale.h b/libqscale.h index 30fef62..d56320a 100644 --- a/libqscale.h +++ b/libqscale.h @@ -21,9 +21,14 @@ enum qscale_scaling_filter { LANCZOS = 0, }; +enum qscale_jpeg_mode { + SEQUENTIAL = 0, + PROGRESSIVE = 1 +}; + qscale_img *qscale_load_jpeg(const char *filename); qscale_img *qscale_load_jpeg_from_stdio(FILE *file); -int qscale_save_jpeg(const qscale_img *image, const char *filename, int jpeg_quality); +int qscale_save_jpeg(const qscale_img *image, const char *filename, int jpeg_quality, qscale_jpeg_mode jpeg_mode); qscale_img *qscale_scale(qscale_img *source, int width, int height, int samp_h0, int samp_v0, int samp_h1, int samp_v1, int samp_h2, int samp_v2, enum qscale_scaling_filter scaling_filter); void qscale_destroy(qscale_img *image); -- 2.39.5