Drew Short
9166422065
FFI Work
9 years ago
Drew Short
7fe8fa06e7
Project warnings cleanup
Cache filling methods follow standard and return a Result<bool,Error>
The methods to place the data in the cache from the hash source are wrapped in a match statement.
9 years ago
Drew Short
8d9161bef3
Added Compression To Cached Matrix Data
Compression using flate2 has been added to the caching controller
Made the hash code call for cached matricies before calculating them again if
possible
Changed the FFI tests to be a bit more dynamic. That said, I just noticed that
python hates unsigned 64bit numbers. Need to find a way around this. I
should be able to compare the native Rust code against the python FFI and
get the same results for a specific file.
9 years ago
Drew Short
58579b2dcd
FFI Interface methods and tests
Added FFI interface methods to the library
Added a set of tests for the FFI. currently only the python one is working as intended. the c one isn't complete yet.
Need to add example tests for java, ruby, go?...
Woot! FFI!!!
9 years ago
Drew Short
23f0eec0f4
Externalizing
Added pub extern methods to the library to expose as a c api
set cargo to build a dynamic library as well as an rlib for the included binary.
9 years ago
Drew Short
0d128cb8aa
Style changes
Changed the repo to ignore the rs.bk files produced by rustfmt
Ran RustFmt on the repository to cleanup the code
9 years ago
Drew Short
6de0800656
Fixing issues with the latest dft library, and cleaning up the code.
9 years ago
Drew Short
8b2de14eb6
Working on storing DFT's in the cache since we have it.
9 years ago
Drew Short
c853b63827
Working on caching the DCT/DFT
9 years ago
Drew Short
0f6574e7c7
Updates to caching and the unit tests to ensure this build runs.
9 years ago
Drew Short
7ed4752420
Same work for DHash and PHash. Also updating testing to the new model.
9 years ago
Drew Short
d25bd4db8e
Ported AHash to the new style for hashes. Set git to ignore sublime-workspace files
9 years ago
Drew Short
899b847850
Added rounding to the 2d DFT. Moved to using enums for precision.
9 years ago
Drew Short
9bff272fef
Refactoring the hashing code
9 years ago
Drew Short
3a5a129cce
Removed an error message. Updated the caching to differentiate between file sizes.
9 years ago
Drew Short
5ef33aef97
Working simple caching of the images used to hash. Needs some additional work, but much better than on dry runs.
9 years ago
Drew Short
18d715ef1c
Working on a simple caching solution for already processed image buffers
9 years ago
Drew Short
412bb4dc60
Working interface with the binary being able to basic processing.
9 years ago
Drew Short
9f6423932c
Here come the phashes
9 years ago
Drew Short
e30125b8ca
Working on phash prep work. Resolved a bunch of warnings.
9 years ago
Drew Short
69cbd19ba1
Forgot to uncomment the ahash test and the directory select test from local testing.
9 years ago
Drew Short
65991e6755
Working dhash implementation and testing.
9 years ago
Drew Short
cad7bb6b45
Working on the dhash and phash implementations for the library.
9 years ago
Drew Short
e6671fa3ce
Working on a testing fix. Also comitted a travis.yml to let travis build pihash.
9 years ago
Drew Short
ba86192900
Addition work and testing... Pretty sure there's some endianness weirdness still going on, have to test on x86 to confirm.
9 years ago
Drew Short
2849c529d4
Added full ahash test for sample_01. Renamed sample images for testing purposes. Working on a more comprehensive testing for ahashes.
9 years ago
Drew Short
bc229d478a
Changed product name to pihash for more convienient writing in functions. Updated the unit test to confirm that there are 12 test images
9 years ago
Drew Short
9f2b0d919e
Resized some images for the test. Updated the credits for the images. Added a test to confirm that we're reading files in the test directory.
9 years ago
Drew Short
20a439d173
Basic binary + library setup
9 years ago
Drew Short
7dd51e36c2
Created the project
9 years ago