use CoreImage for decoding/encoding images on osx/ios
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
||||
void createContext();
|
||||
|
||||
void resize(uint16_t width, uint16_t height, float pixelRatio);
|
||||
const std::unique_ptr<uint32_t[]> readPixels();
|
||||
std::unique_ptr<uint32_t[]> readPixels();
|
||||
|
||||
void notify();
|
||||
void notify_map_change(MapChange change, timestamp delay = 0);
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
namespace mbgl {
|
||||
namespace util {
|
||||
|
||||
std::string compress_png(int width, int height, void *rgba, bool flip = false);
|
||||
std::string compress_png(int width, int height, void *rgba);
|
||||
|
||||
|
||||
class Image {
|
||||
public:
|
||||
Image(const std::string &img, bool flip = false);
|
||||
Image(const std::string &img);
|
||||
|
||||
inline const char *getData() const { return img.get(); }
|
||||
inline uint32_t getWidth() const { return width; }
|
||||
|
||||
Reference in New Issue
Block a user