Back to project page MediaCodecVideoPlayer.
The source code is released under:
Apache License
If you think the Android project MediaCodecVideoPlayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.simonvt.menudrawer; /*from w w w . j a v a 2 s .c om*/ import android.view.animation.Interpolator; /** * Interpolator which, when drawn from 0 to 1, looks like half a sine-wave. Used for smoother opening/closing when * peeking at the drawer. */ class SinusoidalInterpolator implements Interpolator { @Override public float getInterpolation(float input) { return (float) (0.5f + 0.5f * Math.sin(input * Math.PI - Math.PI / 2.f)); } }