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