Searched refs:packfactor (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Modules/ |
D | cstubs | 706 gl.packrect(width, height, packfactor, bigdata) --> smalldata 707 makes 'bigdata' 4*(packfactor**2) times smaller by: 712 gl.unpackrect(width, height, packfactor, smalldata) --> bigdata 715 Both work best if width and height are multiples of packfactor 726 long width, height, packfactor; 737 if (!PyArg_GetLong(args, 4, 2, &packfactor)) 743 if (width <= 0 || height <= 0 || packfactor <= 0) { 748 packedcount = ((width+packfactor-1)/packfactor) * 749 ((height+packfactor-1)/packfactor); 760 for (y = 0; y < height; y += packfactor, parray += packfactor*width) { [all …]
|
D | glmodule.c | 679 long width, height, packfactor; in gl_packrect() local 690 if (!PyArg_GetLong(args, 4, 2, &packfactor)) in gl_packrect() 696 if (width <= 0 || height <= 0 || packfactor <= 0) { in gl_packrect() 701 packedcount = ((width+packfactor-1)/packfactor) * in gl_packrect() 702 ((height+packfactor-1)/packfactor); in gl_packrect() 713 for (y = 0; y < height; y += packfactor, parray += packfactor*width) { in gl_packrect() 714 for (x = 0; x < width; x += packfactor) { in gl_packrect() 732 long width, height, packfactor; in gl_unpackrect() local 748 if (!PyArg_GetLong(args, 4, 2, &packfactor)) in gl_unpackrect() 754 if (width <= 0 || height <= 0 || packfactor <= 0) { in gl_unpackrect() [all …]
|