pHash 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.markdown +6 -2
- data/pHash.gemspec +1 -1
- metadata +3 -3
- data/audiophash.diff +0 -17
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2NlYjQ5MmIzODI3NmNmN2JjODUzZjE3NTcyYTYyMGM5M2NlODI0Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGYzMzkwODk2YTFiZDE4YTY5NDhiNjhkMDkyYzhlNTdhMjhlMWYxYw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjViZjJmNmE5NGViMTE3MDAzNzVmODdlZGExNTg3MGZhZDFkMTA5NTBmYTI3
|
10
|
+
N2I2NjQ3OTk2M2Y4NGEzNGUxYzU5NzYxYWNlZTIwZjI3ODU0MjgzOTQ2NTVm
|
11
|
+
OThlZWUxMDNkNjFiMjBiODZmNjIyODIzY2JmMTIzYTI5YTAyNDY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2MxZGE1MDhlMWY0MjQwMTIzZDVlNDBlMDllNmU3OTY0NzY5NmY0YWE3OTUw
|
14
|
+
YWI5ZmU3MWFhZTI1MmJkZmQ2NjUyMDZlZWQ2NzQ0MTM0MGZhMmRlZjk0ZWE1
|
15
|
+
ZmE2MDFiNWNiYTIyOTM2OTkxNTkzZWM4OGY4NDkxNDIzYzFiNzI=
|
data/README.markdown
CHANGED
@@ -8,7 +8,11 @@ Interface to [pHash](http://pHash.org/).
|
|
8
8
|
|
9
9
|
You can specify path to pHash library explicitly using environment variable like `PHASH_LIB=/opt/local/lib/libpHash.dylib`.
|
10
10
|
|
11
|
-
|
11
|
+
There are two problems with official version 0.9.6 of pHash. Both are fixed in a [fork of pHash](https://github.com/hszcg/pHash-0.9.6).
|
12
|
+
|
13
|
+
- Audio hash functions are not compiled with C linkage - you will get `FFI::NotFoundError` when comparing audio files. [Patch](https://github.com/hszcg/pHash-0.9.6/commit/e93af6d).
|
14
|
+
|
15
|
+
- Video hash functions are not compatible with latest ffmpeg changes - they will cause Segmentation Fault as explained in [Segmentation Fault error when trying to compare two videos with pHash library and its ruby bindings](http://stackoverflow.com/q/23414036/96823). [Patch](https://github.com/hszcg/pHash-0.9.6/commit/85218a6).
|
12
16
|
|
13
17
|
## Dependencies
|
14
18
|
|
@@ -57,6 +61,6 @@ Texts:
|
|
57
61
|
|
58
62
|
## Copyright
|
59
63
|
|
60
|
-
Copyright (c) 2011-
|
64
|
+
Copyright (c) 2011-2014 Ivan Kuchin.
|
61
65
|
Released under the GPLv3 as required by license of underlying pHash library.
|
62
66
|
See LICENSE.txt for details.
|
data/pHash.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pHash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -62,7 +62,6 @@ files:
|
|
62
62
|
- Gemfile
|
63
63
|
- LICENSE.txt
|
64
64
|
- README.markdown
|
65
|
-
- audiophash.diff
|
66
65
|
- lib/phash.rb
|
67
66
|
- lib/phash/all.rb
|
68
67
|
- lib/phash/audio.rb
|
@@ -179,3 +178,4 @@ test_files:
|
|
179
178
|
- spec/data/vader-o.mp3
|
180
179
|
- spec/phash_spec.rb
|
181
180
|
- spec/spec_helper.rb
|
181
|
+
has_rdoc:
|
data/audiophash.diff
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
--- src/audiophash.h.orig 2011-12-13 14:47:08.000000000 +0100
|
2
|
-
+++ src/audiophash.h 2011-12-13 14:47:12.000000000 +0100
|
3
|
-
@@ -34,7 +34,6 @@
|
4
|
-
|
5
|
-
extern "C" {
|
6
|
-
#include "ph_fft.h"
|
7
|
-
-}
|
8
|
-
|
9
|
-
/* /brief count number of samples in file
|
10
|
-
*
|
11
|
-
@@ -105,4 +104,6 @@
|
12
|
-
*/
|
13
|
-
double* ph_audio_distance_ber(uint32_t *hash_a , const int Na, uint32_t *hash_b, const int Nb, const float threshold, const int block_size, int &Nc);
|
14
|
-
|
15
|
-
+}
|
16
|
-
+
|
17
|
-
#endif
|