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

@ -332,7 +332,7 @@ static int ReadPicture(const char* const filename, WebPPicture* const pic,
if (format == PNG_) {
ok = ReadPNG(in_file, pic, keep_alpha);
} else if (format == JPEG_) {
ok = ReadJPEG(in_file, pic);
ok = ReadJPEG(in_file, pic, metadata);
} else if (format == TIFF_) {
ok = ReadTIFF(filename, pic, keep_alpha);
}