Implemented JPEG support with two new command line options:
-f sets the format (png, jpeg or both)
-j sets jpeq quality
Added the possibility of running "make mode=debug to get debuggable binaries.
Added _DEBUG and NDEBUG defines.
- Replaced macros with inline functions for debuggability.
- Optimized former macro functions a fair bit.
- Use a struct with id/data to simplify code a lot.
- Got rid of uninitialized variables by using the above struct as return value.
- Fixed crash bug when trying to shadow the bottom block in a row (access block -1)
- Added a few asserts to sanity check function inputs/outputs.
Fixed all -Wall warnings, added -Wall to default build flags.
Fixed all -Wall warnings, added -Wall to default build flags.
Fixed compile error on some platforms
Fixed bug causing fully zoomed in tiles to be written with bad file extension.
Optimization: Around 35% reduction in rendering time.
Added "coverage" and "profile" compile modes to be able to to some performance analysis
Optimizations that cut away another 15-20% rendering time:
- Simplified some access code that was doing things in over-complex ways or using needless branching.
- Moved common early-outs earlier to avoid doing calculations.
- Delay doing some calculations until really needed.
- Store block data in uint16 internally, instead of doing conversion from source format (mcr/anvil). This takes up 4 bits of wasted space per block but speeds up access. Complexity of access has now been moved to load time, but we access blocks far more often than we load chunks.
Compile fix.
Merge branch 'master' of git://github.com/akudeukie/pigmap
Removed execute permissions on source files
Removed trailing carriage returns
Removed trailing carriage returns and fixed permissions
Merge branch 'akudeukie-master' into akudeukie-changes

Conflicts:
	Makefile
	blockimages.cpp
	blockimages.h
	chunk.cpp
	chunk.h
	map.cpp
	map.h
	pigmap.cpp
	region.h
	render.cpp
	rgba.cpp
	rgba.h
	tables.cpp
	tables.h
	template.html
	utils.cpp
Fixed oversight from merge
Fixed bug causing ice to be drawn improperly sometimes
Fixed compiler warnings