// //
// // ~~bicyclesonthemoon
+#define INPIX_MUSTARD 1
+#define OUTPIX_MUSTARD 2
+#define NPBPIX_MUSTARD 3
+#define OK 0
+
+#include <stdio.h>
#include <IL/il.h>
int main (int argc, const char *argv[])
{
+ ILuint inPix, outPix, npbPix;
+ ILubyte q=1;
+
if(argc<3)
{
- printf("arguments\n");
+ printf("npb inPix outPix [q]\n");
}
return 0;
+ if (argc>=4)
+ {
+ if (argv[3][0]=='q' || argv[3][0]=='Q')
+ q=0;
+ }
+
+ ilInit();
+ ilEnable(IL_ORIGIN_SET);
+ ilGenImages(1, &inPix);
+ ilBindImage(inPix);
+ if(ilLoadImage(argv[1]))
+ {
+ ilDeleteImages(1, &inPix);
+ if(q) printf("Input file mustard\n");
+ return INPIX_MUSTARD;
+ }
+ //ok
+ if(q) printf("OK\n");
+ ilDeleteImages(1, &inPix);
+ printf("TEST\n");
+ return OK;
}