1*b2055c35SXin Li // Copyright 2012 Google Inc. All Rights Reserved. 2*b2055c35SXin Li // 3*b2055c35SXin Li // Use of this source code is governed by a BSD-style license 4*b2055c35SXin Li // that can be found in the COPYING file in the root of the source 5*b2055c35SXin Li // tree. An additional intellectual property rights grant can be found 6*b2055c35SXin Li // in the file PATENTS. All contributing project authors may 7*b2055c35SXin Li // be found in the AUTHORS file in the root of the source tree. 8*b2055c35SXin Li // ----------------------------------------------------------------------------- 9*b2055c35SXin Li // 10*b2055c35SXin Li // TIFF decode. 11*b2055c35SXin Li 12*b2055c35SXin Li #ifndef WEBP_IMAGEIO_TIFFDEC_H_ 13*b2055c35SXin Li #define WEBP_IMAGEIO_TIFFDEC_H_ 14*b2055c35SXin Li 15*b2055c35SXin Li #include "webp/types.h" 16*b2055c35SXin Li 17*b2055c35SXin Li #ifdef __cplusplus 18*b2055c35SXin Li extern "C" { 19*b2055c35SXin Li #endif 20*b2055c35SXin Li 21*b2055c35SXin Li struct Metadata; 22*b2055c35SXin Li struct WebPPicture; 23*b2055c35SXin Li 24*b2055c35SXin Li // Reads a TIFF from 'data', returning the decoded output in 'pic'. 25*b2055c35SXin Li // Output is RGBA or YUVA, depending on pic->use_argb value. 26*b2055c35SXin Li // If 'keep_alpha' is true and the TIFF has an alpha channel, the output is RGBA 27*b2055c35SXin Li // or YUVA. Otherwise, alpha channel is dropped and output is RGB or YUV. 28*b2055c35SXin Li // Returns true on success. 29*b2055c35SXin Li int ReadTIFF(const uint8_t* const data, size_t data_size, 30*b2055c35SXin Li struct WebPPicture* const pic, int keep_alpha, 31*b2055c35SXin Li struct Metadata* const metadata); 32*b2055c35SXin Li 33*b2055c35SXin Li #ifdef __cplusplus 34*b2055c35SXin Li } // extern "C" 35*b2055c35SXin Li #endif 36*b2055c35SXin Li 37*b2055c35SXin Li #endif // WEBP_IMAGEIO_TIFFDEC_H_ 38