asstime

package
v0.0.0-...-c131409 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package asstime provide time conversions an framerate functions

Index

Constants

View Source
const (
	// FpsNtscFilm Frame per second rate NTSC film standard (23.976)
	FpsNtscFilm float64 = float64(24000) / float64(1001)
	// FpsNtsc Frame per second rate NTSC standard (30)
	FpsNtsc float64 = float64(30000) / float64(1001)
	// FpsNtscDouble Frame per second rate NTSC Double standard (60)
	FpsNtscDouble float64 = float64(60000) / float64(1001)
	// FpsNtscQuad Frame per second rate NTSC Quad standard (120)
	FpsNtscQuad float64 = float64(120000) / float64(1001)
	// FpsFilm Frame per second rate Film standard
	FpsFilm float64 = 24.0
	// FpsPal Frame per second rate PAL standard
	FpsPal float64 = 25.0
	// FpsPalDouble Frame per second rate PAL Double standard (50)
	FpsPalDouble float64 = 50.0
	// FpsPalQuad Frame per second rate PAL Quad standard (100)
	FpsPalQuad int = 100.0
)
View Source
const (
	// Millisecond Base time multiplier
	Millisecond = 1
	// Centisecond time multiplier
	Centisecond = 10
	// Second time multiplier
	Second = 1000
	// Minute time multiplier
	Minute = 60 * Second
	// Hour time multiplier
	Hour = 60 * Minute
)

Variables

This section is empty.

Functions

func FramesToMS

func FramesToMS(frames int, framerate float64) int

FramesToMS Convert Frames to Milliseconds

func MStoFrames

func MStoFrames(ms int, framerate float64) int

MStoFrames Convert Frames to Milliseconds

func MStoSSA

func MStoSSA(milli int) string

MStoSSA Convert Milliseconds to SSA timestamp

func SSAtoMS

func SSAtoMS(t string) int

SSAtoMS Convert SSA timestamp to Milliseconds

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL