parameters: (func)
return_statement: return [h, n]
docstring: Generate a 'unique' key for a pixel function.  The key is based on
  	the parameters written in the command packet.  This includes any
  	padding that might be added for the original function and the 'NULL
  	image' flag.
docstring_summary: Generate a 'unique' key for a pixel function.  The key is based on
  	the parameters written in the command packet.  This includes any
  	padding that might be added for the original function and the 'NULL
  	image' flag.
docstring_tokens: Generate a unique key for a pixel function . The key is based on the parameters written in the command packet . This includes any padding that might be added for the original function and the NULL image flag .
function: def hash_pixel_function(func):
  	"""Generate a 'unique' key for a pixel function.  The key is based on
  	the parameters written in the command packet.  This includes any
  	padding that might be added for the original function and the 'NULL
  	image' flag."""
  
  
  	h = ""
  	hash_pre = ""
  	hash_suf = ""
  	for param in func.parameterIterateGlxSend():
  		if param.is_image():
  			[dim, junk, junk, junk, junk] = param.get_dimensions()
  
  			d = (dim + 1) & ~1
  			hash_pre = "%uD%uD_" % (d - 1, d)
  
  			if param.img_null_flag:
  				hash_suf = "_NF"
  
  		h += "%u" % (param.size())
  
  		if func.pad_after(param):
  			h += "4"
  
  
  	n = func.name.replace("%uD" % (dim), "")
  	n = "__glx_%s_%uD%uD" % (n, d - 1, d)
  
  	h = hash_pre + h + hash_suf
  	return [h, n]
function_tokens: def hash_pixel_function ( func ) : h = "" hash_pre = "" hash_suf = "" for param in func . parameterIterateGlxSend ( ) : if param . is_image ( ) : [ dim , junk , junk , junk , junk ] = param . get_dimensions ( ) d = ( dim + 1 ) & ~ 1 hash_pre = "%uD%uD_" % ( d - 1 , d ) if param . img_null_flag : hash_suf = "_NF" h += "%u" % ( param . size ( ) ) if func . pad_after ( param ) : h += "4" n = func . name . replace ( "%uD" % ( dim ) , "" ) n = "__glx_%s_%uD%uD" % ( n , d - 1 , d ) h = hash_pre + h + hash_suf return [ h , n ]