X-Git-Url: https://git.sesse.net/?p=qscale;a=blobdiff_plain;f=libqscale.h;h=409a9bb7488366ddee5770bd38489eaddae48a2a;hp=0d23510c2e9653381dc703f3e4b01017e393eec2;hb=HEAD;hpb=89b54dc15de5f3c27ce8bed9f1490b9b4ba16b35 diff --git a/libqscale.h b/libqscale.h index 0d23510..409a9bb 100644 --- a/libqscale.h +++ b/libqscale.h @@ -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,6 +27,7 @@ typedef struct { enum qscale_scaling_filter { LANCZOS = 0, + MITCHELL = 1, }; enum qscale_jpeg_mode {