Sha256: b1f6b41f8ca1e7239f3274cbcad3f403a8bccbb81e0d85eaa7b4a93a2ec2d26e

Contents?: true

Size: 746 Bytes

Versions: 7

Compression:

Stored size: 746 Bytes

Contents

#include <stdio.h>
#include <stdlib.h>

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

#ifdef __cplusplus
extern "C" {
#endif

// Reads a PNG from 'in_file', returning the decoded output in 'pic'.
// If 'keep_alpha' is true and the PNG has an alpha channel, the output is RGBA
// otherwise it will be RGB.
// Returns true on success.
int UtilReadPNG(FILE* in_file, struct WebPPicture* const pic, int keep_alpha);

int UtilWritePNG(FILE* out_file, const WebPDecBuffer* const buffer);
int UtilWritePPM(FILE* fout, const WebPDecBuffer* const buffer, int alpha);
int UtilWriteAlphaPlane(FILE* fout, const WebPDecBuffer* const buffer);
int UtilWritePGM(FILE* fout, const WebPDecBuffer* const buffer);

#ifdef __cplusplus
}    // extern "C"
#endif

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
webp-ffi-0.4.0 ext/webp_ffi/pngdec.h
webp-ffi-0.3.1 ext/webp_ffi/pngdec.h
webp-ffi-0.3.0 ext/webp_ffi/pngdec.h
webp-ffi-0.2.7 ext/webp_ffi/pngdec.h
webp-ffi-0.2.6 ext/webp_ffi/pngdec.h
webp-ffi-0.2.5 ext/webp_ffi/pngdec.h
webp-ffi-0.2.4 ext/webp_ffi/pngdec.h