home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / demos / gpc / brf_prt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-17  |  8.0 KB  |  226 lines

  1. /* $XConsortium: brf_prt.h,v 5.4 91/06/17 19:52:08 rws Exp $ */
  2.  
  3. /*
  4.  */
  5.  
  6. /***********************************************************
  7. Copyright 1989, 1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
  8.  
  9.                         All Rights Reserved
  10.  
  11. Permission to use, copy, modify, and distribute this software and its
  12. documentation for any purpose and without fee is hereby granted,
  13. provided that the above copyright notice appear in all copies and that
  14. both that copyright notice and this permission notice appear in
  15. supporting documentation, and that the names of Sun Microsystems,
  16. the X Consortium, and MIT not be used in advertising or publicity
  17. pertaining to distribution of the software without specific, written
  18. prior permission.
  19.  
  20. SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  21. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
  22. SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
  23. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  25. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  26. SOFTWARE.
  27.  
  28. ******************************************************************/
  29.  
  30. /*
  31.  * Copyright (c) 1989, 1990, 1991 by M.I.T. and Sun Microsystems, Inc.
  32.  */
  33.  
  34. /*--------------------------------------------------------------------*\
  35. |  Copyright (C) 1989, 1990, 1991, National Computer Graphics Association
  36. |
  37. |  Permission is granted to any individual or institution to use, copy, or
  38. |  redistribute this software so long as it is not sold for profit, provided
  39. |  this copyright notice is retained.
  40. |
  41. |                         Developed for the
  42. |                National Computer Graphics Association
  43. |                         2722 Merrilee Drive
  44. |                         Fairfax, VA  22031
  45. |                           (703) 698-9600
  46. |
  47. |                                by
  48. |                 SimGraphics Engineering Corporation
  49. |                    1137 Huntington Drive  Unit A
  50. |                      South Pasadena, CA  91030
  51. |                           (213) 255-0900
  52. |---------------------------------------------------------------------
  53. |
  54. | Author        :    Norman D. Evangelista
  55. |
  56. | File          :    brf_prt.h
  57. | Date          :    Tue Jul  4 14:08:02 PDT 1989
  58. | Project       :    BIF Benchmark Report Format
  59. | Description   :    Definitions and constants for report generation
  60. | Status        :    Version 1.0
  61. |
  62. | Revisions     :
  63. |
  64. |       2/90            MFC Tektronix, Inc.: PEX-SI API implementation.
  65. |
  66. |      12/90            MFC Tektronix, Inc.: PEX-SI PEX5R1 Release.
  67. |
  68. \*--------------------------------------------------------------------*/
  69. #include <stdio.h>
  70. #include <sys/types.h>
  71.  
  72. #define N_TOCOLON    25
  73. #define N_TITLELINES    5
  74. #define N_HEADFILES    4
  75.  
  76. char *brf_title[] = 
  77. {
  78. "------------------------------------------------------------------------\n",
  79. "|          Graphics Performance Characterization Committee             |\n",
  80. "|                Standard Graphics System Benchmarks                   |\n",
  81. "|----------------------------------------------------------------------|\n",
  82. "| Date                    :                                            |\n",
  83. NULL
  84. };
  85.  
  86. char *brf_beninfo[] = 
  87. {
  88. "|                                                                      |\n",
  89. "|----------------------------------------------------------------------|\n",
  90. "|   Benchmark Information                                              |\n",
  91. "|----------------------------------------------------------------------|\n",
  92. "| Benchmark Title         :   Level 2: Picture Level Benchmark         |\n",
  93. "| Benchmark Version       :   1.00                                     |\n",
  94. "| Benchmark Date          :   Mon Jul  3 18:43:54 PDT 1989             |\n",
  95. "| Benchmark Authors       :   SimGraphics Engineering Corporation      |\n",
  96. "|                                                                      |\n",
  97. NULL
  98. };
  99.  
  100. char *brf_impinfo[] = 
  101. {
  102. "|----------------------------------------------------------------------|\n",
  103. "|   Implementation Information                                         |\n",
  104. "|----------------------------------------------------------------------|\n",
  105. "| Implementation Title    :   PEX-SI API Port                          |\n",
  106. "| Implementation Version  :   1.20                                     |\n",
  107. "| Implementation Date     :   Mon Nov  5 08:45:00 PDT 1990             |\n",
  108. "| Implementation Authors  :   Tektronix, Inc                           |\n",
  109. "|                                                                      |\n",
  110. "| Graphics Library        :   PEX c-binding PHIGS/PHIGS+               |\n",
  111. "| Graphics Library Version:   PEX5R1                                   |\n",
  112. "|                                                                      |\n",
  113. NULL
  114. };
  115.  
  116. #ifdef EXTERNALNOTE
  117.     /* the figure for window size is hard wired into this
  118.     next block. In the case of the Alliant, the window always
  119.     opens to this size. To prevent a possible error, the window
  120.     should be locked against a user resize using the pesc() function.
  121.     The ultimate answer is to be able to read the window size and insert
  122.     it into this report. Size should be read just before
  123.     and just after the test loop. If there was any change in 
  124.     size or position (unlikely), then someone moved the window
  125.     and the test timing is invalid. */
  126. #endif
  127.  
  128. char _brf_sys[] =
  129. "|  System Make and Model  :   Unknown                                  |\n";
  130. char _brf_hdw[] =
  131. "|  Hardware Configuration :   Unknown                                  |\n";
  132. char _brf_os[] =
  133. "|  Operating System       :   Unknown                                  |\n";
  134. char _brf_ws[] =
  135. "|  Windowing System       :   Unknown                                  |\n";
  136. char _brf_wz[] =
  137. "|  PLB Window Size        :   Unknown                                  |\n";
  138. char _brf_sa[] =
  139. "|  Stopwatch Accuracy     :   Unknown                                  |\n";
  140.  
  141. char *brf_sysinfo[] = 
  142. {
  143. "|----------------------------------------------------------------------|\n",
  144. "|   System Configuration                                               |\n",
  145. "|----------------------------------------------------------------------|\n",
  146. _brf_sys,
  147. _brf_hdw,
  148. "|                                                                      |\n",
  149. "|                                                                      |\n",
  150. _brf_os,
  151. _brf_ws,
  152. _brf_wz,
  153. _brf_sa,
  154. "|                                                                      |\n",
  155. "------------------------------------------------------------------------\n",
  156. NULL
  157. };
  158.  
  159. char _brf_nf[] =
  160. "|  Number of Frames        :                                           |\n";
  161. char _brf_et[] =
  162. "|  Elapsed Time (sec)      :                                           |\n";
  163. char _brf_td[] =
  164. "|  Transport Delay         :                                           |\n";
  165. char _brf_fps[] =
  166. "|  Avg. Frames per Second  :                                           |\n";
  167. char _brf_tpf[] =
  168. "|  Avg. Time per Frame     :                                           |\n";
  169. char _brf_mm1[] =
  170. "|  Timing Merit Mthd 1     :                                           |\n";
  171. char _brf_mm2[] =
  172. "|  Timing Merit Mthd 2     :                                           |\n";
  173.  
  174. char *brf_timeinfo[] = 
  175. {
  176. "|----------------------------------------------------------------------|\n",
  177. "|   Test Loop Timing Information                                       |\n",
  178. "|----------------------------------------------------------------------|\n",
  179. _brf_nf,
  180. _brf_et,
  181. _brf_td,
  182. _brf_fps,
  183. _brf_tpf,
  184. _brf_mm1,
  185. _brf_mm2
  186. ,NULL
  187. };
  188.  
  189.  
  190. char *brf_exceptioninfo[] = 
  191. {
  192. "|----------------------------------------------------------------------|\n",
  193. "|   Global Exceptions Encountered\n",
  194. "|----------------------------------------------------------------------|\n"
  195. ,NULL
  196. };
  197.  
  198. #if 0 /* WORKING : to be deleted */
  199. char    *BRF_hedrFiles[] =
  200. {
  201.     "brf_title.b",
  202.     "brf_beninf.b",
  203.     "brf_impinf.b",
  204.     "brf_sysinf.b"
  205. };
  206. #endif
  207.  
  208. char    **BRF_hedrData[] =
  209. {
  210.     brf_title,
  211.     brf_beninfo,
  212.     brf_impinfo,
  213.     brf_sysinfo
  214. };
  215.  
  216. char    **BRF_timeData[] =
  217. {
  218.     brf_timeinfo
  219. };
  220.  
  221. char    *BRF_timeFiles[] =
  222. {
  223.     "brf_tmeinf.b"
  224. };
  225.  
  226.