Sha256: bc01457a07a689ac2c1829cefec08be133fa1bf515caf25bb588d3554bd90e5a

Contents?: true

Size: 795 Bytes

Versions: 1

Compression:

Stored size: 795 Bytes

Contents

#ifndef _WEBP_FFI_H_
#define _WEBP_FFI_H_

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

  typedef struct {
    int lossless;           // Lossless encoding (0=lossy(default), 1=lossless).
    float quality;          // between 0 (smallest file) and 100 (biggest)
    int method;             // quality/speed trade-off (0=fast, 6=slower-better)
  } FfiWebpConfig;

  void decoder_version(char *version);
  void encoder_version(char *version);
  int webp_get_info(const uint8_t* data, size_t data_size, int* width, int* height);
  int webp_decode(const char *in_file, const char *out_file);
  int webp_encode(const char *in_file, const char *out_file);
  int test(int n);

#if defined(__cplusplus) || defined(c_plusplus)
}    // extern "C"
#endif

#endif	/* _WEBP_FFI_H_ */

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webp-ffi-0.1.0 ext/webp_ffi/webp_ffi.h