Lines Matching refs:S
54 using S = float; // time type
106 class Configuration : public Interpolator<S, T>, public RefBase, public Parcelable {
124 using InterpolatorType = Interpolator<S, T>::InterpolatorType;
127 : Interpolator<S, T>() in Configuration()
136 : Interpolator<S, T>(*static_cast<const Interpolator<S, T> *>(&configuration)) in Configuration()
296 ?: Interpolator<S, T>::writeToParcel(parcel); in writeToParcel()
309 ?: Interpolator<S, T>::readFromParcel(*parcel) in readFromParcel()
321 ss << ", " << Interpolator<S, T>::toString().c_str(); in toString()
361 : Operation(flags, replaceId, std::numeric_limits<S>::quiet_NaN() /* xOffset */) { in Operation()
372 Operation(Flag flags, int replaceId, S xOffset) in Operation()
386 S getXOffset() const { in getXOffset()
390 void setXOffset(S xOffset) { in setXOffset()
409 void setNormalizedTime(S normalizedTime) { in setNormalizedTime()
450 S mXOffset; // position in the curve to set if a valid number (not nan)
462 State(T volume, S xOffset) in State()
478 S getXOffset() const { in getXOffset()
482 void setXOffset(S xOffset) { in setXOffset()
507 S mXOffset; // position on curve expressed from MIN_CURVE_TIME to MAX_CURVE_TIME
611 S getDelayXOffset() const { in getDelayXOffset()
615 void setDelayXOffset(S xOffset) { in setDelayXOffset()
645 const S x = mXTranslate((T)frameCount); in getVolume()
648 std::tuple<T /* volume */, S /* position */, bool /* active */> vt = in getVolume()
673 Translate<S> mXTranslate; // translation from frames (usec for clock time) to normalized time.
680 S mLastXOffset; // last computed interpolated xOffset/time (x-axis)
681 S mDelayXOffset; // xOffset to use for first invocation of VolumeShaper.
684 void updatePosition(int64_t startFrame, double sampleRate, S xOffset) { in updatePosition()
692 S normalizedTime = (getFlags() & VolumeShaper::Operation::FLAG_REVERSE) != 0 ? in updatePosition()
700 T computeVolumeFromXOffset(S xOffset) const { in computeVolumeFromXOffset()
707 std::tuple<T /* volume */, S /* position */, bool /* active */>
708 computeStateFromNormalizedTime(S x) const { in computeStateFromNormalizedTime()
728 const S xOffset = x; in computeStateFromNormalizedTime()
747 using S = float;
857 const S x = it->mXTranslate((T)frameCount); in applyVolumeShaper()
860 S target = MAX_CURVE_TIME - x; in applyVolumeShaper()
871 const S xOffset = operation->getXOffset(); in applyVolumeShaper()
875 const S x = it->mXTranslate((T)frameCount); in applyVolumeShaper()
877 const S target = in applyVolumeShaper()