tools

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const SPLIT_CHAR = "|"

Variables

This section is empty.

Functions

func Dcm4cheDateTimeDecode

func Dcm4cheDateTimeDecode(dateStr, timeStr string) (t1 time.Time, err error)

func DecodeCachePathImage

func DecodeCachePathImage(str string) (cache global.CachePathImage)

func DecodeCachePathVideo

func DecodeCachePathVideo(str string) (cache global.CachePathVideo)

func DownloadImage

func DownloadImage(u, targetType string) (bs []byte, err error)

func EncodeCachePathImage

func EncodeCachePathImage(cache global.CachePathImage) string

func EncodeCachePathVideo

func EncodeCachePathVideo(cache global.CachePathVideo) string

func FfProbe

func FfProbe(input string) (data string, err error)

func GenerateVideoFromFrames

func GenerateVideoFromFrames(root, instanceId, fnVideo string) error

func GenerateVideoFromImage

func GenerateVideoFromImage(imagePath, videoPath string) error

func IdStrCheckId

func IdStrCheckId(idStr, id string) bool

func IdStrDecodeInt

func IdStrDecodeInt(str string) []int

func IdStrDecodeString

func IdStrDecodeString(str string) []string

func IdStrEncodeInt

func IdStrEncodeInt(data []int) string

func IdStrEncodeString

func IdStrEncodeString(strs []string) string

func IdStrInsertIdInt

func IdStrInsertIdInt(joinStr string, id int) (result string, err error)

func IdStrInsertIdStr

func IdStrInsertIdStr(joinStr, id string) (result string, cnt int, err error)

func IdStrRemoveIdStr

func IdStrRemoveIdStr(idstr, id string) (idstrNew string, cnt int, err error)

func ImageGenerateThumbnail

func ImageGenerateThumbnail(fpath string, im image.Image, thumbSize int) error

func MediaGetDuration

func MediaGetDuration(fullpath string) (d float64, err error)

func SaveToFile

func SaveToFile(fn string, data []byte) error

func TimeDecode

func TimeDecode(t int64) time.Time

func TimeEncode

func TimeEncode(t time.Time) int64

func TimeEncodeNow

func TimeEncodeNow() int64

func TimeEncodeString

func TimeEncodeString(ts string) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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