-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcamera_linux_bindings_generated.dart
62 lines (52 loc) · 1.89 KB
/
camera_linux_bindings_generated.dart
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
// ignore_for_file: always_specify_types
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.
import 'dart:ffi' as ffi;
/// Bindings for `src/camera_linux.h`.
///
/// Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
///
class CameraLinuxBindings {
/// Holds the symbol lookup function.
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
_lookup;
/// The symbols are looked up in [dynamicLibrary].
CameraLinuxBindings(ffi.DynamicLibrary dynamicLibrary)
: _lookup = dynamicLibrary.lookup;
/// The symbols are looked up with [lookup].
CameraLinuxBindings.fromLookup(
ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
lookup)
: _lookup = lookup;
void startVideoCaptureInThread() {
return _startVideoCaptureInThread();
}
late final _startVideoCaptureInThreadPtr =
_lookup<ffi.NativeFunction<ffi.Void Function()>>(
'startVideoCaptureInThread');
late final _startVideoCaptureInThread =
_startVideoCaptureInThreadPtr.asFunction<void Function()>();
void stopVideoCapture() {
return _stopVideoCapture();
}
late final _stopVideoCapturePtr =
_lookup<ffi.NativeFunction<ffi.Void Function()>>('stopVideoCapture');
late final _stopVideoCapture =
_stopVideoCapturePtr.asFunction<void Function()>();
ffi.Pointer<ffi.Uint8> getLatestFrameBytes(
ffi.Pointer<ffi.Int> length,
) {
return _getLatestFrameBytes(
length,
);
}
late final _getLatestFrameBytesPtr = _lookup<
ffi.NativeFunction<
ffi.Pointer<ffi.Uint8> Function(
ffi.Pointer<ffi.Int>)>>('getLatestFrameBytes');
late final _getLatestFrameBytes = _getLatestFrameBytesPtr
.asFunction<ffi.Pointer<ffi.Uint8> Function(ffi.Pointer<ffi.Int>)>();
}