28.11.2012 Views

Procesamiento digital de video en tiempo real y - Maestría en ...

Procesamiento digital de video en tiempo real y - Maestría en ...

Procesamiento digital de video en tiempo real y - Maestría en ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Procesami<strong>en</strong>to</strong> <strong>digital</strong> <strong>de</strong> vi<strong>de</strong>o <strong>en</strong> <strong>tiempo</strong> <strong>real</strong> y “vi<strong>de</strong>o wall” con la PC 97<br />

};<br />

},<br />

{ L"Output", // Nombre <strong>de</strong>l Pin<br />

FALSE, // Sera r<strong>en</strong><strong>de</strong>red<br />

TRUE, // Este es un output<br />

FALSE, // No permitimos ninguno<br />

FALSE, // Y soportamos muchos<br />

&CLSID_NULL, // Conexiones al filtro<br />

NULL, // Conexion al pin<br />

1, // Numero <strong>de</strong> tipos<br />

&sudPinTypes // Informacion <strong>de</strong>l pin<br />

}<br />

const AMOVIESETUP_FILTER sudEZrgb24 =<br />

{<br />

&CLSID_EZrgb24, // CLSID <strong>de</strong>l filtro<br />

L"Image Effects", // nombre<br />

MERIT_DO_NOT_USE, // Merito <strong>de</strong>l filtro<br />

2, // Numero <strong>de</strong> pins<br />

sudpPins // Informacion <strong>de</strong>l Pin<br />

};<br />

// Lista <strong>de</strong> clases Ids y funciones para la clase factory. Esta provee el <strong>en</strong>lace<br />

// <strong>en</strong>tre el punto <strong>de</strong> <strong>en</strong>trada OLE <strong>en</strong> la DLL y un objeto que será creado.<br />

// La clase factory llamará a CreateInstance<br />

CFactoryTemplate g_Templates[] = {<br />

{ L"Image Effects"<br />

, &CLSID_EZrgb24<br />

, CEZrgb24::CreateInstance<br />

, NULL<br />

, &sudEZrgb24 }<br />

,<br />

{ L"Special Effects"<br />

, &CLSID_EZrgb24PropertyPage<br />

, CEZrgb24Properties::CreateInstance }<br />

};<br />

int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);<br />

//<br />

// DllRegisterServer<br />

//<br />

// Maneja el registro y <strong>de</strong>sregistro <strong>de</strong> la muestra<br />

//<br />

STDAPI DllRegisterServer()<br />

{<br />

return AMovieDllRegisterServer2( TRUE );<br />

} // DllRegisterServer<br />

//<br />

// DllUnregisterServer<br />

//<br />

STDAPI DllUnregisterServer()<br />

{<br />

return AMovieDllRegisterServer2( FALSE );<br />

} // DllUnregisterServer<br />

//<br />

// Constructor<br />

//<br />

CEZrgb24::CEZrgb24(TCHAR *tszName,<br />

LPUNKNOWN punk,<br />

HRESULT *phr) :<br />

CTransformFilter(tszName, punk, CLSID_EZrgb24),<br />

m_effect(IDC_NONE),<br />

m_lBufferRequest(1),

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!