00001
00034 #include "stdafx.h"
00035
00036 #include "CropFilter.h"
00037 #include "CropProperties.h"
00038
00039 #ifdef _MANAGED
00040 #pragma managed(push, off)
00041 #endif
00042
00044
00045 static const WCHAR g_wszName[] = L"Meraka RTVC Crop Filter";
00046
00047
00048 AMOVIESETUP_FILTER FilterInfo =
00049 {
00050 &CLSID_CropFilter,
00051 g_wszName,
00052 MERIT_DO_NOT_USE,
00053 0,
00054 NULL
00055 };
00056
00057
00058 CFactoryTemplate g_Templates[] =
00059 {
00060 {
00061 g_wszName,
00062 &CLSID_CropFilter,
00063 CCropFilter::CreateInstance,
00064 NULL,
00065 &FilterInfo
00066 },
00067
00068 {
00069 L"Crop Properties",
00070 &CLSID_CropProperties,
00071 CropProperties::CreateInstance,
00072 NULL, NULL
00073 }
00074 };
00075 int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);
00076
00078
00079
00080 STDAPI DllRegisterServer(void)
00081 {
00082 return AMovieDllRegisterServer2(TRUE);
00083 }
00084
00085 STDAPI DllUnregisterServer()
00086 {
00087 return AMovieDllRegisterServer2(FALSE);
00088 }
00089
00091
00092 extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
00093 BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved)
00094 {
00095 return DllEntryPoint((HINSTANCE)(hModule), dwReason, lpReserved);
00096 }
00097
00098 #ifdef _MANAGED
00099 #pragma managed(pop)
00100 #endif