github.com/cellofellow/gopkg@v0.0.0-20140722061823-eec0544a62ad/image/webp/libwebp/examples/tiffdec.h (about)

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