Skip to content

Commit

Permalink
Go 1.3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
3d0c committed Sep 30, 2014
1 parent e64a36b commit a82dea4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions imgproc/do.go
Expand Up @@ -65,10 +65,10 @@ func resize(o *Options, zoom *PixelDim, roi *Rect) []byte {
var data []byte

result := C.resizer(
(*_Ctype_Blob)(unsafe.Pointer(blobptr(o.Base))),
(*_Ctype_PixelDim)(unsafe.Pointer(zoom)),
(*C.Blob)(unsafe.Pointer(blobptr(o.Base))),
(*C.PixelDim)(unsafe.Pointer(zoom)),
C.int(o.Quality), C.int(o.Method), C.CString("."+o.Format),
(*_Ctype_CvRect)(initCvRect(roi)),
(*C.CvRect)(initCvRect(roi)),
)

if result != nil {
Expand Down Expand Up @@ -101,11 +101,11 @@ func blend(base *Source, o *Options, roi *Rect) []byte {
}

result := C.blender(
(*_Ctype_Blob)(blobptr(base)),
(*_Ctype_Blob)(blobptr(o.Foreground)),
(*_Ctype_Blob)(blobptr(o.Mask)),
(*C.Blob)(blobptr(base)),
(*C.Blob)(blobptr(o.Foreground)),
(*C.Blob)(blobptr(o.Mask)),
C.int(o.Quality), C.CString("."+o.Format), C.float(o.Alpha),
(*_Ctype_CvRect)(rect),
(*C.CvRect)(rect),
)

if result != nil {
Expand Down

5 comments on commit a82dea4

@mazhar266
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, can you fix this codebase for Go 1.11.4 too? @3d0c

@3d0c
Copy link
Owner Author

@3d0c 3d0c commented on a82dea4 Dec 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, sure. @mazhar266

@mazhar266
Copy link

@mazhar266 mazhar266 commented on a82dea4 Dec 23, 2018 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@3d0c
Copy link
Owner Author

@3d0c 3d0c commented on a82dea4 Dec 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mazhar266 i've updated cgo flags, but, i'm not sure that it was the original problem. I've tested to build imagio with the latest go (1.11.4) and opencv 2.4.13 and everything goes well. Could you please provide some error messages you've got?

@mazhar266
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I am giving you an update ASAP.

Thanks for quick response.

Please sign in to comment.