INNER CODE UNIT · C
type
1oom-fork/1oom · src/fmt_pic.c:216
type = fmt_pic_detect(pic->coded, pic->len);
if ((type == PIC_TYPE_PCX) && fmt_pic_pcx_decode(pic)) {
pic->type = PIC_TYPE_PCX;
return true;
} else if ((type == PIC_TYPE_EQUALDEF) && fmt_pic_equaldef_decode(pic)) {
pic->type = PIC_TYPE_EQUALDEF;
return true;
}
return false;
}
/* -------------------------------------------------------------------------- */
bool fmt_pic_load(const char *filename, struct pic_s *pic)
{
#define BUFSIZE (128 + 320 * 200 * 2 + 3 * 256 + 200)
FILE *fd = 0;
uint8_t *buf;