mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
6524fcd614
Uses WebPToSDL() generic function defined in vwebp_sdl.[ch]. This function is not included in the libextras library, because it would bring in an SDL dependency. Probably too heavy for now. WebPToSDL() is separate, because it will be called used by the javascript version of libwebp (through emscripten build rules) Change-Id: Ic85b36f8ce4784f46023656278f6480be6802834
23 lines
890 B
C
23 lines
890 B
C
// Copyright 2017 Google Inc. All Rights Reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license
|
|
// that can be found in the COPYING file in the root of the source
|
|
// tree. An additional intellectual property rights grant can be found
|
|
// in the file PATENTS. All contributing project authors may
|
|
// be found in the AUTHORS file in the root of the source tree.
|
|
// -----------------------------------------------------------------------------
|
|
//
|
|
// Simple WebP-to-SDL wrapper. Useful for emscripten.
|
|
//
|
|
// Author: James Zern (jzern@google.com)
|
|
|
|
#ifndef WEBP_EXTRAS_WEBP_TO_SDL_H_
|
|
#define WEBP_EXTRAS_WEBP_TO_SDL_H_
|
|
|
|
// Exports the method WebpToSDL(const char* data, int data_size) which decodes
|
|
// a WebP bitstream into an RGBA SDL surface.
|
|
// Return false on failure.
|
|
extern int WebpToSDL(const char* data, unsigned int data_size);
|
|
|
|
#endif // WEBP_EXTRAS_WEBP_TO_SDL_H_
|