home *** CD-ROM | disk | FTP | other *** search
/ Dream 44 / Amiga_Dream_44.iso / Linux / Apps / xanim.tgz / xanim / xanim27064 / xanim.readme < prev    next >
Text File  |  1997-01-26  |  37KB  |  947 lines

  1.  
  2. XAnim Rev 2.70.6.4  25Jan97
  3.  
  4. COMPILING ON UNIX Systems (And all Unix derivatives)
  5.  
  6.   First and most importantly: Read the "cinepak.readme", "indeo.readme"
  7.   and the "creative.readme" files.
  8.  
  9.   If you have Imake on your system, Read and edit the Imakefile
  10.   and then you can type
  11.  
  12.     xmkmf
  13.  
  14.   which should produce a Makefile from the Imakefile. Then
  15.   you can type:
  16.  
  17.     make xanim
  18.   
  19.   If this doesn't work you can copy Makefile.unx to Makefile.
  20.   Read and edit the Makefile(that you just created). Make 
  21.   any necessary changes for your particular machine or preferencs
  22.   and the type:
  23.  
  24.     make xanim
  25.  
  26.   NOTE: That in the Imakefile, XCOMM is used as a comment. This
  27.   is recommended by X11R6, but may break older revs. To fix,
  28.   simply replace every occurence of "XCOMM" with "#" in the
  29.   Imakefile. See top of Imakefile for more details.
  30.  
  31.  
  32. COMPILING ON VMS/AXP Systems
  33.   The files make.com and xanimXX.opt are provided for VMS users.
  34.   make.com should correctly detect wether you're running
  35.   DECWindows XUI or DECWindows MOTIF(revs 1.1 and 1.2) and use
  36.   the appropriate xanimXX.opt file.
  37.  
  38.   If you use the VMS MMS (or "make") facility, then a descript.mms
  39.   file is provided.
  40.  
  41.   NOTE: since VMS is case insensitve, all options to xanim must be
  42.   enclosed in double quotes in order for them to be proper recognized.
  43.   Example:
  44.         xanim "+f -Cn" anim1 anim2
  45.  
  46.  
  47. HOW TO USE XANIM
  48. The following is a copy of the man page with examples at the end.
  49.  
  50. SYNOPSIS
  51.      xanim [ +Vnum ] [ +Aaopts ]  [  +Ccopts  ]  [  +Ggopts  ]  [
  52.           +Mmopts  ] [ +Ssopts ] [ +Wwopts ] [ +Zzopts ] [ +opts ] animfile 
  53.           [ [ +opts ] [ animfile ] ... ]
  54.  
  55. DESCRIPTION
  56.      XAnim is a program that can display  animations  of  various
  57.      formats on systems running X11. XAnim currently supports the
  58.      following animation types:
  59.  
  60.       +  FLI animations.
  61.       +  FLC animations.
  62.       +  IFF animations.  The  following  features  are  sup-
  63.          ported:
  64.            -> Compressions 3,5,7,J(movies) and l(small L).
  65.            -> Color cycling during single images and anims.
  66.            -> Display Modes: depth 1-8, EHB, HAM and HAM8.
  67.       +  GIF87a and GIF89a files.
  68.            -> single and multiple images supported.
  69.            -> GIF89a animation extensions supported.
  70.       +  GIF89a animation extension support.
  71.       +  a kludgy text file listing gifs and  what  order  to
  72.          show them in.
  73.       +  DL animations. Formats 1, 2 and most of 3.
  74.       +  Amiga PFX(PageFlipper Plus F/X) animations. DISABLED TEMPORARILY.
  75.       +  Amiga MovieSetter animations(For those Eric Schwartz
  76.          fans).
  77.       +  Utah Raster Toolkit RLE images and anims.
  78.       +  AVI animations. Currently supported are
  79.            -> IBM Ultimotion     (ULTI) depth 16.
  80.                -> JPEG               (JPEG) depth 24.
  81.                -> Motion JPEG        (MJPG) depth 24.
  82.                -> Intergraph JPEG    (IJPG) depth 24.
  83.            -> Microsoft Video 1  (CRAM) depth 8 and 16.
  84.                -> Radius Cinepak     (CVID) depth 24. (see cinepak.readme)
  85.                -> Intel Indeo 3.1    (IV31) depth 24. (see indeo.readme)
  86.                -> Intel Indeo 3.2    (IV32) depth 24. (see indeo.readme)
  87.                -> Intel Raw YUV      (YUV9) depth 24. (see indeo.readme)
  88.                -> Creative CYUV      (CYUV) depth 16. (see creative.readme)
  89.            -> Uncompressed       (RGB ) depth 4.
  90.            -> Uncompressed       (RGB ) depth 8.
  91.            -> Uncompressed       (RGB ) depth 16.
  92.            -> Uncompressed       (RGB ) depth 24.
  93.            -> Run length encoded (RLE8) depth 8.
  94.            -> Editable MPEG      (XMPG) depth 24.
  95.       +  Quicktime Animations.  The  following  features  are
  96.          supported:
  97.                -> Uncompressed     (RAW ) depth 4,8,16,24 and 24+
  98.                -> Uncompressed     (RAW ) Gray depth 4 and 8.
  99.                -> Apple Graphics   (RLE ) depth 1,8,16 and 24.
  100.                -> Apple Graphics   (RLE ) GRAY depth 8.
  101.                -> Apple Animation  (SMC ) depth 8 and GRAY 8.
  102.                -> Apple Video      (RPZA) depth 16.
  103.                -> Radius Cinepak   (CVID) depth 24. (see cinepak.readme)
  104.                -> Radius Cinepak   (CVID) GRAY   8. (see cinepak.readme)
  105.                -> Intel Indeo 3.1  (IV31) depth 24. (see indeo.readme)
  106.                -> Intel Indeo 3.2  (IV32) depth 24. (see indeo.readme)
  107.                -> Intel Raw YUV    (YUV9) depth 24. (see indeo.readme)
  108.                -> Component Video  (YUV2) depth 24.
  109.                -> Photo JPEG       (JPEG) depth 8 and 24.
  110.                -> Kodak Photo CD   (KPCD) depth 24.
  111.            -> Microsoft Video 1(CRAM) depth 8 and 16.
  112.                -> Supports multiple video trak's.
  113.                -> Supports animations with multiple codecs.
  114.                -> Supports merged and separated resource forks.
  115.       +  JFIF images. NOTE: use XV for single images. This is more
  116.          for animation of a sequence of JPEG images.
  117.           +  MPEG animations. Currently only Type  I  Frames  are
  118.              displayed.  Type  B  and Type P frames are currently
  119.              ignored, but will be added in future revs.
  120.           +  WAV audio files may have their sound  added  to  any
  121.              animation  type  that doesn't already have audio, by
  122.              specifying the .wav file after the animation file on
  123.              the command line.
  124.           +  AU audio files may have their  sound  added  to  any
  125.              animation  type  that doesn't already have audio, by
  126.              specifying the .wav file after the animation file on
  127.              the command line.
  128.       +  any combination of the above  on  the  same  command
  129.          line.
  130.  
  131.      XAnim also provides various options that allow the  user  to
  132.      alter colormaps, playback speeds, looping modes and can pro-
  133.      vide on-the-fly scaling of animations with the mouse.
  134.  
  135. OPTIONS
  136.      A + will generally turn an option on and a -  will  turn  an
  137.      option  off.   This  can  be  reversed at compile time. (see
  138.      xanim_config.h).
  139.  
  140.      In each SubMenu, the options can be  run  together  with  no
  141.      intervening spaces. In the list of SubMenu options presented
  142.      below, the first letter given is the letter  that  specifies
  143.      the  SubMenu  and  should NOT be repeated if several SubMenu
  144.      options are to be run together.
  145.  
  146.      For example,  "+Cn  +Cs10  +CF4"  can  also  be  written  as
  147.      "+Cns10F4" or "+CF4s10n".
  148.  
  149.      A + or a - within a SubMenu will be an exit from  that  sub-
  150.      menu.   Options  will  affect  all  animations following the
  151.      invocation of that option. Some options may  be  changed  in
  152.      between animations without affecting previous animations.
  153.  
  154.      In the following sections,  an  "num"  represents  an  integer
  155.      number and an "fnum" represents a floating point number. Don't
  156.      include the double quotes. If a floating point number is of an 
  157.      integer amount, the "." need not be specified. There should be
  158.      no spaces between the option and the numbers.
  159.  
  160.      aopts SubMenu for Audio Options
  161.  
  162.       +Ae        Audio Enable. On by default.
  163.  
  164.       +Ak        This option allows XAnim to skip video frames
  165.             in order to help keep video in sync with audio.
  166.             Default is on.
  167.  
  168.           +Am        Take the audio from the  next  audio-only  file
  169.             and  use it with the video file previous to it.
  170.             Any audio already existing in that  video  file
  171.             will  be discarded. NOTE: XAnim by default will
  172.             add audio from an audio-only file to a previous
  173.             video only(ie not audio) file. This option just
  174.             forces the issue if the previous  file  already
  175.             has audio. Default is off.
  176.  
  177.           +AM         Take the audio from the  next  audio-only  file
  178.             and  use it with the video file previous to it.
  179.             And in addition, scale the timing of that video
  180.             file  to  be of the same duration of this audio
  181.             file.  Any audio already existing in that video
  182.             file will be discarded. Default is off.
  183.  
  184.  
  185.       +Ap"num"    This turns a hardware specific Audio port on or off.
  186.                Port 0 - main speaker (on  by default)
  187.                Port 1 - headphones   (off by default)
  188.                Port 2 - line out     (off by default)
  189.  
  190.           +As"fnum"    Scale Audio playback speed by "fnum". Only the
  191.             range 0.125 to 8.00 is allowed.
  192.             NOTE: CURRENTLY VIDEO DOESN'T SCALE WITH AUDIO.
  193.  
  194.       +Av"num"    Sets the inital Audio Volume(0-100) with 0
  195.             the lowest. default is 40. See xa_config.h
  196.  
  197.      copts SubMenu for Color Options
  198.  
  199.       +C1        Create a colormap from the  first  frame  of  a
  200.             TrueColor  anim  and  then  remap the remaining
  201.             frames to this colormap. This  can  potentially
  202.             add  significant time to the startup of an ani-
  203.             mation but usually results  in  better  colors.
  204.             The  animation  needs  to  be buffered for this
  205.             option to work.  Not  valid  for  TrueColor  or
  206.             DirectColor displays(nor is it needed).
  207.  
  208.       +C3        Convert TrueColor  anims  to  332(StaticColor).
  209.             TrueColor  anims  are  animations  that provide
  210.             separate RGB info for each pixel,  rather  than
  211.             each  pixel being an index into a global color-
  212.             map. AVI(16bit CRAM), QT(RPZA and RLE depth  16
  213.             and  24)  and URT RLE 24 bit anims are examples
  214.             of TrueColor anims. This option is ignored  for
  215.             TrueColor or DirectColor displays.
  216.  
  217.       +CA         Create  a  colormap  from  each  frame   of   a
  218.             TrueColor  anim.  This  can  be  useful  if the
  219.             colors radically change during  the  course  of
  220.             the  animation.  This can take a VERY,VERY long
  221.             time at start up. Animation must  be  buffered.
  222.             This   option   is  ignored  for  TrueColor  or
  223.             DirectColor displays.
  224.  
  225.       +Ca         Remap all images to  single  new  cmap  created
  226.             from all of the colormaps.
  227.  
  228.       +Cd         Use Floyd-Steinberg  dithering  if  needed  for
  229.             non-monochrome  displays.   This  will  cause a
  230.             reduction in playback speed.
  231.  
  232.       +Cf         Forcibly remap to all  frames  to  1st  frame's
  233.             cmap.
  234.  
  235.       +CF0          Turns off CF4 option.
  236.  
  237.       +CF4          This option samples the colors of true color
  238.             animations ahead of time and forms a color
  239.             lookup table.  Beats the just truncating to a
  240.             RGB 332 color table and IMHO beats dithering.
  241.             See the +s option below(also in copts submenu).
  242.             Currently ONLY Work with unbuffered animations
  243.  
  244.       +Cg         Convert TrueColor anims  to  gray  scale.  This
  245.             option is ignored for TrueColor and DirectColor
  246.             displays.
  247.  
  248.       +Ch         Use histogram to aid in color  reduction.  His-
  249.             trogramming  is  only  done  on frames that are
  250.             buffered.
  251.  
  252.       +Cm         This option is currently needed if you want  to
  253.             dither  TrueColor anims to a 332 colormap. Ani-
  254.             mation must be buffered.  Typically  +bC3dm  is
  255.             the  option  to  use. This can take a VERY long
  256.             time at start up.
  257.  
  258.       +Cn         Don't create new colormap but instead  allocate
  259.             colors from the X11 Display's default cmap.
  260.  
  261.       +Cs"num"    This is the number of frames the +CF4 option looks
  262.             at ahead of time. More frames potentially yields
  263.             better colors results, but takes more time at
  264.             start up.  default is 5.
  265.  
  266.      gopts SubMenu for Gamma Options
  267.  
  268.       +Ga"fnum"    Set gamma of animation to be displayed.
  269.  
  270.       +Gd"fnum"    Set gamma of display. 1.0 is no change. gamma's
  271.             greater  than 1.0 typically brighten the anima-
  272.             tion.
  273.  
  274.      mopts SubMenu for Median-Cut Quantization Options
  275.  
  276.       +Ma        compute box color from average of box.
  277.  
  278.       +Mc        compute box color as center of box.
  279.  
  280.       +Mb"num"    Truncate rgb to "num" bits before quantizing.
  281.  
  282.      sopts SubMenu for Scaling Options
  283.  
  284.       +Si        Half the  height  of  IFF  anims  if  they  are
  285.             interlaced.(Not  completely  reliable since not
  286.             all IFF anims correctly identify themselves  as
  287.             interlaced).
  288.  
  289.       +Sn        Prevents X11  window  from  resizing  to  match
  290.             animations's size.
  291.  
  292.       +Sr        Allow user to  resize  animation  on  the  fly.
  293.             Enlarging an animation can greatly reduce play-
  294.             back speed depending on the power of the cpu.
  295.  
  296.       +Ss"fnum"    Scale the size  of  animation  by  "fnum"  before
  297.             displaying.
  298.  
  299.       +Sh"fnum"    Scale the horizontal size of the  animation  by
  300.             "fnum" before displaying.
  301.  
  302.       +Sv"fnum"    Scale the vertical size  of  the  animation  by
  303.             "fnum" before displaying.
  304.  
  305.       +Sx"num"    Scale the animation to have  width  "num"  before
  306.             displaying.
  307.  
  308.       +Sy"num"    Scale the animation to have height  "num"  before
  309.             displaying.
  310.  
  311.       +Sc        Copy display scaling factors to display buffer-
  312.             ing factors.
  313.  
  314.       +SS"fnum"    Scale the size of the animation by "fnum"  before
  315.             buffering it.
  316.  
  317.       +SH"fnum"    Scale the horizontal size of the  animation  by
  318.             "fnum" before buffering it.
  319.  
  320.       +SV"fnum"    Scale the vertical size  of  the  animation  by
  321.             "fnum" before buffering it.
  322.  
  323.       +SX"num"    Scale the animation to have  width  "num"  before
  324.             buffering it.
  325.  
  326.       +SY"num"    Scale the animation to have height  "num"  before
  327.             buffering it.
  328.  
  329.       +SC        Copy buffer scaling factors to display  scaling
  330.             factors.
  331.  
  332.      wopts SubMenu for Remote Window and Control Options.
  333.             (See "Remote_Window.doc" )
  334.  
  335.       +W"id"    Specify X11 Window "id" of window to draw into.
  336.  
  337.       +Wd        Don't refresh window at end of anim.
  338.  
  339.       +Wnx        Use property x for communication. 
  340.             Default is XANIM_PROPERTY
  341.  
  342.       +Wp        Prepare anim, but don't start playing it.
  343.  
  344.       +Wr        Resize X11 Window to fit anim.
  345.  
  346.       +Wx"num"    Position anim at x coordinate "num".
  347.  
  348.       +Wy"num"    Position anim at y coordinate "num".
  349.  
  350.       +Wc        Position relative to center of anim.
  351.  
  352.      zopts SubMenu for Special Options
  353.  
  354.  
  355.       +Ze        XAnim will exit after playing  through  command
  356.             line once.
  357.  
  358.       +Zp"num"    XAnim pause at frame "num" and then wait for user
  359.             input.  Several  pauses  may be specified. Each
  360.             group of pauses will only affect the  animation
  361.             immediately following them on the command line.
  362.             Pauses will occur at least once.
  363.  
  364.       +Zpe        XAnim will pause on the last frame of the anim.
  365.  
  366.       +Zr        This option pops up the Remote Control  Window.
  367.             This  overrides  the  default  condition set in
  368.             xanim_config.h. Remote Control support must  be
  369.             compiled into XAnim for this to work.
  370.  
  371.  
  372.      Normal Options
  373.  
  374.           +b        Uncompress and buffer images before displaying.
  375.             This  only  applies  to AVI, QT, IFF, FLI, FLC,
  376.             JPEG, MPEG and DL animations. The  rest(GIF87a,
  377.             GIF89a,  PFX  and  RLE)  are  currently  always
  378.             uncompressed and buffered. This is  cleared  by
  379.             the +f option.
  380.  
  381.       +B        Used X11 Shared Memory(if present)for unbuffered
  382.             animations only.(This is mutually exclusive with
  383.             +b above).
  384.  
  385.       +D        Use X11 Multi Buffering (if present) to smooth 
  386.             animations by double-buffering. Default is on.
  387.  
  388.           +f        Don't load anim into memory, but read each sec-
  389.             tion  only  when needed. This is supported only
  390.             for AVI, QT, IFF, FLI, FLC, JPEG, MPEG  and  DL
  391.             animations.  This  option  is cleared by the +b
  392.             option.  This  saves  memory  at  the  cost  of
  393.             speed.
  394.  
  395.       +c        let xanim know that iff anim  is  a  nonlooping
  396.             one.
  397.  
  398.       +d"num"    debug switch. "num" can be from 0(off) to 5(most)
  399.             for level of detail.
  400.  
  401.       +F        Floyd-Steinberg dithering when needed.
  402.  
  403.       +j"num"    "num"  is  the  number  of  milliseconds  between
  404.             frames.  if  0  then  the time specified in the
  405.             animation is used for timing purposes.
  406.  
  407.       +l"num"    loop animation "num" number of times before  mov-
  408.             ing on to next animation.
  409.  
  410.       +lp"num"    ping-pong animation "num" number of times  before
  411.             moving on to next animation.
  412.  
  413.       +N        don't display images. Useful for benchmarking.
  414.  
  415.       +o        turns    on    certain    optimizations.    See
  416.             xanim.readme.
  417.  
  418.       +p        Use Pixmap instead of Image in X11. This option
  419.             has    no    effect   if   the   animation   is
  420.             buffered(either  by  default  or  with  the  +b
  421.             option).
  422.  
  423.       +r        Allow color cycling for IFF single images.
  424.  
  425.       +R        Allow color cycling  for  IFF  anims.  (default
  426.             should be off)
  427.  
  428.       +T0        Title option 0. Title is just XAnim.
  429.  
  430.       +T1        Title option 1. Title  is  current  anim  name.
  431.             When  anim is stopped, the current frame number
  432.             is included.
  433.  
  434.       +T2        Title option 2. Title is current anim name  and
  435.             current frame number.
  436.  
  437.       +v        Verbose mode. Gives some information about ani-
  438.             mation such as size, number of frames, etc.
  439.  
  440.       +V"num"    Select X11 Visual to use when displaying anima-
  441.             tion.  The  "num"  is  obtained  by  using the +X
  442.             option of xanim.
  443.  
  444.       +Vclass    Select the best X11 Visual of Class class  when
  445.             displaying  the  animation. class can be anyone
  446.             of the following strings and is  case  insensi-
  447.             tive. (ie StaTicGraY is same as staticgray).
  448.  
  449.             staticgray    Select best StaticGray Visual.
  450.             grayscale     Select best GrayScale Visual.
  451.             staticcolor   Select best StaticColor Visual.
  452.             pseudocolor   Select best PseudoColor Visual.
  453.             truecolor     Select best TrueColor Visual.
  454.             directcolor   Select best DirectColor Visual.
  455.  
  456.       +X        X11 verbose mode. Display information about the
  457.             support X11 visuals.
  458.  
  459.  
  460.  
  461.  
  462. WINDOW COMMANDS
  463.      Once the animation is up and running there are various  com-
  464.      mands  that  can  be entered into that animation window from
  465.      the keyboard.
  466.  
  467.      q         quit.
  468.  
  469.      Q         Quit.
  470.  
  471.      g         Stop color cycling.
  472.  
  473.      p         Toggle ping pong flag for looping.
  474.  
  475.      r         Restore original Colors(useful after g).
  476.  
  477.      w         Restore original window size(useful after resizing).
  478.  
  479.      z         This pops up or removes the Remote Control Window.
  480.                Remote Control support must be compiled into XAnim
  481.                for this to work.
  482.  
  483.      <space>   Toggle. starts/stops animation.
  484.  
  485.      ,         Single step back one frame.
  486.  
  487.      .         Single step forward one frame.
  488.  
  489.      <         Go back to start of previous anim.
  490.  
  491.      >         Go forward to start of next anim.
  492.  
  493.      m         Single step back one frame staying within anim.
  494.  
  495.      /         Single step forward one frame staying within anim.
  496.  
  497.      -         Increase animation playback speed.
  498.  
  499.      =         Decrease animation playback speed.
  500.  
  501.      0         Reset animation playback speed to original values.
  502.  
  503.      AUDIO RELATED WINDOW COMMANDS
  504.  
  505.      1           Decrement volume by 10.
  506.  
  507.      2           Decrement volume by 1.
  508.  
  509.      3           Increment volume by 1.
  510.  
  511.      4           Increment volume by 10.
  512.  
  513.      s           Toggle. Audio Volume(MUTE). on/off.
  514.  
  515.      8           Toggle. Main Speaker. on/off.
  516.  
  517.      9           Toggle. Headphones. on/off.
  518.  
  519.  
  520. MOUSE BUTTONS
  521.      Once the animation is up and running the mouse buttons  have
  522.      the following functions.
  523.  
  524.      <Left_Button>
  525.            Single step back one frame.
  526.  
  527.      <Middle_Button>
  528.            Toggle. starts/stops animation.
  529.  
  530.      <Right_Button>
  531.            Single step forward one frame.
  532.  
  533. BUFFERING, PIXMAPS and READ_FROM_FILE Options
  534.      XAnim by default will read the entire animation into memory.
  535.      PFX,  Moviesetter, GIF or URT RLE type animations are always
  536.      uncompressed and stored in memory as individual images.
  537.  
  538.      For the AVI, QT, IFF, FLI/FLC, JPEG, MPEG and DL animations,
  539.      only  the  compressed delta is stored. These deltas are then
  540.      uncompressed each time they need to be displayed. The buffer
  541.      option(+b)  may  be used to potentially speed up playback by
  542.      uncompressing and storing these images ahead  of  time.  But
  543.      more memory is used up in the process.
  544.  
  545.      When an XPutImage is called, the image typically gets copied
  546.      twice,  once to memory and then from there onto the display.
  547.      A pixmap is directly copied onto  the  display  without  the
  548.      first  copy.  This is why it is sometimes much faster to use
  549.      the pixmap option(+p).  Each image isn't  converted  into  a
  550.      pixmap until the first time it is displayed. This is why the
  551.      first loop of an animation using this  option  is  sometimes
  552.      slower  than  subsequent  loops. While the pixmap option may
  553.      improve playback speed, it will slow things down if  on-the-
  554.      fly  scaling needs to be performed. This is because XAnim no
  555.      longer has direct access to the image and  needs  to  get  a
  556.      copy of it before it can be scaled.
  557.  
  558.      The read from file option(+f) causes XAnim not to store  the
  559.      compressed  deltas in memory. Instead as each image is to be
  560.      displayed, XAnim reads the  corresponding  compressed  delta
  561.      from  the  file, expands it and then displays it. While this
  562.      can dramatically cut down on  memory  usage,  the  necessary
  563.      reads  from  disk(or whatever) can slow down playback speed.
  564.      XAnim still needs to allocate one  to  three  image  buffers
  565.      depending  on  the type of animation and the scaling options
  566.      used. This option is only supported for  AVI,  QT,  FLI/FLC,
  567.      IFF,  JPEG,  MPEG  and  DL animations. The BODY chunk of IFF
  568.      animations is not included in this. As a result, an IFF ani-
  569.      mation  that  is  made  up  of  several BODY chunks will not
  570.      currently benefit from this option.
  571.  
  572.  
  573. SCALING Options
  574.      There are two sets of scaling options. One set, the  display
  575.      scaling factors,  affects the size of the animation as it is
  576.      displayed. The other set, the buffer scaling factors, affect
  577.      the   size   of   the   images   as   they   are  stored  in
  578.      memory(buffered). The buffer  scaling  factors  only  affect
  579.      animations  that  are  buffered  and can greatly increase or
  580.      decrease memory usage.
  581.  
  582.      These two sets are completely independent of each other. You
  583.      can  set  the  buffer scaling factors to 20 times the normal
  584.      animation size and not affect the size at which that  anima-
  585.      tion  is  displayed.  The  images are stored at 20 times the
  586.      normal size(and at 400 times the memory usage), but then get
  587.      scaled  back  down  to  normal  size before being displayed.
  588.      NOTE: that an animation must be buffered in  order  for  the
  589.      buffer scaling factors to have any affect on it. The display
  590.      scaling factors affect all animations.
  591.  
  592.      You can create pixellation like  affects  by  buffering  the
  593.      animation  at  1/8 it's normal size, but keeping the display
  594.      scaling factors at the original size. (IE  "xanim  +bSS0.125
  595.      anim.anim").
  596.  
  597.      Many times it's faster to store  and  display  an  animation
  598.      with large dimensions at half-size. The option "+bSS0.5C" or
  599.      "+bSS0.5s0.5" both will accomplish this. To save memory, you
  600.      could  even store the animation at half size and yet display
  601.      it at full size. "+bSS0.5" will accomplish this.
  602.  
  603. FORWARDS, BACKWARDS and OPTIMIZATION.
  604.      Many type of animations(FLI/FLC/IFF/some AVI  and  QTs)  are
  605.      compressed  with  forward  playback in mind only. Each delta
  606.      only stores the difference between the current frame and the
  607.      previous frame. As a results, most of these animations don't
  608.      display correctly when played backwards.  Even when buffered
  609.      up, these may not work, since XAnim only stores the smallest
  610.      rectangle that encompasses the  changes  from  the  previous
  611.      frame.  You  can  force  XAnim  to store the entire frame by
  612.      specifying the "-o" option to turn  this  optimization  off.
  613.      This will most likely use more memory and slow down the ani-
  614.      mation, since more of the image needs to  be  stored  and/or
  615.      displayed.
  616.  
  617. COLOR OPTIONS
  618.      Most of this will be a TBD for a future rev and what's  here
  619.      might be sketchy, incomplete or just plain confusing.
  620.  
  621.      TrueColor and DirectColor displays don't need to worry about
  622.      most of these options, as the animations can be displayed in
  623.      their original colors(ignoring monitor variations etc). How-
  624.      ever,  TrueColor  and  DirectColor  displays  can't  display
  625.  
  626.      animations that employ color cycling  techniques  where  the
  627.      colormap  changes  from  frame  to frame.  DirectColor could
  628.      potentially support this, but not TrueColor.
  629.  
  630.      For the rest of the displays, the problem  becomes  matching
  631.      the  colors in the animations to the available colors of the
  632.      Display.  For  most  PseudoColor  displays  this  means  256
  633.      colors.  Many  of  which are already in use by various other
  634.      programs. XAnim defaults to creating it's own  colormap  and
  635.      using  all  the  colors  from  that. The window manager then
  636.      installs this new colormap, whenever the  mouse  pointer  is
  637.      inside  the  XAnim  animation  window(Sometimes  a  specific
  638.      action is required to change the ColorMap Focus, like click-
  639.      ing  in the window or pressing a specific key). In any case,
  640.      this action usually causes  all  the  other  colors  on  the
  641.      screen  to  be  temporarily  "messed-up"  until the mouse is
  642.      moved out of the animation window. The  alternative,  is  to
  643.      use  the  "+Cn"  option.  Now XAnim tries allocating all the
  644.      colors it needs from the current colormap. If it can't get a
  645.      certain color, then XAnim choose one that is "close" to this
  646.      certain color. Close is completely arbitrary. The  animation
  647.      is  now displayed in colors that are different than the ori-
  648.      ginal colors. This difference may or may not be noticeable.
  649.  
  650.      Another big problem is when the animations are what I called
  651.      TrueColor animations. Where each pixel is stored as RGB tri-
  652.      plets. For example, AVI 16 bit CRAM animations.  Each  pixel
  653.      has  5  bits of Red, 5 bits of Green and 5 bits of Blue info
  654.      associated with it. This means there  can  be  up  to  32768
  655.      unique  colors  in  each  image.  And  on  most  PseudoColor
  656.      displays we can only display 256 unique colors. Beside  get-
  657.      ting  better  displays,  what  can  we do? XAnim defaults to
  658.      truncating the RGB information from 555 to 332. That is to 3
  659.      bits  of  Red,  3  bits of Green and 2 bits of Blue. Less on
  660.      Blue because the human eye is  more  sensitive  to  Red  and
  661.      Green than Blue.  This 332 colormap happens to be 256 colors
  662.      in size, which nicely fits  in  with  our  display.  If  our
  663.      display  only  had  64 colors, then XAnim is smart enough to
  664.      truncate things down to 222. Now the problem is  the  colors
  665.      of the displayed anim are noticeably different than the ori-
  666.      ginal colors.  Typically you  can  see  color  banding  etc.
  667.      While  this  is fine to get a feel for the animation, we can
  668.      do better. One of the solutions XAnim  currently  offers  is
  669.      the "+bC1" option. What this does is choose the the best 256
  670.      colors from the first image  of  the  animation.  Then  each
  671.      pixel  of  each subsequent image is remapped to one of these
  672.      256 colors.  This takes up some CPU time up front  and  more
  673.      memory since each image needs to be buffered, but results in
  674.      a colors that are closer to the originals.  Another  option,
  675.      "+bCA",  chooses  the  best  256  from  each image, then 256
  676.      colors from all these colormaps  are  chosen  as  the  final
  677.      colormap.   This  is useful if the colors in the first image
  678.      aren't representative of the rest of the animation. This can
  679.      be  very  slow.  Another  option  that is supported, but not
  680.      really optimized for yet is "+bC3dm". This causes  XAnim  to
  681.      use  a  332 colormap and then apply a Floyd-Steinberg dither
  682.      algorithm to each image.  Currently this is very slow.  Dif-
  683.      ferent  dithers(like Ordered) and better optimizations might
  684.      speed this up  in  future  revs.  In  general,  handling  of
  685.      TrueColor animations in XAnim needs to be improved.
  686.  
  687.      Another scenario where colors need to be remapped,  is  when
  688.      several  images  or animations with different colormaps need
  689.      to be displayed.  Changing the colormap usually  results  in
  690.      an annoying flicker. One solution to this is to remap all of
  691.      the images/animations to the same colormap. The "+Ca" option
  692.      chooses  the  best  colors  from  all the colormaps and then
  693.      remaps all the images to it. The "+Cf" option, simply remaps
  694.      everything  to the first colormap.  The "+Ch" option is use-
  695.      ful when an animation's colormap specifies a lot  of  colors
  696.      that aren't used. XAnim looks through each buffered image of
  697.      the animation and makes a histogram of the  useage  of  each
  698.      color.  This  information  is then used to weedout unused or
  699.      rarely used colors.
  700.  
  701. QUICKTIME ANIMATIONS
  702.      Quicktime animations are  usually  stored  in  two  separate
  703.      files.  One is call a data fork and ends with a ".data". The
  704.      other is a resource fork and ends in  a  ".rsrc".  Sometimes
  705.      these  animations  are in a "flattened/merged fork" format, 
  706.      where everything is put into one file. There's no standard 
  707.      naming  format for these types of files although usually 
  708.      .qt or .mov is used.
  709.  
  710.      For example, if you have a quicktime animation  made  up  of
  711.      two  files  named:  "spin.rsrc"  and  "spin.data",   you can
  712.      display them using Xanim with either of the  following  com-
  713.      mands  "xanim  spin"  or  "xanim spin.rsrc".  XAnim is smart
  714.      enough to add/modfiy the  ".rsrc"  and  ".data"  endings  as
  715.      needed.
  716.  
  717.      If you use AUFS from the Columbia  Appletalk  Package,  then
  718.      Macintosh  files have their data fork stored in the expected
  719.      place, and the resource fork is in a file with the same name
  720.      in a  .resource subdirectory. Therefore, if the data fork is
  721.      in "spin", and the resource fork isin  ".resource/spin", the
  722.      movie can be displayed with "xanim spin".
  723.  
  724.      For "flattened/merged fork" quicktime animations, you  need
  725.      to  specify the entire file name.
  726.  
  727.      NOTE: XAnim doesn't support 100% of the quicktime format.
  728.  
  729. EXAMPLES:
  730.     To display a single animation with Audio:
  731.  
  732.         xanim +Ae car_race.avi
  733.  
  734.     To display a audio animation on Sparc. main speakers off
  735.     and  headphones on:
  736.  
  737.         xanim +Aep1 -Ap0 car_race.avi
  738.  
  739.     To display a single animation:
  740.  
  741.         xanim iff3.anim
  742.  
  743.     To display a nonlooping IFF animation:
  744.  
  745.         xanim +c iff3.anim
  746.  
  747.     To display A.fli 3 times, B.anim and C.movie 2 times each and D.fli
  748.     once before repeating:
  749.  
  750.         xanim -l3 A.fli -l2 B.anim C.movie -l1 D.fli
  751.  
  752.     To see A.anim real slow(2 seconds for each frame):
  753.  
  754.         xanim +j2000 A.anim
  755.  
  756.     To display title image for a while then run an animation at
  757.     normal speed:
  758.  
  759.         xanim +j2000 title.gif +j0 anim.gifanim
  760.  
  761.  
  762. A series of GIF's can be displayed as:
  763.  
  764.     xanim im_0.gif im_1.gif im_2.gif ... im_36.gif
  765.  
  766.  or
  767.  
  768.     xanim im_*.gif
  769.  
  770.  or
  771.  
  772.     xanim im.txt
  773.  
  774.  or
  775.  
  776.     xanim im.gifanim
  777.  
  778. where im.txt is a txt file(a list of images, see anim.doc for more details).
  779. and im.gifanim is one gif file composed of im_0.gif through im_36.gif.
  780. (see txtmerge to create a single gif file from a txt file).
  781.  
  782. X11 Notes:
  783. --------------------------------------
  784.  I. X11 Server Options
  785.  
  786.    When XAnim opens the display it passes the argument list to X11 which
  787.    then filters off the arguments it recognizes. XAnim won't even see these
  788.    arguments(which is sometimes a problem). For instance
  789.  
  790.    xa -geom =+100+100 skier.fli
  791.  
  792.    will play the anim skier.fli at pos <100,100> on the X11 screen.  Or
  793.  
  794.    xa -display nantucket:0.0 skier.fli
  795.  
  796.    will display the anim skier.fli on the machine nantucket's display.
  797.  
  798.    Sometimes this is a problem, because a valid XAnim option is stripped by the
  799.    X11 server. For instance if +r was being stripped, then use ++r instead.
  800.    Same goes with -r. Use --r instead if you believe it's being filtered
  801.    by X11.
  802.  
  803. Machine Specific and Compiler Notes:
  804. --------------------------------------
  805.  Some PC's need you to uncomment the line below in Makefile.
  806.  #XA_INET_LIB = -linet
  807.  
  808.  Depending on your window manager(mwm,uwm,olwm,twm etc), you might
  809.  want to have XAnim do a XInstallColormap. This shouldn't be necessary
  810.  for most workstations and can cause core dumps on some PCs.
  811.  There are usually user selectable options for each window manager
  812.  that selects the colormap focus policy(pointer,fixed,explicit etc).
  813.  Use -DNO_INSTALL in Makefile if you DON't want XAnim to install
  814.  the colormap.
  815.  
  816.  Some X11's don't have support for multiple visuals.  An executable
  817.  compiled with such an X11 will not be able to correctly run on a
  818.  machine that does supports multiple visuals even if they're binary
  819.  compatible.
  820.  
  821.  Hugh D.R. Evans has supplied make.com, xanim.opt and added VMS defines
  822.  so that VMS users may compile and run XAnim. Rick Dyson has provided
  823.  the descript.mms file and some VMS fixes. John Kneitz has also
  824.  provide some VMS fixes and suggestions.
  825.  
  826. And Yet More Notes about Quicktime Animations
  827. ---------------------------------------------
  828.         NOTES ON QUICKTIME ANIMATIONS WITH XANIM
  829.  
  830.   (these are just my notes and may contain some inconsistencies.
  831.    There's currently some question about the true meaning of
  832.    "flatten". It might just mean taking a quicktime file and
  833.    replacing a references to another files with those files
  834.    themselves.  But lately many people use it to mean collapsing
  835.    the *.data and *.rsrc forks into one *.data fork for export
  836.    to a non-mac computer. - Mark)
  837.  
  838.  
  839.    EXTRACTING Quicktime Animations
  840.  
  841.     Typically you will obtain the quicktime animations that have
  842.     been archived and then binhex'd. If the file you have ends
  843.     in a .hqx, then you need to run hexbin on it ("hexbin anim.hqx").
  844.     This will create a *.bin file(not necessarily anim.bin, it
  845.     could be anything.bin. The actual name is contained within
  846.     the *.hqx file).  
  847.  
  848.     If the file you have ends in a .bin or you've just hexbin'd a file, 
  849.     now you need to unpack it. In other words extract the files that
  850.     are contained within it. These files can be programs/documents/
  851.     animations/images etc. They're not necessarily quicktime animations.
  852.  
  853.     There is a program called macunpack that should be used to
  854.     accomplish this. You need to use the -f option, I recommend
  855.     the -lv options as well. (ie "macunpack -flv file.bin")
  856.  
  857.     Macunpack doesn't support certain DiskDoubler or Stuffit Deluxe
  858.     archives. There is no unix/pc program that I know of that does(except 
  859.     for the Mac). In this case your only choice is to get a hold of a 
  860.     Macintosh computer and someone who knows how to use it and
  861.     hopefully some method of transferring files to/from it.
  862.  
  863.     Once you've unpacked everything, you should have three files,
  864.     a *.info, a *.rsrc and a *.data. You can delete the *.info file.
  865.     XAnim doesn't need or use it.
  866.  
  867.     The quicktime animation is made up of BOTH the *.rsrc and the
  868.     *.data files and therefore XAnim needs BOTH the *.rsrc and the 
  869.     *.data in order to recognize and display the animation.
  870.   
  871.     The only exception to this is if the animation has been "flattened".
  872.     Essentially, all that this means is that the .rsrc and .data files
  873.     were merged into one file for export to a non-mac computer.
  874.     This file doesn't have any real naming conventions, but it is
  875.     usually something like .mov, .mv, .qt, etc(it is never .bin or .hqx). 
  876.     And it is rarely .data. If XAnim can't play it, then it's 95%
  877.     likely to be a *.data fork(that's missing a *.rsrc fork) and not
  878.     a flattened quicktime animation.
  879.  
  880.     Macunpack and hexbin can be found in the macutil archive. They
  881.     are available at the following locations:
  882.  
  883.         sumex-aim.stanford.edu:/info-mac/unix/macutil-20b1.shar
  884.         ftp.cwi.nl:/pub/macutil2.0b3.shar.Z
  885.         solaris.ims.ac.jp:/pub/unix/mac/macutil-20b1.shar
  886.  
  887.     Use archie to find other sites.
  888.  
  889.     Here's a quick blurb on macutils from the readme.
  890.  
  891.             o hexbin - a program to convert BinHex 4.0 to MacBinary;
  892.           it also converts uuencode (and UULite) files to their
  893.           native binary format; support for .dl, .hex, and .hcx
  894.           formats (all predecessors of BinHex 4.0) also exists
  895.  
  896.             o macunpack - a program to unpack PackIt, StuffIt,
  897.           Diamond, Compactor/Compact Pro, most StuffIt Classic
  898.           and StuffIt Deluxe, DiskDoubler, Zoom and LHarc/MacLHa
  899.           archives.
  900.  
  901.           It also decodes BinHex 5.0, MacBinary, uuencode, and
  902.           UNIX compress (ie: .Z suffix) files (as well as variants
  903.           of compress implemented by various Macintosh compress
  904.           programs).
  905.  
  906.  
  907.   TRANSFERING DIRECTLY FROM A MACINTOSH
  908.  
  909.     If you are transferring a quicktime animation directly from a 
  910.     Macintosh(ftp/fetch/gator/etc), you need to use the MacBinary mode.
  911.     This will archive all three resource forks(.info,.rsrc and .data) 
  912.     into a .bin file and transfer that. You must then use "macunpack -flv"
  913.     as described above.
  914.   
  915.     If you use Binary mode(as opposed to the MacBinary mode), ONLY the 
  916.     *.data file will be transferred. This *.data file is useless without
  917.     the *.rsrc file, unless it happens to be "flattened". If you don't
  918.     absolutely know this to be true, then use the MacBinary mode and 
  919.     extract with macunpack.
  920.  
  921.  
  922.   OTHER PROGRAMS
  923.  
  924.     mcvert is also capable of extracting the *.rsrc and *.data files
  925.     form a MacBinary file(*.bin). It doesn't support all of the
  926.     archival compression formats that macunpack does and I'm not
  927.     as familiar with it. Archie should be able to find it.
  928.  
  929.   CREATING A QUICKTIME FOR EXPORT ON A MACINTOSH
  930.  
  931.     Movieconverter, part of Apple's Quicktime Starter Kit (a commercial product)
  932.     can do this.  Save the movie as BOTH "Make self-contained" and "Playable
  933.     on non-Apple computers." 
  934.  
  935.  
  936.   If you have any other questions or problems trying to run 
  937.   quicktime animation using xanim I might be able to answer
  938.   them.
  939.  
  940. ------------------------------------------------------------------------------
  941.  
  942. Mark Podlipec - podlipec@ici.net
  943. http://xanim.va.pubnix.com/home.html
  944. http://smurfland.cit.buffalo.edu/xanim/home.html
  945. http://www.tm.informatik.uni-frankfurt.de/xanim/
  946.  
  947.