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