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 128<br />

0,0<br />

}<br />

wc.hIcon = LoadIcon(hInstC, MAKEINTRESOURCE(IDI_INWINDOW));<br />

if(!RegisterClass(&wc))<br />

{<br />

Msg(TEXT("Falló RegisterClass! Error=0x%x\r\n"), GetLastError());<br />

CoUninitialize();<br />

exit(1);<br />

}<br />

// Crea la v<strong>en</strong>tana principal. El estilo WS_CLIPCHILDREN es requerido, se ubica <strong>en</strong><br />

ghApp = CreateWindow(CLASSNAME, APPLICATIONNAME,<br />

WS_OVERLAPPEDWINDOW | WS_CAPTION | WS_CLIPCHILDREN,<br />

0, 0,<br />

CW_USEDEFAULT, CW_USEDEFAULT,<br />

0, 0, ghInst, 0);<br />

if(ghApp)<br />

{<br />

ShowWindow(ghApp, nCmdShow);<br />

UpdateWindow(ghApp);<br />

// Lazo <strong>de</strong> m<strong>en</strong>sajes principal<br />

while(GetMessage(&msg,NULL,0,0))<br />

{<br />

TranslateMessage(&msg);<br />

DispatchMessage(&msg);<br />

}<br />

}<br />

else<br />

{<br />

Msg(TEXT("Falló para crear la v<strong>en</strong>tana principal! Error=0x%x\r\n"), GetLastError());<br />

}<br />

//Terminamos con el mo<strong>de</strong>lo <strong>de</strong> objetos compon<strong>en</strong>tes COM<br />

CoUninitialize();<br />

return msg.wParam;<br />

//------------------------------------------------------------------------------<br />

// Archivo: PlayWnd.h<br />

//<br />

// Descripción: Archivo hea<strong>de</strong>r para el archivo reproductor <strong>de</strong> multimedia<br />

//<br />

//<br />

//------------------------------------------------------------------------------<br />

//<br />

// Prototipos <strong>de</strong> función<br />

//<br />

HRESULT InitPlayerWindow(void);<br />

HRESULT InitVi<strong>de</strong>oWindow(int nMultiplier, int nDivi<strong>de</strong>r);<br />

HRESULT HandleGraphEv<strong>en</strong>t(void);<br />

BOOL GetClipFileName(LPTSTR szName);<br />

void PaintAudioWindow(void);<br />

void MoveVi<strong>de</strong>oWindow(void);<br />

void CheckVisibility(void);<br />

void CloseInterfaces(void);<br />

void CloseInterfacesTV(void);<br />

void Tele(void);<br />

void Op<strong>en</strong>Clip(void);<br />

void PauseClip(void);<br />

void StopClip(void);<br />

void CloseClip(void);

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

Saved successfully!

Ooh no, something went wrong!