| 373 | |
| 374 | #ifndef STBI_WRITE_NO_STDIO |
| 375 | STBIWDEF 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 | |
| 387 | static int stbi_write_tga_core(stbi__write_context *s, int x, int y, int comp, void *data) |
nothing calls this directly
no test coverage detected