]> git.sesse.net Git - qscale/blobdiff - libqscale.h
Link with LD=gcc; fixes a problem with missing reference to __stack_chk_fail_local.
[qscale] / libqscale.h
index fd9b22f9a60930ff358d3d375b4c22fa63740c5b..409a9bb7488366ddee5770bd38489eaddae48a2a 100644 (file)
@@ -8,6 +8,9 @@ typedef struct {
        /* True image size */
        unsigned width, height;
 
+       /* 1 = B/W, 3 = YCbCr */        
+       unsigned num_components;
+
        /* Component image sizes (possibly subsampled) */
        unsigned w0, h0;
        unsigned w1, h1;
@@ -24,10 +27,12 @@ typedef struct {
 
 enum qscale_scaling_filter {
        LANCZOS = 0,
+       MITCHELL = 1,
 };
 
 enum qscale_jpeg_mode {
        SEQUENTIAL = 0,
+       PROGRESSIVE = 1,
 };
 
 qscale_img *qscale_load_jpeg(const char *filename);