+#include <stdio.h>
#include <magick/MagickCore.h>
-
#include "kds_s2000w_image_converter.h"
+
+void kds_s2000w_convert_init()
+{
+ IsMagickCoreInstantiated();
+}
+
+void kds_s2000w_convert_terminate()
+{
+ MagickCoreTerminus();
+}
+
+void kds_s2000w_convert_jpg_to_pnm(const char* filename)
+{
+ printf("open image file: %s\n", filename);
+}
\ No newline at end of file
#ifndef KDS_S2000W_IMAGE_CONVERTER_H
+void kds_s2000w_convert_init();
+void kds_s2000w_convert_terminate();
+
void kds_s2000w_convert_jpg_to_pnm();
#endif
\ No newline at end of file
int main(int argc, char* argv[])
{
- printf("Hello Converter\n");
-
+ kds_s2000w_convert_init();
+ kds_s2000w_convert_jpg_to_pnm("test.jpg");
+ kds_s2000w_convert_terminate();
return 0;
}
\ No newline at end of file