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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

}<br />

case ID_FILE_FULLSCREEN:<br />

ToggleFullScre<strong>en</strong>();<br />

break;<br />

case ID_FILE_SIZE_HALF:<br />

InitVi<strong>de</strong>oWindow(1,2);<br />

break;<br />

case ID_FILE_SIZE_NORMAL:<br />

InitVi<strong>de</strong>oWindow(1,1);<br />

break;<br />

case ID_FILE_SIZE_DOUBLE:<br />

InitVi<strong>de</strong>oWindow(2,1);<br />

break;<br />

case ID_FILE_SIZE_THREEQUARTER:<br />

InitVi<strong>de</strong>oWindow(3,4);<br />

break;<br />

} // M<strong>en</strong>us<br />

break;<br />

case WM_GRAPHNOTIFY:<br />

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

break;<br />

case WM_CLOSE:<br />

S<strong>en</strong>dMessage(ghApp, WM_COMMAND, ID_FILE_EXIT, 0);<br />

break;<br />

case WM_DESTROY:<br />

PostQuitMessage(0);<br />

break;<br />

<strong>de</strong>fault:<br />

return DefWindowProc(hWnd, message, wParam, lParam);<br />

} // Manejador <strong>de</strong> m<strong>en</strong>sajes <strong>de</strong> la v<strong>en</strong>tana<br />

return DefWindowProc(hWnd, message, wParam, lParam);<br />

// Función main <strong>de</strong> Windows<br />

int PASCAL WinMain(HINSTANCE hInstC, HINSTANCE hInstP, LPTSTR lpCmdLine, int nCmdShow)<br />

{<br />

MSG msg;<br />

WNDCLASS wc;<br />

// Initialize COM<br />

if(FAILED(CoInitialize(NULL)))<br />

{<br />

Msg(TEXT("Falló CoInitialize!\r\n"));<br />

exit(1);<br />

}<br />

// Fué especificado el nombre <strong>de</strong>l archivo <strong>en</strong> la linea <strong>de</strong> comandos?<br />

if(lpCmdLine[0] != L'\0')<br />

lstrcpy(g_szFileName, lpCmdLine);<br />

// Ajusta el estado <strong>de</strong> multimedia inicial<br />

g_psCurr<strong>en</strong>t = Init;<br />

// Registra la clase window<br />

ZeroMemory(&wc, sizeof wc);<br />

wc.lpfnWndProc = WndMainProc;<br />

ghInst = wc.hInstance = hInstC;<br />

wc.lpszClassName = CLASSNAME;<br />

wc.lpszM<strong>en</strong>uName = MAKEINTRESOURCE(IDR_MENU);<br />

wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);<br />

wc.hCursor = LoadCursor(NULL, IDC_ARROW);

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

Saved successfully!

Ooh no, something went wrong!