From 1f31d6b75e5fd68fc1d6be84c27df1d5c9f02127 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Wed, 28 May 2008 21:02:45 -0700 Subject: [PATCH] Unsigned-ify. --- libqscale.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libqscale.h b/libqscale.h index d56320a..e913b9c 100644 --- a/libqscale.h +++ b/libqscale.h @@ -6,12 +6,12 @@ typedef struct { /* True image size */ - int width, height; + unsigned width, height; /* Component image sizes (possibly subsampled) */ - int w0, h0; - int w1, h1; - int w2, h2; + unsigned w0, h0; + unsigned w1, h1; + unsigned w2, h2; /* The data itself */ JSAMPLE *data_y, *data_cb, *data_cr; @@ -28,9 +28,9 @@ enum qscale_jpeg_mode { 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, qscale_jpeg_mode jpeg_mode); +int qscale_save_jpeg(const qscale_img *image, const char *filename, unsigned 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); +qscale_img *qscale_scale(qscale_img *source, unsigned width, unsigned height, unsigned samp_h0, unsigned samp_v0, unsigned samp_h1, unsigned samp_v1, unsigned samp_h2, unsigned samp_v2, enum qscale_scaling_filter scaling_filter); void qscale_destroy(qscale_img *image); #endif /* !defined(_LIBQSCALE_H) */ -- 2.39.2