Java Second Convert convertMilisecondsRemainderToFrames(Integer miliseconds, int fps)

Here you can find the source of convertMilisecondsRemainderToFrames(Integer miliseconds, int fps)

Description

Convert frames to miliseconds.

License

Open Source License

Parameter

Parameter Description
timeInFrames a parameter
fps a parameter

Declaration

public static int convertMilisecondsRemainderToFrames(Integer miliseconds, int fps) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from  w  ww  .j  ava2  s  .  c  om
     * Convert frames to miliseconds.
     * 
     * @param timeInFrames
     * @param fps
     * @return
     */
    public static int convertMilisecondsRemainderToFrames(Integer miliseconds, int fps) {
        int retObj = 0;

        if (miliseconds != null) {
            retObj = (miliseconds % 1000) / (1000 / fps);
        }

        return retObj;
    }
}

Related

  1. convertDaysInMiliseconds(long lDays)
  2. convertMilisecondsToDisplay(Integer milliseconds, int fps)
  3. convertMsToFloatSeconds(final long timeMs)
  4. convertSeconds(String sStartSeconds, String sEndSeconds)
  5. convertSecondsToDays(double secs)