Blame extras/webp_to_sdl.h

Packit 9c6abc
// Copyright 2017 Google Inc. All Rights Reserved.
Packit 9c6abc
//
Packit 9c6abc
// Use of this source code is governed by a BSD-style license
Packit 9c6abc
// that can be found in the COPYING file in the root of the source
Packit 9c6abc
// tree. An additional intellectual property rights grant can be found
Packit 9c6abc
// in the file PATENTS. All contributing project authors may
Packit 9c6abc
// be found in the AUTHORS file in the root of the source tree.
Packit 9c6abc
// -----------------------------------------------------------------------------
Packit 9c6abc
//
Packit 9c6abc
//  Simple WebP-to-SDL wrapper. Useful for emscripten.
Packit 9c6abc
//
Packit 9c6abc
// Author: James Zern (jzern@google.com)
Packit 9c6abc
Packit 9c6abc
#ifndef WEBP_EXTRAS_WEBP_TO_SDL_H_
Packit 9c6abc
#define WEBP_EXTRAS_WEBP_TO_SDL_H_
Packit 9c6abc
Packit 9c6abc
// Exports the method WebpToSDL(const char* data, int data_size) which decodes
Packit 9c6abc
// a WebP bitstream into an RGBA SDL surface.
Packit 9c6abc
// Return false on failure.
Packit 9c6abc
extern int WebpToSDL(const char* data, unsigned int data_size);
Packit 9c6abc
Packit 9c6abc
#endif  // WEBP_EXTRAS_WEBP_TO_SDL_H_