Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrVipsNewImage = errors.New("failed init new image") ErrImageResize = errors.New("failed to resize the image") ErrImageExport = errors.New("failed export the image") )
View Source
var ( ErrVideoPreview = errors.New("failed create preview for video") ErrImagePreview = errors.New("failed create preview for image") )
View Source
var ( ErrCommandNotFound = errors.New("not found") ErrIncorrectFFmpegVersion = errors.New("can't be parsed") ErrOutdatedFFmpegVersion = errors.New("is outdated") ErrMetaInfoUnmarshal = errors.New("failed to decode file's meta information") ErrMetaInfoFramesCountParse = errors.New("failed to parse frames count from meta information") ErrMetaInfoDurationParse = errors.New("failed to parse duration from meta information") ErrVideoStreamNotFound = errors.New("video stream not found") ErrParseFrameRate = errors.New("failed to parse frame rate") ErrPullSnapshot = errors.New("failed to pull snapshot") ErrImageDecode = errors.New("failed to decode image") ErrImageEncode = errors.New("failed to encode image") ErrImageScale = errors.New("failed to scale image") ErrBufferCopy = errors.New("failed to copy buffer") )
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v1.1.0
type Option func(*Previewer)
func WithExcludedFiles ¶ added in v1.1.0
files = map[FilePath]struct{}.
func WithMaxFileSize ¶ added in v1.1.0
func WithMaxImages ¶ added in v1.1.0
func WithMaxVideos ¶ added in v1.1.0
func WithTimeout ¶ added in v1.1.0
type Previewer ¶ added in v1.1.0
type Previewer struct {
// contains filtered or unexported fields
}
func NewPreviewer ¶ added in v1.1.0
type VideoParams ¶ added in v1.1.0
type VideoParams struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.