artemp
|
438bfad732
|
+ factory : variadic templates based implementation ( requires c++11)
+ image_reader : stream based reading interface (boost::iostreams)
+ register additional png and jpeg readers with following sigs :
```
std::auto_ptr<mapnik::image_reader> reader(mapnik::get_image_reader(buffer,size));
// buffer - char const*
// size - size_t
```
+ initial type_from_bytes implementation (TODO: add more types)
+ python : mapnik.Image.fromstring(str) mapnik.Image.frombuffer(buf)
|
2013-04-12 12:46:40 +01:00 |
|
Dane Springmeyer
|
16e2e8a06f
|
refactor jpeg reader to close fd after read - refs #1783
|
2013-04-09 18:36:02 -07:00 |
|
artemp
|
270b66318d
|
+ mapnik c++ naming style
|
2013-04-09 11:34:20 +01:00 |
|
artemp
|
2ca306290a
|
+ fix reading a region from JPEG file
+ re-use jpeg lib structures
+ avoid resource leaking (store FILE in boost::shared_ptr with custom deleter)
|
2013-04-08 15:56:19 +01:00 |
|
Dane Springmeyer
|
412aa510a1
|
fix jpeg/tiff error handling on failed reads - closes #1775
|
2013-03-25 18:29:29 -07:00 |
|
Dane Springmeyer
|
bb27156df0
|
use internal noncopyable class to speed up compile times slightly
|
2012-12-16 18:19:52 -08:00 |
|
Dane Springmeyer
|
a4b5549282
|
before caching marker premultiply only those image formats that might potentially need to be premultiplied
|
2012-10-04 16:07:24 -07:00 |
|
artemp
|
77e585895f
|
+ add premultiplied_alpha method to image_reader
* tiff - TIFFTAG_EXTRASAMPLES
* png - non-premultiplied alpha (http://www.libpng.org/pub/png/spec/1.1/PNG-Rationale.html)
* jpeg - no-alpha channel, ensure pre-multiplied model
|
2012-09-28 16:37:21 +01:00 |
|
Dane Springmeyer
|
a12b8f1d2f
|
c++ style
|
2012-09-03 10:27:48 -07:00 |
|
kunitoki
|
af201551b8
|
got rid of old CVS $Id comments kludge in files
|
2012-04-08 02:45:01 +02:00 |
|
kunitoki
|
1f351e0e09
|
implement new debug system
|
2012-04-08 02:20:56 +02:00 |
|
Dane Springmeyer
|
17d13cff67
|
whitespace fixes - closes #911
|
2012-02-01 17:53:35 -08:00 |
|
Dane Springmeyer
|
9e037920e0
|
c++ style include
|
2011-11-08 10:34:00 -08:00 |
|
kunitoki
|
f1fb0c1939
|
- fix copyright to 2011 (script to do this will follow)
|
2011-10-23 15:04:25 +02:00 |
|
Dane Springmeyer
|
33f6cbf13d
|
jpeg reader: make to sure call jpeg_finish_decompress if scanlines have been read
|
2011-04-04 04:03:03 +00:00 |
|
Dane Springmeyer
|
8f4386b7b2
|
use dynamically allocated, scoped array instead of variable-size array, which ISO C++ forbids
|
2011-04-02 03:07:45 +00:00 |
|
Dane Springmeyer
|
c1a6a54060
|
remove tabs
|
2011-04-01 20:47:26 +00:00 |
|
Dane Springmeyer
|
1b4f034ee5
|
add header needed for fopen on linux in jpeg_reader.cpp
|
2010-06-03 22:43:25 +00:00 |
|
Dane Springmeyer
|
6fc4d6f780
|
add support for reading jpeg images - closes #518
|
2010-06-03 21:24:58 +00:00 |
|