lib/phash/image.rb in pHash-1.0.0 vs lib/phash/image.rb in pHash-1.0.1

- old
+ new

@@ -7,16 +7,16 @@ # param hash of type ulong64 (must be 64-bit variable) # return int value - -1 for failure, 1 for success # # int ph_dct_imagehash(const char* file, ulong64 &hash); # - attach_function :ph_dct_imagehash, [:string, :pointer], :int + attach_function :ph_dct_imagehash, [:string, :pointer], :int, :blocking => true # no info in pHash.h # # int ph_hamming_distance(const ulong64 hash1,const ulong64 hash2); # - attach_function :ph_hamming_distance, [:uint64, :uint64], :int + attach_function :ph_hamming_distance, [:uint64, :uint64], :int, :blocking => true class << self # Get image file hash using <tt>ph_dct_imagehash</tt> def image_hash(path) hash_p = FFI::MemoryPointer.new :ulong_long