~suaweb/nginx/nginx-recipe

« back to all changes in this revision

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

  • Committer: Frans Elliott
  • Date: 2015-06-12 21:15:13 UTC
  • Revision ID: mastergeek.elliott@gmail.com-20150612211513-un4vguj32deibvb0
Added the actual pagespeed library to the ngx_pagespeed module dir.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2014 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
// WebP decode.
 
11
 
 
12
#ifndef WEBP_EXAMPLES_WEBPDEC_H_
 
13
#define WEBP_EXAMPLES_WEBPDEC_H_
 
14
 
 
15
#ifdef __cplusplus
 
16
extern "C" {
 
17
#endif
 
18
 
 
19
struct Metadata;
 
20
struct WebPPicture;
 
21
 
 
22
// Reads a WebP from 'in_file', returning the decoded output in 'pic'.
 
23
// If 'keep_alpha' is true and the WebP has an alpha channel, the output is
 
24
// RGBA otherwise it will be RGB.
 
25
// Returns true on success.
 
26
int ReadWebP(const char* const in_file, struct WebPPicture* const pic,
 
27
             int keep_alpha, struct Metadata* const metadata);
 
28
 
 
29
#ifdef __cplusplus
 
30
}    // extern "C"
 
31
#endif
 
32
 
 
33
#endif  // WEBP_EXAMPLES_WEBPDEC_H_