Hi , thanks for the ep100lib.h file matsp . I ended up putting it at the top of Image.c , as we are only meant to submit 2 files , the Image_lib.c and Image.c ...
Now it looks like this :
Code:
#include <stdio.h>
#include <string.h>
#include "Image_lib.h"
#ifndef IMAGE_LIB_INCLUDED
#define IMAGE_LIB_INCLUDED
#define EP100_LIB_MAX_X 1024
#define EP100_LIB_MAX_Y 1024
int (*Image_invert(int image_data[EP100_LIB_MAX_X][EP100_LIB_MAX_Y]))[];
void Image_horizontal_scroll(int image_data[EP100_LIB_MAX_X][EP100_LIB_MAX_Y], int scroll, int height, int
width);
void Image_vertical_scroll(int image_data[EP100_LIB_MAX_X][EP100_LIB_MAX_Y], int scroll, int height, int
width);
#endif
int (*Image_invert(int image_data[EP100_LIB_MAX_X][EP100_LIB_MAX_Y]))[];
void Image_horizontal_scroll(int image_data[EP100_LIB_MAX_X][EP100_LIB_MAX_Y], int scroll, int height, int
width);
void Image_vertical_scroll(int image_data[EP100_LIB_MAX_X][EP100_LIB_MAX_Y], int scroll, int height, int
width);
int main(int argc, char **argv) ...
I have gotten the image invert to work , now I have 11 hours or so to get the scrolling done .