Sha256: 5aab841ee52e3f708eb0ffefe906de903d66c4dab1146a8628cf31ac6c7c9e45

Contents?: true

Size: 637 Bytes

Versions: 1

Compression:

Stored size: 637 Bytes

Contents

#ifndef PSD_NATIVE_EXT
#define PSD_NATIVE_EXT

#include "ruby.h"

#define RSTRING_NOT_MODIFIED

// Pixels use 32 bits unsigned integers
// We borrow this from OilyPNG
typedef uint32_t PIXEL;
#define BUILD_PIXEL(r, g, b, a)  (((PIXEL) (r) << 24) + ((PIXEL) (g) << 16) + ((PIXEL) (b) << 8) + (PIXEL) (a))

// Our native mixins
#include "color.h"
#include "compose.h"
#include "image_mode_cmyk.h"
#include "image_mode_greyscale.h"
#include "image_mode_rgb.h"
#include "rle_decoding.h"

void Init_psd_native();
VALUE psd_class();
void psd_logger(char* level, char* message);
VALUE psd_file(VALUE self);
int psd_file_tell(VALUE self);

#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
psd_native-0.4.0 ext/psd_native/psd_native_ext.h