# HG changeset patch # User Peter Meerwald # Date 1210962256 -7200 # Node ID f34a444f035388a2a44521796652fe0e5e088af1 # Parent dd4db26f874e5dc297328eb31432b440d5d3c7cd missing global diff -r dd4db26f874e -r f34a444f0353 pydct/t4x4.py --- a/pydct/t4x4.py Fri May 16 17:42:17 2008 +0200 +++ b/pydct/t4x4.py Fri May 16 20:24:16 2008 +0200 @@ -29,13 +29,13 @@ Compute the approximate 4x4 DCT coefficients of an array as defined by H.264/AVC. ''' - + global _fc, _fct, _fe return numpy.dot(_fc, numpy.dot(b, _fct)) * _fe def idct4x4(b): ''' Compute the inverse 4x4 DCT of the array. ''' - + global _ic, _ict, _ie return numpy.dot(_ic, numpy.dot(b*_ie, _ict))