Commit Graph

9 Commits (6c9a3c3dc5cbc72f329d55e5c7e2a33a29ba8c57)

Author SHA1 Message Date
Tigran Aivazian 6c9a3c3dc5 Factor out JPEG support into a module
This is to make adding support for new formats easier.
See the file pic_jpeg.h for the description of the interface that each
image format must support.

Conflicts:

	Makefile
12 years ago
Tigran Aivazian 8c6fd35789 Initialize doc->image in openDocument
This is needed to protect against double free() in closeDocument().
12 years ago
Tigran Aivazian 01ce094adb Free raw_image if it is unsupported.
If the number of colour components is neither 1 nor 3 we should remember
to free the buffer holding the raw decoded image before returning the
error to Lua.
12 years ago
Tigran Aivazian 74a60eeea2 Show the number of colour components via Menu.
Conflicts:

	picviewer.lua
12 years ago
Tigran Aivazian ee59fac328 Make closeDocument() re-entrant. 12 years ago
Tigran Aivazian 7609fc2dd0 Slight tidy-up of the code. 12 years ago
Tigran Aivazian cac63cd390 Add support for colour JPEG images.
I used the luminance match algorithm for converting RGB colour images to
grayscale as it gives the best visual results (but at the cost of speed).
12 years ago
Tigran Aivazian b56f4bf958 Support only grayscale images for now. 12 years ago
Tigran Aivazian 6d23997442 Add simple scaling support.
Conflicts:

	pic.c
12 years ago