Lines Matching refs:packs
17 packs = {
27 2: packs[2](0, 0x1234, 0x4567, -0x4567, 0x7fff, -0x8000, -1),
28 4: packs[4](0, 0x12345678, 0x456789ab, -0x456789ab,
44 p = packs[w]
55 p = packs[w]
68 self.assertEqual(audioop.maxpp(packs[w](*range(100)), w), 0)
69 self.assertEqual(audioop.maxpp(packs[w](9, 10, 5, 5, 0, 1), w), 10)
76 p = packs[w]
84 self.assertEqual(audioop.avg(packs[4](0x50000000, 0x70000000), 4),
86 self.assertEqual(audioop.avg(packs[4](-0x50000000, -0x70000000), 4),
92 self.assertEqual(audioop.avgpp(packs[w](*range(100)), w), 0)
93 self.assertEqual(audioop.avgpp(packs[w](9, 10, 5, 5, 0, 1), w), 10)
101 p = packs[w]
114 p = packs[w]
129 packs[2](0, 0x2468, 0x7fff, -0x8000, 0x7fff, -0x8000, -2))
131 packs[4](0, 0x2468acf0, 0x7fffffff, -0x80000000,
147 packs[2](1, 0x1235, 0x4568, -0x4566, -0x8000, -0x7fff, 0))
149 packs[2](-1, 0x1233, 0x4566, -0x4568, 0x7ffe, 0x7fff, -2))
151 packs[2](-1, 0x1233, 0x4566, -0x4568, 0x7ffe, 0x7fff, -2))
155 packs[4](1, 0x12345679, 0x456789ac, -0x456789aa,
158 packs[4](-1, 0x12345677, 0x456789aa, -0x456789ac,
161 packs[4](0x7fffffff, -0x6dcba989, -0x3a987656, 0x3a987654,
164 packs[4](-0x80000000, -0x6dcba988, -0x3a987655, 0x3a987655,
172 packs[2](0, 0x1200, 0x4500, -0x4500, 0x7f00, -0x8000, -0x100))
174 packs[4](0, 0x12000000, 0x45000000, -0x45000000,
179 packs[4](0, 0x12340000, 0x45670000, -0x45670000,
184 packs[2](0, 0x1234, 0x4567, -0x4568, 0x7fff, -0x8000, -1))
190 (packs[2](0, 0xb, 0x29, -0x16, 0x72, -0xb3), (-179, 40)))
192 (packs[4](0, 0xb0000, 0x290000, -0x160000, 0x720000,
228 packs[w](*(x << (w * 8) >> 13 for x in src)))
250 packs[w](*(x << (w * 8) >> 14 for x in src)))
268 packs[2](0, 0x2468, 0x7fff, -0x8000, 0x7fff, -0x8000, -2))
270 packs[4](0, 0x2468acf0, 0x7fffffff, -0x80000000,
301 self.assertEqual(audioop.reverse(packs[w](0, 1, 2), w),
302 packs[w](2, 1, 0))
335 self.assertEqual(audioop.findfit(datas[2], packs[2](1, 2, 0)),
345 data = packs[w](0, 1, -1, maxvalues[w], minvalues[w])