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

Function stbi_write_hdr

include/stb_image_write.h:633–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data)
634{
635 stbi__write_context s;
636 if (stbi__start_write_file(&s,filename)) {
637 int r = stbi_write_hdr_core(&s, x, y, comp, (float *) data);
638 stbi__end_write_file(&s);
639 return r;
640 } else
641 return 0;
642}
643#endif // STBI_WRITE_NO_STDIO
644
645

Callers

nothing calls this directly

Calls 3

stbi__start_write_fileFunction · 0.85
stbi_write_hdr_coreFunction · 0.85
stbi__end_write_fileFunction · 0.85

Tested by

no test coverage detected