UNPKG

@diffusionstudio/core-v4

Version:

A fast, browser based video compositing engine powered by WebCodecs

20 lines (19 loc) 675 B
import { Time } from '../types'; /** * Converts a time in seconds to a number of frames * @param timestamp The time in seconds * @returns The time in frames */ export declare function f(timestamp: number): number; /** * Rounds a timestamp to the nearest millisecond * @param timestamp - The timestamp to round * @returns The rounded timestamp in seconds */ export declare function roundTimestamp(timestamp: number): number; /** * Converts various time formats to seconds * @param time Time in various formats (ms, s, f (frames), min, MM:SS, HH:MM:SS, number (frames)) * @returns The timestamp in seconds */ export declare function parseTime(time?: Time): number;