2012-01-06 23:49:06 +01:00
|
|
|
// Copyright 2010 Google Inc. All Rights Reserved.
|
2011-01-06 16:25:43 +01:00
|
|
|
//
|
2013-06-07 08:05:58 +02:00
|
|
|
// 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.
|
2011-01-06 16:25:43 +01:00
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// Common types
|
|
|
|
//
|
|
|
|
// Author: Skal (pascal.massimino@gmail.com)
|
|
|
|
|
2011-02-01 07:00:33 +01:00
|
|
|
#ifndef WEBP_WEBP_TYPES_H_
|
|
|
|
#define WEBP_WEBP_TYPES_H_
|
2011-01-06 16:25:43 +01:00
|
|
|
|
2012-04-13 02:05:34 +02:00
|
|
|
#include <stddef.h> // for size_t
|
|
|
|
|
2011-01-06 16:25:43 +01:00
|
|
|
#ifndef _MSC_VER
|
|
|
|
#include <inttypes.h>
|
2011-11-05 03:44:57 +01:00
|
|
|
#ifdef __STRICT_ANSI__
|
|
|
|
#define WEBP_INLINE
|
|
|
|
#else /* __STRICT_ANSI__ */
|
|
|
|
#define WEBP_INLINE inline
|
|
|
|
#endif
|
2011-01-06 16:25:43 +01:00
|
|
|
#else
|
|
|
|
typedef signed char int8_t;
|
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
typedef signed short int16_t;
|
|
|
|
typedef unsigned short uint16_t;
|
|
|
|
typedef signed int int32_t;
|
|
|
|
typedef unsigned int uint32_t;
|
|
|
|
typedef unsigned long long int uint64_t;
|
2011-02-16 23:33:16 +01:00
|
|
|
typedef long long int int64_t;
|
2011-11-05 03:44:57 +01:00
|
|
|
#define WEBP_INLINE __forceinline
|
2011-01-06 16:25:43 +01:00
|
|
|
#endif /* _MSC_VER */
|
|
|
|
|
2011-07-13 04:43:15 +02:00
|
|
|
#ifndef WEBP_EXTERN
|
|
|
|
// This explicitly marks library functions and allows for changing the
|
|
|
|
// signature for e.g., Windows DLL builds.
|
|
|
|
#define WEBP_EXTERN(type) extern type
|
|
|
|
#endif /* WEBP_EXTERN */
|
|
|
|
|
2012-07-18 20:53:25 +02:00
|
|
|
// Macro to check ABI compatibility (same major revision number)
|
|
|
|
#define WEBP_ABI_IS_INCOMPATIBLE(a, b) (((a) >> 8) != ((b) >> 8))
|
|
|
|
|
2011-02-01 07:00:33 +01:00
|
|
|
#endif /* WEBP_WEBP_TYPES_H_ */
|