home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / space / software / unix / xanim / xnm_cnfg.h < prev   
Encoding:
C/C++ Source or Header  |  1992-08-04  |  4.7 KB  |  140 lines

  1.  
  2. /*
  3.  * xanim_config.h
  4.  *
  5.  * Copyright (C) 1990,1991,1992 by Mark Podlipec.
  6.  * All rights reserved.
  7.  *
  8.  * This software may be freely copied, modified and redistributed
  9.  * without fee provided that this copyright notice is preserved
  10.  * intact on all copies and modified copies.
  11.  *
  12.  * There is no warranty or other guarantee of fitness of this software.
  13.  * It is provided solely "as is". The author(s) disclaim(s) all
  14.  * responsibility and liability with respect to this software's usage
  15.  * or its effect upon hardware or computer systems.
  16.  *
  17.  */
  18.  
  19.  
  20. /* These defines are used to initialize the various flags that control
  21.  * the behavious of XAnim. They all can be overriden on the command
  22.  * line except for DEFAULT_PLUS_IS_ON and DEFAULT_X11_VERBOSE_FLAG.
  23.  */
  24.  
  25.  
  26. /* If this is TRUE then '+' will turn an option on and '-' will turn it off.
  27.  * if this is FALSE then '+' will turn an option off and '-' will turn
  28.  * it on.
  29.  */
  30. #define DEFAULT_PLUS_IS_ON    TRUE
  31.  
  32. /* If TRUE then animations will be buffered to display type
  33.  */
  34. #define DEFAULT_BUFF_FLAG    FALSE
  35.  
  36. /* If TRUE then iff animations will always loop back to 1st frame instead
  37.  * of to the 2nd delta. There is no easy way of knowing this ahead of time
  38.  */
  39. #define DEFAULT_IFF_LOOP_OFF    FALSE
  40.  
  41. /* If TRUE then iff CRNG (color cycling chunks) will be activated. This
  42.  * currently only works with single images and PSEUDO_COLOR displays.
  43.  */
  44. #define DEFAULT_CYCLE_ON_FLAG    TRUE
  45.  
  46. /* If TRUE then image height is reduced in half. This is useful for
  47.  * interlaced iff images and speeding up animations.
  48.  */
  49. #define DEFAULT_LACE_FLAG    FALSE
  50.  
  51. /* If TRUE then the cmap will fade to black between files. Only works
  52.  * on PSEUDO_COLOR displays.
  53.  */
  54. #define DEFAULT_FADE_FLAG    FALSE
  55. #define DEFAULT_FADE_TIME    20
  56.  
  57. /* If TRUE then window will be the size of the largest image. Smaller
  58.  * images and animations will be in upper left hand corner.
  59.  */
  60.  
  61. #define DEFAULT_NORESIZE_FLAG    FALSE
  62.  
  63. /* If this is TRUE then a single step will go forward through the frames
  64.  * until the screen is actually modified. A color map change is not 
  65.  * considered to modify the screen. This is useful with images that are
  66.  * unrelated and have their own color maps.
  67.  */
  68. #define DEFAULT_UPDATE_FLAG    TRUE
  69.  
  70. /* This affect IFF type 5 and J compressions as well as most FLI/FLC type
  71.  * compressions. Only the minimum area of the screen is updated that
  72.  * contains the changes from one image to the next. This is forced off
  73.  * in MONOCHROME mode due to peculiarities of the Floyd-Steinburg
  74.  * dithering algorithm. Having this on can cause "apparent" pauses in
  75.  * the animation because of the time difference between updating the
  76.  * entire screen and just part of it. This will occur if your hardware
  77.  * can not display the images at the specified rate. Turning optimization
  78.  * off will force the entire animation to go at the slower rate.
  79.  */
  80. #define DEFAULT_OPTIMIZE_FLAG    TRUE
  81.  
  82. /* If this is TRUE and DEFAULT_BUFF_FLAG is TRUE, the images will be
  83.  * put into pixmaps. Pixmaps have the following advantages:
  84.  *     they are stored locally  (in case you're running remotely)
  85.  *     they aren't copied twice (like most X11 servers do with XImages)
  86.  *     they could be in display memory(if your hardware has enough of it)
  87.  * It usually speeds things up.
  88.  */
  89. #define DEFAULT_PIXMAP_FLAG    FALSE
  90. /* If TRUE then Floyd-Steinberg dithering is used for MONOCHROME displays
  91.  */
  92. #define DEFAULT_DITHER_FLAG    TRUE
  93.  
  94. /* This cause XAnim to print out debugging information. Valid levels are
  95.  * from 1 to 5, with 0 being off.
  96.  */
  97. #define DEFAULT_DEBUG        0
  98.  
  99. /* When this is TRUE it causes XAnim to print out extra information about
  100.  * the animations
  101.  */
  102. #define DEFAULT_VERBOSE        FALSE
  103.  
  104. /* This is the default number of times to loop through each file before
  105.  * continuing on.
  106.  */
  107. #define DEFAULT_LOOPEACH_FLAG    1
  108.  
  109. /* This is the number of milliseconds between frames of the animation.
  110.  * If 0 then the number of milliseconds is taken from the animation
  111.  * itself.
  112.  */
  113. #define DEFAULT_JIFFY_FLAG    0
  114.  
  115. /* Not yet supported
  116.  */
  117. #define DEFAULT_PACK_FLAG    FALSE
  118.  
  119. /* This causes XAnim to print out more information about the X11
  120.  * display on which it is running.
  121.  */
  122. #define DEFAULT_X11_VERBOSE_FLAG    FALSE
  123.  
  124. /* COLOR MAP STUFF.
  125.  * FLI's are currently always mapped directly to display's colormap.
  126.  * IFF's are currently mapped directly but at the top of the colormap.
  127.  * GIF's have a couple of options.
  128.  *    luma_sort:   sorts the color map based on color's brightness
  129.  *    try_to_1st:  tries to fit new cmaps into 1st but if not, it
  130.  *           allocates a new one or forcibly remapping to 1st.
  131.  *    map_to_1st:  remaps new cmaps into 1st cmap. If try_to_1st fails
  132.  *           or isn't set.
  133.  *           Eventually dither_flag will affect this as well.
  134.  */
  135.  
  136. #define DEFAULT_CMAP_LUMA_SORT    TRUE
  137. #define DEFAULT_CMAP_TRY_TO_1ST    TRUE
  138. #define DEFAULT_CMAP_MAP_TO_1ST    FALSE
  139.    
  140.