Lines Matching refs:output

85                                   int16_t *output,  in local_convert_float_to_int16()  argument
89 *output++ = std::min(INT16_MAX, std::max(INT16_MIN, n)); // clip in local_convert_float_to_int16()
94 std::array<int16_t, kNumSamples> output; in TEST() local
99 int16_t *out = output.data(); in TEST()
100 output.fill(777); in TEST()
106 EXPECT_EQ(kExpectedI16.at(i), output.at(i)) << ", i = " << i; in TEST()
110 output.fill(777); in TEST()
111 local_convert_float_to_int16(kInputFloat.data(), output.data(), kNumSamples); in TEST()
113 EXPECT_EQ(kExpectedI16.at(i), output.at(i)) << ", i = " << i; in TEST()
119 std::array<int16_t, kNumSamples + 10> output; // larger than input in TEST() local
125 sourceFloat.output.connect(&sinkI16.input); in TEST()
127 output.fill(777); in TEST()
128 int32_t numRead = sinkI16.read(output.data(), output.size()); in TEST()
131 EXPECT_EQ(kExpectedI16.at(i), output.at(i)) << ", i = " << i; in TEST()
157 int32_t *output, in local_convert_float_to_int32() argument
160 *output++ = clamp32FromFloat(*input++); in local_convert_float_to_int32()
165 std::array<int32_t, kNumSamples> output; in TEST() local
170 output.fill(777); in TEST()
171 int32_t *out = output.data(); in TEST()
178 EXPECT_EQ(kExpectedI32.at(i), output.at(i)) << ", i = " << i; in TEST()
183 std::array<int32_t, kNumSamples> output; in TEST() local
185 output.fill(777); in TEST()
186 local_convert_float_to_int32(kInputFloat.data(), output.data(), kNumSamples); in TEST()
188 EXPECT_EQ(kExpectedI32.at(i), output.at(i)) << ", i = " << i; in TEST()
193 std::array<int32_t, kNumSamples + 10> output; // larger than input in TEST() local
199 sourceFloat.output.connect(&sinkI32.input); in TEST()
201 output.fill(777); in TEST()
202 int32_t numRead = sinkI32.read(output.data(), output.size()); in TEST()
205 EXPECT_EQ(kExpectedI32.at(i), output.at(i)) << ", i = " << i; in TEST()
211 float output[100] = {}; in TEST() local
218 sourceFloat.output.connect(&monoToStereo.input); in TEST()
219 monoToStereo.output.connect(&sinkFloat.input); in TEST()
221 int32_t numRead = sinkFloat.read(output, 8); in TEST()
223 EXPECT_EQ(input[0], output[0]); in TEST()
224 EXPECT_EQ(input[0], output[1]); in TEST()
225 EXPECT_EQ(input[1], output[2]); in TEST()
226 EXPECT_EQ(input[1], output[3]); in TEST()
227 EXPECT_EQ(input[2], output[4]); in TEST()
228 EXPECT_EQ(input[2], output[5]); in TEST()
239 float output[numOutput] = {}; in TEST() local
245 rampLinear.output.connect(&sinkFloat.input); in TEST()
249 int32_t singleNumRead = sinkFloat.read(output, singleNumOutput); in TEST()
251 EXPECT_NEAR(value * initialTarget, output[0], tolerance); in TEST()
255 int32_t numRead = sinkFloat.read(output, numOutput); in TEST()
262 EXPECT_NEAR(expected, output[i], tolerance); in TEST()
266 EXPECT_NEAR(expected, output[i], tolerance); in TEST()
277 uint8_t output[99] = {}; in TEST() local
283 sourceI24.output.connect(&sinkI24.input); in TEST()
285 int32_t numRead = sinkI24.read(output, sizeof(output) / kBytesPerI24Packed); in TEST()
288 EXPECT_EQ(input[i], output[i]); in TEST()
298 float output[100]; in TEST() local
309 sourceFloat.output.connect(&clipper.input); in TEST()
310 clipper.output.connect(&sinkFloat.input); in TEST()
312 int numOutputFrames = sizeof(output) / sizeof(output[0]); in TEST()
313 int32_t numRead = sinkFloat.read(output, numOutputFrames); in TEST()
317 EXPECT_NEAR(expected[i], output[i], tolerance); in TEST()
328 float output[100]; in TEST() local
335 sourceFloat.output.connect(&monoBlend.input); in TEST()
336 monoBlend.output.connect(&sinkFloat.input); in TEST()
338 int32_t numRead = sinkFloat.read(output, numFrames); in TEST()
342 EXPECT_NEAR(expected[i], output[i], tolerance); in TEST()
354 float output[kNumSamples]; in TEST() local
366 sourceFloat.output.connect(&limiter.input); in TEST()
367 limiter.output.connect(&sinkFloat.input); in TEST()
369 const int numOutputFrames = std::size(output); in TEST()
370 int32_t numRead = sinkFloat.read(output, numOutputFrames); in TEST()
375 EXPECT_NEAR(output[i], -output[kNumSamples - i - 1], kTolerance); in TEST()
377 EXPECT_GE(output[i], output[i - 1]); // limiter must be monotonic in TEST()
380 EXPECT_EQ(0.f, output[i]); in TEST()
382 EXPECT_GE(output[i], 0.0f); in TEST()
383 EXPECT_LE(output[i], M_SQRT2); // limiter actually limits in TEST()
384 EXPECT_LE(output[i], input[i]); // a limiter, gain <= 1 in TEST()
386 EXPECT_LE(output[i], 0.0f); in TEST()
387 EXPECT_GE(output[i], -M_SQRT2); // limiter actually limits in TEST()
388 EXPECT_GE(output[i], input[i]); // a limiter, gain <= 1 in TEST()
391 EXPECT_EQ(input[i], output[i]); in TEST()
401 float output[kArbitraryOutputSize]; in TEST() local
409 sourceFloat.output.connect(&limiter.input); in TEST()
410 limiter.output.connect(&sinkFloat.input); in TEST()
412 const int numOutputFrames = std::size(output); in TEST()
413 int32_t numRead = sinkFloat.read(output, numOutputFrames); in TEST()
417 EXPECT_NEAR(expected[i], output[i], tolerance); in TEST()
423 std::array<int16_t, kNumSamples + 10> output; // larger than input in TEST() local
429 sourceFloat.output.connect(&sinkI16.input); in TEST()
431 output.fill(777); in TEST()
434 int32_t numRead = sinkI16.read(output.data(), kNumSamples / 2); in TEST()
437 EXPECT_EQ(kExpectedI16.at(i), output.at(i)) << ", i = " << i; in TEST()
441 numRead = sinkI16.read(output.data(), output.size()); in TEST()
444 EXPECT_EQ(kExpectedI16.at(i + kNumSamples / 2), output.at(i)) << ", i = " << i; in TEST()
457 int32_t *output, in local_convert_float_to_i8_24() argument
460 *output++ = clamp24FromFloat(*input++); in local_convert_float_to_i8_24()
465 std::array<int32_t, kNumSamples> output; in TEST() local
467 output.fill(777); in TEST()
468 local_convert_float_to_i8_24(kInputFloat.data(), output.data(), kNumSamples); in TEST()
470 EXPECT_EQ(kExpectedI8_24.at(i), output.at(i)) << ", i = " << i; in TEST()
475 std::array<int32_t, kNumSamples + 10> output; // larger than input in TEST() local
481 sourceFloat.output.connect(&sinkI8_24.input); in TEST()
483 output.fill(777); in TEST()
484 int32_t numRead = sinkI8_24.read(output.data(), output.size()); in TEST()
487 EXPECT_EQ(kExpectedI8_24.at(i), output.at(i)) << ", i = " << i; in TEST()
495 float output[100]; in TEST() local
503 sourceI8_24.output.connect(&sinkFloat.input); in TEST()
505 int32_t numRead = sinkFloat.read(output, numSamples); in TEST()
508 EXPECT_EQ(expected[i], output[i]) << ", i = " << i; in TEST()
535 float output[outputSize]; in checkSampleRateConversionVariedSizes() local
549 (void *) (output + outputRead), in checkSampleRateConversionVariedSizes()
560 if (output[i - 1] > 0.01f) { in checkSampleRateConversionVariedSizes()
561 EXPECT_GT(output[i], output[i - 1]); in checkSampleRateConversionVariedSizes()
610 float output[outputSize]; in checkSampleRateConversionPullLater() local
619 (void *) output, in checkSampleRateConversionPullLater()
626 (void *) (output + outputRead), in checkSampleRateConversionPullLater()
633 if (output[i - 1] > 0.01f) { in checkSampleRateConversionPullLater()
634 EXPECT_GT(output[i], output[i - 1]); in checkSampleRateConversionPullLater()