summaryrefslogtreecommitdiff
path: root/src/mbgl/util/premultiply.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [build] Fix undefined behavour sanitizer (#16375)zmiao2020-04-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [build] Fix integer overflow runtime error for core part Temporarily remove circle ci UBSAN build precondition * [build] Enable all of the ubsans [build] Check runtime error [build] Update UBSAN_OPTION * [build] Add UBSAN blacklist [build] Ignore system libraries [build] Ignore vendor library * [build] Fix implicit conversion runtime error in core * [build] Fix division by zero runtime error * [build] Add unfixed error to ubsan blacklist * [build] Make UBSAN halt on error Revert "Temporary remove build precondition" * [build] Fix division by zero error * [build] Make UBSAN officially work without FIXME prefix * [build] Fix implicit conversion from int64_t to uint64_t * [build] Rename style test json file name * Address review findings
* [core] leave Image objects in a valid state after premultiply/unpremultiplyKonstantin Käfer2017-05-191-0/+2
|
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-271-6/+4
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-031-2/+2
|
* [core] Fix std::move() misuse that disables copy elisionKonstantin Käfer2015-12-031-2/+2
|
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-251-6/+29
| | | | | | | 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] Always manually premultiply libpng outputJohn Firebaugh2015-11-251-0/+30
It appears to be the only way to get the results we want in all cases.