• Home
  • Raw
  • Download

Lines Matching refs:S

59     using S = float; // time type
111 class Configuration : public Interpolator<S, T>, public RefBase, public Parcelable {
129 using InterpolatorType = Interpolator<S, T>::InterpolatorType;
132 : Interpolator<S, T>() in Configuration()
141 : Interpolator<S, T>(*static_cast<const Interpolator<S, T> *>(&configuration)) in Configuration()
306 Interpolator<S, T>::writeToConfig(&*parcelable->interpolatorConfig); in writeToParcelable()
325 : Interpolator<S, T>::readFromConfig(*parcelable.interpolatorConfig) in readFromParcelable()
337 ss << ", " << Interpolator<S, T>::toString().c_str(); in toString()
422 : Operation(flags, replaceId, std::numeric_limits<S>::quiet_NaN() /* xOffset */) { in Operation()
433 Operation(Flag flags, int replaceId, S xOffset) in Operation()
447 S getXOffset() const { in getXOffset()
451 void setXOffset(S xOffset) { in setXOffset()
470 void setNormalizedTime(S normalizedTime) { in setNormalizedTime()
563 S mXOffset; // position in the curve to set if a valid number (not nan)
575 State(T volume, S xOffset) in State()
591 S getXOffset() const { in getXOffset()
595 void setXOffset(S xOffset) { in setXOffset()
633 S mXOffset; // position on curve expressed from MIN_CURVE_TIME to MAX_CURVE_TIME
737 S getDelayXOffset() const { in getDelayXOffset()
741 void setDelayXOffset(S xOffset) { in setDelayXOffset()
771 const S x = mXTranslate((T)frameCount); in getVolume()
774 std::tuple<T /* volume */, S /* position */, bool /* active */> vt = in getVolume()
799 Translate<S> mXTranslate; // translation from frames (usec for clock time) to normalized time.
806 S mLastXOffset; // last computed interpolated xOffset/time (x-axis)
807 S mDelayXOffset; // xOffset to use for first invocation of VolumeShaper.
810 void updatePosition(int64_t startFrame, double sampleRate, S xOffset) { in updatePosition()
818 S normalizedTime = (getFlags() & VolumeShaper::Operation::FLAG_REVERSE) != 0 ? in updatePosition()
826 T computeVolumeFromXOffset(S xOffset) const { in computeVolumeFromXOffset()
833 std::tuple<T /* volume */, S /* position */, bool /* active */>
834 computeStateFromNormalizedTime(S x) const { in computeStateFromNormalizedTime()
854 const S xOffset = x; in computeStateFromNormalizedTime()
873 using S = float;
983 const S x = it->mXTranslate((T)frameCount); in applyVolumeShaper()
986 S target = MAX_CURVE_TIME - x; in applyVolumeShaper()
997 const S xOffset = operation->getXOffset(); in applyVolumeShaper()
1001 const S x = it->mXTranslate((T)frameCount); in applyVolumeShaper()
1003 const S target = in applyVolumeShaper()