Lines Matching refs:header
70 rle_hdr header; /* Input file information */
77 * Read the file header; return image size and component count.
89 /* Use RLE library routine to get the header info */
90 source->header = *rle_hdr_init(NULL);
91 source->header.rle_file = source->pub.input_file;
92 switch (rle_get_setup(&(source->header))) {
115 width = source->header.xmax - source->header.xmin + 1;
116 height = source->header.ymax - source->header.ymin + 1;
117 source->header.xmin = 0; /* realign horizontally */
118 source->header.xmax = width-1;
124 if (source->header.ncolors == 1 && source->header.ncmap == 0) {
127 } else if (source->header.ncolors == 1 && source->header.ncmap == 1) {
130 1 << source->header.cmaplen);
131 } else if (source->header.ncolors == 1 && source->header.ncmap == 3) {
134 1 << source->header.cmaplen);
135 } else if (source->header.ncolors == 3 && source->header.ncmap == 3) {
138 1 << source->header.cmaplen);
139 } else if (source->header.ncolors == 3 && source->header.ncmap == 0) {
166 (JDIMENSION) (width * source->header.ncolors),
213 colormap = source->header.cmap;
253 colormap = source->header.cmap;
260 RLE_CLR_BIT(source->header, RLE_ALPHA); /* don't read the alpha channel */
277 rle_getrow(&source->header, rle_row);
293 rle_getrow(&source->header, rle_row);
296 for (channel = 0; channel < source->header.ncolors; channel++) {
315 rle_getrow(&source->header, rle_row);