summaryrefslogtreecommitdiffstats
path: root/CPP/7zip/Compress/Bcj2Register.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Compress/Bcj2Register.cpp')
-rwxr-xr-xCPP/7zip/Compress/Bcj2Register.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/CPP/7zip/Compress/Bcj2Register.cpp b/CPP/7zip/Compress/Bcj2Register.cpp
new file mode 100755
index 0000000..b063f3f
--- /dev/null
+++ b/CPP/7zip/Compress/Bcj2Register.cpp
@@ -0,0 +1,19 @@
+// Bcj2Register.cpp
+
+#include "StdAfx.h"
+
+#include "../Common/RegisterCodec.h"
+
+#include "Bcj2Coder.h"
+
+static void *CreateCodec() { return (void *)(ICompressCoder2 *)(new NCompress::NBcj2::CDecoder()); }
+#ifndef EXTRACT_ONLY
+static void *CreateCodecOut() { return (void *)(ICompressCoder2 *)(new NCompress::NBcj2::CEncoder()); }
+#else
+#define CreateCodecOut 0
+#endif
+
+static CCodecInfo g_CodecInfo =
+ { CreateCodec, CreateCodecOut, 0x0303011B, L"BCJ2", 4, false };
+
+REGISTER_CODEC(BCJ2)