Drew Short
6a27b548fd
Introduced the concept of a cache_version so that we can change the cache style without segfaulting existing deployments.
9 years ago
Drew Short
b543cb397e
Moved the cache into a struct
9 years ago
Drew Short
b51d54fee4
Added a working version call for the version flag
9 years ago
Drew Short
45c251bb70
Fixing the C test to use the test images above this folder
9 years ago
Drew Short
2561756313
Updating the ffi py test to work on windows
9 years ago
Drew Short
a58e44c343
Merge branch 'master' of https://github.com/warricksothr/Perceptual-Image-Hashing
9 years ago
Drew Short
86b063dbe5
Revert "Bumped to 0.2.3 for changes"
This reverts commit 0e81fb9391
.
9 years ago
Drew Short
55657db2d7
Working python FFI example/test
9 years ago
Drew Short
2981b5faf8
Changing the buffer to only be created once, clearing it out with each run and at the end.
9 years ago
Drew Short
8640042cb3
buffer clearing for the c code. Changes to the python code. Working on getting a reasonable python FFI example in place.
9 years ago
Drew Short
62b1429994
Removed a wide character library that wasn't needed in the ffi c test.
9 years ago
Drew Short
af6547713f
Adding ignore for log files
9 years ago
Drew Short
439b506b97
Cleaned up that c code, and made it more like the python test that's still failing.
9 years ago
Drew Short
77f1a6623f
Working FFI C code
Proved that the python code is messed up somehow. C code calling the shared library works just fine.
9 years ago
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
0e81fb9391
Bumped to 0.2.3 for changes
Only breaks cached data, so not doing anything to the minor version.
Should add some commands to delete cached data if it causes an error
on reading. Namely the cached matrix data as we can tell if thats
corrupt thanks to the compression. Image data can be corrupted and
we wouldn't really know. ;(
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
fa66f676e5
Fixing the wildcard issues that cargo was complaining about publishing to crates.io
9 years ago
Drew Short
4d2b25d713
Incrementing patch version due to fixes with the dft interface changes.
9 years ago
Drew Short
8773a5a323
Merge branch 'master' of https://github.com/warricksothr/Perceptual-Image-Hashing
9 years ago
Drew Short
6de0800656
Fixing issues with the latest dft library, and cleaning up the code.
9 years ago
Drew Short
089bf9a993
Adding todo items
9 years ago
Drew Short
8b2de14eb6
Working on storing DFT's in the cache since we have it.
9 years ago
Drew Short
574b09d4f5
Merge branch 'master' of https://git.sothr.com/warricksothr/Perceptual-Image-Hashing
9 years ago
Drew Short
c853b63827
Working on caching the DCT/DFT
9 years ago
Drew Short
a57415c4ac
Merge branch 'master' of https://github.com/warricksothr/Perceptual-Image-Hashing
9 years ago
Drew Short
04cdb3ff92
Merge branch 'master' of https://github.com/warricksothr/Perceptual-Image-Hashing
9 years ago
Drew Short
ebb8e0e0f2
Tweaked the gitlab ci runner configuration
9 years ago
Drew Short
b4defe7306
Update README.md
Added the crates.io shield
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
5b00cc1b5d
Making sure the packaged crate doesn't include the test images. No reason for it to be anywhere but source control.
9 years ago
Drew Short
4e54076167
Merge branch 'master' of https://github.com/warricksothr/Perceptual-Image-Hashing
9 years ago
Drew Short
413e878fb7
Updating the Cargo.toml file
9 years ago
Drew Short
277dc16b83
Update README.md
Link was broken to travis.ci
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
c53d804145
Update README.md
Adding Appveyor build status link
9 years ago
Drew Short
8060591ef5
Adding appveyor build based on the one from rustc-serialize
9 years ago
Drew Short
4f8fc594b8
No need for the build stage
9 years ago
Drew Short
c8d6236892
Fixing an issue with the gitlab ci file
9 years ago
Drew Short
578c1bfdbe
Adding a gitlab ci build configuration
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