working together with FATFileSystem

Fork of TinyJpgDec by Helmut Schmücker

Committer:
the_sz
Date:
Sat Nov 14 02:43:21 2015 +0000
Revision:
1:79e97662234d
Parent:
0:b6f284347a66
INT -> JPEG_INT

Who changed what in which revision?

UserRevisionLine numberNew contents of line
humlet 0:b6f284347a66 1 /*-------------------------------------------*/
humlet 0:b6f284347a66 2 /* Integer type definitions for FatFs module */
humlet 0:b6f284347a66 3 /*-------------------------------------------*/
humlet 0:b6f284347a66 4
humlet 0:b6f284347a66 5 #ifndef _INTEGER
humlet 0:b6f284347a66 6 #define _INTEGER
humlet 0:b6f284347a66 7
humlet 0:b6f284347a66 8 #ifdef _WIN32 /* FatFs development platform */
humlet 0:b6f284347a66 9
humlet 0:b6f284347a66 10 #include <windows.h>
humlet 0:b6f284347a66 11 #include <tchar.h>
humlet 0:b6f284347a66 12
humlet 0:b6f284347a66 13 #else /* Embedded platform */
humlet 0:b6f284347a66 14
humlet 0:b6f284347a66 15 /* These types must be 16-bit, 32-bit or larger integer */
humlet 0:b6f284347a66 16 // No! They have to be 16bit types, otherwise the Huffman decoding
humlet 0:b6f284347a66 17 // in function huffext fails on an 32-bit LPC4088 (mbed cloud compiler)
the_sz 1:79e97662234d 18 typedef short JPG_INT;
the_sz 1:79e97662234d 19 typedef unsigned short JPG_UINT;
humlet 0:b6f284347a66 20
humlet 0:b6f284347a66 21 /* These types must be 8-bit integer */
humlet 0:b6f284347a66 22 typedef char CHAR;
humlet 0:b6f284347a66 23 typedef unsigned char UCHAR;
humlet 0:b6f284347a66 24 typedef unsigned char BYTE;
humlet 0:b6f284347a66 25
humlet 0:b6f284347a66 26 /* These types must be 16-bit integer */
humlet 0:b6f284347a66 27 typedef short SHORT;
humlet 0:b6f284347a66 28 typedef unsigned short USHORT;
humlet 0:b6f284347a66 29 typedef unsigned short WORD;
humlet 0:b6f284347a66 30 typedef unsigned short WCHAR;
humlet 0:b6f284347a66 31
humlet 0:b6f284347a66 32 /* These types must be 32-bit integer */
humlet 0:b6f284347a66 33 typedef long LONG;
humlet 0:b6f284347a66 34 typedef unsigned long ULONG;
humlet 0:b6f284347a66 35 typedef unsigned long DWORD;
humlet 0:b6f284347a66 36
humlet 0:b6f284347a66 37 #endif
humlet 0:b6f284347a66 38
humlet 0:b6f284347a66 39 #endif