Source

pygame / test / pixelcopy_test.py

Author Commit Message Labels Comments Date
cgohlke
Fix inconsistent indentation. Remove trailing whitespace
Lenard Lindstrom
fix problem in pixelcopy_test.py when neither NumPy nor Numeric are installed
Lenard Lindstrom
pixelcopy: completely disable unit tests until the problem with the automated build page is resolved.
Lenard Lindstrom
pixelcopy: disable unit tests until automated build problem is resolved
Lenard Lindstrom
remove redundant test_array_to_surface method
Lenard Lindstrom
add array broadcasting to surfarray.blit_surface (pixelcopy.array_to_surface). Also do small ALSA related fix to array examples
Lenard Lindstrom
Remove pixelcopy.make_surface stub function, as it is unnecessary. Fix Python 3 related problems in surfaca and pixelcopy unit tests.
Lenard Lindstrom
Surface.get_view('2') now returns a view for 24 bit surfaces. pixelcopy.map_surface now accepts 24 bit integers in target array. pixelcopy.map_surface properly handles 1 dimensional indices in source array. Color type exports array struct interface; can be used as map_surface source array.
Lenard Lindstrom
copy over changes to pixelcopy_test.py from surface_buffer branch
Lenard Lindstrom
add updates to surface.c, etc that were skipped in the merge with the surface_buffer branch
Lenard Lindstrom
Merge the surface_buffer branch back into trunk. 1) Rename module _arraysurfarray to pixelcopy, which implements array_to_surface (blit_surface), surface_to_array, and map_array. 2) Reimplement _numpysurfarray methods array2d, array3d, array_alpha, array_colorkey, and map_surface to use new pixelcopy methods. Module pixelcopy reimplements _numericsurfarray using generic copy methods that accept objects exporting an array struct interface. Along with Surface views, it moves almost all of the _numpysurfarray.py functionality into C code. pixelcopy is also independent of NumPy, so can work with other array like objects.