home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat1 / xieperf.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  39.3 KB  |  1,057 lines

  1.  
  2.  
  3.  
  4. xieperf(1)                           xieperf(1)
  5.  
  6.  
  7. NNAAMMEE
  8.        xieperf - XIE server extension test and demo program
  9.  
  10. SSYYNNTTAAXX
  11.        xxiieeppeerrff [-option ...]
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.        The  _x_i_e_p_e_r_f  program  is  based     upon R5 _x_1_1_p_e_r_f_(_1_) , and
  15.        while not entirely comprehensive in its    coverage  of  the
  16.        XIE  protocol (see BUGS, below), it is intended to be use-
  17.        ful in the evaluation of XIE implementations in the  areas
  18.        of  protocol  adherance and performance.     The _x_i_e_p_e_r_f pro-
  19.        gram includes tests which execute  each    of  the     protocol
  20.        requests     and  photoflo elements specified by revision 5.0
  21.        of the XIE protocol. In addition, _x_i_e_p_e_r_f provides  a  set
  22.        of  tests  which can be used to validate the detection and
  23.        transmission of XIE protocol request errors, such as  Flo-
  24.        Match, FloValue, and so forth. Finally, _x_i_e_p_e_r_f provides a
  25.        customizable demonstration program for XIE.
  26.  
  27.        A test is made up of three components executed in sequence
  28.        -  an initialization function, a test function, and an end
  29.        function. The initialization function is     responsible  for
  30.        allocating  and    populating  test  resources, such as pho-
  31.        tomaps and LUTs, and for creating a stored photoflo  which
  32.        will  be executed by the test function. The test function,
  33.        in most cases, simply executes the stored photoflo  for    a
  34.        specified  number of repetitions.  The end function, which
  35.        is called following the test function, is  used    primarily
  36.        to  destroy  any non-cachable server resources used by the
  37.        test, and to free any memory which was  dynamically  allo-
  38.        cated by the client. Some tests, such as -modify1, -await,
  39.        -abort, and -redefine, perform additional steps within the
  40.        test function inner loop, as required by the element being
  41.        tested, or in an attempt to make the  test  more     visually
  42.        appealing.
  43.  
  44.        Evaluating  the    performance of individual XIE elements is
  45.        not as simple as measuring Core X drawing times.     The  XIE
  46.        protocol requires elements to be embedded within photoflos
  47.        in order     to  be     exercised,   and  the    minimum     possible
  48.        photoflo     size is two.  This implies that it is impossible
  49.        to measure performance of a single element in isolation    -
  50.        the  time  it  takes  to run the flo depends on what other
  51.        elements exist in the flo.  Extrapolating performance of a
  52.        single  elment  (or technique) in a flo must be done care-
  53.        fully, on a case-by-case basis,    since in general measured
  54.        element    performance  depends  on  input     image size, data
  55.        type, and other factors,     all of which can  be  influenced
  56.        by  upstream  flo  elements.  Note further that the number
  57.        and type of elements in a flo can  be  influenced  by  the
  58.        visuals available on the display,  so even flo-flo compar-
  59.        isons on machines with different visuals must be done with
  60.        caution.
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. xieperf(1)                           xieperf(1)
  71.  
  72.  
  73.        Many  test labels contain an abbreviated pipeline descrip-
  74.        tion. For instance. IP/IL/P/ED  indicates  ImportPhotomap,
  75.        ImportLUT,  Point, and ExportDrawable. Pipelines ending in
  76.        ED (ExportDrawable) often include hidden elements such  as
  77.        BandExtract, ConvertToIndex, Dither, or Point to match the
  78.        flo output to the screen visual.     Pipelines ending  in  EP
  79.        (ExportPhotomap) will result in a blank window.
  80.  
  81.        _x_i_e_p_e_r_f    is  compatible with _x_1_1_p_e_r_f_c_o_m_p_(_1_)_, which is used
  82.        to compare the outputs of different  _x_i_e_p_e_r_f  and  _x_1_1_p_e_r_f
  83.        runs  in     a nice, tabular format. In _x_i_e_p_e_r_f you will need
  84.        to use the -labels option (see OPTIONS, below),    and  pro-
  85.        vide the resulting labels file to _x_1_1_p_e_r_f_c_o_m_p_(_1_) to obtain
  86.        correct output. See the _x_1_1_p_e_r_f_c_o_m_p_(_1_) man pages for  more
  87.        details on this.
  88.  
  89. OOPPTTIIOONNSS
  90.        _x_i_e_p_e_r_f accepts the options listed below:
  91.  
  92.        --ddiissppllaayy hhoosstt::ddppyy
  93.              Specifies which display to use.
  94.  
  95.        --iimmaaggeess _<_p_a_t_h_>
  96.              Normally,    _x_i_e_p_e_r_f     references  image  files
  97.              located in the directory  ``images'',  which
  98.              _x_i_e_p_e_r_f  assumes  is located in your current
  99.              directory. If the    ``images''  directory  is
  100.              not  in  your current directory, or the file
  101.              has been renamed, use this option to specify
  102.              its location.
  103.  
  104.        --ttiimmeeoouutt _<_s_>  Some tests require the reception of an event
  105.              such as FloNotify to continue, and may cause
  106.              _x_i_e_p_e_r_f  to  hang should these events not be
  107.              received. This option  allows  the     user  to
  108.              specify  a timeout value which, if exceeded,
  109.              will cause _x_i_e_p_e_r_f to give up waiting for an
  110.              event, and continue on with the next test in
  111.              sequence.    Should an event timeout, a  warn-
  112.              ing  message  will be printed to stderr. The
  113.              default timeout value is 60 seconds.
  114.  
  115.        --ssyynncc         Runs the tests in synchronous mode.
  116.  
  117.        --ssccrriipptt _<_f_i_l_e_>
  118.              Using this option gives the user the ability
  119.              to     run  a subset of the available tests and
  120.              control the number of times  the  tests  are
  121.              executed  on  an  individual  basis. This is
  122.              thought to be especially  useful  for  those
  123.              running  _x_i_e_p_e_r_f for demonstration purposes.
  124.              Using this option    causes    _x_i_e_p_e_r_f     to  read
  125.              commands specified in a script file, or from
  126.              stdin  if    _<_f_i_l_e_>    is   ``-''.   Tests   are
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. xieperf(1)                           xieperf(1)
  137.  
  138.  
  139.              specified    by newline-terminated input lines
  140.              of the form "command [-reps n ] [ -repeat    m
  141.              ]".   Characters following and including "#"
  142.              are treated as comments. See  the    -mkscript
  143.              option.
  144.  
  145.        --rreeppeeaatt _<_n_>   Repeats  each  test _n times (by default each
  146.              test is run 2 times).  This  option  may  be
  147.              used in script files also, in which case the
  148.              script file -repeat  overrides  the  command
  149.              line option.
  150.  
  151.        --ttiimmee _<_s_>     Specifies    how  long  in  seconds    each test
  152.              should be run (default 5 seconds).
  153.  
  154.        --ddeepptthh <<ddeepptthh>>
  155.              Use a visual with <depth> planes  per  pixel
  156.              (default is the default visual).
  157.  
  158.        --GGrraayySSccaallee    Use  a  GrayScale    visual    (default  is  the
  159.              default visual).
  160.  
  161.        --PPsseeuuddooCCoolloorr  Use a PseudoColor    visual    (default  is  the
  162.              default visual).
  163.  
  164.        --SSttaattiiccGGrraayy   Use  a  StaticGray     visual     (default  is the
  165.              default visual).
  166.  
  167.        --SSttaattiiccCCoolloorr  Use a StaticColor    visual    (default  is  the
  168.              default visual).
  169.  
  170.        --TTrruueeCCoolloorr    Use  a  TrueColor    visual    (default  is  the
  171.              default visual).
  172.  
  173.        --DDiirreeccttCCoolloorr  Use a DirectColor    visual    (default  is  the
  174.              default visual).
  175.  
  176.        --WWMMSSaaffee         If     _x_i_e_p_e_r_f  must be run in a window manager
  177.              environment, use this flag to  make  _x_i_e_p_e_r_f
  178.              aware  of    this.  If specified, _x_i_e_p_e_r_f will
  179.              create a window, identical to  the     size  of
  180.              the  root    window,     and  all further windows
  181.              created by _x_i_e_p_e_r_f will be     transient  popup
  182.              children  of  this     window.  If this flag is
  183.              omitted,  _x_i_e_p_e_r_f     will    set   the   over-
  184.              ride_redirect  attribute  of  all windows to
  185.              ``True'' and will also do evil  things  such
  186.              as     calling  XInstallColormap.   Using  this
  187.              option will  cause     the  window  manager  to
  188.              (hopefully) obey window geometry hints spec-
  189.              ified by _x_i_e_p_e_r_f
  190.  
  191.        --sshhoowwtteecchhss    Display a comprehensive list of  techniques,
  192.              by      category,   indicating   which  of  the
  193.  
  194.  
  195.  
  196. X Version 11           Release 6.1                3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. xieperf(1)                           xieperf(1)
  203.  
  204.  
  205.              techniques are supported by the XIE  server.
  206.  
  207.        --sshhoowwllaabbeellss   Print  test label to screen prior to calling
  208.              any of the test code. This allows    the  user
  209.              to     know which test is executing in case the
  210.              test hangs for some reason.
  211.  
  212.        --sshhoowweevveennttss   Be verbose     when  running    event  and  error
  213.              tests.  Also,  can be used to catch and dis-
  214.              play information  on  any    signals     received
  215.              during  execution    of _x_i_e_p_e_r_f that the error
  216.              events received by     _x_i_e_p_e_r_f  are  valid  the
  217.              first  time  the tests are executed on a new
  218.              platform.
  219.  
  220.        --eevveennttss         Run tests which test for event generation.
  221.  
  222.        --eerrrroorrss         Run tests which test for error event genera-
  223.              tion.
  224.  
  225.        --llooCCaall         Skip test calibration. This may be used when
  226.              running _x_i_e_p_e_r_f in situations  where  execu-
  227.              tion  timing  is  not  important.    Execution
  228.              times will not be reported by  _x_i_e_p_e_r_f  when
  229.              this  option  is  enabled.     The  inner  loop
  230.              repeat count,  additionally,  is  set  to    a
  231.              value  of    5  (but     can be overridden by the
  232.              -reps option).
  233.  
  234.        --aallll         Runs all  tests.  This  may  take    a  while,
  235.              depending    on the speed of your machine, and
  236.              its floating point capabilities. This option
  237.              is ignored if a script file is used.
  238.  
  239.        --tteessttss         Generate  a  list of the available tests for
  240.              the _x_i_e_p_e_r_f program. In _x_1_1_p_e_r_f , this  list
  241.              is     normally  displayed  in the usage state-
  242.              ment.  It    was  yanked  from  the    usage  of
  243.              _x_i_e_p_e_r_f because it was too lengthy.
  244.  
  245.        --mmkkssccrriipptt     Generate a script file suitable for use with
  246.              the script option. If -repeat or  -reps  are
  247.              also  specified,  they will be automatically
  248.              placed at the end of  each     command  in  the
  249.              script.  The  script is generated to stderr.
  250.              See the -script command, above.
  251.  
  252.        --ccaacchhee _<_n_>    Most test flos utilize a  photomap     resource
  253.              for  a  source.  A photomap cache of up to n
  254.              entries is controlled by  _x_i_e_p_e_r_f    to  avoid
  255.              having  to     constantly  reload  these images
  256.              during  test  initialization.   The  default
  257.              cache  size  is  4. If a value less than the
  258.              default is specified, the cache size will be
  259.  
  260.  
  261.  
  262. X Version 11           Release 6.1                4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. xieperf(1)                           xieperf(1)
  269.  
  270.  
  271.              set to the default.
  272.  
  273.        --llaabbeellss         Generates    just  the  descriptive labels for
  274.              each test specified. Use -all or  -range  to
  275.              specify   which   tests  are  included.  See
  276.              _x_1_1_p_e_r_f_c_o_m_p_(_1_) for more details.
  277.  
  278.        --DDIISS         Pretend we are running  _x_i_e_p_e_r_f  while  con-
  279.              nected  to a DIS-only capable implementation
  280.              of XIE. This will cause _x_i_e_p_e_r_f  to  execute
  281.              those tests which only use protocol requests
  282.              found in the DIS subset of XIE,  and  bypass
  283.              those  which  are    not  DIS  compatible.  If
  284.              _x_i_e_p_e_r_f detects a DIS  server,  it     will  do
  285.              this   automatically,  and     this  option  is
  286.              ignored.  Use -all or -range to specify  the
  287.              initial range of tests.
  288.  
  289.        --rraannggee _<_t_e_s_t_1_>[[,,_<_t_e_s_t_2_>]]
  290.              Runs  all the tests starting from the speci-
  291.              fied  name     _t_e_s_t_1    until  the  name   _t_e_s_t_2,
  292.              including    both  the  specified  tests. Some
  293.              tests, like the event and error tests,  also
  294.              require  the  -errors  or -events options to
  295.              specified.     This  option  is  ignored  if    a
  296.              script it used.
  297.  
  298.        --rreeppss _<_n_>     Fix  the  inner  loop repetitions to n. This
  299.              indicates how many time the photoflo will be
  300.              executed  each  time  the    test is run. This
  301.              option is overridden on a per-test basis  if
  302.              specified    in  a  script. Typically, _x_i_e_p_e_r_f
  303.              determines the ideal number of  reps  during
  304.              each test's calibration period.
  305.  
  306.        --IImmppoorrttOObbssccuurreeddEEvveenntt tthhrroouugghh --EExxppoorrttAAvvaaiillaabbllee
  307.              Test  generation of events. Requires -events
  308.              flag.
  309.  
  310.        --BBaaddVVaalluuee tthhrroouugghh --FFllooVVaalluueeEErrrroorr
  311.              Test generation of errors. Requires  -errors
  312.              flag.   --CCoolloorrLLiisstt     Create     and destroy Col-
  313.              orList resource test.
  314.  
  315.        --LLUUTT         Create and destroy LUT resource test.
  316.  
  317.        --PPhhoottoommaapp     Create and destroy Photomap resource test.
  318.  
  319.        --RROOII         Create and destroy ROI resource test.
  320.  
  321.        --PPhhoottoossppaaccee   Create and destroy Photospace test.
  322.  
  323.        --PPhhoottoofflloo     Create and destroy Photoflo test.
  324.  
  325.  
  326.  
  327.  
  328. X Version 11           Release 6.1                5
  329.  
  330.  
  331.  
  332.  
  333.  
  334. xieperf(1)                           xieperf(1)
  335.  
  336.  
  337.        --QQuueerryyPPhhoottoommaapp
  338.              Query Photomap resource test.
  339.  
  340.        --QQuueerryyCCoolloorrLLiisstt
  341.              Query ColorList resource test.
  342.  
  343.        --QQuueerryyTTeecchhnniiqquueessDDeeffaauulltt tthhrroouugghh --QQuueerryyTTeecchhnniiqquueessWWhhiitteeAAdd--
  344.              jjuusstt
  345.              Query  techniques as specified by test name.
  346.  
  347.        --QQuueerryyPPhhoottoofflloo
  348.              Query photoflo test.
  349.  
  350.        --PPuurrggeeCCoolloorrLLiisstt
  351.              PurgeColorList test.
  352.  
  353.        --AAbboorrtt         This  tests  creates  a  photoflo    which  is
  354.              started and blocks for data provided by Put-
  355.              ClientData(). Instead of sending  the  data,
  356.              the   test      uses    XieAbort()  to    stop  the
  357.              photoflo, and then     waits    for  PhotofloDone
  358.              event  to be send by the server. If the test
  359.              times out waiting for  the     event,     a  error
  360.              message is sent to stderr.
  361.  
  362.        --AAwwaaiitt         This  test creates a flo of the form Import-
  363.              ClientLUT -> ExportLUT, and starts     the  flo
  364.              executing.      _x_i_e_p_e_r_f  then     forks,     and  the
  365.              child process streams the LUT  data  to  the
  366.              flo  using     PutClientData,     while the parent
  367.              blocks in XieAwait. If the flo  successfully
  368.              finishes,    XieAwait  will return and the flo
  369.              state, after query, will  indicate     that  it
  370.              has completed. If XieAwait does not complete
  371.              naturally, or after return from XieAwait the
  372.              flo is still active, an error is reported to
  373.              stderr. Note, on a really slow  machine,  it
  374.              is possible that XieAwait will return before
  375.              the flo has a  chance  to    finish.     In  this
  376.              case,  use     the  -timeout option to increase
  377.              the timeout for this test.
  378.  
  379.        --iimmppoorrttcclliieennttlluutt11
  380.              ImportClientLUT -> ExportLUT test.
  381.  
  382.        --iimmppoorrttcclliieennttpphhoottoo11 tthhrroouugghh --iimmppoorrttcclliieennttpphhoottoo99
  383.              Flos  of  the  form   ImportClientPhoto   ->
  384.              ExportPhotomap  using  various  decode tech-
  385.              niques,    e.g.    G32D,     TIFF2,       Uncom-
  386.              pressedTriple, and so forth.
  387.  
  388.        --iimmppoorrttcclliieennttrrooii11
  389.              ImportClientROI with 10 rectangles.
  390.  
  391.  
  392.  
  393.  
  394. X Version 11           Release 6.1                6
  395.  
  396.  
  397.  
  398.  
  399.  
  400. xieperf(1)                           xieperf(1)
  401.  
  402.  
  403.        --iimmppoorrttcclliieennttrrooii22
  404.              ImportClientROI with 100 rectangles.
  405.  
  406.        --eennccooddeepphhoottoo11 tthhrroouugghh --eennccooddeepphhoottoo1144
  407.              Flos  of  the form ImportPhotomap -> Export-
  408.              Photomap using  various  encode  techniques,
  409.              e.g. G32D, TIFF2, UncompressedTriple, and so
  410.              forth.  Original encoding is shown     in  left
  411.              window,  image  after  encoding  is shown in
  412.              right window.
  413.  
  414.        --eennccooddeecclliieennttpphhoottoo11 tthhrroouugghh --eennccooddeecclliieennttpphhoottoo1111
  415.              Two flos, one of the form ImportPhotomap  ->
  416.              ExportClientPhoto, and the other of the form
  417.              ImportClientPhoto ->  ExportPhotomap,  where
  418.              ExportClientPhoto in the first flo uses var-
  419.              ious encode techniques,  e.g.  G32D,  TIFF2,
  420.              UncompressedTriple,  and so forth. The image
  421.              before encoding is     displayed  in    the  left
  422.              window,  while  the  right     window shows the
  423.              image which was encoded in the first flo and
  424.              read back in the second flo.
  425.  
  426.        --eexxppoorrttcclliieennttlluutt11
  427.              ExportClientLUT  test. LUT is displayed in a
  428.              histogram window.
  429.  
  430.        --eexxppoorrttcclliieennttrrooii11
  431.              ExportClientROI  test,  10     ROIs.    The  ROIs
  432.              which are sent to the server are represented
  433.              by the filled rectangles. The ROIs which are
  434.              received  back from the server by the client
  435.              are drawn as white bordered non-filled rect-
  436.              angles.   The  resulting  output illustrates
  437.              how the server combined the rectangles  sent
  438.              to it.
  439.  
  440.        --eexxppoorrttcclliieennttrrooii22
  441.              Same  as  exportclientroi1, except using 100
  442.              rectangles.
  443.  
  444.        --eexxppoorrttcclliieenntthhiissttooggrraamm11 tthhrroouugghh --eexxppoorrttcclliieenntthhiissttooggrraamm44
  445.              ExportClientHistogram  tests  using  various
  446.              images. The histogram is displayed in a win-
  447.              dow which overlaps the image.
  448.  
  449.        --eexxppoorrttcclliieenntthhiissttooggrraammrrooii11 tthhrroouugghh --eexxppoorrttcclliieenntthhiissttooggrraamm--
  450.              rrooii44
  451.              Same  as the ExportClientHistogram test, but
  452.              using a ROI to identify the area  of  inter-
  453.              est.
  454.  
  455.        --eexxppoorrttcclliieenntthhiissttooggrraammccppllaannee11   tthhrroouugghh    --eexxppoorrttcclliieenntthhiiss--
  456.              ttooggrraammcc-- ppllaannee44
  457.  
  458.  
  459.  
  460. X Version 11           Release 6.1                7
  461.  
  462.  
  463.  
  464.  
  465.  
  466. xieperf(1)                           xieperf(1)
  467.  
  468.  
  469.              Same  as the ExportClientHistogram test, but
  470.              using a Control Plane to identify    the  area
  471.              of interest.
  472.  
  473.        --iimmppoorrttlluutt11   Test ImportLUT element, LUT size is 256.
  474.  
  475.        --iimmppoorrttpphhoottoo11 ImportPhotomap   ->   ExportPhotomap,   with
  476.              source and destination equal.
  477.  
  478.        --iimmppoorrttpphhoottoo22 ImportPhotomap  ->     ExportDrawable,   window
  479.              destination.
  480.  
  481.        --iimmppoorrttrrooii11   ImportROI     ->   ExportROI,  10  rectangles,
  482.              source and destination ROIs equal.
  483.  
  484.        --iimmppoorrttrrooii22   ImportROI    ->  ExportROI,    100   rectangles,
  485.              source and destination ROIs equal.
  486.  
  487.        --iimmppoorrttddrraawwaabbllee11
  488.              ImportDrawable  -> ExportDrawable, Source is
  489.              pixmap, destination is window.
  490.  
  491.        --iimmppoorrttddrraawwaabbllee22
  492.              ImportDrawable -> ExportDrawable, Source and
  493.              destination is window.
  494.  
  495.        --iimmppoorrttddrraawwaabbllee33
  496.              ImportDrawable  ->     ExportDrawable, Destina-
  497.              tion window obscured by source window.
  498.  
  499.        --iimmppoorrttddrraawwaabbllee44
  500.              ImportDrawable  ->     ExportDrawable,   Source
  501.              window obscured by destination window.
  502.  
  503.        --iimmppoorrttddrraawwaabbllee55
  504.              ImportDrawablePlane  -> ExportDrawablePlane,
  505.              pixmap, source = destination.
  506.  
  507.        --iimmppoorrttddrraawwaabbllee66
  508.              ImportDrawablePlane ->  ExportDrawablePlane,
  509.              window, source = destination.
  510.  
  511.        --iimmppoorrttddrraawwaabbllee77
  512.              ImportDrawablePlane  -> ExportDrawablePlane,
  513.              window, source obscures destination.
  514.  
  515.        --iimmppoorrttddrraawwaabbllee88
  516.              ImportDrawablePlane ->  ExportDrawablePlane,
  517.              window, destination obscures source.
  518.  
  519.        --ccoonnssttrraaiinn11   Constrain    HardClip technique test, drawable
  520.              destination.
  521.  
  522.        --ccoonnssttrraaiinn22   Constrain ClipScale technique test, drawable
  523.  
  524.  
  525.  
  526. X Version 11           Release 6.1                8
  527.  
  528.  
  529.  
  530.  
  531.  
  532. xieperf(1)                           xieperf(1)
  533.  
  534.  
  535.              destination.
  536.  
  537.        --ccoonnssttrraaiinnpphhoottoo11
  538.              Constrain    HardClip technique test, photomap
  539.              destination.
  540.  
  541.        --ccoonnssttrraaiinnpphhoottoo22
  542.              Constrain ClipScale technique test, photomap
  543.              destination.
  544.  
  545.        --ccoonnvvoollvvee11    Boxcar  3x3  convolution  test. Smoothing or
  546.              lowpass filter.
  547.  
  548.        --ccoonnvvoollvvee22    Boxcar 5x5 convolution  test.  Smoothing  or
  549.              lowpass filter.
  550.  
  551.        --ccoonnvvoollvvee33    LaPlacian    3x3  convolution  test.     Edge  or
  552.              highpass filter.
  553.  
  554.        --ccoonnvvoollvvee44    LaPlacian    5x5  convolution  test.     Edge  or
  555.              highpass filter.
  556.  
  557.        --ccoonnvvoollvveerrooii11 LaPlacian 3x3 convolution test, with ROI.
  558.  
  559.        --ccoonnvvoollvveerrooii22 LaPlacian 5x5 convolution test, with ROI.
  560.  
  561.        --ccoonnvvoollvveeccppllaannee11
  562.              LaPlacian 3x3 convolution test, with Control
  563.              Plane.
  564.  
  565.        --ccoonnvvoollvveeccppllaannee22
  566.              LaPlacian 5x5 convolution test, with Control
  567.              Plane.
  568.  
  569.        --mmaatthh11 tthhrroouugghh --mmaatthhccppllaannee77
  570.              Various  tests  which exercise the Math ele-
  571.              ment, some     tests    using  ROIs  and  control
  572.              planes.
  573.  
  574.        --aarriitthhmmeettiiccddyyaaddiicc11 tthhrroouugghh --aarriitthhmmeettiiccddyyaaddiicc55
  575.              Arithmetic element tests, using photomaps as
  576.              the operands.
  577.  
  578.        --aarriitthhmmeettiiccmmoonnaaddiicc11 tthhrroouugghh --aarriitthhmmeettiiccmmoonnaaddiicc99
  579.              Arithmetic element tests, photomap and  con-
  580.              stant operands.
  581.  
  582.        --aarriitthhmmeettiiccddyyaaddiiccrrooii11 tthhrroouugghh --aarriitthhmmeettiiccddyyaaddiiccrrooii55
  583.              Arithmetic element tests, using photomaps as
  584.              the operands, with ROIs.
  585.  
  586.        --aarriitthhmmeettiiccmmoonnaaddiiccrrooii11 tthhrroouugghh --aarriitthhmmeettiiccmmoonnaaddiiccrrooii99
  587.              Arithmetic element tests, photomap and  con-
  588.              stant operands, with ROIs.
  589.  
  590.  
  591.  
  592. X Version 11           Release 6.1                9
  593.  
  594.  
  595.  
  596.  
  597.  
  598. xieperf(1)                           xieperf(1)
  599.  
  600.  
  601.        --aarriitthhmmeettiiccddyyaaddiiccccppllaannee11 tthhrroouugghh --aarriitthhmmeettiiccddyyaaddiiccccppllaannee55
  602.              Arithmetic element tests, using photomaps as
  603.              the operands, with Control Planes.
  604.  
  605.        --aarriitthhmmeettiiccmmoonnaaddiiccccppllaannee11 tthhrroouugghh --aarriitthhmmeettiiccmmoonnaaddiicccc--
  606.              ppllaannee99
  607.              Arithmetic     element tests, photomap and con-
  608.              stant operands, with Control Planes.
  609.  
  610.        --aarriitthhmmeettiiccffllooaattddyyaaddiicc11 tthhoouugghh --aarriitthhmmeettiiccffllooaattddyyaaddiicc55
  611.              Arithmetic element tests, using photomaps as
  612.              the operands, unconstrained.
  613.  
  614.        --aarriitthhmmeettiiccffllooaattmmoonnaaddiicc11 tthhoouugghh --aarriitthhmmeettiiccffllooaattmmoonnaaddiicc99
  615.              Arithmetic     element tests, photomap and con-
  616.              stant operands, unconstrained.
  617.  
  618.        --aarriitthhmmeettiiccrrooiiffllooaattddyyaaddiicc11 ttoo --aarriitthhmmeettiiccrrooiiffllooaattddyyaaddiicc55
  619.              Arithmetic element tests, photomaps  as  the
  620.              operands, ROIs, unconstrained.
  621.  
  622.        --aarriitthhmmeettiiccrrooiiffllooaattmmoonnaaddiicc11 ttoo --......rriitthhmmeettiiccrrooiiffllooaatt--
  623.              mmoonnaaddiicc99
  624.              Arithmetic element tests, photomap and  con-
  625.              stant operands, ROIs, unconstrained.
  626.  
  627.        --bbaanndd11         BandSelect     element  test.     Image    input  is
  628.              triple band. If visual of _x_i_e_p_e_r_f window  is
  629.              a    color  visual, then three BandSelect ele-
  630.              ments are used  to     extract  the  indivudual
  631.              bands,  they  are    combined once again using
  632.              BandCombine, and  displayed  using     Convert-
  633.              ToIndex.  If  the    visual is not color, e.g.
  634.              GrayScale or StaticGray, then the flo simply
  635.              uses  one    BandSelect  element  to extract a
  636.              single band for display.
  637.  
  638.        --bbaanndd22         BandCombine test. Input bands are made of of
  639.              three  separate single band photomaps. These
  640.              are combined using     a  BandCombine     element,
  641.              which  is    followed  by  a     BandExtract  and
  642.              ExportDrawable. CCIR 601-1 coefficients.
  643.  
  644.        --bbaanndd33         BandExtract test. Input  is  a  triple  band
  645.              photomap. CCIR 601-1 coefficients.     Destina-
  646.              tion window colormap is gray ramp.
  647.  
  648.        --bbaanndd44         BandExtract test. Input  is  a  triple  band
  649.              photomap. CCIR 601-1 coefficients.     Destina-
  650.              tion window colormap is  RGB_BEST_MAP  stan-
  651.              dard colormap.
  652.  
  653.        --bbaanndd55         BandExtract  test.     Input    is  a triple band
  654.              photomap.      CCIR      601-1        coefficients.
  655.  
  656.  
  657.  
  658. X Version 11           Release 6.1                   10
  659.  
  660.  
  661.  
  662.  
  663.  
  664. xieperf(1)                           xieperf(1)
  665.  
  666.  
  667.              Destination      window      colormap     is
  668.              RGB_DEFAULT_MAP standard colormap.
  669.  
  670.        --ccoommppaarreeddyyaaddiicc11 tthhrroouugghh --ccoommppaarreeddyyaaddiicc66
  671.              Test various Compare operators  with  dyadic
  672.              photomap operands.
  673.  
  674.        --ccoommppaarreemmoonnaaddiicc11 tthhrroouugghh --ccoommppaarreemmoonnaaddiicc66
  675.              Test  various  compare  operators    with pho-
  676.              tomap, constant operands.
  677.  
  678.        --ccoommppaarreerrooiiddyyaaddiicc11 tthhrroouugghh --ccoommppaarreerrooiiddyyaaddiicc66
  679.              Test various Compare operators  with  dyadic
  680.              photomap operands, using ROIs.
  681.  
  682.        --ccoommppaarreerrooiimmoonnaaddiicc11 tthhrroouugghh --ccoommppaarreerrooiimmoonnaaddiicc66
  683.              Test  various  compare  operators    with pho-
  684.              tomap, constant operands, using ROIs.
  685.  
  686.        --ccoommppaarreeccppllaanneeddyyaaddiicc11 tthhrroouugghh --ccoommppaarreeccppllaanneeddyyaaddiicc66
  687.              Test various Compare operators  with  dyadic
  688.              photomap operands, Control Planes.
  689.  
  690.        --ccoommppaarreeccppllaanneemmoonnaaddiicc11 tthhrroouugghh --ccoommppaarreeccppllaanneemmoonnaaddiicc66
  691.              Test  various  compare  operators    with pho-
  692.              tomap, constant operands, Control Planes.
  693.  
  694.        --mmaattcchhhhiissttooggrraamm11 tthhrroouugghh --mmaattcchhhhiissttooggrraamm1188
  695.              MatchHistogram element tests, using  various
  696.              images and histogram matching techniques.
  697.  
  698.        --mmaattcchhhhiissttooggrraammrrooii11 tthhrroouugghh --mmaattcchhhhiissttooggrraammrrooii66
  699.              A selection of MatchHistogram element tests,
  700.              with ROIs.
  701.  
  702.        --mmaattcchhhhiissttooggrraammccppllaannee11 tthhrroouugghh --mmaattcchhhhiissttooggrraammccppllaannee66
  703.              A selection of MatchHistogram element tests,
  704.              with Control Planes.
  705.  
  706.        --uunnccoonnssttrraaiinn11 ImportPhotomap,       Unconstrain,         Con-
  707.              strain(ClipScale), ExportDrawable test.
  708.  
  709.        --ppaasstteeuupp11 tthhrroouugghh --ppaasstteeuupp22
  710.              PasteUp element tests.
  711.  
  712.        --ggeeoommeettrryy11 tthhrroouugghh --ggeeoommeettrryy1144
  713.              Geometry element tests, including rotations,
  714.              scales,   and   mirroring.      NearestNeighbor
  715.              technique.
  716.  
  717.        --ggeeoommeettrryy1155 tthhrroouugghh --ggeeoommeettrryy2288
  718.              Geometry element tests, including rotations,
  719.              scales, and mirroring.  AntiAlias technique.
  720.  
  721.  
  722.  
  723.  
  724. X Version 11           Release 6.1                   11
  725.  
  726.  
  727.  
  728.  
  729.  
  730. xieperf(1)                           xieperf(1)
  731.  
  732.  
  733.        --ggeeoommeettrryy2299 tthhrroouugghh --ggeeoommeettrryy4422
  734.              Geometry element tests, including rotations,
  735.              scales,  and  mirroring.  BilinearInterpola-
  736.              tion technique.
  737.  
  738.        --ggeeoommgg3311ddssccaallee11 tthhrroouugghh --ggeeoommeettrryyffaaxxrraaddiioo11
  739.              Tests to exercise the various  FAX     decoders
  740.              and the Geometry element.
  741.  
  742.        --ddiitthheerr11         Dither  test,  ErrorDiffusion  dither  tech-
  743.              nique, ExportDrawable.
  744.  
  745.        --ddiitthheerr22         Dither  test,  ErrorDiffusion  dither  tech-
  746.              nique, ExportDrawablePlane.
  747.  
  748.        --ddiitthheerr33         Dither  test,  Ordered(4)    dither technique,
  749.              ExportDrawable.
  750.  
  751.        --ddiitthheerr44         Dither test,  Ordered(4)  dither  technique,
  752.              ExportDrawablePlane.
  753.  
  754.        --ddiitthheerr55         Dither  test,  Ordered(8)    dither technique,
  755.              ExportDrawable.
  756.  
  757.        --ddiitthheerr66         Dither test,  Ordered(8)  dither  technique,
  758.              ExportDrawablePlane.
  759.  
  760.        --ddiitthheerr77         Dither   test,   Default  dither  technique,
  761.              ExportDrawable.
  762.  
  763.        --ddiitthheerr88         Dither  test,  Default   dither   technique,
  764.              ExportDrawablePlane.
  765.  
  766.        --llooggiiccaallmmoonnaaddiicc11 tthhrroouugghh --llooggiiccaallmmoonnaaddiicc1166
  767.              Logical  element, photomap and a constant of
  768.              0 as operands, various operators.
  769.  
  770.        --llooggiiccaallddyyaaddiicc11 tthhrroouugghh --llooggiiccaallddyyaaddiicc1166
  771.              Logical element tests, dyadic  photomaps  as
  772.              operands, various operators.
  773.  
  774.        --llooggiiccaallmmoonnaaddiiccrrooii11 tthhrroouugghh --llooggiiccaallmmoonnaaddiiccrrooii1166
  775.              Logical  element, photomap and constant of 0
  776.              operands, various operators, ROIs.
  777.  
  778.        --llooggiiccaallddyyaaddiiccrrooii11 tthhrroouugghh --llooggiiccaallddyyaaddiiccrrooii1166
  779.              Logical   element,      dyadic   photomaps   as
  780.              operands, various operators, ROIs.
  781.  
  782.        --llooggiiccaallmmoonnaaddiiccccppllaannee11 tthhrroouugghh --llooggiiccaallmmoonnaaddiiccccppllaannee1166
  783.              Logical  element, photomap and constant of 0
  784.              operands, various operators, Control Planes.
  785.  
  786.  
  787.  
  788.  
  789.  
  790. X Version 11           Release 6.1                   12
  791.  
  792.  
  793.  
  794.  
  795.  
  796. xieperf(1)                           xieperf(1)
  797.  
  798.  
  799.        --llooggiiccaallddyyaaddiiccccppllaannee11 tthhrroouugghh --llooggiiccaallddyyaaddiiccccppllaannee1166
  800.              Logical   element,      dyadic   photomaps   as
  801.              operands, various operators, Control Planes.
  802.  
  803.        --bblleenndd11         Blend  element  test.  Monadic  source,  0.1
  804.              source constant. Alpha constant of 0.5.
  805.  
  806.        --bblleenndd22         Blend element test.  Dyadic  sources.  Alpha
  807.              constant of 0.5.
  808.  
  809.        --bblleennddrrooii11    Blend  test. Monadic source, 0.1 source con-
  810.              stant. Alpha constant of 0.5. ROIs.
  811.  
  812.        --bblleennddrrooii22    Blend element test.  Dyadic  sources.  Alpha
  813.              constant of 0.5. Uses ROIs.
  814.  
  815.        --bblleennddccppllaannee11 Blend  test. Monadic source, 0.1 source con-
  816.              stant. Alpha constant of 0.5. Control Plane.
  817.  
  818.        --bblleennddccppllaannee22 Blend  element  test.  Dyadic sources. Alpha
  819.              constant of 0.5. Control Plane.
  820.  
  821.        --bblleennddaallpphhaa11  Blend test. Monadic source, 220 source  con-
  822.              stant. Alpha plane is a photomap.
  823.  
  824.        --bblleennddaallpphhaa22  Blend test. Dyadic sources. Alpha plane is a
  825.              constant 220.
  826.  
  827.        --bblleennddaallpphhaarrooii11
  828.              Blend test. Monadic source, 220 source  con-
  829.              stant. Alpha plane photomap. ROIs.
  830.  
  831.        --bblleennddaallpphhaarrooii22
  832.              Blend test. Dyadic sources. Alpha plane is a
  833.              constant 220. ROIs.
  834.  
  835.        --ttrriipplleeppooiinntt11 tthhrroouugghh --ttrriipplleeppooiinntt22
  836.              Illustrate use of point  and  Standard  col-
  837.              ormaps for rendering triple band images.
  838.  
  839.        --ffuunnnnyyeennccooddee11 tthhrroouugghh --ffuunnnnyyeennccooddee88
  840.              These  tests  are    design to perform limited
  841.              exercising of XIE's  capability  of  dealing
  842.              with  various  encodings of flo source data.
  843.              The test init function  obtains  a     photomap
  844.              using  ICP     ->  EP.  A series of independent
  845.              permanent flo pairs, one of the form  IP  ->
  846.              EP,  and  the  other of the basic form IP ->
  847.              ED, are constructed. The encoding parameters
  848.              for  the  ExportPhotomap (EP) element in the
  849.              first flo are derived from     test  configura-
  850.              tion.  The     number     of  flo pairs created is
  851.              also dependent upon test configuration.  The
  852.              tests  can     be  configured     so that the test
  853.  
  854.  
  855.  
  856. X Version 11           Release 6.1                   13
  857.  
  858.  
  859.  
  860.  
  861.  
  862. xieperf(1)                           xieperf(1)
  863.  
  864.  
  865.              init function will constrain the input  pho-
  866.              tomap  to a specified number of levels, on a
  867.              per-band basis, so that word-sized and quad-
  868.              sized  pixels  are     passed through the flos.
  869.              Some tests below take advantage of this. See
  870.              tests.c for test configuration, and hints on
  871.              how to add similar tests.
  872.  
  873.        --ppooiinntt11 tthhrroouugghh --ppooiinntt33
  874.              Simple Point element tests. Drawable  desti-
  875.              nation.   --ppooiinnttrrooii11  Simple  Point  element
  876.              test which uses ROIs. Drawable  destination.
  877.  
  878.        --ppooiinnttccppllaannee11 Simple  Point element test which uses a Con-
  879.              trol Plane. Drawable destination.
  880.  
  881.        --ppooiinnttpphhoottoo11  Simple Point element test. Photomap destina-
  882.              tion.
  883.  
  884.        --ppooiinnttrrooiipphhoottoo11
  885.              Simple Point element test which uses a ROIs.
  886.              Photomap destination.
  887.  
  888.        --ppooiinnttccppllaanneepphhoottoo11
  889.              Simple Point element test which uses a  Con-
  890.              trol Plane. Photomap destination.
  891.  
  892.        --rreeddeeffiinnee     Two flographs are created which are the same
  893.              in structure, expect for the x and y offsets
  894.              specified    for  the  ExportDrawable flo ele-
  895.              ments. The     test  init  function  creates    a
  896.              photoflo  based  upon  one     of  the two flo-
  897.              graphs.  The inner loop of the test function
  898.              uses   XieRedefinePhotoflo()   to    alternate
  899.              between each of  the  flographs.  Make  sure
  900.              that  your     ineer loop reps are 2 or greater
  901.              in order to exercise this    test  fully  (see
  902.              -reps).
  903.  
  904.        --mmooddiiffyy11         Test  XieModifyPhotoflo() by adjust ROI off-
  905.              sets and size.
  906.  
  907.        --mmooddiiffyy22         Test XieModifyPhotoflo() by changing the LUT
  908.              input to a Point element.
  909.  
  910.        --mmooddiiffyy33         Test XieModifyPhotoflo() by changing Export-
  911.              Drawable x and y offsets.
  912.  
  913.        --mmooddiiffyy44         This test    creates     a  rather  long  flo  of
  914.              arithmetic elements, each which does nothing
  915.              more than add 1 to a small image.    The  test
  916.              init function scales the input photomap. The
  917.              ExportDrawable x and y  offset  is     modified
  918.              randomly  during  each iteration of the test
  919.  
  920.  
  921.  
  922. X Version 11           Release 6.1                   14
  923.  
  924.  
  925.  
  926.  
  927.  
  928. xieperf(1)                           xieperf(1)
  929.  
  930.  
  931.              function inner loop.
  932.  
  933.        --mmooddiiffyy55         This test    creates     a  rather  long  flo  of
  934.              arithmetic elements, each which does nothing
  935.              more than add 1 to a large image.    Each rep,
  936.              the  Geometry and ExportDrawable elements at
  937.              the end of the flo are  modifed  to  crop    a
  938.              small  piece of the input into its appropri-
  939.              ate place in the larger image.
  940.  
  941.        --rrggbb11 tthhrroouugghh --rrggbb1166
  942.              These tests all  basically     take  an  Uncom-
  943.              pressedTriple  image  as  input,  send it to
  944.              ConvertFromRGB which converts the    image  to
  945.              some  configured  colorspace,  and then send
  946.              the converted image on to ConvertToRGB prior
  947.              to     display. The original image is displayed
  948.              in the lefthand window, and the image  which
  949.              has  passed  through the flo is shown in the
  950.              righthand window. The goal of these test  is
  951.              to     show that ConvertFromRGB -> ConvertToRGB
  952.              is lossless.
  953.  
  954.        --ccoonnvveerrttttooiinnddeexxppiixxeell
  955.              ConvertToIndex test, TripleBand BandByPixel.
  956.  
  957.        --ccoonnvveerrttttooiinnddeexxppllaannee
  958.              ConvertToIndex test, TripleBand BandByPlane.
  959.  
  960.        --ccoonnvveerrttffrroommiinnddeexx
  961.              The test init function uses a flo containing
  962.              ConvertToIndex  to     display  an image in the
  963.              left window. The  test  function  uses  this
  964.              drawable  as  input to a flo which does Con-
  965.              vertFromIndex ->  ConvertToIndex  and  sends
  966.              the resulting image to the right window. The
  967.              result should be lossless.
  968.  
  969.        --ccoommpplleexx         A somewhat     large    flo  which  uses  control
  970.              planes,  LUTs, Point, PasteUp, Logical, Con-
  971.              strain,  Dither,  Geometry,  MatchHistogram,
  972.              BandCombine,  and    BandSelect  elements. See
  973.              the Postscript  file  ''complex.ps''  for    a
  974.              rendition of the photoflo which is executed.
  975.  
  976. XX DDEEFFAAUULLTTSS
  977.        There are no X defaults used by this program.
  978.  
  979. SSEEEE AALLSSOO
  980.        X(1), x11perf(1), x11perfcomp(1)
  981.  
  982. BBUUGGSS
  983.        There should be a IMAGES environment variable  to  augment
  984.        the -images option.
  985.  
  986.  
  987.  
  988. X Version 11           Release 6.1                   15
  989.  
  990.  
  991.  
  992.  
  993.  
  994. xieperf(1)                           xieperf(1)
  995.  
  996.  
  997.        Many  tests  only  scratch  the    surface     of possible test
  998.        cases.  Some of the options available for certain flo ele-
  999.        ments  are  either  inadequately     tested, or ignored alto-
  1000.        gether.    There are insufficent tests  for  bitonal,  large
  1001.        pixel, or triple band tests.
  1002.  
  1003.        Some  of     the  test  names  are inconsistently cased, e.g.
  1004.        -Abort and -dither1.
  1005.  
  1006.        Some tests are hopelessly slow when run    against     machines
  1007.        with slow FPUs.
  1008.  
  1009.        Bitonal    images    are for the most part displayed using the
  1010.        ExportDrawable flo element,  however,  ExportDrawablePlane
  1011.        would be a better choice.
  1012.  
  1013. AAUUTTHHOORR
  1014.        Syd Logan, AGE Logic, Inc.
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054. X Version 11           Release 6.1                   16
  1055.  
  1056.  
  1057.