Searched refs:ND_PIL (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_buffer.py | 1055 ND_PIL, ND_PIL|ND_WRITABLE 1070 if not shape and (flags&ND_PIL): 1148 self.assertRaises(TypeError, c, [1], shape=[], flags=ND_PIL) 1315 for flags in (0, ND_PIL): 1335 for flags in (0, ND_PIL): 1358 for flags in (0, ND_PIL): 1359 if ndim == 0 and flags == ND_PIL: 1569 for flags in (0, ND_PIL): 1694 x = ndarray(items, shape=[8], format="b", flags=ND_PIL) 1730 for flags in (0, ND_PIL): [all …]
|
/external/python/cpython3/Modules/ |
D | _testbuffer.c | 56 #define ND_PIL 0x010 /* convert to PIL-style array (suboffsets) */ macro 270 ndbuf->flags |= ND_PIL; in init_flags() 1127 if (ndbuf->flags & ND_PIL) { in init_structure() 1168 if (ndbuf->flags & ND_PIL) { in init_structure() 1484 if (!REQ_INDIRECT(flags) && (baseflags & ND_PIL)) { in ndarray_getbuf() 2864 PyModule_AddIntMacro(m, ND_PIL); in PyInit__testbuffer()
|