diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-28 13:19:01 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-28 13:19:01 (GMT) |
| commit | 380a45a4c9ad1f38f5cbee2d75e813fd0911cfcc (patch) | |
| tree | 9ad962c94b4b3e3cb9bf724b8ce25f21c626b9a9 /includes | |
| parent | abb0ceb98134903e9c339c0ba2546c82eaadfc3c (diff) | |
| download | powder-380a45a4c9ad1f38f5cbee2d75e813fd0911cfcc.zip powder-380a45a4c9ad1f38f5cbee2d75e813fd0911cfcc.tar.gz | |
Image resampling for thumbnails
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/graphics.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/graphics.h b/includes/graphics.h index 17aaa26..fe13d2b 100644 --- a/includes/graphics.h +++ b/includes/graphics.h @@ -52,6 +52,8 @@ void *ptif_pack(pixel *src, int w, int h, int *result_size); pixel *ptif_unpack(void *datain, int size, int *w, int *h); +pixel *resample_img(pixel *src, int sw, int sh, int rw, int rh); + pixel *rescale_img(pixel *src, int sw, int sh, int *qw, int *qh, int f); void sdl_blit_1(int x, int y, int w, int h, pixel *src, int pitch); |
