~alinuxninja/nginx-edge/trunk

« back to all changes in this revision

Viewing changes to debian/modules/ngx_pagespeed/psol/include/third_party/libwebp/examples/jpegdec.h

  • Committer: Vivian
  • Date: 2015-12-04 18:20:11 UTC
  • Revision ID: git-v1:a36f2bc32e884f7473b3a47040e5411306144d7d
* Do not extract psol.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright 2012 Google Inc. All Rights Reserved.
2
 
//
3
 
// Use of this source code is governed by a BSD-style license
4
 
// that can be found in the COPYING file in the root of the source
5
 
// tree. An additional intellectual property rights grant can be found
6
 
// in the file PATENTS. All contributing project authors may
7
 
// be found in the AUTHORS file in the root of the source tree.
8
 
// -----------------------------------------------------------------------------
9
 
//
10
 
// JPEG decode.
11
 
 
12
 
#ifndef WEBP_EXAMPLES_JPEGDEC_H_
13
 
#define WEBP_EXAMPLES_JPEGDEC_H_
14
 
 
15
 
#include <stdio.h>
16
 
#include "webp/types.h"
17
 
 
18
 
#ifdef __cplusplus
19
 
extern "C" {
20
 
#endif
21
 
 
22
 
struct Metadata;
23
 
struct WebPPicture;
24
 
 
25
 
// Reads a JPEG from 'in_file', returning the decoded output in 'pic'.
26
 
// The output is RGB.
27
 
// Returns true on success.
28
 
int ReadJPEG(FILE* in_file, struct WebPPicture* const pic,
29
 
             struct Metadata* const metadata);
30
 
 
31
 
#ifdef __cplusplus
32
 
}    // extern "C"
33
 
#endif
34
 
 
35
 
#endif  // WEBP_EXAMPLES_JPEGDEC_H_