home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xibm.zip / mpel / mpel.h < prev    next >
C/C++ Source or Header  |  1990-06-09  |  3KB  |  91 lines

  1. /*
  2.  * Copyright IBM Corporation 1987,1988,1989
  3.  *
  4.  * All Rights Reserved
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software and its
  7.  * documentation for any purpose and without fee is hereby granted,
  8.  * provided that the above copyright notice appear in all copies and that 
  9.  * both that copyright notice and this permission notice appear in
  10.  * supporting documentation, and that the name of IBM not be
  11.  * used in advertising or publicity pertaining to distribution of the
  12.  * software without specific, written prior permission.
  13.  *
  14.  * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  15.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  16.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  17.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  18.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  19.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  20.  * SOFTWARE.
  21.  *
  22. */
  23. #ifndef MPEL_H_SEEN
  24. #define    MPEL_H_SEEN    1
  25. /***********************************************************
  26.         Copyright IBM Corporation 1987,1988
  27.  
  28.                       All Rights Reserved
  29.  
  30. Permission to use, copy, modify, and distribute this software and its
  31. documentation for any purpose and without fee is hereby granted,
  32. provided that the above copyright notice appear in all copies and that
  33. both that copyright notice and this permission notice appear in
  34. supporting documentation, and that the name of IBM not be
  35. used in advertising or publicity pertaining to distribution of the
  36. software without specific, written prior permission.
  37.  
  38. IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  39. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  40. IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  41. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  42. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  43. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  44. SOFTWARE.
  45.  
  46. ******************************************************************/
  47.  
  48. /* $Header: /afs/rel-eng.athena.mit.edu/project/x11r4/src/mit/server/ddx/ibm/mpel/RCS/mpel.h,v 1.2 90/06/09 02:13:49 jfc Exp $ */
  49. /* $Source: /afs/rel-eng.athena.mit.edu/project/x11r4/src/mit/server/ddx/ibm/mpel/RCS/mpel.h,v $ */
  50.  
  51. #if defined(RCS_HDRS) && !defined(lint)
  52. static char *rcsidmpel = "$Header: /afs/rel-eng.athena.mit.edu/project/x11r4/src/mit/server/ddx/ibm/mpel/RCS/mpel.h,v 1.2 90/06/09 02:13:49 jfc Exp $" ;
  53. #endif
  54.  
  55. /*
  56.  * definitions of mpel specific values
  57.  */
  58.  
  59. #define    MPEL_WIDTH    1024
  60. #define    MPEL_HEIGHT    1024
  61. #define    MPELMAXPLANES    8
  62. #define    MPEL_ALLPLANES    ( ~ ( (~0) << MPELMAXPLANES ) ) /* 0xFF */
  63.  
  64. /* The mpel is available with either the 4 or 8 bit versions of the video dac */
  65. #if !defined(DAC_MPEL16M)
  66. #define MPEL_BITS_PER_RGB    4
  67. #else
  68. #define MPEL_BITS_PER_RGB    8
  69. #endif
  70.  
  71. #define    MPEL_BLACK_PIXEL 0
  72. #define    MPEL_WHITE_PIXEL 1
  73.  
  74. /* stuff for mpel line trash */
  75. typedef struct {
  76.     unsigned short int mask ;
  77.     unsigned short int factor ;
  78. } mpelUserLineStyle ;
  79. typedef struct {
  80.     unsigned int LineType ;
  81.     mpelUserLineStyle LineStyle ;
  82. } mpelPrivGC, *mpelPrivGCPtr ;
  83. /* line styles */
  84. #define MPEL_SOLIDLINE        1
  85. #define MPEL_USERLINESTYLE    50
  86. #define MPEL_USERLINESTYLE_CONT    150
  87.  
  88. extern int mfbGCPrivateIndex ;
  89.  
  90. #endif /* ndef MPEL_H_SEEN */
  91.