import 'dart:ffi'; /// C API constants from native/phash/include/phash.h const int kPhashSize = 24; const int kPhashBits = 105; typedef PhashFromBytesNative = Int32 Function( Pointer data, Int32 len, Pointer outHash, Int32 outCap, ); typedef PhashFromBytesDart = int Function( Pointer data, int len, Pointer outHash, int outCap, ); typedef PhashHammingNative = Int32 Function( Pointer a, Pointer b, ); typedef PhashHammingDart = int Function( Pointer a, Pointer b, );