From e8f984342629d43d82b83c8f7a9b6b48130fc917 Mon Sep 17 00:00:00 2001 From: BuYoungLee <52227539+buYoung@users.noreply.github.com> Date: Sun, 21 Jun 2020 11:35:23 +0900 Subject: [PATCH] Update videoio.go --- videoio.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/videoio.go b/videoio.go index 13f7620f..e911e1fc 100644 --- a/videoio.go +++ b/videoio.go @@ -313,6 +313,12 @@ func (vw *VideoWriter) Write(img Mat) error { return nil } +// return VideoWriter Point for unsafe.Pointer +// +func (vw *VideoWriter) Ptr() unsafe.Pointer { + return unsafe.Pointer(vw.p) +} + // OpenVideoCapture return VideoCapture specified by device ID if v is a // number. Return VideoCapture created from video file, URL, or GStreamer // pipeline if v is a string.