Lines Matching defs:pcx_info
71 } pcx_info;
97 pcx_info.width, pcx_info.height,
98 pcx_info.bpp, pcx_info.planes);
112 if (info.vi_width >= pcx_info.width
113 && info.vi_height >= pcx_info.height
114 && info.vi_depth == pcx_info.bpp
115 && info.vi_planes == pcx_info.planes)
188 pcx_info.width = hdr->xmax - hdr->xmin + 1;
189 pcx_info.height = hdr->ymax - hdr->ymin + 1;
190 pcx_info.bpsl = hdr->bpsl;
191 pcx_info.bpp = hdr->bpp;
192 pcx_info.planes = hdr->nplanes;
193 pcx_info.zlen = size - (128 + 1 + 768);
194 pcx_info.zdata = (uint8_t *)data + 128;
195 pcx_info.palette = (uint8_t *)data + size - 768;
208 if (pcx_info.zlen < 1)
211 vidd_load_palette(adp, pcx_info.palette);
226 x = (swidth - pcx_info.width) / 2;
227 y = (sheight - pcx_info.height) / 2;
236 for (scan = i = 0; scan < pcx_info.height; ++scan, ++y, pos += sbpsl) {
237 for (j = 0; j < pcx_info.bpsl && i < pcx_info.zlen; ++i) {
238 if ((pcx_info.zdata[i] & 0xc0) == 0xc0) {
239 c = pcx_info.zdata[i++] & 0x3f;
240 if (i >= pcx_info.zlen)
245 if (j + c > pcx_info.bpsl)
248 line[j++] = pcx_info.zdata[i];
257 if (pos + pcx_info.width > banksize) {
264 bcopy(line + j, vidmem, pcx_info.width - j);
266 bcopy(line, vidmem + pos, pcx_info.width);