home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / video / security / security.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  2.0 KB  |  80 lines

  1. /*
  2.  * Copyright (C) 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. #ifndef _SECURITY_H
  18. #define  _SECURITY_H
  19. #include <Vk/VkWindow.h>
  20. #include <Vk/VkPeriodic.h>
  21. #include <Vk/VkRadioBox.h>
  22. #include "pref.h"
  23. #include "startStop.h"
  24. #include "compressPanel.h"
  25. #include "video.h"
  26. #include "movie.h"
  27. #include "title.h"
  28. #include "monitor.h"
  29.  
  30. class SecurityWin: public VkWindow
  31. {
  32.  public:
  33.   SecurityWin(const char *name);
  34.   ~SecurityWin();
  35.   
  36.   virtual const char* className();
  37.  
  38.  protected:
  39.   void postPref();
  40.   void statusChanged(VkCallbackObject *, void *, void *);
  41.   void grabFrame(VkCallbackObject *, void *, void *);
  42.   void stopOnError( );
  43.   
  44.  private:
  45.   static void quitCallback(Widget, XtPointer, XtPointer);
  46.   static void postPrefCallback(Widget, XtPointer, XtPointer);
  47.   static void viewCallback(Widget, XtPointer, XtPointer);
  48.  
  49.   void view();
  50.   void preference(VkComponent*, void *, void *);  
  51.   void buildMenu();
  52.   void buildVideo();
  53.   int diffBuffer(unsigned char *, unsigned char *, int, int, int);
  54.   int getScale();
  55.   
  56.   VkSubMenu *_fileMenu;
  57.   VkMenuBar *_mainMenu;
  58.   
  59.   Pref *_pref;  
  60.   StartStopPanel *_startStop;
  61.   CompressPanel *_compress;
  62.   VkCheckBox *_checkBox;
  63.   VkRadioBox *_visual;
  64.   Title *_title;
  65.   
  66.   Action _action;
  67.   VkPeriodic *_timer;
  68.   void *_newFrame, *_oldFrame, *_RGBFrame;
  69.   VideoIn *_video, *_motion;
  70.   Movie *_movie;
  71.   int _isBusy;
  72.   Monitor *_monitor;
  73.   int _sound;
  74.   
  75. };
  76.  
  77. #endif
  78.  
  79.   
  80.