Here you can find the source of convertMilisecondsRemainderToFrames(Integer miliseconds, int fps)
Parameter | Description |
---|---|
timeInFrames | a parameter |
fps | a parameter |
public static int convertMilisecondsRemainderToFrames(Integer miliseconds, int fps)
//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; } }