OpenVideo Documentation

   Main Page       Modules       Class Hierarchy       Alphabetical List       Compound List       File List       Compound Members       Related Pages   

TestWinCE Class Reference

#include <TestWinCE.h>

Inherits PHAL::Game, and openvideo::VideoSinkSubscriber.

List of all members.

Public Types

enum  { UID = 0x0B6BE65F }
enum  { VIDEO_WIDTH = 320, VIDEO_HEIGHT = 240 }

Public Member Functions

 TestWinCE ()

Protected Member Functions

virtual bool OnInitialize ()
virtual void OnShutdown ()
virtual bool OnGameLoop ()
virtual void OnStylusDown (PHAL::Point p)
virtual void initPixelFormats ()
virtual void update (openvideo::State *curState)
void drawVideo (PHAL::Display *nDisplay, bool nZoom)

Private Attributes

bool rotateSamples
bool showZoomed
unsigned short * videoPixels
openvideo::Managermanager
HANDLE hThread
DWORD dwThreadId


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
UID 

Definition at line 14 of file TestWinCE.h.

anonymous enum
 

Enumeration values:
VIDEO_WIDTH 
VIDEO_HEIGHT 

Definition at line 16 of file TestWinCE.h.


Constructor & Destructor Documentation

TestWinCE::TestWinCE  ) 
 

Definition at line 22 of file TestWinCE.cpp.

References dwThreadId, hThread, init(), PHAL::Game::m_config, rotateSamples, showZoomed, VIDEO_HEIGHT, VIDEO_WIDTH, and videoPixels.


Member Function Documentation

void TestWinCE::drawVideo PHAL::Display *  nDisplay,
bool  nZoom
[protected]
 

Definition at line 111 of file TestWinCE.cpp.

References VIDEO_HEIGHT, VIDEO_WIDTH, and videoPixels.

void TestWinCE::initPixelFormats  )  [protected, virtual]
 

return value = the number of supported input formats.

the formats are stored in 'pixelFormats'.

Implements openvideo::Node.

Definition at line 185 of file TestWinCE.cpp.

References openvideo::FORMAT_B8G8R8, openvideo::FORMAT_R5G6B5, openvideo::FORMAT_R8G8B8, and openvideo::Node::pixelFormats.

bool TestWinCE::OnGameLoop  )  [protected, virtual]
 

Reimplemented from PHAL::Game.

Definition at line 72 of file TestWinCE.cpp.

References PHAL::Clear(), PHAL::COLOR_BLACK, PHAL::DrawText(), PHAL::Game::GetDisplay(), and PHAL::Game::GetFPSString().

bool TestWinCE::OnInitialize  )  [protected, virtual]
 

Reimplemented from PHAL::Game.

Definition at line 40 of file TestWinCE.cpp.

References openvideo::Manager::getInstance(), openvideo::Manager::getNode(), manager, openvideo::Manager::parseConfiguration(), openvideo::Manager::run(), and openvideo::VideoSink::subscribe().

void TestWinCE::OnShutdown  )  [protected, virtual]
 

Reimplemented from PHAL::Game.

Definition at line 63 of file TestWinCE.cpp.

void TestWinCE::OnStylusDown PHAL::Point  p  )  [protected, virtual]
 

Definition at line 90 of file TestWinCE.cpp.

References rotateSamples, and showZoomed.

void TestWinCE::update openvideo::State curState  )  [protected, virtual]
 

Implements openvideo::VideoSinkSubscriber.

Definition at line 194 of file TestWinCE.cpp.

References openvideo::Node::state, VIDEO_HEIGHT, VIDEO_WIDTH, and videoPixels.


Member Data Documentation

DWORD TestWinCE::dwThreadId [private]
 

Definition at line 43 of file TestWinCE.h.

Referenced by TestWinCE().

HANDLE TestWinCE::hThread [private]
 

Definition at line 42 of file TestWinCE.h.

Referenced by TestWinCE().

openvideo::Manager* TestWinCE::manager [private]
 

Definition at line 40 of file TestWinCE.h.

Referenced by OnInitialize().

bool TestWinCE::rotateSamples [private]
 

Definition at line 35 of file TestWinCE.h.

Referenced by OnStylusDown(), and TestWinCE().

bool TestWinCE::showZoomed [private]
 

Definition at line 35 of file TestWinCE.h.

Referenced by OnStylusDown(), and TestWinCE().

unsigned short* TestWinCE::videoPixels [private]
 

Definition at line 38 of file TestWinCE.h.

Referenced by drawVideo(), TestWinCE(), and update().


The documentation for this class was generated from the following files:
 This page was generated at Wed May 31 13:04:17 2006 for OpenVideo by Doxygen.
 If you have any comments, please send a message to schmalstieg@icg.tu-graz.ac.at.
www.studierstube.org