Home | History | Annotate | Download | only in Compress
      1 // PpmdRegister.cpp
      2 // 2009-05-30 : Igor Pavlov : Public domain
      3 
      4 #include "StdAfx.h"
      5 
      6 #include "../Common/RegisterCodec.h"
      7 
      8 #include "PpmdDecoder.h"
      9 
     10 static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::NPpmd::CDecoder); }
     11 #ifndef EXTRACT_ONLY
     12 #include "PpmdEncoder.h"
     13 static void *CreateCodecOut() { return (void *)(ICompressCoder *)(new NCompress::NPpmd::CEncoder);  }
     14 #else
     15 #define CreateCodecOut 0
     16 #endif
     17 
     18 static CCodecInfo g_CodecInfo =
     19   { CreateCodec, CreateCodecOut, 0x030401, L"PPMD", 1, false };
     20 
     21 REGISTER_CODEC(PPMD)
     22