Sha256: 7969aa1c3a2b48e58b642d09311922b7d50c1f8af1745a650ecd4ceb0e2e7b4d

Contents?: true

Size: 974 Bytes

Versions: 11

Compression:

Stored size: 974 Bytes

Contents

#include "webp/decode.h"
#include "webp/encode.h"

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

typedef enum {
  oPNG = 0,
  oPAM,
  oPPM,
  oPGM,
  oBMP,
  oTIFF_,
  oYUV,
  ALPHA_PLANE_ONLY  // this is for experimenting only
} OutputFileFormat;

typedef enum {
  iPNG_ = 0,
  iJPEG_,
  iTIFF_,  // 'TIFF' clashes with libtiff
  UNSUPPORTED
} InputFileFormat;

int UtilSaveOutput(const WebPDecBuffer* const buffer, OutputFileFormat format, const char* const out_file);
// Allocates storage for entire file 'file_name' and returns contents and size
// in 'data' and 'data_size'. Returns 1 on success, 0 otherwise. '*data' should
// be deleted using free().
int UtilReadFile(const char* const file_name,
                   const uint8_t** data, size_t* data_size);

int UtilReadPicture(const char* const filename, WebPPicture* const pic,
                      int keep_alpha);

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
webp-ffi-0.4.0 ext/webp_ffi/util.h
webp-ffi-0.3.1 ext/webp_ffi/util.h
webp-ffi-0.3.0 ext/webp_ffi/util.h
webp-ffi-0.2.7 ext/webp_ffi/util.h
webp-ffi-0.2.6 ext/webp_ffi/util.h
webp-ffi-0.2.5 ext/webp_ffi/util.h
webp-ffi-0.2.4 ext/webp_ffi/util.h
webp-ffi-0.2.3 ext/webp_ffi/util.h
webp-ffi-0.2.2 ext/webp_ffi/util.h
webp-ffi-0.2.1 ext/webp_ffi/util.h
webp-ffi-0.2.0 ext/webp_ffi/util.h