forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpixel_buffer_observation.gen.go
73 lines (59 loc) · 2.17 KB
/
pixel_buffer_observation.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"unsafe"
"github.com/progrium/macdriver/macos/corevideo"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [PixelBufferObservation] class.
var PixelBufferObservationClass = _PixelBufferObservationClass{objc.GetClass("VNPixelBufferObservation")}
type _PixelBufferObservationClass struct {
objc.Class
}
// An interface definition for the [PixelBufferObservation] class.
type IPixelBufferObservation interface {
IObservation
PixelBuffer() corevideo.PixelBufferRef
FeatureName() string
}
// An object that represents an image that an image analysis request produces. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnpixelbufferobservation?language=objc
type PixelBufferObservation struct {
Observation
}
func PixelBufferObservationFrom(ptr unsafe.Pointer) PixelBufferObservation {
return PixelBufferObservation{
Observation: ObservationFrom(ptr),
}
}
func (pc _PixelBufferObservationClass) Alloc() PixelBufferObservation {
rv := objc.Call[PixelBufferObservation](pc, objc.Sel("alloc"))
return rv
}
func (pc _PixelBufferObservationClass) New() PixelBufferObservation {
rv := objc.Call[PixelBufferObservation](pc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewPixelBufferObservation() PixelBufferObservation {
return PixelBufferObservationClass.New()
}
func (p_ PixelBufferObservation) Init() PixelBufferObservation {
rv := objc.Call[PixelBufferObservation](p_, objc.Sel("init"))
return rv
}
// The image that results from a request with image output. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnpixelbufferobservation/2890132-pixelbuffer?language=objc
func (p_ PixelBufferObservation) PixelBuffer() corevideo.PixelBufferRef {
rv := objc.Call[corevideo.PixelBufferRef](p_, objc.Sel("pixelBuffer"))
return rv
}
// A feature name that the CoreML model defines. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnpixelbufferobservation/3131945-featurename?language=objc
func (p_ PixelBufferObservation) FeatureName() string {
rv := objc.Call[string](p_, objc.Sel("featureName"))
return rv
}