From 87fea24e8bba1bfbee707cdaa6f7979451531acc Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期六, 19 十月 2019 10:23:01 +0800 Subject: [PATCH] add interface rec duration --- goconv.go | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/goconv.go b/goconv.go index e7615c1..b81ec36 100644 --- a/goconv.go +++ b/goconv.go @@ -42,10 +42,10 @@ // GoConv conv type GoConv struct { - srcW int - srcH int - dstW int - dstH int + SrcW int + SrcH int + DstW int + DstH int conv C.cconv } @@ -106,7 +106,7 @@ defer C.free(unsafe.Pointer(bgr)) if bgr != nil { - return C.GoBytes(bgr, C.int(c.dstW*c.dstH*3)) + return C.GoBytes(bgr, C.int(c.DstW*c.DstH*3)) } return nil @@ -114,7 +114,7 @@ // Resize resize func (c *GoConv) Resize(src []byte) []byte { - if c.srcW == c.dstW && c.srcH == c.dstH { + if c.SrcW == c.DstW && c.SrcH == c.DstH { return src } return c.ConvToPicture(src) -- Gitblit v1.8.0