Lines Matching refs:info

77     video_info_t 	info;  in bmp_start()  local
85 if ((vidd_get_info(adp, modes[i], &info) == 0) && in bmp_start()
86 (bmp_Init((u_char *)bmp_decoder.data, info.vi_width, in bmp_start()
87 info.vi_height, info.vi_depth) == 0)) in bmp_start()
241 bmp_SetPix(BMP_INFO *info, int x, int y, u_char val) in bmp_SetPix() argument
249 if ((x < 0) || (x >= info->swidth) || (y < 0) || (y >= info->sheight)) in bmp_SetPix()
256 sofs = ((info->height - (y+1) + (info->sheight - info->height) / 2) in bmp_SetPix()
257 * info->adp->va_line_width); in bmp_SetPix()
258 x += (info->swidth - info->width) / 2; in bmp_SetPix()
260 switch(info->sdepth) { in bmp_SetPix()
265 newbank = sofs/info->adp->va_window_size; in bmp_SetPix()
266 if (info->bank != newbank) { in bmp_SetPix()
267 vidd_set_win_org(info->adp, newbank*info->adp->va_window_size); in bmp_SetPix()
268 info->bank = newbank; in bmp_SetPix()
270 sofs %= info->adp->va_window_size; in bmp_SetPix()
274 *(info->vidmem + sofs) ^= 0xff; /* read-modify-write */ in bmp_SetPix()
279 newbank = sofs/info->adp->va_window_size; in bmp_SetPix()
280 if (info->bank != newbank) { in bmp_SetPix()
281 vidd_set_win_org(info->adp, newbank*info->adp->va_window_size); in bmp_SetPix()
282 info->bank = newbank; in bmp_SetPix()
284 sofs %= info->adp->va_window_size; in bmp_SetPix()
285 *(info->vidmem+sofs) = val; in bmp_SetPix()
297 bmp_DecodeRLE4(BMP_INFO *info, int line) in bmp_DecodeRLE4() argument
312 if (*info->index) { in bmp_DecodeRLE4()
313 for (count = 0; count < *info->index; count++, x++) { in bmp_DecodeRLE4()
315 bmp_SetPix(info, x, y, *(info->index+1) & 0x0f); in bmp_DecodeRLE4()
317 bmp_SetPix(info, x, y, (*(info->index+1) >>4) & 0x0f); in bmp_DecodeRLE4()
320 info->index += 2; in bmp_DecodeRLE4()
326 switch (*(info->index+1)) { in bmp_DecodeRLE4()
328 info->index += 2; in bmp_DecodeRLE4()
331 info->index = NULL; in bmp_DecodeRLE4()
334 x += *(info->index + 2); /* new coords */ in bmp_DecodeRLE4()
335 y += *(info->index + 3); in bmp_DecodeRLE4()
336 info->index += 4; in bmp_DecodeRLE4()
339 for (count = 0; count < *(info->index + 1); count++, x++) { in bmp_DecodeRLE4()
340 val = *(info->index + 2 + (count / 2)); /* byte with nybbles */ in bmp_DecodeRLE4()
346 bmp_SetPix(info, x, y, val); in bmp_DecodeRLE4()
349 info->index += 2 + ((count + 3) / 4) * 2; in bmp_DecodeRLE4()
362 bmp_DecodeRLE8(BMP_INFO *info, int line) in bmp_DecodeRLE8() argument
376 if (*info->index) { in bmp_DecodeRLE8()
377 for (count = 0; count < *info->index; count++, x++) in bmp_DecodeRLE8()
378 bmp_SetPix(info, x, y, *(info->index+1)); in bmp_DecodeRLE8()
379 info->index += 2; in bmp_DecodeRLE8()
385 switch(*(info->index+1)) { in bmp_DecodeRLE8()
387 info->index += 2; in bmp_DecodeRLE8()
390 info->index = NULL; in bmp_DecodeRLE8()
393 x += *(info->index + 2); /* new coords */ in bmp_DecodeRLE8()
394 y += *(info->index + 3); in bmp_DecodeRLE8()
395 info->index += 4; in bmp_DecodeRLE8()
398 for (count = 0; count < *(info->index + 1); count++, x++) in bmp_DecodeRLE8()
399 bmp_SetPix(info, x, y, *(info->index + 2 + count)); in bmp_DecodeRLE8()
401 info->index += 2 + count + (count & 1); in bmp_DecodeRLE8()
415 bmp_DecodeLine(BMP_INFO *info, int line) in bmp_DecodeLine() argument
420 switch(info->format) { in bmp_DecodeLine()
422 switch(info->depth) { in bmp_DecodeLine()
424 for (x = 0; x < info->width; x++, info->index++) in bmp_DecodeLine()
425 bmp_SetPix(info, x, line, *info->index); in bmp_DecodeLine()
426 info->index += 3 - (--x % 4); in bmp_DecodeLine()
429 p = info->index; in bmp_DecodeLine()
430 for (x = 0; x < info->width; x++) { in bmp_DecodeLine()
437 bmp_SetPix(info, x, line, val); in bmp_DecodeLine()
440 info->index += ((x + 7) / 8) * 4; in bmp_DecodeLine()
443 p = info->index; in bmp_DecodeLine()
445 for (x = 0; x < info->width; x++) { in bmp_DecodeLine()
452 bmp_SetPix(info, x, line, val); in bmp_DecodeLine()
455 info->index += ((x + 31) / 32) * 4; in bmp_DecodeLine()
460 bmp_DecodeRLE4(info, line); in bmp_DecodeLine()
463 bmp_DecodeRLE8(info, line); in bmp_DecodeLine()