wicdec.h 1.1 KB

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