fast_thumbhash 0.4.0 → 0.6.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/ext/fast_thumbhash/fast_thumbhash.c +2 -1
- data/ext/fast_thumbhash/fast_thumbhash.h +3 -3
- data/lib/fast_thumbhash/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3dd0e9e710dfa53775b6c718fd674fdc26fb0a17932058ca18e495b229d43e30
|
|
4
|
+
data.tar.gz: dc6e6c4203596d64bb3fb7e84fa63b72dda92cd5b7612a97371cb4ae418ae2af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29c037a813de79ec9a791484823fc42291e2bbc6dd5c8c6a8ecc4d5e17b9de52dfcc64cd554372604bd8068cc5239e898b982f875e0f1efd62cac53967dabf05
|
|
7
|
+
data.tar.gz: 2d0f21baac23f3c28e024d6755a45cdae2c9f4b1dd78243ccd98e6fa6e9b01520f1ff28f9c113d4ab0a9c2ecc0988a0fa801c141310d760337c8f1ec37cc002b
|
data/Gemfile.lock
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
#include <math.h>
|
|
4
4
|
#include <assert.h>
|
|
5
5
|
#include <stdbool.h>
|
|
6
|
+
#include <stdio.h>
|
|
6
7
|
|
|
7
8
|
typedef struct encoded_channel
|
|
8
9
|
{
|
|
@@ -379,7 +380,7 @@ void thumbhash_to_rgba(
|
|
|
379
380
|
|
|
380
381
|
double r, g, b, a;
|
|
381
382
|
|
|
382
|
-
if (fill_mode == CLAMP) {
|
|
383
|
+
if (fill_mode == CLAMP || fill_mode == BLUR) {
|
|
383
384
|
if (x < 0)
|
|
384
385
|
{
|
|
385
386
|
x = 0;
|