MCPcopy Create free account
hub / github.com/SFML/SFML / stbiw__write_dump_data

Function stbiw__write_dump_data

extlibs/headers/stb_image/stb_image_write.h:664–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664static void stbiw__write_dump_data(stbi__write_context *s, int length, unsigned char *data)
665{
666 unsigned char lengthbyte = STBIW_UCHAR(length);
667 STBIW_ASSERT(length <= 128); // inconsistent with spec but consistent with official code
668 s->func(s->context, &lengthbyte, 1);
669 s->func(s->context, data, length);
670}
671
672static void stbiw__write_hdr_scanline(stbi__write_context *s, int width, int ncomp, unsigned char *scratch, float *scanline)
673{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected