Currently only Mat.data exists, which will return a Uint8List, but in some cases, users want to access data pointer directly for better performance, e.g., play videos and set the data of a texture with raw pointer.
TODO:
// get the data pinter of a Mat
// DO NOT free by yourself, the memory is managed by Mat
(int length, ffi.Pointer<ffi.Uint8> ptr) get dataPtr(){}
Currently only
Mat.data
exists, which will return a Uint8List, but in some cases, users want to access data pointer directly for better performance, e.g., play videos and set the data of a texture with raw pointer.TODO: