Sha256: b3676ec6156e2785853f90ac3c13a6a4c543bb9f45765bcc3af1f3f1d6f3eb6a

Contents?: true

Size: 753 Bytes

Versions: 6

Compression:

Stored size: 753 Bytes

Contents

#ifndef OILY_PNG_RESAMPLING_H
#define OILY_PNG_RESAMPLING_H

/*
 * Generates the interpolation steps (nearest neighbour) through two values.
 */
void oily_png_generate_steps_residues(long width, long new_width, long *steps, long *residues);

/*
 * Generates the interpolation steps through two values.
 *
 * Returns a Ruby Array
 */
VALUE oily_png_canvas_steps_residues(VALUE self, VALUE width, VALUE new_width);
VALUE oily_png_canvas_steps(VALUE self, VALUE width, VALUE new_width);


/*
 * Performs nearest neighbor interpolation on the Canvas
 */
VALUE oily_png_canvas_resample_nearest_neighbor_bang(VALUE self, VALUE new_width, VALUE new_height);

VALUE oily_png_canvas_resample_bilinear_bang(VALUE self, VALUE new_width, VALUE new_height);

#endif

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
oily_png-1.2.1 ext/oily_png/resampling.h
bench9000-0.1 vendor/oily_png/ext/oily_png/resampling.h
oily_png-1.2.0 ext/oily_png/resampling.h
oily_png-1.1.2 ext/oily_png/resampling.h
oily_png-1.1.1 ext/oily_png/resampling.h
oily_png-1.1.0 ext/oily_png/resampling.h