#include <stdlib.h> //exit
#include <unistd.h> //chdir
#include <dirent.h> //opendir
-
+/* Libs */
+#include <png.h>
+/* Internal */
#include "parser.tab.h"
/* Public */
int scanner_init(void);
void scanner_quit(void);
int scanner(void);
+int scanner_scanpixels(int*,int);
/* Private */
#ifndef DL_STACKSIZE
#define DL_STACKSIZE 64
}
+/* Scan Pixels
+ Scans up to 'len' pixels from the current file into 'buf'.
+ Returns the number of pixels scanned from the file, or -1 on error.
+*/
+int scanner_scanpixels
+( int* buf,
+ int x
+)
+{ int pixels = 0;
+ //Open the current file if not yet open
+ //Identify file type
+ //Verify file contents and header
+ //Read pixels into buffer
+ return pixels;
+}