| 505 | } |
| 506 | |
| 507 | void stbiw__write_dump_data(stbi__write_context *s, int length, unsigned char *data) |
| 508 | { |
| 509 | unsigned char lengthbyte = STBIW_UCHAR(length); |
| 510 | STBIW_ASSERT(length <= 128); // inconsistent with spec but consistent with official code |
| 511 | s->func(s->context, &lengthbyte, 1); |
| 512 | s->func(s->context, data, length); |
| 513 | } |
| 514 | |
| 515 | void stbiw__write_hdr_scanline(stbi__write_context *s, int width, int ncomp, unsigned char *scratch, float *scanline) |
| 516 | { |
no outgoing calls
no test coverage detected