gmultimedia

package
v0.0.0-...-04ff805 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SuffixsOfAudio = []string{".mp3", ".aac", ".acm", ".aif", ".aifc", ".flac", ".wma", ".wav", ".midi"}
View Source
var SuffixsOfImage = []string{".png", ".jpeg", ".jpg", ".bmp", ".gif"}
View Source
var SuffixsOfVideo = []string{".mp4", ".mp5", ".h264", ".h265", ".flv", ".webm", ".mkv", ".rm", ".rmvb", ".mpg", ".mpeg", ".avi", ".wmv", ".asf", ".mov", ".qt"}

Functions

This section is empty.

Types

type MediaFmt

type MediaFmt int
const (
	MediaFmtUnknown MediaFmt = -1
	MediaFmtPNG     MediaFmt = 0
	MediaFmtSVG     MediaFmt = 1
	MediaFmtJPG     MediaFmt = 2
	MediaFmtWEBP    MediaFmt = 3
	MediaFmtGIF     MediaFmt = 4
	MediaFmtFLV     MediaFmt = 5
	MediaFmtMOV     MediaFmt = 6
	MediaFmtMP4     MediaFmt = 7
)

func DetectBuffer

func DetectBuffer(file []byte) (MediaFmt, error)

func DetectFile

func DetectFile(filename string) (MediaFmt, error)

Jump to

Keyboard shortcuts

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