home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 114 / macaddict114.cdr / Software / Utilities / macam.0.8.4.dmg / macam sources / driver_core / MyDummyCameraDriver.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-02-24  |  1.8 KB  |  51 lines

  1. /*
  2.     macam - webcam app and QuickTime driver component
  3.     Copyright (C) 2002 Matthias Krauss (macam@matthias-krauss.de)
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18.  $Id: MyDummyCameraDriver.h,v 1.2 2003/02/24 13:05:18 mattik Exp $
  19. */
  20.  
  21. #include "GlobalDefs.h"
  22. #import "MyCameraDriver.h"
  23. #import "MyCameraCentral.h"
  24.  
  25. @interface MyDummyCameraDriver : MyCameraDriver {
  26.     CameraError errMsg;
  27. }
  28.  
  29. //Get info about the camera specifics.
  30. + (unsigned short) cameraUsbProductID;
  31. + (unsigned short) cameraUsbVendorID;
  32. + (NSString*) cameraName;
  33.  
  34. //Start/stop
  35. - (id) initWithError:(CameraError)err central:(MyCameraCentral*)c;
  36. - (id) initWithCentral:(MyCameraCentral*)c;    //same as above with CameraErrorOK
  37. - (CameraError) startupWithUsbLocationId:(UInt32)usbLocationId;
  38.  
  39. //Camera introspection
  40. - (BOOL) realCamera;
  41.  
  42. - (BOOL) supportsResolution:(CameraResolution)r fps:(short)fr;
  43. - (CameraResolution) defaultResolutionAndRate:(short*)dFps;
  44.  
  45. //Grabbing
  46. - (CameraError) decodingThread;                //We don't actually grab but draw images..
  47. - (void) imageTime:(NSTimer*)timer;            //This is called periodically in grabbingThread
  48.     
  49.  
  50. @end
  51.