home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / macraysh.sit / Code / Headers / sampling.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-19  |  1.5 KB  |  52 lines

  1. /*
  2.  * sampling.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Craig E. Kolb
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  *
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * $Id: sampling.h,v 4.0 91/07/17 14:32:01 kolb Exp Locker: kolb $
  17.  *
  18.  * $Log:    sampling.h,v $
  19.  * Revision 4.0  91/07/17  14:32:01  kolb
  20.  * Initial version.
  21.  * 
  22.  */
  23. #ifndef SAMPLING_H
  24. #define SAMPLING_H
  25.  
  26. /*
  27.  * # of subsamples to take within each of the totsamples slots when
  28.  * computing 'animated' bounding boxes.
  29.  */
  30. #define TIME_SUB_SAMPLES    10
  31.  
  32. typedef struct SampleInfo {
  33.     int    totsamples,    /* # of samples/pixel */
  34.         sidesamples,    /* sqrt(samples) */
  35.         gaussian,    /* gaussian filter? */
  36.         framenum,    /* current frame numer */
  37.         timemagic;    /* # of time samples per screen... */
  38.     Float    weight,        /* 1. / totsamples */
  39.         spacing,    /* 1. / sidesamples  */
  40.         filterwidth,    /* total width of filter */
  41.         filterdelta,    /* filterwidth * spacing */
  42.         **filter,    /* pixel filter, sidesamp by sidesamp */
  43.         starttime,    /* start time */
  44.         shutter;    /* length of time shutter is open */
  45. } SampleInfo;
  46.  
  47. extern SampleInfo Sampling;
  48.  
  49. extern void    SamplingSetOptions(), UnitCirclePoint();
  50.  
  51. #endif /* SAMPLING */
  52.