Documentation
¶
Index ¶
- func ConvertTo2DArray(arr []byte, rows int) [][]byte
- func DecodeVideo(inputFile string, outputFile string, a int, b int, width int, height int, ...) error
- func DecodeVideoByBase64(encodeFile string, decodeFile string, base64Str string) error
- func Degarble(laby string, source string, output string)
- func EncodeVideo(inputFile string, outputFile string, width int, height int, a int, b int) (err error, base64Str string)
- func Garble(laby, source, output string)
- func Generate(width int, height int, mode string, name string)
- func GenerateRandomImage(lst [][]int, origin, output string) bool
- func GenerateRandomLaby(width int, height int, mode string) [][]int
- func GenerateRandomName(length int) string
- func GetNextMultiple(length int) int
- func LabyFileToList(name string) [][]int
- func LabyToFile(s string, name string) bool
- func LabyToStr(arr [][]int) string
- func LogError(s string)
- func LogInfo(s string)
- func LogPanic(s string)
- func LogWarn(s string)
- func RestoreOriginalImage(lst [][]int, origin, restore string) bool
- func RunCommand(command string, args []string) error
- func VideoDegarble(laby string, source string, framerate int, routines int)
- func VideoGarble(laby, source string, framerate int, routines int)
- func VideoGarble1(laby, source string, framerate int, routines int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertTo2DArray ¶ added in v1.2.0
func DecodeVideo ¶ added in v1.2.0
func DecodeVideo(inputFile string, outputFile string, a int, b int, width int, height int, length int, rows int, hashSha256 *string) error
DecodeVideo 反向函数实现:将视频转换回原始文件
func DecodeVideoByBase64 ¶ added in v1.2.0
DecodeVideoByBase64 通过 base64 字符串解码视频
func EncodeVideo ¶ added in v1.2.0
func GenerateRandomImage ¶
func GenerateRandomName ¶ added in v1.2.0
GenerateRandomName 生成随机名称函数
func GetNextMultiple ¶ added in v1.2.0
func LabyFileToList ¶
func LabyToFile ¶
func RestoreOriginalImage ¶
func RunCommand ¶
func VideoDegarble ¶ added in v1.2.0
func VideoGarble ¶ added in v1.2.0
func VideoGarble1 ¶ added in v1.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.