1 // BranchRegister.cpp 2 3 #include "StdAfx.h" 4 5 #include "../Common/RegisterCodec.h" 6 7 #include "BranchMisc.h" 8 9 #define CREATE_CODEC(x) \ 10 static void *CreateCodec ## x() { return (void *)(ICompressFilter *)(new C ## x ## _Decoder); } \ 11 static void *CreateCodec ## x ## Out() { return (void *)(ICompressFilter *)(new C ## x ## _Encoder); } 12 13 CREATE_CODEC(BC_PPC) 14 CREATE_CODEC(BC_IA64) 15 CREATE_CODEC(BC_ARM) 16 CREATE_CODEC(BC_ARMT) 17 CREATE_CODEC(BC_SPARC) 18 19 #define METHOD_ITEM(x, id1, id2, name) { CreateCodec ## x, CreateCodec ## x ## Out, 0x03030000 + (id1 * 256) + id2, name, 1, true } 20 21 static CCodecInfo g_CodecsInfo[] = 22 { 23 METHOD_ITEM(BC_PPC, 0x02, 0x05, L"PPC"), 24 METHOD_ITEM(BC_IA64, 0x04, 1, L"IA64"), 25 METHOD_ITEM(BC_ARM, 0x05, 1, L"ARM"), 26 METHOD_ITEM(BC_ARMT, 0x07, 1, L"ARMT"), 27 METHOD_ITEM(BC_SPARC, 0x08, 0x05, L"SPARC") 28 }; 29 30 REGISTER_CODECS(Branch) 31