OpenVideo Documentation

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

TestWinCE.h

Go to the documentation of this file.
00001 
00002 
00003 #include <PocketHAL/PocketHAL.h>
00004 #include "PocketHAL/game.h"
00005 
00006 
00007 #include <openVideo/Manager.h>
00008 #include <openVideo/nodes/VideoSinkSubscriber.h>
00009 
00010 
00011 class TestWinCE : public PHAL::Game, public openvideo::VideoSinkSubscriber
00012 {
00013 public:
00014     enum { UID = 0x0B6BE65F };
00015 
00016     enum {
00017         VIDEO_WIDTH = 320,
00018         VIDEO_HEIGHT = 240
00019     };
00020 
00021     TestWinCE();
00022 
00023 protected:
00024     virtual bool OnInitialize();
00025     virtual void OnShutdown();
00026     virtual bool OnGameLoop();
00027     virtual void OnStylusDown( PHAL::Point p );
00028 
00029     virtual void initPixelFormats();
00030     virtual void update(openvideo::State* curState);
00031 
00032     void drawVideo(PHAL::Display* nDisplay, bool nZoom);
00033 
00034 private:
00035     bool                    rotateSamples,
00036                             showZoomed;
00037 
00038     unsigned short          *videoPixels;
00039 
00040     openvideo::Manager      *manager;
00041 
00042     HANDLE                  hThread;
00043     DWORD                   dwThreadId;
00044 };
 This page was generated at Wed May 31 13:04:16 2006 for OpenVideo by Doxygen.
 If you have any comments, please send a message to schmalstieg@icg.tu-graz.ac.at.
www.studierstube.org