Sha256: 9094377b25f55011e36e81b74f30e48ecacef38a40028c15f9a3621d68edbba5
Contents?: true
Size: 941 Bytes
Versions: 3
Compression:
Stored size: 941 Bytes
Contents
#include "webp/decode.h" #include "webp/encode.h" #if defined(__cplusplus) || defined(c_plusplus) extern "C" { #endif typedef enum { PNG = 0, PAM, PPM, PGM, ALPHA_PLANE_ONLY // this is for experimenting only } OutputFileFormat; typedef enum { PNG_ = 0, JPEG_, TIFF_, // '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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webp-ffi-0.1.8 | ext/webp_ffi/util.h |
webp-ffi-0.1.7 | ext/webp_ffi/util.h |
webp-ffi-0.1.6 | ext/webp_ffi/util.h |