home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Multimedia / k3d-setup-0.7.11.0.exe / lib / site-packages / OpenGL / raw / GL / EXT / 422_pixels.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.6 KB  |  39 lines

  1. '''OpenGL extension EXT.GL_422_pixels
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension provides support for converting 422 pixels in host
  6.     memory to 444 pixels as part of the pixel storage operation.
  7.     
  8.     The pixel unpack storage operation treats a 422 pixel as a 2 element
  9.     format where the first element is C (chrominance) and the second
  10.     element is L (luminance). Luminance is present on all pixels; a full
  11.     chrominance value requires two pixels.
  12.     
  13.     The pixel pack storage operation converts RGB to a 422 pixel defined as
  14.     a 2 element format where the first element stored is C (chrominance)
  15.     and the second element stored is L (luminance).  Luminance is present
  16.     on all pixels; a full chrominance value requires two pixels.
  17.     
  18.     Both averaging and non-averaging is supported for green and blue
  19.     assignments for pack and unpack operations.
  20.  
  21. The official definition of this extension is available here:
  22.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/GL_422_pixels.txt
  23.  
  24. Automatically generated by the get_gl_extensions script, do not edit!
  25. '''
  26. from OpenGL import platform, constants, constant, arrays
  27. from OpenGL import extensions
  28. from OpenGL.GL import glget
  29. import ctypes
  30. GL_422_EXT = constant.Constant( 'GL_422_EXT', 0x80CC )
  31. GL_422_REV_EXT = constant.Constant( 'GL_422_REV_EXT', 0x80CD )
  32. GL_422_AVERAGE_EXT = constant.Constant( 'GL_422_AVERAGE_EXT', 0x80CE )
  33. GL_422_REV_AVERAGE_EXT = constant.Constant( 'GL_422_REV_AVERAGE_EXT', 0x80CF )
  34.  
  35.  
  36. def glInit422PixelsEXT():
  37.     '''Return boolean indicating whether this extension is available'''
  38.     return extensions.hasGLExtension( 'GL_EXT_422_pixels' )
  39.