LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Wed Jul 19 13:52:28 CEST 2006
    Subject: [cvs-checkins] MODIFIED: mb-jpeg ...
    Top
    Date: 00/06/07 19:13:52

    Added: mb-jpeg/encoder xup2pro.h
    Log:
    Microblaze and XUP2PRO board definition


    Revision Changes Path
    1.1 mb-jpeg/encoder/xup2pro.h

    http://www.opencores.org/cvsweb.shtml/mb-jpeg/encoder/xup2pro.h?rev=1.1&content-type=text/x-cvsweb-markup

    Index: xup2pro.h
    ===================================================================
    #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





     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.