Lines Matching defs:in
6 ** you may not use this file except in compliance with the License.
11 ** Unless required by applicable law or agreed to in writing, software
83 // Set to default copy buffer size in frames for input processing.
99 // The value of 1 << x is undefined in C when x >= 32.
212 t->in = NULL;
487 * even if there is a nonzero floating point increment (in that case, the volume
493 * @param newVolume set volume target in floating point [0.0, 1.0].
915 "in process__validate() but nothing's invalid");
1081 // ramp gain - resample to temp buffer and scale/mix in 2nd step
1190 const int16_t *in = static_cast<const int16_t *>(t->in);
1208 l = (int32_t)*in++;
1209 r = (int32_t)*in++;
1229 uint32_t rl = *reinterpret_cast<const uint32_t *>(in);
1230 int16_t a = (int16_t)(((int32_t)in[0] + in[1]) >> 1);
1231 in += 2;
1252 *out++ += (vl >> 16) * (int32_t) *in++;
1253 *out++ += (vr >> 16) * (int32_t) *in++;
1267 uint32_t rl = *reinterpret_cast<const uint32_t *>(in);
1268 in += 2;
1275 t->in = in;
1282 const int16_t *in = static_cast<int16_t const *>(t->in);
1299 int32_t l = *in++;
1319 int16_t l = *in++;
1340 int32_t l = *in++;
1356 int16_t l = *in++;
1363 t->in = in;
1427 t.in = t.buffer.raw;
1463 // t.in == NULL can happen if the track was flushed just after having
1465 if (t.in == NULL) {
1485 t.in = t.buffer.raw;
1486 if (t.in == NULL) {
1565 t.in = t.buffer.raw;
1566 // t.in == NULL can happen if the track was flushed just after having
1568 if (t.in == NULL) break;
1609 const int16_t *in = b.i16;
1611 // in == NULL can happen if the track was flushed just after having
1613 if (in == NULL || (((uintptr_t)in) & 3)) {
1616 ALOGE_IF((((uintptr_t)in) & 3),
1619 in, i, t.channelCount, t.needs, vrl, t.mVolume[0], t.mVolume[1]);
1627 uint32_t rl = *reinterpret_cast<const uint32_t *>(in);
1628 in += 2;
1633 // Note: In case of later int16_t sink output,
1642 uint32_t rl = *reinterpret_cast<const uint32_t *>(in);
1643 in += 2;
1653 uint32_t rl = *reinterpret_cast<const uint32_t *>(in);
1654 in += 2;
1693 const TI* in, TA* aux, TV *vol, const TV *volinc, TAV *vola, TAV volainc)
1697 volumeRampMulti<MIXTYPE, 1>(out, frameCount, in, aux, vol, volinc, vola, volainc);
1700 in, aux, vol, volinc, vola, volainc);
1704 frameCount, in, aux, vol, volinc, vola, volainc);
1708 frameCount, in, aux, vol, volinc, vola, volainc);
1712 frameCount, in, aux, vol, volinc, vola, volainc);
1716 frameCount, in, aux, vol, volinc, vola, volainc);
1720 frameCount, in, aux, vol, volinc, vola, volainc);
1724 frameCount, in, aux, vol, volinc, vola, volainc);
1737 const TI* in, TA* aux, const TV *vol, TAV vola)
1741 volumeMulti<MIXTYPE, 1>(out, frameCount, in, aux, vol, vola);
1744 volumeMulti<MIXTYPE, 2>(out, frameCount, in, aux, vol, vola);
1747 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 3>(out, frameCount, in, aux, vol, vola);
1750 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 4>(out, frameCount, in, aux, vol, vola);
1753 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 5>(out, frameCount, in, aux, vol, vola);
1756 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 6>(out, frameCount, in, aux, vol, vola);
1759 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 7>(out, frameCount, in, aux, vol, vola);
1762 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 8>(out, frameCount, in, aux, vol, vola);
1777 const TI *in, TA *aux, bool ramp, AudioMixer::track_t *t)
1781 volumeRampMulti<MIXTYPE>(t->mMixerChannelCount, out, outFrames, in, aux,
1787 volumeMulti<MIXTYPE>(t->mMixerChannelCount, out, outFrames, in, aux,
1792 volumeRampMulti<MIXTYPE>(t->mMixerChannelCount, out, outFrames, in, aux,
1798 volumeMulti<MIXTYPE>(t->mMixerChannelCount, out, outFrames, in, aux,
1831 const TI *in = reinterpret_cast<TI*>(b.raw);
1833 // in == NULL can happen if the track was flushed just after having
1835 if (in == NULL || (((uintptr_t)in) & 3)) {
1838 ALOGE_IF((((uintptr_t)in) & 3), "process_NoResampleOneTrack: bus error: "
1840 in, t, t->channelCount, t->needs);
1846 out, outFrames, in, aux, ramp, t);
1877 // if ramp: resample with unity gain to temp buffer and scale/mix in 2nd step.
1894 * The input buffer should be present in t->in.
1906 const TI *in = static_cast<const TI *>(t->in);
1909 out, frameCount, in, aux, t->needsRamp(), t);
1913 in += (MIXTYPE == MIXTYPE_MONOEXPAND) ? frameCount : frameCount * t->mMixerChannelCount;
1914 t->in = in;
1922 void *in, audio_format_t mixerInFormat, size_t sampleCount)
1928 memcpy(out, in, sampleCount * sizeof(float)); // MEMCPY. TODO optimize out
1931 memcpy_to_i16_from_float((int16_t*)out, (float*)in, sampleCount);
1941 memcpy_to_float_from_q4_27((float*)out, (int32_t*)in, sampleCount);
1945 ditherAndClamp((int32_t*)out, (int32_t*)in, sampleCount >> 1);