Add native JPEG/PNG encoding

This commit is contained in:
Joshua Granick
2014-11-11 10:48:14 -08:00
parent f5c049d7ff
commit 1f24e162ec
8 changed files with 283 additions and 50 deletions

View File

@@ -15,6 +15,7 @@ namespace lime {
public:
ImageBuffer ();
ImageBuffer (value imageBuffer);
~ImageBuffer ();
void Blit (const unsigned char *data, int x, int y, int width, int height);

View File

@@ -3,6 +3,7 @@
#include <graphics/ImageBuffer.h>
#include <utils/ByteArray.h>
#include <utils/Resource.h>
@@ -15,6 +16,7 @@ namespace lime {
public:
static bool Decode (Resource *resource, ImageBuffer *imageBuffer);
static bool Encode (ImageBuffer *imageBuffer, ByteArray *bytes, int quality);
};

View File

@@ -3,6 +3,7 @@
#include <graphics/ImageBuffer.h>
#include <utils/ByteArray.h>
#include <utils/Resource.h>
@@ -15,6 +16,7 @@ namespace lime {
public:
static bool Decode (Resource *resource, ImageBuffer *imageBuffer);
static bool Encode (ImageBuffer *imageBuffer, ByteArray *bytes);
};