Jan
08
2010
For a test program, test.c, that used library libjpeg, both
gcc test.c -ljpeg -o test
and
gcc -ljpeg test.c -o test
worked on Linux (CentOS 5), but only the former worked on Cygwin. Odd.
Another difference is the ZLIB library. In linux, I compiled using -lz, while on cygwin, I use -llibz
Jan
04
2010
I need to use libjpeg and libpng to convert an image from the raw RGB format to JPEG and PNG format and then output the result to a memory buffer, and the following two links saved me lots of coding effort:
http://www.codeguru.com/forum/archive/index.php/t-378333.html
http://stackoverflow.com/questions/1821806/how-to-encode-png-to-buffer-using-libpng
Additionally, there is also a good online tutorial showing how to do in-memory data compression using zlib at
http://www.gamedev.net/reference/articles/article2279.asp
PS: just found out that the latest libjpeg (version 8 ) coming out two weeks ago added the in-memory compression method. Cheers!
Dec
28
2009
PuTTYcyg is a patched version of PuTTY that, in addition to telnet,
rlogin, ssh, and serial connections, can also be used as a local Cygwin
terminal instead of the Windows console or xterm.
PuTTYcyg is available at: http://code.google.com/p/puttycyg