move the decoder sourcetree to a sub-location src/dec

to make room for future libs sources

also extract the types declaration into its own types.h file

Change-Id: I8bae8a323a479a29375cf509792228ae6af51c7a
This commit is contained in:
Pascal Massimino
2011-01-06 07:25:43 -08:00
parent a9b3eab6fd
commit 6421a7a4fb
22 changed files with 17747 additions and 23160 deletions

View File

@ -12,19 +12,7 @@
#ifndef WEBP_DECODE_WEBP_DECODE_H_
#define WEBP_DECODE_WEBP_DECODE_H_
#ifndef _MSC_VER
#include <inttypes.h>
#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;
#define inline __forceinline
#endif
#include "webp/types.h"
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {

28
src/webp/types.h Normal file
View File

@ -0,0 +1,28 @@
// Copyright 2010 Google Inc.
//
// This code is licensed under the same terms as WebM:
// Software License Agreement: http://www.webmproject.org/license/software/
// Additional IP Rights Grant: http://www.webmproject.org/license/additional/
// -----------------------------------------------------------------------------
//
// Common types
//
// Author: Skal (pascal.massimino@gmail.com)
#ifndef WEBP_DECODE_WEBP_TYPES_H_
#define WEBP_DECODE_WEBP_TYPES_H_
#ifndef _MSC_VER
#include <inttypes.h>
#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;
#define inline __forceinline
#endif /* _MSC_VER */
#endif /* WEBP_DECODE_WEBP_TYPES_H_ */