lib_raw 0.0.1 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf2f96ea10537e5d4740822619592ce3070bbbd7
4
- data.tar.gz: c797b83b2e26407a2be28d131779e819e9a27b8a
3
+ metadata.gz: a7369ccfd2d7f4a6b29fc7c4d9b919c6734cb34d
4
+ data.tar.gz: baa51fcb7a48248151ff1c3a1fa34885713ba98d
5
5
  SHA512:
6
- metadata.gz: 7a8023122bedeb21edb2939cf0d05b41ef53089f3f28b5d833147d6c513ee27b39fa3d576b6eed699b719f4bd20e0eea48ea109cabc2630aec71b986416c1816
7
- data.tar.gz: eba82ebba2bc067ebeb9e6628c315924c62bde9c7cedf22735cbbfaac1e5baee05345e90c54a6fe1b020b439a0c53a3715ba797034e57a6caaad21941c73dbaa
6
+ metadata.gz: 304e3a09d43e3954aecda76829f33643030d6c5f03896f3141499eef0f60179182195304e5a17bc344be0d60b730f7efb95d5cb775a4a047029dbb111441ddb6
7
+ data.tar.gz: 3c6d531842a4acbffa8135a78c7546f65539f6dcb243bf16771fd3d81f93d7dadf54e4f80eddbd4186168e7d93f90fefb67491d8983821551c823ebc69b813f5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # LibRaw
2
2
 
3
- TODO: Write a gem description
3
+ LibRaw is a library for reading RAW files obtained from digital photo cameras
4
4
 
5
5
  ## Installation
6
6
 
@@ -586,6 +586,39 @@ VALUE rb_output_param_set_bright(VALUE self, VALUE val)
586
586
  return self;
587
587
  }
588
588
 
589
+ VALUE rb_output_param_set_threshold(VALUE self, VALUE val)
590
+ {
591
+ libraw_output_params_t *params = get_output_params(self);
592
+
593
+ params->threshold = RFLOAT_VALUE(rb_Float(val));
594
+
595
+ apply_output_param(self, params);
596
+
597
+ return self;
598
+ }
599
+
600
+ VALUE rb_output_param_set_half_size(VALUE self, VALUE val)
601
+ {
602
+ libraw_output_params_t *params = get_output_params(self);
603
+
604
+ params->half_size = !(val==Qnil || val==Qfalse);
605
+
606
+ apply_output_param(self, params);
607
+
608
+ return self;
609
+ }
610
+
611
+ VALUE rb_output_param_set_four_color_rgb(VALUE self, VALUE val)
612
+ {
613
+ libraw_output_params_t *params = get_output_params(self);
614
+
615
+ params->four_color_rgb = !(val==Qnil || val==Qfalse);
616
+
617
+ apply_output_param(self, params);
618
+
619
+ return self;
620
+ }
621
+
589
622
  VALUE rb_output_param_set_highlight(VALUE self, VALUE val)
590
623
  {
591
624
  libraw_output_params_t *params = get_output_params(self);
@@ -619,6 +652,127 @@ VALUE rb_output_param_set_use_camera_wb(VALUE self, VALUE val)
619
652
  return self;
620
653
  }
621
654
 
655
+ VALUE rb_output_param_set_use_camera_matrix(VALUE self, VALUE val)
656
+ {
657
+ libraw_output_params_t *params = get_output_params(self);
658
+
659
+ params->use_camera_matrix = !(val==Qnil || val==Qfalse);
660
+
661
+ apply_output_param(self, params);
662
+
663
+ return self;
664
+ }
665
+
666
+ VALUE rb_output_param_set_output_color(VALUE self, VALUE val)
667
+ {
668
+ libraw_output_params_t *params = get_output_params(self);
669
+
670
+ params->output_color = NUM2LONG(val);
671
+
672
+ apply_output_param(self, params);
673
+
674
+ return self;
675
+ }
676
+
677
+ VALUE rb_output_param_set_output_bps(VALUE self, VALUE val)
678
+ {
679
+ libraw_output_params_t *params = get_output_params(self);
680
+
681
+ params->output_bps = NUM2LONG(val)==16 ? 16 : 8;
682
+
683
+ apply_output_param(self, params);
684
+
685
+ return self;
686
+ }
687
+
688
+ VALUE rb_output_param_set_output_tiff(VALUE self, VALUE val)
689
+ {
690
+ libraw_output_params_t *params = get_output_params(self);
691
+
692
+ params->output_tiff = !(val==Qnil || val==Qfalse);
693
+
694
+ apply_output_param(self, params);
695
+
696
+ return self;
697
+ }
698
+
699
+ VALUE rb_output_param_set_flip(VALUE self, VALUE val)
700
+ {
701
+ libraw_output_params_t *params = get_output_params(self);
702
+
703
+ params->user_flip = NUM2LONG(val);
704
+
705
+ apply_output_param(self, params);
706
+
707
+ return self;
708
+ }
709
+
710
+ VALUE rb_output_param_set_quality(VALUE self, VALUE val)
711
+ {
712
+ libraw_output_params_t *params = get_output_params(self);
713
+
714
+ params->user_qual = NUM2LONG(val);
715
+
716
+ apply_output_param(self, params);
717
+
718
+ return self;
719
+ }
720
+
721
+ VALUE rb_output_param_set_black(VALUE self, VALUE val)
722
+ {
723
+ libraw_output_params_t *params = get_output_params(self);
724
+
725
+ params->user_black = NUM2LONG(val);
726
+
727
+ apply_output_param(self, params);
728
+
729
+ return self;
730
+ }
731
+
732
+ VALUE rb_output_param_set_saturation(VALUE self, VALUE val)
733
+ {
734
+ libraw_output_params_t *params = get_output_params(self);
735
+
736
+ params->user_sat = NUM2LONG(val);
737
+
738
+ apply_output_param(self, params);
739
+
740
+ return self;
741
+ }
742
+
743
+ VALUE rb_output_param_set_median_filter_passes(VALUE self, VALUE val)
744
+ {
745
+ libraw_output_params_t *params = get_output_params(self);
746
+
747
+ params->user_sat = NUM2LONG(val);
748
+
749
+ apply_output_param(self, params);
750
+
751
+ return self;
752
+ }
753
+
754
+ VALUE rb_output_param_set_no_auto_bright(VALUE self, VALUE val)
755
+ {
756
+ libraw_output_params_t *params = get_output_params(self);
757
+
758
+ params->no_auto_bright = !(val==Qnil || val==Qfalse);
759
+
760
+ apply_output_param(self, params);
761
+
762
+ return self;
763
+ }
764
+
765
+ VALUE rb_output_param_set_use_fuji_rotate(VALUE self, VALUE val)
766
+ {
767
+ libraw_output_params_t *params = get_output_params(self);
768
+
769
+ params->use_fuji_rotate = !(val==Qnil || val==Qfalse);
770
+
771
+ apply_output_param(self, params);
772
+
773
+ return self;
774
+ }
775
+
622
776
  VALUE rb_output_param_set_fbdd_noiserd(VALUE self, VALUE val)
623
777
  {
624
778
  libraw_output_params_t *params = get_output_params(self);
@@ -1011,9 +1165,23 @@ extern "C" void Init_lib_raw(void)
1011
1165
  rb_define_method(rb_cOutputParam, "gamma", RUBY_METHOD_FUNC(rb_output_param_gamma), 2);
1012
1166
  rb_define_method(rb_cOutputParam, "whitebalance", RUBY_METHOD_FUNC(rb_output_param_whitebalance), 4);
1013
1167
  rb_define_method(rb_cOutputParam, "bright=", RUBY_METHOD_FUNC(rb_output_param_set_bright), 1);
1168
+ rb_define_method(rb_cOutputParam, "threshold=", RUBY_METHOD_FUNC(rb_output_param_set_threshold), 1);
1169
+ rb_define_method(rb_cOutputParam, "half_size=", RUBY_METHOD_FUNC(rb_output_param_set_half_size), 1);
1170
+ rb_define_method(rb_cOutputParam, "four_color_rgb=", RUBY_METHOD_FUNC(rb_output_param_set_four_color_rgb), 1);
1014
1171
  rb_define_method(rb_cOutputParam, "highlight=", RUBY_METHOD_FUNC(rb_output_param_set_highlight), 1);
1015
1172
  rb_define_method(rb_cOutputParam, "use_auto_wb=", RUBY_METHOD_FUNC(rb_output_param_set_use_auto_wb), 1);
1016
1173
  rb_define_method(rb_cOutputParam, "use_camera_wb=", RUBY_METHOD_FUNC(rb_output_param_set_use_camera_wb), 1);
1174
+ rb_define_method(rb_cOutputParam, "use_camera_matrix=", RUBY_METHOD_FUNC(rb_output_param_set_use_camera_matrix), 1);
1175
+ rb_define_method(rb_cOutputParam, "output_color=", RUBY_METHOD_FUNC(rb_output_param_set_output_color), 1);
1176
+ rb_define_method(rb_cOutputParam, "output_bps=", RUBY_METHOD_FUNC(rb_output_param_set_output_bps), 1);
1177
+ rb_define_method(rb_cOutputParam, "output_tiff=", RUBY_METHOD_FUNC(rb_output_param_set_output_tiff), 1);
1178
+ rb_define_method(rb_cOutputParam, "flip=", RUBY_METHOD_FUNC(rb_output_param_set_flip), 1);
1179
+ rb_define_method(rb_cOutputParam, "quality=", RUBY_METHOD_FUNC(rb_output_param_set_quality), 1);
1180
+ rb_define_method(rb_cOutputParam, "black=", RUBY_METHOD_FUNC(rb_output_param_set_black), 1);
1181
+ rb_define_method(rb_cOutputParam, "saturation=", RUBY_METHOD_FUNC(rb_output_param_set_saturation), 1);
1182
+ rb_define_method(rb_cOutputParam, "median_filter_passes=", RUBY_METHOD_FUNC(rb_output_param_set_median_filter_passes), 1);
1183
+ rb_define_method(rb_cOutputParam, "no_auto_bright=", RUBY_METHOD_FUNC(rb_output_param_set_no_auto_bright), 1);
1184
+ rb_define_method(rb_cOutputParam, "use_fuji_rotate=", RUBY_METHOD_FUNC(rb_output_param_set_use_fuji_rotate), 1);
1017
1185
  rb_define_method(rb_cOutputParam, "fbdd_noiserd=", RUBY_METHOD_FUNC(rb_output_param_set_fbdd_noiserd), 1);
1018
1186
 
1019
1187
 
@@ -90,9 +90,23 @@ extern VALUE rb_output_param_cropbox(VALUE self, VALUE x, VALUE y, VALUE w, VALU
90
90
  extern VALUE rb_output_param_gamma(VALUE self, VALUE pwr, VALUE ts);
91
91
  extern VALUE rb_output_param_whitebalance(VALUE self, VALUE r, VALUE g, VALUE b, VALUE g2);
92
92
  extern VALUE rb_output_param_set_bright(VALUE self, VALUE val);
93
+ extern VALUE rb_output_param_set_threshold(VALUE self, VALUE val);
94
+ extern VALUE rb_output_param_set_half_size(VALUE self, VALUE val);
95
+ extern VALUE rb_output_param_set_four_color_rgb(VALUE self, VALUE val);
93
96
  extern VALUE rb_output_param_set_highlight(VALUE self, VALUE val);
94
97
  extern VALUE rb_output_param_set_use_auto_wb(VALUE self, VALUE val);
95
98
  extern VALUE rb_output_param_set_use_camera_wb(VALUE self, VALUE val);
99
+ extern VALUE rb_output_param_set_use_camera_matrix(VALUE self, VALUE val);
100
+ extern VALUE rb_output_param_set_output_color(VALUE self, VALUE val);
101
+ extern VALUE rb_output_param_set_output_bps(VALUE self, VALUE val);
102
+ extern VALUE rb_output_param_set_output_tiff(VALUE self, VALUE val);
103
+ extern VALUE rb_output_param_set_flip(VALUE self, VALUE val);
104
+ extern VALUE rb_output_param_set_quality(VALUE self, VALUE val);
105
+ extern VALUE rb_output_param_set_black(VALUE self, VALUE val);
106
+ extern VALUE rb_output_param_set_saturation(VALUE self, VALUE val);
107
+ extern VALUE rb_output_param_set_median_filter_passes(VALUE self, VALUE val);
108
+ extern VALUE rb_output_param_set_no_auto_bright(VALUE self, VALUE val);
109
+ extern VALUE rb_output_param_set_use_fuji_rotate(VALUE self, VALUE val);
96
110
  extern VALUE rb_output_param_set_fbdd_noiserd(VALUE self, VALUE val);
97
111
 
98
112
  // LibRaw::MakerNote
@@ -1,3 +1,3 @@
1
1
  module LibRaw
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["yoshida.eth0@gmail.com"]
11
11
  spec.description = %q{LibRaw is a library for reading RAW files obtained from digital photo cameras}
12
12
  spec.summary = %q{LibRaw is a library for reading RAW files obtained from digital photo cameras}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/yoshida-eth0/ruby-lib_raw"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lib_raw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshida Tetsuya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,7 +58,7 @@ files:
58
58
  - lib/lib_raw.rb
59
59
  - lib/lib_raw/version.rb
60
60
  - lib_raw.gemspec
61
- homepage: ''
61
+ homepage: https://github.com/yoshida-eth0/ruby-lib_raw
62
62
  licenses:
63
63
  - MIT
64
64
  metadata: {}