cheliequan
2023-02-07 9b21b25d1e891e2cda1d5b7ef6beb09fc308f6c5
shmparser/shmparser.go
@@ -7,8 +7,6 @@
*/
import "C"
import (
   "strings"
   "time"
   "unsafe"
)
@@ -23,8 +21,7 @@
}
// Image2Shm fill image to shm
func Image2Shm(shm []byte, cid, cname string, data []byte, w, h int, fid int64) {
   timestamp := strings.Replace(time.Now().Format("2006-01-02 15:04:05.000"), ".", ":", -1)
func Image2Shm(shm []byte, cid, cname, timestamp string, data []byte, w, h int, fid int64) {
   dataptr := (*C.uchar)(unsafe.Pointer(&data[0]))
   cidbyte := str2byte(cid)