tools

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 21 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 added in v0.0.2

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 added in v0.0.2

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

func GenerateVideoFromFrames

func GenerateVideoFromFrames(root, instanceId, fnVideo string) error

func GenerateVideoFromFrames2 added in v0.0.2

func GenerateVideoFromFrames2(root, instanceId, fnVideo string) error

func GenerateVideoFromImage added in v0.0.2

func GenerateVideoFromImage(imagePath, videoPath string) error

func IdStrCheckId added in v0.0.2

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 added in v0.0.2

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

func ImageGenerateThumbnail added in v0.0.2

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

func MediaGetDuration added in v0.0.2

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