Lines Matching refs:i16ary
194 std::vector<int16_t> i16ary(size); in TEST() local
202 i16ref[i] = i16ary[i] = i - 32768; in TEST()
206 memcpy_to_float_from_i16(fary.data(), i16ary.data(), fary.size()); in TEST()
207 zeroFill(i16ary); in TEST()
210 memcpy_to_i16_from_float(i16ary.data(), fary.data(), i16ary.size()); in TEST()
212 checkMonotone(i16ary.data(), i16ary.size()); in TEST()
217 memcpy_to_p24_from_i16(pary.data(), i16ary.data(), size /* note pary elem is 3 bytes */); in TEST()
218 zeroFill(i16ary); in TEST()
237 memcpy_to_i16_from_p24(i16ary.data(), pary.data(), i16ary.size()); in TEST()
239 checkMonotone(i16ary.data(), i16ary.size()); in TEST()
242 memcpy_to_q8_23_from_i16(i32ary.data(), i16ary.data(), i32ary.size()); in TEST()
243 zeroFill(i16ary); in TEST()
254 memcpy_to_i16_from_q8_23(i16ary.data(), i32ary.data(), i16ary.size()); in TEST()
256 checkMonotone(i16ary.data(), i16ary.size()); in TEST()
259 memcpy_to_i32_from_i16(i32ary.data(), i16ary.data(), i32ary.size()); in TEST()
260 zeroFill(i16ary); in TEST()
271 memcpy_to_i16_from_i32(i16ary.data(), i32ary.data(), i16ary.size()); in TEST()
273 checkMonotone(i16ary.data(), i16ary.size()); in TEST()
276 memcpy_to_p24_from_i16(pary.data(), i16ary.data(), size /* note pary elem is 3 bytes */); in TEST()
277 zeroFill(i16ary); in TEST()
296 memcpy_to_i16_from_p24(i16ary.data(), pary.data(), i16ary.size()); in TEST()
298 checkMonotone(i16ary.data(), i16ary.size()); in TEST()
301 memcpy_to_float_from_i16(fary.data(), i16ary.data(), fary.size()); in TEST()
302 zeroFill(i16ary); in TEST()
308 memcpy_to_i16_from_q4_27(i16ary.data(), i32ary.data(), i16ary.size()); in TEST()
309 checkMonotone(i16ary.data(), i16ary.size()); in TEST()
310 EXPECT_EQ(0, memcmp(i16ary.data(), i16ref.data(), i16ary.size() * sizeof(i16ary[0]))); in TEST()
312 zeroFill(i16ary); in TEST()
315 ditherAndClamp(reinterpret_cast<int32_t *>(i16ary.data()), in TEST()
316 i32ary.data(), i16ary.size() / 2); in TEST()
317 checkMonotone(i16ary.data(), i16ary.size()); in TEST()
318 EXPECT_EQ(0, memcmp(i16ary.data(), i16ref.data(), i16ary.size() * sizeof(i16ary[0]))); in TEST()
325 EXPECT_EQ(0, memcmp(i16ary.data(), i16ref.data(), i16ary.size() * sizeof(i16ary[0]))); in TEST()
681 std::vector<int16_t> i16ary(size * 2); in TEST() local
686 upmix_to_stereo_i16_from_mono_i16(i16ary.data(), i16ref.data(), size); in TEST()
687 downmix_to_mono_i16_from_stereo_i16(i16ary.data(), i16ary.data(), size); in TEST()
689 EXPECT_EQ(0, memcmp(i16ary.data(), i16ref.data(), sizeof(i16ref[0]) * size)); in TEST()
745 int16_t *i16ary = new int16_t[65536]; in TEST() local
748 i16ref[i] = i16ary[i] = i16add[(i+1) % 65536] = i - 32768; in TEST()
752 accumulate_i16(i16ary, i16add, 65536); in TEST()
753 checkAddedClamped(i16ary, i16ref, i16add, 65536, lim16neg, in TEST()
845 delete[] i16ary; in TEST()