comparison src/image.hh @ 104:ed71c7b5ea92

- Added support for progressive display of progressive jpegs. - Fixed progressive display of interlaced pngs.
author jcid
date Wed, 16 Jan 2008 01:17:20 +0100
parents 17f7b0db59ca
children 0b47756eeb13
comparison
equal deleted inserted replaced
103:41dfbc23e98f 104:ed71c7b5ea92
42 DilloImgType in_type; /* Image Type */ 42 DilloImgType in_type; /* Image Type */
43 int32_t bg_color; /* Background color */ 43 int32_t bg_color; /* Background color */
44 44
45 int ProcessedBytes; /* Amount of bytes already decoded */ 45 int ProcessedBytes; /* Amount of bytes already decoded */
46 bitvec_t *BitVec; /* Bit vector for decoded rows */ 46 bitvec_t *BitVec; /* Bit vector for decoded rows */
47 uint_t ScanNumber; /* Current decoding scan */
47 ImageState State; /* Processing status */ 48 ImageState State; /* Processing status */
48 49
49 int RefCount; /* Reference counter */ 50 int RefCount; /* Reference counter */
50 }; 51 };
51 52
60 61
61 void a_Image_set_parms(DilloImage *Image, void *v_imgbuf, DilloUrl *url, 62 void a_Image_set_parms(DilloImage *Image, void *v_imgbuf, DilloUrl *url,
62 int version, uint_t width, uint_t height, 63 int version, uint_t width, uint_t height,
63 DilloImgType type); 64 DilloImgType type);
64 void a_Image_set_cmap(DilloImage *Image, const uchar_t *cmap); 65 void a_Image_set_cmap(DilloImage *Image, const uchar_t *cmap);
66 void a_Image_new_scan(DilloImage *image, void *v_imgbuf);
65 void a_Image_write(DilloImage *Image, void *v_imgbuf, 67 void a_Image_write(DilloImage *Image, void *v_imgbuf,
66 const uchar_t *buf, uint_t y, int decode); 68 const uchar_t *buf, uint_t y, int decode);
67 void a_Image_close(DilloImage *Image); 69 void a_Image_close(DilloImage *Image);
68 70
69 void a_Image_imgbuf_ref(void *v_imgbuf); 71 void a_Image_imgbuf_ref(void *v_imgbuf);