svpng
svpng copied to clipboard
Minimalistic C function for saving RGB/RGBA image as uncompressed PNG.
Milo您好,我在本地编译试验了下您的代码,想要生成一个高分辨率的图片,但似乎无法正确保存,经过测试 256 x 128 是可以保存到本地的,但 2560 x 1280 却生成不了,不知道为啥, 头文件的代码暂时没太看懂。 ```c void test(void) { unsigned char rgb[2560 * 1280 * 3], *p = rgb; unsigned x, y; FILE *fp =...
使用者可能使用不同的方式构建 `img`。比如: ``` C #define ENA 0 /* Enable Alpha channel or not */ #define NX 256 /* Number of X points */ #define NY 256 /* Number of Y...
C 标准只保证 `unsigned` 的宽度不小于 16 位。而在 CRC32 Table 中的数据是 32 位。此处应该使用 `unsigned long` 或者 `uint32_t`。
实现原理
叶老师可不可以讲解一下实现原理啊!看不懂啊,官方文档翻了半天,完全无法理解 打击!!_| ̄|○
In svpng.inc:72 it is said, that width is `