]> git.sesse.net Git - qscale/blobdiff - libqscale.h
Store the sampling factors explicitly in the struct, to make saving simpler.
[qscale] / libqscale.h
index f9853c6ab232bf431ed9458912332c0ac59cc81f..2f40099cd469ad378fa8fabe8f243d9ed097838e 100644 (file)
@@ -13,6 +13,11 @@ typedef struct {
        unsigned w1, h1;
        unsigned w2, h2;
 
+       /* Sampling factors */
+       unsigned samp_h0, samp_v0;
+       unsigned samp_h1, samp_v1;
+       unsigned samp_h2, samp_v2;
+
        /* The data itself */
        JSAMPLE *data_y, *data_cb, *data_cr;
 } qscale_img;