MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / stbi_write_bmp

Function stbi_write_bmp

include/stb_image_write.h:375–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373
374#ifndef STBI_WRITE_NO_STDIO
375STBIWDEF int stbi_write_bmp(char const *filename, int x, int y, int comp, const void *data)
376{
377 stbi__write_context s;
378 if (stbi__start_write_file(&s,filename)) {
379 int r = stbi_write_bmp_core(&s, x, y, comp, data);
380 stbi__end_write_file(&s);
381 return r;
382 } else
383 return 0;
384}
385#endif //!STBI_WRITE_NO_STDIO
386
387static int stbi_write_tga_core(stbi__write_context *s, int x, int y, int comp, void *data)

Callers

nothing calls this directly

Calls 3

stbi__start_write_fileFunction · 0.85
stbi_write_bmp_coreFunction · 0.85
stbi__end_write_fileFunction · 0.85

Tested by

no test coverage detected