libjpeg-ruby 0.8.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ext/jpeg/extconf.rb +11 -0
- data/ext/jpeg/jpeg.c +1333 -635
- data/lib/jpeg/version.rb +1 -1
- data/libjpeg-ruby.gemspec +3 -3
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b783545e4e23157c5af066c2f8d39add455c906d4f60556819fc74aed68a9fa5
|
4
|
+
data.tar.gz: 56e3776fcfa3d31cceb0b96cce74495058722f20032dc7586045cd2ba0df954e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 801f18210f83e85865672dda23cf832d20a2354a6f7c13d38c5e7f297f76e6477c9481cec7000f45816577eeddc333fa0d8871e2b129e008337c89a867260735
|
7
|
+
data.tar.gz: aa5a7cc6a9830253ea800429ee95f802cbf6ec8cc1c634ab802c4507e79721c22bdb39ccd3f3ea3b6d23e6b83eab633e6f5cda438530f9006af6a45fdf968260
|
data/README.md
CHANGED
@@ -50,7 +50,7 @@ IO.binwrite("test.bgr", raw)
|
|
50
50
|
| :expand_colormap | Booblean | T.B.D |
|
51
51
|
| :scale | Rational or Float | T.B.D |
|
52
52
|
| :dct_method | String or Symbol | T.B.D |
|
53
|
-
| :
|
53
|
+
| :with_exif_tags | Boolean | Specify whether to read Exif tag. When set to true, the content of Exif tag will included in the meta information. |
|
54
54
|
| :orientation | Boolean | Specify whether to parse Exif orientation. When set to true, apply orientation for decode result. |
|
55
55
|
|
56
56
|
#### supported output format
|
data/ext/jpeg/extconf.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'mkmf'
|
2
2
|
require 'optparse'
|
3
|
+
require 'rbconfig'
|
3
4
|
|
4
5
|
OptionParser.new { |opt|
|
5
6
|
opt.on('--with-jpeg-include=PATH', String) { |path|
|
@@ -16,4 +17,14 @@ OptionParser.new { |opt|
|
|
16
17
|
have_library( "jpeg")
|
17
18
|
have_header( "jpeglib.h")
|
18
19
|
|
20
|
+
RbConfig::CONFIG.instance_eval {
|
21
|
+
flag = false
|
22
|
+
|
23
|
+
if /gcc/ =~ self['CC']
|
24
|
+
flag = ['CFLAGS', 'CPPFLAGS'].any? {|s| /-D_FORTIFY_SOURCE/ =~ self[s]}
|
25
|
+
end
|
26
|
+
|
27
|
+
have_library( "ssp") if flag
|
28
|
+
}
|
29
|
+
|
19
30
|
create_makefile( "jpeg/jpeg")
|