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