00001
00034 #include "stdafx.h"
00035 #include "ScaleFilter.h"
00036 #include "ScaleProperties.h"
00038
00039 static const WCHAR g_wszName[] = L"Meraka RTVC Scale Filter";
00040
00041
00042 AMOVIESETUP_FILTER FilterInfo =
00043 {
00044 &CLSID_ScaleFilter,
00045 g_wszName,
00046 MERIT_DO_NOT_USE,
00047 0,
00048 NULL
00049 };
00050
00051 CFactoryTemplate g_Templates[] =
00052 {
00053 {
00054 g_wszName,
00055 &CLSID_ScaleFilter,
00056 CScaleFilter::CreateInstance,
00057 NULL,
00058 &FilterInfo
00059 },
00060
00061 {
00062 L"Scale Properties",
00063 &CLSID_ScaleProperties,
00064 ScaleProperties::CreateInstance,
00065 NULL, NULL
00066 }
00067 };
00068
00069 int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);
00070
00072
00073
00074 STDAPI DllRegisterServer(void)
00075 {
00076 return AMovieDllRegisterServer2(TRUE);
00077 }
00078
00079 STDAPI DllUnregisterServer()
00080 {
00081 return AMovieDllRegisterServer2(FALSE);
00082 }
00083
00084
00085 extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
00086 BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved)
00087 {
00088 return DllEntryPoint((HINSTANCE)(hModule), dwReason, lpReserved);
00089 }