Home | History | Annotate | Download | only in audioflinger

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
81 // Set to default copy buffer size in frames for input processing.
193 bufferFrameCount) // set bufferFrameCount to 0 to do in-place
291 // may be in-place if src == dst.
297 /* call once in a pthread_once handler. */
344 // TODO: consider channel representation in index array formulation
379 // The value of 1 << x is undefined in C when x >= 32.
486 t->in = NULL;
731 * even if there is a nonzero floating point increment (in that case, the volume
737 * @param newVolume set volume target in floating point [0.0, 1.0].
1051 "in process__validate() but nothing's invalid");
1216 // ramp gain - resample to temp buffer and scale/mix in 2nd step
1325 const int16_t *in = static_cast<const int16_t *>(t->in);
1343 l = (int32_t)*in++;
1344 r = (int32_t)*in++;
1364 uint32_t rl = *reinterpret_cast<const uint32_t *>(in);
1365 int16_t a = (int16_t)(((int32_t)in[0] + in[1]) >> 1);
1366 in += 2;
1387 *out++ += (vl >> 16) * (int32_t) *in++;
1388 *out++ += (vr >> 16) * (int32_t) *in++;
1402 uint32_t rl = *reinterpret_cast<const uint32_t *>(in);
1403 in += 2;
1410 t->in = in;
1417 const int16_t *in = static_cast<int16_t const *>(t->in);
1434 int32_t l = *in++;
1454 int16_t l = *in++;
1475 int32_t l = *in++;
1491 int16_t l = *in++;
1498 t->in = in;
1564 t.in = t.buffer.raw;
1600 // t.in == NULL can happen if the track was flushed just after having
1602 if (t.in == NULL) {
1624 t.in = t.buffer.raw;
1625 if (t.in == NULL) {
1706 t.in = t.buffer.raw;
1707 // t.in == NULL can happen if the track was flushed just after having
1709 if (t.in == NULL) break;
1752 const int16_t *in = b.i16;
1754 // in == NULL can happen if the track was flushed just after having
1756 if (in == NULL || (((uintptr_t)in) & 3)) {
1759 ALOGE_IF((((uintptr_t)in) & 3),
1762 in, i, t.channelCount, t.needs, vrl, t.mVolume[0], t.mVolume[1]);
1770 uint32_t rl = *reinterpret_cast<const uint32_t *>(in);
1771 in += 2;
1776 // Note: In case of later int16_t sink output,
1785 uint32_t rl = *reinterpret_cast<const uint32_t *>(in);
1786 in += 2;
1796 uint32_t rl = *reinterpret_cast<const uint32_t *>(in);
1797 in += 2;
1850 const TI* in, TA* aux, TV *vol, const TV *volinc, TAV *vola, TAV volainc)
1854 volumeRampMulti<MIXTYPE, 1>(out, frameCount, in, aux, vol, volinc, vola, volainc);
1857 volumeRampMulti<MIXTYPE, 2>(out, frameCount, in, aux, vol, volinc, vola, volainc);
1861 frameCount, in, aux, vol, volinc, vola, volainc);
1865 frameCount, in, aux, vol, volinc, vola, volainc);
1869 frameCount, in, aux, vol, volinc, vola, volainc);
1873 frameCount, in, aux, vol, volinc, vola, volainc);
1877 frameCount, in, aux, vol, volinc, vola, volainc);
1881 frameCount, in, aux, vol, volinc, vola, volainc);
1894 const TI* in, TA* aux, const TV *vol, TAV vola)
1898 volumeMulti<MIXTYPE, 1>(out, frameCount, in, aux, vol, vola);
1901 volumeMulti<MIXTYPE, 2>(out, frameCount, in, aux, vol, vola);
1904 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 3>(out, frameCount, in, aux, vol, vola);
1907 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 4>(out, frameCount, in, aux, vol, vola);
1910 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 5>(out, frameCount, in, aux, vol, vola);
1913 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 6>(out, frameCount, in, aux, vol, vola);
1916 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 7>(out, frameCount, in, aux, vol, vola);
1919 volumeMulti<MIXTYPE_MONOVOL(MIXTYPE), 8>(out, frameCount, in, aux, vol, vola);
1934 const TI *in, TA *aux, bool ramp, AudioMixer::track_t *t)
1938 volumeRampMulti<MIXTYPE>(t->mMixerChannelCount, out, outFrames, in, aux,
1944 volumeMulti<MIXTYPE>(t->mMixerChannelCount, out, outFrames, in, aux,
1949 volumeRampMulti<MIXTYPE>(t->mMixerChannelCount, out, outFrames, in, aux,
1955 volumeMulti<MIXTYPE>(t->mMixerChannelCount, out, outFrames, in, aux,
1989 const TI *in = reinterpret_cast<TI*>(b.raw);
1991 // in == NULL can happen if the track was flushed just after having
1993 if (in == NULL || (((uintptr_t)in) & 3)) {
1996 ALOGE_IF((((uintptr_t)in) & 3), "process_NoResampleOneTrack: bus error: "
1998 in, t, t->channelCount, t->needs);
2004 out, outFrames, in, aux, ramp, t);
2035 // if ramp: resample with unity gain to temp buffer and scale/mix in 2nd step.
2052 * The input buffer should be present in t->in.
2064 const TI *in = static_cast<const TI *>(t->in);
2067 out, frameCount, in, aux, t->needsRamp(), t);
2071 in += (MIXTYPE == MIXTYPE_MONOEXPAND) ? frameCount : frameCount * t->mMixerChannelCount;
2072 t->in = in;
2080 void *in, audio_format_t mixerInFormat, size_t sampleCount)
2086 memcpy(out, in, sampleCount * sizeof(float)); // MEMCPY. TODO optimize out
2089 memcpy_to_i16_from_float((int16_t*)out, (float*)in, sampleCount);
2099 memcpy_to_float_from_q4_27((float*)out, (int32_t*)in, sampleCount);
2103 in, sampleCount >> 1);