Here you can find the source of getFramesFromSeconds(Double seconds)
Parameter | Description |
---|---|
seconds | a parameter |
public static int getFramesFromSeconds(Double seconds)
//package com.java2s; //License from project: Open Source License public class Main { public static final int FRAMES_PER_SECOND = Integer.parseInt(System.getProperty("olibbp.framerate", "30")); /**//from w w w. j av a 2 s. com * Converts seconds to number of video frames. * @param seconds * @return */ public static int getFramesFromSeconds(Double seconds) { return (int) Math.floor(seconds * FRAMES_PER_SECOND); } }