summaryrefslogtreecommitdiff
path: root/platform/default/image.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [tidy] modernize-use-autoBruno de Oliveira Abinader2017-05-121-1/+1
|
* [core] replace encodePNG() with a version that doesn't use libpngKonstantin Käfer2017-01-251-70/+0
| | | | rationale: encodePNG is only used in tests + sample apps, but shouldn't actually be part of the core library. In #7828, we're removing the libpng dependency for Android, and using a libpng-free version of encodePNG allows us to run the core unit tests on Android without pulling in libpng just for the test suite. In a next step, we should remove encodePNG() from the image.hpp header, which is a public header.
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-271-6/+6
|
* [core] Avoid redundant 'inline' usageBruno de Oliveira Abinader2016-06-181-1/+1
|
* [tidy/linux] modernize-use-nullptrBruno de Oliveira Abinader2016-06-141-5/+5
|
* [tidy/linux] llvm-namespace-commentBruno de Oliveira Abinader2016-06-141-1/+1
|
* [core] Replace boost::lexical_cast with std::to_stringJohn Firebaugh2016-05-021-1/+8
| | | | This removes the only boost dependency from public headers.
* [linux] Build with GCC 5 (#4901)John Firebaugh2016-04-291-5/+2
| | | | | | * [linux] Build with GCC 5 * [build] -fabi-version=0 is the default for GCC 5
* Revert "Revert WebP support due to broken builds"Bruno de Oliveira Abinader2016-01-201-3/+17
| | | | | | | This reverts commit 6709bdcacd5a45a10b554f3f225206c9494e5e43. There was an issue with the script that removes '-lwebp' from WebP linker flags, since we're statically linking. This is now fixed.
* Revert WebP support due to broken buildsJohn Firebaugh2016-01-191-17/+3
| | | | This reverts commits 2010fbb0e61cbe7c0b08560118ca887fc1d7193e, a361ce47a19d37b96b48cd605c62c5ab79bba462, and d004bb275ae3ea60bb6c2febd6fa22f1f51c3993.
* [linux] Added WebP tile supportBruno de Oliveira Abinader2016-01-191-3/+17
| | | | | | | - Android support is currently disabled due to a libwebp build issue. - iOS and OS X support will appear after the next Mapbox iOS SDK release. Related: #https://github.com/mapbox/mapbox-gl-native/issues/2354
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-251-1/+7
| | | | | | | It's a premultiplied image. This implies that we were misusing encodePNG in most cases, as we were passing premultiplied pixels which were then interpreted as unmultiplied. I changed encodePNG to accept premultipled pixels, and unpremultiply in the implementations.
* [core] Rewrite image handlingJohn Firebaugh2015-11-251-42/+27
| | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation
* Fix GCC5 complaining about -Wunused-variable.Thomas Voß2015-11-251-1/+3
|
* [core] Remove unusedJohn Firebaugh2015-11-231-2/+1
|
* [core] For binary image data use uint8_t, not charJohn Firebaugh2015-11-231-4/+4
|
* [core] fix logging so we don't use strings as a formatterKonstantin Käfer2015-11-061-1/+1
|
* compress_png: void* => const void*Konstantin Käfer2015-07-081-1/+1
|
* Replace mbgl::util::make_unique<> with std::make_unique<>Konstantin Käfer2015-05-261-2/+1
|
* Get rid of printf and cout by using Log::*Thiago Marcos P. Santos2015-03-121-4/+4
| | | | | | | Use our logging system that will route the message accordingly on the target platform. Fixes #613
* Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-masonLeith Bade2014-12-031-1/+2
|\ | | | | | | | | Conflicts: src/map/map.cpp
| * add array overloads to make_unique and move it to mbgl::util from stdKonstantin Käfer2014-12-031-1/+2
| |
* | Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-masonLeith Bade2014-11-281-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: README.md configure gyp/mbgl-linux.gypi include/mbgl/map/map.hpp include/mbgl/platform/default/image_reader.hpp include/mbgl/platform/default/jpeg_reader.hpp include/mbgl/platform/default/png_reader.hpp include/mbgl/util/uv_detail.hpp ios/mapbox-gl-cocoa platform/default/image.cpp platform/default/image_reader.cpp platform/default/jpeg_reader.cpp platform/default/png_reader.cpp src/map/map.cpp
| * convert image_reader public interface to use CamelCase to match the rest of ↵artemp2014-11-261-2/+2
| | | | | | | | codebase
| * image-readers: move concrete implementations headers into platform/defaultartemp2014-11-191-1/+2
| |
| * return unique_ptr from get_image_readerartemp2014-11-191-1/+1
| |
| * ensure all exceptions are caught in Image ctorartemp2014-11-191-1/+8
| |
| * Merge branch 'master' into image-readersartemp2014-11-131-0/+14
| |\
| * | add image_reader abstraction layer to hanfle multiple image formatsartemp2014-11-071-111/+15
| | | | | | | | | | | | (work-in-progress)
* | | image-readers: move concrete implementations headers into platform/defaultartemp2014-11-281-1/+2
| | |
* | | return unique_ptr from get_image_readerartemp2014-11-281-1/+1
| | |
* | | ensure all exceptions are caught in Image ctorartemp2014-11-281-1/+8
| | |
* | | add image_reader abstraction layer to hanfle multiple image formatsartemp2014-11-281-113/+15
| | | | | | | | | | | | (work-in-progress)
* | | Enable PNG gammaLeith Bade2014-11-161-2/+2
| | |
* | | Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-masonLeith Bade2014-11-121-0/+14
|\ \ \ | | |/ | |/| | | | | | | Conflicts: platform/default/image.cpp
| * | check library versions against header symbols in static initialization functionKonstantin Käfer2014-11-121-0/+14
| |/ | | | | | | fixes #580
* | Work around gamma crashLeith Bade2014-11-081-2/+3
| |
* | Make image.cpp use Log functionsLeith Bade2014-11-081-5/+7
|/
* use more modern libpng version instead of the system-provided one and fix ↵Konstantin Käfer2014-10-301-1/+2
| | | | compile errors
* use CoreImage for decoding/encoding images on osx/iosKonstantin Käfer2014-10-301-0/+177