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 IntegerKeyframeAnimation extends KeyframeAnimation { @Override // com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation /* bridge */ /* synthetic */ Object getValue(Keyframe keyframe, float f) { return getValue((Keyframe) keyframe, f); } public IntegerKeyframeAnimation(List> list) { super(list); } @Override // com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation Integer getValue(Keyframe keyframe, float f) { return Integer.valueOf(getIntValue(keyframe, f)); } int getIntValue(Keyframe keyframe, float f) { Integer num; if (keyframe.startValue == null || keyframe.endValue == null) { throw new IllegalStateException("Missing values for keyframe."); } if (this.valueCallback != null && (num = (Integer) this.valueCallback.getValueInternal(keyframe.startFrame, keyframe.endFrame.floatValue(), keyframe.startValue, keyframe.endValue, f, getLinearCurrentKeyframeProgress(), getProgress())) != null) { return num.intValue(); } return MiscUtils.lerp(keyframe.getStartValueInt(), keyframe.getEndValueInt(), f); } public int getIntValue() { return getIntValue(getCurrentKeyframe(), getInterpolatedCurrentKeyframeProgress()); } }