| 146 | static void bm_iff_convert_8_to_16(int dest_bm, iff_bitmap_header *iffbm); |
| 147 | |
| 148 | int bm_iff_get_sig(CFILE *f) { |
| 149 | char s[4]; |
| 150 | int i; |
| 151 | |
| 152 | for (i = 0; i < 4; i++) |
| 153 | s[i] = cf_ReadByte(f); |
| 154 | |
| 155 | if (!strncmp("ILBM", s, 4)) |
| 156 | return IFF_SIG_ILBM; |
| 157 | if (!strncmp("BODY", s, 4)) |
| 158 | return IFF_SIG_BODY; |
| 159 | if (!strncmp("CMAP", s, 4)) |
| 160 | return IFF_SIG_CMAP; |
| 161 | if (!strncmp("BMHD", s, 4)) |
| 162 | return IFF_SIG_BMHD; |
| 163 | if (!strncmp("FORM", s, 4)) |
| 164 | return IFF_SIG_FORM; |
| 165 | if (!strncmp("PBM ", s, 4)) |
| 166 | return IFF_SIG_PBM; |
| 167 | if (!strncmp("ANIM", s, 4)) |
| 168 | return IFF_SIG_ANIM; |
| 169 | if (!strncmp("DLTA", s, 4)) |
| 170 | return IFF_SIG_DELTA; |
| 171 | if (!strncmp("ANHD", s, 4)) |
| 172 | return IFF_SIG_ANHD; |
| 173 | |
| 174 | return (IFF_SIG_UNKNOWN); |
| 175 | } |
| 176 | int bm_iff_parse_bmhd(CFILE *ifile, uint32_t len, iff_bitmap_header *bmheader) { |
| 177 | len = len; |
| 178 |
no test coverage detected