cwebp/jpegdec: add JPEG metadata extraction

the values of EXIF/XMP/ICC are unused and Extended XMP for payloads >
64k is unsupported.

Change-Id: If721aa2009335ce090148b7ecd7ea8459f9b942d
This commit is contained in:
James Zern
2012-12-16 19:13:56 -08:00
parent df7aa07605
commit 2c724968d2
3 changed files with 191 additions and 4 deletions

View File

@ -17,12 +17,14 @@
extern "C" {
#endif
struct Metadata;
struct WebPPicture;
// Reads a JPEG from 'in_file', returning the decoded output in 'pic'.
// The output is RGB.
// Returns true on success.
int ReadJPEG(FILE* in_file, struct WebPPicture* const pic);
int ReadJPEG(FILE* in_file, struct WebPPicture* const pic,
struct Metadata* const metadata);
#if defined(__cplusplus) || defined(c_plusplus)
} // extern "C"