1 // Copyright 2012 Google Inc. All Rights Reserved.
3 // This code is licensed under the same terms as WebM:
4 // Software License Agreement: http://www.webmproject.org/license/software/
5 // Additional IP Rights Grant: http://www.webmproject.org/license/additional/
6 // -----------------------------------------------------------------------------
10 #ifndef WEBP_EXAMPLES_JPEGDEC_H_
11 #define WEBP_EXAMPLES_JPEGDEC_H_
14 #include "webp/types.h"
16 #if defined(__cplusplus) || defined(c_plusplus)
23 // Reads a JPEG from 'in_file', returning the decoded output in 'pic'.
25 // Returns true on success.
26 int ReadJPEG(FILE* in_file, struct WebPPicture* const pic,
27 struct Metadata* const metadata);
29 #if defined(__cplusplus) || defined(c_plusplus)
33 #endif // WEBP_EXAMPLES_JPEGDEC_H_