DLLSetup.cpp

Go to the documentation of this file.
00001 
00034 #include "stdafx.h"
00035 
00036 #include "YUV420toRGBFilter.h"
00037 
00039 //###############################  Standard Filter DLL Code ###############################
00040 static const WCHAR g_wszName[] = L"Meraka RTVC YUV420P 2 RGB Converter";   
00041 
00042 // The next bunch of structures define information for the class factory.
00043 AMOVIESETUP_FILTER FilterInfo =
00044 {
00045         &CLSID_YUV420toRGBColorConverter,       // CLSID
00046         g_wszName,                                                      // Name
00047         MERIT_DO_NOT_USE,                                       // Merit
00048         0,                                                                      // Number of AMOVIESETUP_PIN structs
00049         NULL                                                            // Pin registration information.
00050 };
00051 
00052 
00053 CFactoryTemplate g_Templates[1] = 
00054 {
00055         { 
00056                 g_wszName,                                                      // Name
00057                 &CLSID_YUV420toRGBColorConverter,       // CLSID
00058                 YUV420toRGBFilter::CreateInstance,      // Method to create an instance of MyComponent
00059                 NULL,                                                           // Initialization function
00060                 &FilterInfo                                                     // Set-up information (for filters)
00061         }
00062 };
00063 int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);   
00064 
00066 // Functions needed by the DLL, for registration.
00067 
00068 STDAPI DllRegisterServer(void)
00069 {
00070         return AMovieDllRegisterServer2(TRUE);
00071 }
00072 
00073 STDAPI DllUnregisterServer()
00074 {
00075         return AMovieDllRegisterServer2(FALSE);
00076 }
00077 
00078 //DLL Entry point
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 }

Generated on Fri Mar 13 14:12:38 2009 for RTVC by  doxygen 1.5.3