projects
/
henge
/
webcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b8ef214
)
scanner_scanpixels prototype
author
ken
<ken@mihrtec.com>
Thu, 27 Oct 2016 02:37:02 +0000
(19:37 -0700)
committer
ken
<ken@mihrtec.com>
Thu, 27 Oct 2016 02:37:02 +0000
(19:37 -0700)
src/apc/scanner.c
patch
|
blob
|
history
diff --git
a/src/apc/scanner.c
b/src/apc/scanner.c
index
a60de18
..
a999c7b
100644
(file)
--- a/
src/apc/scanner.c
+++ b/
src/apc/scanner.c
@@
-19,12
+19,15
@@
#include <stdlib.h> //exit
#include <unistd.h> //chdir
#include <dirent.h> //opendir
#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);
#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
/* Private */
#ifndef DL_STACKSIZE
#define DL_STACKSIZE 64
@@
-211,3
+214,18
@@
int dredge_current_depth
}
}
+/* 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;
+}