Browse Source

move gif privates into Image.cc

v1.x
Tj Holowaychuk 14 years ago
parent
commit
82b32c3b20
  1. 13
      src/Image.cc
  2. 14
      src/Image.h

13
src/Image.cc

@ -16,6 +16,19 @@
#include <jpeglib.h>
#endif
#ifdef HAVE_GIF
#include <gif_lib.h>
struct GIFInputFuncData {
uint8_t *buf;
unsigned int length;
unsigned int cpos;
};
int readGIFFromMemory(GifFileType *gft, GifByteType *buf, int length);
int getGIFTransparentColor(GifFileType *gft, int framenum);
#endif
Persistent<FunctionTemplate> Image::constructor;
/*

14
src/Image.h

@ -9,9 +9,6 @@
#define __NODE_IMAGE_H__
#include "Canvas.h"
#ifdef HAVE_GIF
#include <gif_lib.h>
#endif
class Image: public node::ObjectWrap {
public:
@ -76,15 +73,4 @@ class Image: public node::ObjectWrap {
~Image();
};
#ifdef HAVE_GIF
struct GIFInputFuncData {
uint8_t *buf;
unsigned int length;
unsigned int cpos;
};
int readGIFFromMemory(GifFileType *gft, GifByteType *buf, int length);
int getGIFTransparentColor(GifFileType *gft, int framenum);
#endif
#endif

Loading…
Cancel
Save