Index: java/org/libjpegturbo/turbojpeg/TJLoader.java.in |
diff --git a/bmp.h b/java/org/libjpegturbo/turbojpeg/TJLoader.java.in |
similarity index 85% |
copy from bmp.h |
copy to java/org/libjpegturbo/turbojpeg/TJLoader.java.in |
index c50c260ee615426cf16e06d5a437a00add098940..83977806e48bb796b590191098283e9d5666c3e2 100644 |
--- a/bmp.h |
+++ b/java/org/libjpegturbo/turbojpeg/TJLoader.java.in |
@@ -26,17 +26,10 @@ |
* POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef __BMP_H__ |
-#define __BMP_H__ |
+package org.libjpegturbo.turbojpeg; |
-#include "./turbojpeg.h" |
- |
-int loadbmp(char *filename, unsigned char **buf, int *w, int *h, int pf, |
- int bottomup); |
- |
-int savebmp(char *filename, unsigned char *buf, int w, int h, int pf, |
- int bottomup); |
- |
-const char *bmpgeterr(void); |
- |
-#endif |
+final class TJLoader { |
+ static void load() { |
+ System.loadLibrary("@TURBOJPEG_DLL_NAME@"); |
+ } |
+} |