| 1 |
// Copyright 2017 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 |
// Simple WebP-to-SDL wrapper. Useful for emscripten. |
| 11 |
// |
| 12 |
// Author: James Zern ([email protected]) |
| 13 |
|
| 14 |
#ifndef WEBP_EXTRAS_WEBP_TO_SDL_H_ |
| 15 |
#define WEBP_EXTRAS_WEBP_TO_SDL_H_ |
| 16 |
|
| 17 |
// Exports the method WebPToSDL(const char* data, int data_size) which decodes |
| 18 |
// a WebP bitstream into an RGBA SDL surface. |
| 19 |
// Return false on failure. |
| 20 |
extern int WebPToSDL(const char* data, unsigned int data_size); |
| 21 |
|
| 22 |
#endif // WEBP_EXTRAS_WEBP_TO_SDL_H_ |