summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-01-04Add farbfeld(5) manpageFRIGN
2016-01-04Add stricter and clearer error-checking in png2ff and ff2pngFRIGN
As known from sbase, we want to manually flush stdout to see if all data has been passed on.
2016-01-04Readd &colorFRIGN
Somehow, it broke the depth-value on libpng 1.4.*. Should be worth a bug-report to the libpng-guys, but I can't be arsed right now. This fucking library is a pain in the ass.
2016-01-04Convert depth-check to switch and remove unused variablesFRIGN
2016-01-04Clean up png2ff, remove debug leftoversFRIGN
Thanks Dimitris, Hiltjo!
2016-01-04Update LICENSEFRIGN
2016-01-04Update TODOFRIGN
2016-01-04ff2png: Export 16-Bit RGBA PNG's so we don't lose dataFRIGN
2016-01-04png2ff: Convert 16-Bit PNG's losslesslyFRIGN
It took me quite a while to figure out that libpng already gives you big endian values. I also tweaked the library functions a bit more to really make sure that all PNG-types (grayscale, palette, ...) are converted to RGBA properly.
2015-12-11Use stdin and stdout with 2ffFRIGN
It always seemed odd to have a file-argument for 2ff, given all other farbfeld conversion tools operate on stdin and stdout only. Given I received numerous e-mails on this matter I've decided to change the usage to lessen the confusion. Maybe there's a way to do some magic with tee(1), but I didn't bother just yet. To ease the transition, the number of arguments are checked and a usage printed if arguments are given.
2015-12-08fix segfault on JPG errorFRIGN
thanks Quentin Rameau!
2015-11-23Update TODOFRIGN
jpg-support is done.
2015-11-23Update LICENSE 2FRIGN
I forgot to add Hiltjo to the 2015-committers.
2015-11-23Update LICENSEFRIGN
2015-11-23JPG Code cleanupFRIGN
2015-11-23(Re)add jpg2ffFRIGN
Thanks z3bra for porting this! Also change 2ff to use case instead of if-blocks.
2015-11-17Make config.mk easier to edit on different systemssin
This should also allow one to build the tools on both BSD and Linux probably without modifying config.mk at all.
2015-11-17Add 2ff utilityFRIGN
This is a wrapper for the different conversion utilities with filetype detection using file(1) and an imagemagick fallback.
2015-11-17Fix my name in LICENSEsin
2015-11-17Avoid using the non-portable endian.h conversion functionssin
Use the arpa/inet.h conversion functions which are standardized in POSIX.
2015-11-13Add _BSD_SOURCE for endian.hFRIGN
Thanks Heiko ("rundstutzen") for reporting this!
2015-11-10Remove arg.hFRIGN
No need for this when the tools don't accept arguments.
2015-11-10Fix 16-bit RGB-expands and header-endianness properlyFRIGN
2015-11-10Update farbfeld-documentationFRIGN
2015-11-10Fix Makefile-commentFRIGN
2015-11-10Overhaul buildsystemFRIGN
2015-11-09imagefile -> farbfeldFRIGN
- Rename the format - Change the format specification - Drop old tools waiting to be fixed on a later date, just keep fixed png for now - Simplify other stuff This is a direct consequence of my slcon2-talk on this topic. At first I planned to have 64 bits per channel, but this is overkill.
2015-07-31config.mk: use c99, not -c90+ansi, unrecognized on OpenBSDHiltjo Posthuma
2015-02-03Add gif2if procedure to MakefileFRIGN
Thanks to Henrique Lengler <henriqueleng@opmbx.org> for the patch!
2014-07-31Fix incompatibilities with older version of giflibsin
To simplify things just print that a gif error occured. The internal error messages are not terribly descriptive and this approach saves on extra preprocessor madness to work around it. For DGifOpenFileHandle() we really can't do much as the prototype was changed, just #if around that.
2014-07-31Makefile: prefer lib flags over general LDFLAGSHiltjo Posthuma
2014-07-31config.mk: add CPPFLAGS and commented debug flagsHiltjo Posthuma
2014-07-31jpg2if: remain compatible with non-turbo libjpegHiltjo Posthuma
2014-07-29add myself to LICENSEHiltjo Posthuma
2014-07-29add gif2ifHiltjo Posthuma
2014-07-29add jpg2ifHiltjo Posthuma
2014-07-29Revert "Fix endianness in header"sin
The previous behaviour was correct. A width of 1900 pixels which is 0x00000640 in hex was stored on disk as: 00 00 06 40 That's BE order which is what we want. Reading this uint32_t on an LE machine we get: width = 0x40060000 and converting from BE to LE we get the correct 0x640 value. Reading on a BE machine we get the correct value and the swap is a no-op.
2014-07-29Fix endianness in headerFRIGN
Well, who would have thought fwrite already converts your integer to NBO? It would've been bloody helpful to at least mention it in the manual. While at it, fix the wrong read-in-code and call it a day.
2014-07-29After reworking the code png_row doesn't need to be explicitly initializedsin
2014-07-29Add myself to LICENSEsin
2014-07-29Be consistent and free png data in png2if as wellsin
2014-07-29Don't bother to cleanup in error casessin
These tools are "one-shot", nobody cares about memory leaks while the program is running. Bring back -Os, no more false positives because there's no interaction between gotos and setjmp/longjmp.
2014-07-29Use %lu in case of an unexpected EOF or row-skewsin
We could use the macros from stdint.h but this should be good enough.
2014-07-29Reorder includessin
2014-07-29Ensure that png_row is NULLsin
If we fail early, the call to free(png_row) could crash because of an uninitialized (non-NULL) png_row.
2014-07-29If the match at the start of the header doesn't match say so explicitlysin
2014-07-29Fix type inconsistencies and remove hacky compiler optionssin
-Os generates lots of false positives and it is not worth it much for such a small set of tools.
2014-07-29Fix conversion of grayscale-png'sFRIGN
Thanks to Robert Hülle for reporting this!
2014-07-22It is -Wno-clobbered not -Wno-clobbersin
2014-07-20Don't warn about clobbered pointers.FRIGN