OpenCores
URL https://opencores.org/ocsvn/mpdma/mpdma/trunk

Subversion Repositories mpdma

[/] [mpdma/] [trunk/] [mb-bmp2jpg/] [dct.c] - Diff between revs 7 and 13

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 7 Rev 13
Line 1... Line 1...
 
 
 
#include "xparameters.h"
 
#include "xutil.h"
 
#include "mb_interface.h"
 
#include "fifo_link.h"
 
 
 
#include "ejpgl.h"
 
 
 
int dct_init_start() {
 
 
 
        return 0;
 
 
 
}
 
 
 
signed short dctresult[MATRIX_SIZE][MATRIX_SIZE];
 
 
 
#define XPAR_FSL_FIFO_LINK_0_INPUT_SLOT_ID 0
 
#define  XPAR_FSL_FIFO_LINK_0_OUTPUT_SLOT_ID 0
 
 
 
void dct(signed char pixels[8][8], int color)
 
{
 
        int i;
 
        long result;
 
 
 
        write_into_fsl(color, XPAR_FSL_FIFO_LINK_0_OUTPUT_SLOT_ID);
 
 
 
       for (i=0; i<64; i++) {
 
        write_into_fsl(((char*)pixels)[i], XPAR_FSL_FIFO_LINK_0_OUTPUT_SLOT_ID);
 
        }
 
 
 
        for (i=0; i<64; i++){
 
        read_from_fsl(result, XPAR_FSL_FIFO_LINK_0_INPUT_SLOT_ID);
 
                ((short*)dctresult)[i] = result;
 
                }
 
 
 
        zzq_encode(dctresult, color);
 
 
 
}
 
 
 
#if 0
#include <stdio.h>
#include <stdio.h>
#include "dct.h"
#include "dct.h"
#include "weights.h"
#include "weights.h"
 
 
#include "ejpgl.h"
#include "ejpgl.h"
Line 139... Line 178...
  }
  }
printf("\n");
printf("\n");
 
 
}
}
*/
*/
 
#endif
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.