const.dart
1.57 KB
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
/*
'C' Header definition
uint32_t *convertImage(uint8_t *plane0, uint8_t *plane1, uint8_t *plane2, int bytesPerRow, int bytesPerPixel, int width, int height);
*/
import 'dart:ffi';
/*
native convert camera image YUV420p to rgb
*/
typedef ConvertImageYuv420pToRGBC = Pointer<Uint32> Function(
Pointer<Uint8>,
Pointer<Uint8>,
Pointer<Uint8>,
Int32,
Int32,
Int32,
Int32,
Double,
Uint32,
Bool,
Bool,
);
typedef ConvertImageYuv420pToRGBFlutter = Pointer<Uint32> Function(
Pointer<Uint8>,
Pointer<Uint8>,
Pointer<Uint8>,
int,
int,
int,
int,
double,
int,
bool,
bool,
);
/*
native convert camera image YUV420p to grayscale 32 bit
*/
typedef ConvertImageYuv420pToGrayC = Pointer<Uint32> Function(
Pointer<Uint8>, Int32, Int32, Double, Uint32, Bool, Bool);
typedef ConvertImageYuv420pToGrayFlutter = Pointer<Uint32> Function(
Pointer<Uint8>, int, int, double, int, bool, bool);
/*
native convert camera image YUV420p to grayscale 8 bit
*/
typedef ConvertImageYuv420pToGray8BitC = Pointer<Uint8> Function(
Pointer<Uint8>, Int32, Int32, Double, Uint8, Bool, Bool);
typedef ConvertImageYuv420pToGray8BitFlutter = Pointer<Uint8> Function(
Pointer<Uint8>, int, int, double, int, bool, bool);
/*
native convert camera image YUV420sp( or NV12) to rgb
*/
typedef ConvertImageNV12ToRGBC = Pointer<Uint32> Function(Pointer<Uint8>,
Pointer<Uint8>, Int32, Int32, Int32, Int32, Double, Uint32, Bool, Bool);
typedef ConvertImageNV12ToRGBFlutter = Pointer<Uint32> Function(Pointer<Uint8>,
Pointer<Uint8>, int, int, int, int, double, int, bool, bool);