Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstFrame ¶
FirstFrame gets the roughly-resized first frame.
func FirstFrameJPEG ¶
func FirstFrameJPEG(path string, maxw, maxh int, s ScalerAlgorithm) ([]byte, error)
FirstFrameJPEG gets the roughly-resized first frame in raw JPEG bytes.
Types ¶
type ScalerAlgorithm ¶
type ScalerAlgorithm string
const ( // LanczosScaler is a decently fast, sharp and smooth rescaler algorithm. LanczosScaler ScalerAlgorithm = "lanczos" // NeighborScaler is a rough but very fast rescaler algorithm. NeighborScaler ScalerAlgorithm = "neighbor" )
Click to show internal directories.
Click to hide internal directories.