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

Function stbi_write_tga

include/stb_image_write.h:463–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461
462#ifndef STBI_WRITE_NO_STDIO
463int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data)
464{
465 stbi__write_context s;
466 if (stbi__start_write_file(&s,filename)) {
467 int r = stbi_write_tga_core(&s, x, y, comp, (void *) data);
468 stbi__end_write_file(&s);
469 return r;
470 } else
471 return 0;
472}
473#endif
474
475// *************************************************************************************************

Callers

nothing calls this directly

Calls 3

stbi__start_write_fileFunction · 0.85
stbi_write_tga_coreFunction · 0.85
stbi__end_write_fileFunction · 0.85

Tested by

no test coverage detected