summaryrefslogtreecommitdiff
path: root/include/mbgl/util/image.hpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] introduce Blob for compressed and uncompressed dataupstream/blobKonstantin Käfer2018-02-211-3/+3
| | | | | | | | | | | | - Blob is a wrapper type for a shared_ptr<const string> that has accessor functions for getting compressed and uncompressed data - Moved util::writeFile, util::readFile, util::compress, util::uncompress, decodeImage, and encodePNG to the Blob interface - Added Blob support to Request and file sources - Added Blob support to VectorTile objects - Added support for gzip decoding to util::uncompress - We're no longer compressing WebP, PNG, and JPEG data when storing in the OfflineDatabase - Android's HTTPRequest returns compressed Blobs by default One caveat is that our previous decompress function didn't support gzip, so once users upgrade to this version, their offline cache may contain both zlib-compressed data and gzip-compressed data, but older versions won't be able to decompress gzip data. On the other hand, we don't support downgrading SDKs anyway, so this shouldn't be a problem. To be on the safe side, we could bump the user_version of the SQLite DB.
* [core] Clear atlasImage rect for a removed patternBruno de Oliveira Abinader2017-09-131-0/+26
|
* [core] GCC 4.9 shadow member warningsBruno de Oliveira Abinader2017-07-121-3/+3
|
* [core] Per-tile glyph/icon atlasesJohn Firebaugh2017-06-131-0/+17
|
* [core] Make Map.addImage tests pass (#8843)Asheem Mamoowala2017-05-021-1/+4
| | | | | Fix Node tests suite implementation to parse pixelRatio from style json Premultiply images in the node binding before sending to mbgl core
* [core] Updated Size::isEmpty and TransformState::valid checksBruno de Oliveira Abinader2017-04-101-1/+1
|
* [core] Make Image saferJohn Firebaugh2017-02-141-4/+61
| | | | | | Provide Image::copy, which handles copying rectangles from a source to a destination, with thorough bounds checking. Also fixes an indexing error in SpriteAtlas, where the top row of pixels in a wrapped image was copied from the wrong source row.
* [core] add clone() call to Image objectsKonstantin Käfer2017-01-261-0/+7
|
* [core] add ability to upload alpha-only textures + imagesKonstantin Käfer2016-11-011-3/+6
|
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-271-18/+18
|
* [core] standardize on uint16_t for texture sizesKonstantin Käfer2016-09-271-6/+6
|
* [core] mbgl::Image is now movable, noncopyableBruno de Oliveira Abinader2016-06-071-1/+15
|
* [core] use #pragma once instead of ifdef include guardsKonstantin Käfer2016-05-251-4/+1
|
* [test] remove crc64 and compare imagesKonstantin Käfer2016-03-221-0/+7
| | | | boost's crc64 breaks on iOS
* Revert "Revert WebP support due to broken builds"Bruno de Oliveira Abinader2016-01-201-0/+5
| | | | | | | 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-5/+0
| | | | This reverts commits 2010fbb0e61cbe7c0b08560118ca887fc1d7193e, a361ce47a19d37b96b48cd605c62c5ab79bba462, and d004bb275ae3ea60bb6c2febd6fa22f1f51c3993.
* [linux] Added WebP tile supportBruno de Oliveira Abinader2016-01-191-0/+5
| | | | | | | - 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] use `default` instead of empty function bodyKonstantin Käfer2015-12-031-1/+1
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-031-1/+1
|
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-251-1/+1
| | | | | | | 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-14/+21
| | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation
* [core] For binary image data use uint8_t, not charJohn Firebaugh2015-11-231-4/+4
|
* mark Image constructor as explicit to avoid accidental implicit argument ↵Konstantin Käfer2015-07-081-1/+1
| | | | | | conversion when passing a std::string instead of an Image, the parameter gets implicitly and automatically converted (== parsed) to a temporary Image object. Since parsing an Image shouldn't be a frequent operation
* compress_png: void* => const void*Konstantin Käfer2015-07-081-1/+1
|
* use CoreImage for decoding/encoding images on osx/iosKonstantin Käfer2014-10-301-2/+2
|
* do not crash for missing imagesKonstantin Käfer2014-10-301-1/+1
|
* use unique_ptr for automatic deallocationKonstantin Käfer2014-10-301-5/+3
|
* rename llmr => mbglKonstantin Käfer2014-07-161-0/+36