package com.airbnb.lottie.animation.keyframe; import com.airbnb.lottie.utils.MiscUtils; import com.airbnb.lottie.value.Keyframe; import java.util.List; /* loaded from: classes.dex */ public class FloatKeyframeAnimation extends KeyframeAnimation { @Override // com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation /* bridge */ /* synthetic */ Object getValue(Keyframe keyframe, float f) { return getValue((Keyframe) keyframe, f); } public FloatKeyframeAnimation(List> list) { super(list); } @Override // com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation Float getValue(Keyframe keyframe, float f) { return Float.valueOf(getFloatValue(keyframe, f)); } float getFloatValue(Keyframe keyframe, float f) { Float f2; if (keyframe.startValue == null || keyframe.endValue == null) { throw new IllegalStateException("Missing values for keyframe."); } if (this.valueCallback != null && (f2 = (Float) this.valueCallback.getValueInternal(keyframe.startFrame, keyframe.endFrame.floatValue(), keyframe.startValue, keyframe.endValue, f, getLinearCurrentKeyframeProgress(), getProgress())) != null) { return f2.floatValue(); } return MiscUtils.lerp(keyframe.getStartValueFloat(), keyframe.getEndValueFloat(), f); } public float getFloatValue() { return getFloatValue(getCurrentKeyframe(), getInterpolatedCurrentKeyframeProgress()); } }