New comit of SDL2
[supertux.git] / src / SDL2 / external / libwebp-0.3.0 / examples / jpegdec.h
1 // Copyright 2012 Google Inc. All Rights Reserved.
2 //
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 // -----------------------------------------------------------------------------
7 //
8 // JPEG decode.
9
10 #ifndef WEBP_EXAMPLES_JPEGDEC_H_
11 #define WEBP_EXAMPLES_JPEGDEC_H_
12
13 #include <stdio.h>
14 #include "webp/types.h"
15
16 #if defined(__cplusplus) || defined(c_plusplus)
17 extern "C" {
18 #endif
19
20 struct Metadata;
21 struct WebPPicture;
22
23 // Reads a JPEG from 'in_file', returning the decoded output in 'pic'.
24 // The output is RGB.
25 // Returns true on success.
26 int ReadJPEG(FILE* in_file, struct WebPPicture* const pic,
27              struct Metadata* const metadata);
28
29 #if defined(__cplusplus) || defined(c_plusplus)
30 }    // extern "C"
31 #endif
32
33 #endif  // WEBP_EXAMPLES_JPEGDEC_H_