core, loaders: Move endian include to core.

This just moves the #ifdefs around including
endian header to common place to core.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
loaders: PNG: Add support for 16 bit Grayscale.

Since we have PIXEL_G16 in config, we can make use of it.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
examples: py_simple: Remove pygtk_example

It never worked anyway.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
pywrap: filters: Add weighted median (disabled for now)

Note that the functions are disabled because the filter seems to be
broken. I will enable them once the filter is working again.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
tests: FillRect: A few more testcases.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
tests: Fix whitespaces.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
tests: framework: Add TST_MALLOC_CANARIES flag.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
tests: loaders: Enable malloc canaries for SaveLoad

The PNG and TIFF loaders segfaults for currently unknown reasons.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
loaders: PNM: Fix save_ascii_rgb888

The pointers should be incremented after we safe first pixel, not
before.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>