| 493 | } |
| 494 | |
| 495 | static void |
| 496 | ReadTileStrip(FILE *fd, int len) |
| 497 | { |
| 498 | int v; |
| 499 | int xpos = 0, ypos = 0; |
| 500 | |
| 501 | while ((v = LWZReadByte(fd, FALSE /*, (int) input_code_size*/ )) >= 0) { |
| 502 | PPM_ASSIGN(image[ypos][xpos], ColorMap[CM_RED][v], |
| 503 | ColorMap[CM_GREEN][v], ColorMap[CM_BLUE][v]); |
| 504 | |
| 505 | ++xpos; |
| 506 | if (xpos == len) { |
| 507 | xpos = 0; |
| 508 | ++ypos; |
| 509 | } |
| 510 | if (ypos >= TILE_Y) |
| 511 | break; |
| 512 | } |
| 513 | } |
| 514 | |
| 515 | boolean |
| 516 | fopen_gif_file(const char *filename, const char *type) |
no test coverage detected