mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
1bc48bc8e4
This commit and, by extension, PR attempts to update `stb` in the most straightforward way possible as well as include fixes from main repo's unmerged PRs for cases rearing their ugly heads during everyday usage: - stb#1299: stb_rect_pack: Make rect_height_compare a stable sort - stb#1402: stb_image: Fix "unused invalid_chunk" with STBI_FAILURE_USERMSG - stb#1404: stb_image: Fix gif two_back memory address - stb#1420: stb_image: Improve error reporting if file operations fail within *_from_file functions - stb#1445: stb_vorbis: Few static analyzers fixes - stb#1487: stb_vorbis: Fix residue classdata bounding for f->temp_memory_required - stb#1490: stb_vorbis: Fix broken clamp in codebook_decode_deinterleave_repeat - stb#1496: stb_image: Fix pnm only build - stb#1497: stb_image: Fix memory leaks if stbi__convert failed - stb#1498: stb_vorbis: Fix memory leaks in stb_vorbis - stb#1499: stb_vorbis: Minor change to prevent the undefined behavior - left shift of a negative value - stb#1500: stb_vorbis: Fix signed integer overflow Includes additional small fixes that I felt didn't warrant a separate PR.
33 lines
1.4 KiB
C
33 lines
1.4 KiB
C
#ifndef COSMOPOLITAN_THIRD_PARTY_STB_STB_IMAGE_WRITE_H_
|
|
#define COSMOPOLITAN_THIRD_PARTY_STB_STB_IMAGE_WRITE_H_
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern int stbi_write_png_compression_level;
|
|
extern int stbi_write_tga_with_rle;
|
|
extern int stbi_write_force_png_filter;
|
|
|
|
int stbi_write_png(const char *, int, int, int, const void *, int);
|
|
int stbi_write_bmp(const char *, int, int, int, const void *);
|
|
int stbi_write_tga(const char *, int, int, int, const void *);
|
|
int stbi_write_hdr(const char *, int, int, int, const float *);
|
|
int stbi_write_jpg(const char *, int, int, int, const void *, int);
|
|
|
|
typedef void stbi_write_func(void *, void *, int);
|
|
|
|
int stbi_write_png_to_func(stbi_write_func *, void *, int, int, int,
|
|
const void *, int);
|
|
int stbi_write_bmp_to_func(stbi_write_func *, void *, int, int, int,
|
|
const void *);
|
|
int stbi_write_tga_to_func(stbi_write_func *, void *, int, int, int,
|
|
const void *);
|
|
int stbi_write_hdr_to_func(stbi_write_func *, void *, int, int, int,
|
|
const float *);
|
|
int stbi_write_jpg_to_func(stbi_write_func *, void *, int, int, int,
|
|
const void *, int);
|
|
unsigned char *stbi_write_png_to_mem(const unsigned char *, int, int, int, int,
|
|
int *);
|
|
|
|
void stbi_flip_vertically_on_write(int);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_STB_STB_IMAGE_WRITE_H_ */
|