| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
#ifndef WEBP_IMAGEIO_IMAGE_DEC_H_ |
| 15 |
#define WEBP_IMAGEIO_IMAGE_DEC_H_ |
| 16 |
|
| 17 |
#include "webp/types.h" |
| 18 |
|
| 19 |
#ifdef HAVE_CONFIG_H |
| 20 |
#include "webp/config.h" |
| 21 |
#endif |
| 22 |
|
| 23 |
#include "./metadata.h" |
| 24 |
#include "./jpegdec.h" |
| 25 |
#include "./pngdec.h" |
| 26 |
#include "./pnmdec.h" |
| 27 |
#include "./tiffdec.h" |
| 28 |
#include "./webpdec.h" |
| 29 |
#include "./wicdec.h" |
| 30 |
|
| 31 |
#ifdef __cplusplus |
| 32 |
extern "C" { |
| 33 |
#endif |
| 34 |
|
| 35 |
typedef enum { |
| 36 |
WEBP_PNG_FORMAT = 0, |
| 37 |
WEBP_JPEG_FORMAT, |
| 38 |
WEBP_TIFF_FORMAT, |
| 39 |
WEBP_WEBP_FORMAT, |
| 40 |
WEBP_PNM_FORMAT, |
| 41 |
WEBP_UNSUPPORTED_FORMAT |
| 42 |
} WebPInputFileFormat; |
| 43 |
|
| 44 |
|
| 45 |
const char* WebPGetEnabledInputFileFormats(void); |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
WebPInputFileFormat WebPGuessImageType(const uint8_t* const data, |
| 50 |
size_t data_size); |
| 51 |
|
| 52 |
|
| 53 |
typedef int (*WebPImageReader)(const uint8_t* const data, size_t data_size, |
| 54 |
struct WebPPicture* const pic, |
| 55 |
int keep_alpha, struct Metadata* const metadata); |
| 56 |
|
| 57 |
|
| 58 |
WebPImageReader WebPGetImageReader(WebPInputFileFormat format); |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
WebPImageReader WebPGuessImageReader(const uint8_t* const data, |
| 64 |
size_t data_size); |
| 65 |
|
| 66 |
#ifdef __cplusplus |
| 67 |
} |
| 68 |
#endif |
| 69 |
|
| 70 |
#endif |