URL
https://opencores.org/ocsvn/mb-jpeg/mb-jpeg/trunk
Subversion Repositories mb-jpeg
[/] [mb-jpeg/] [tags/] [Step2_2/] [bmp2jpg_mb/] [mb.h] - Rev 37
Go to most recent revision | Compare with Previous | Blame | View Log
#ifndef _XUP2PRO_H #define _XUP2PRO_H // Microblaze related declaration #include <xparameters.h> #include <sysace_stdio.h> #include "xio.h" #define __XUPV2P // XUP2P board related declaration #ifdef __XUPV2P #define JPG_ADDRESS 0x70000000 #define JPG_MAXSIZE 0x10000 #define BMP_ADDRESS 0x70010000 #define BMP_MAXSIZE 0x10000 #else #define JPG_MAXSIZE 0x400000 #define BMP_MAXSIZE 0x1c00000 #endif // JPEG decoder related declaration extern unsigned char* jpgimage; extern char* bmpimage; extern unsigned long jpgsize; extern int bmpsize; // function declaration #define eOPENINPUT_FILE 1 #define eOPENOUTPUT_FILE 2 #define eINVALID_BMP 3 #define eLARGE_INPUTFILE 4 #ifndef htonl #define htonl(x) ((((x)&0xff000000)>>24) | (((x)&0x00ff0000)>>8) | (((x)&0x0000ff00)<<8) | (((x)&0x000000ff)<<24)) #endif #ifndef hton #define hton(x) ((((x) & 0xff00)>>8) | (((x) &0x00ff)<<8)) #endif #endif
Go to most recent revision | Compare with Previous | Blame | View Log