Download src/utils/frames.ts from hoangquocviet/veditor_render_server: direct link, hf CLI and curl.
- Browser
- Download file 240 Bytes
-
https://huggingface.co/spaces/hoangquocviet/veditor_render_server/resolve/main/src/utils/frames.ts
- Command line
-
hf download hf://spaces/hoangquocviet/veditor_render_server/src/utils/frames.ts
-
curl -L -o frames.ts https://huggingface.co/spaces/hoangquocviet/veditor_render_server/resolve/main/src/utils/frames.ts
240 Bytes
| export const calculateFrames = ( | |
| display: { from: number; to: number }, | |
| fps: number | |
| ) => { | |
| const from = (display.from / 1000) * fps; | |
| const durationInFrames = (display.to / 1000) * fps - from; | |
| return { from, durationInFrames }; | |
| }; | |