exif 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/exif/exif.c +1 -0
- data/ext/exif/exif_entry_to_ivar.c +22 -18
- data/ext/exif/extconf.rb +16 -0
- data/lib/exif/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0de28879ec8434fe5be0f9d0991d964800ea0add8600d405bc6865005185666c
|
4
|
+
data.tar.gz: 39f9aa6a21e95d82b801f59e7453d650335ac8b19141c487640ccae6ac9c7a5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adb933cbd6ab8b5487346c4e8f3348df2337176f35b07eeef6bfa79c23ea1c619c0909e804577d2ceb2180796052a8d82e52c6fe33f147a1607ae8628be5a441
|
7
|
+
data.tar.gz: 6f9c748c4f7266f6f4de038cd60cc09fb92f69ceac2ad9faaa2c60c5295c20d2e04ab04463f41f2242f4369a3f31e4f33840eb027020e7f4cbae051850093977
|
data/ext/exif/exif.c
CHANGED
@@ -24,5 +24,6 @@ void Init_exif(void) {
|
|
24
24
|
rb_define_class_under(rb_mExif, "UnknownDataType", rb_eError);
|
25
25
|
rb_define_singleton_method(rb_mExif, "const_missing", rb_exif_const_missing,
|
26
26
|
1);
|
27
|
+
rb_define_const(rb_mExif, "LIBEXIF_VERSION", rb_str_new2(LIBEXIF_VERSION));
|
27
28
|
init_data();
|
28
29
|
}
|
@@ -447,6 +447,7 @@ const char *exif_entry_to_ivar(ExifEntry *ee) {
|
|
447
447
|
case EXIF_TAG_GPS_DIFFERENTIAL:
|
448
448
|
return "@gps_differential";
|
449
449
|
break;
|
450
|
+
#ifdef LIBEXIF_0_6_22_OR_HIGHER
|
450
451
|
case EXIF_TAG_BODY_SERIAL_NUMBER:
|
451
452
|
return "@body_serial_number";
|
452
453
|
break;
|
@@ -459,18 +460,6 @@ const char *exif_entry_to_ivar(ExifEntry *ee) {
|
|
459
460
|
case EXIF_TAG_GPS_H_POSITIONING_ERROR:
|
460
461
|
return "@gps_h_positioning_error";
|
461
462
|
break;
|
462
|
-
case EXIF_TAG_IMAGE_DEPTH:
|
463
|
-
return "@image_depth";
|
464
|
-
break;
|
465
|
-
case EXIF_TAG_ISO_SPEED:
|
466
|
-
return "@iso_speed";
|
467
|
-
break;
|
468
|
-
case EXIF_TAG_ISO_SPEEDLatitudeYYY:
|
469
|
-
return "@iso_speedlatitudeyyy";
|
470
|
-
break;
|
471
|
-
case EXIF_TAG_ISO_SPEEDLatitudeZZZ:
|
472
|
-
return "@iso_speedlatitudezzz";
|
473
|
-
break;
|
474
463
|
case EXIF_TAG_LENS_MAKE:
|
475
464
|
return "@lens_make";
|
476
465
|
break;
|
@@ -483,6 +472,26 @@ const char *exif_entry_to_ivar(ExifEntry *ee) {
|
|
483
472
|
case EXIF_TAG_LENS_SPECIFICATION:
|
484
473
|
return "@lens_specification";
|
485
474
|
break;
|
475
|
+
case EXIF_TAG_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE:
|
476
|
+
return "@source_exposure_times_of_composite_image";
|
477
|
+
break;
|
478
|
+
case EXIF_TAG_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE:
|
479
|
+
return "@source_image_number_of_composite_image";
|
480
|
+
break;
|
481
|
+
#endif
|
482
|
+
#ifdef LIBEXIF_0_6_23_OR_HIGHER
|
483
|
+
case EXIF_TAG_IMAGE_DEPTH:
|
484
|
+
return "@image_depth";
|
485
|
+
break;
|
486
|
+
case EXIF_TAG_ISO_SPEED:
|
487
|
+
return "@iso_speed";
|
488
|
+
break;
|
489
|
+
case EXIF_TAG_ISO_SPEEDLatitudeYYY:
|
490
|
+
return "@iso_speedlatitudeyyy";
|
491
|
+
break;
|
492
|
+
case EXIF_TAG_ISO_SPEEDLatitudeZZZ:
|
493
|
+
return "@iso_speedlatitudezzz";
|
494
|
+
break;
|
486
495
|
case EXIF_TAG_OFFSET_TIME:
|
487
496
|
return "@offset_time";
|
488
497
|
break;
|
@@ -498,15 +507,10 @@ const char *exif_entry_to_ivar(ExifEntry *ee) {
|
|
498
507
|
case EXIF_TAG_SENSITIVITY_TYPE:
|
499
508
|
return "@sensitivity_type";
|
500
509
|
break;
|
501
|
-
case EXIF_TAG_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE:
|
502
|
-
return "@source_exposure_times_of_composite_image";
|
503
|
-
break;
|
504
|
-
case EXIF_TAG_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE:
|
505
|
-
return "@source_image_number_of_composite_image";
|
506
|
-
break;
|
507
510
|
case EXIF_TAG_STANDARD_OUTPUT_SENSITIVITY:
|
508
511
|
return "@standard_output_sensitivity";
|
509
512
|
break;
|
513
|
+
#endif
|
510
514
|
}
|
511
515
|
return 0;
|
512
516
|
}
|
data/ext/exif/extconf.rb
CHANGED
@@ -5,4 +5,20 @@ $CFLAGS << ' -std=c99 '
|
|
5
5
|
pkg_config('libexif')
|
6
6
|
have_library('exif')
|
7
7
|
have_header('libexif/exif-data.h')
|
8
|
+
|
9
|
+
checking_for 'libexif >= 0.6.22' do
|
10
|
+
if try_const(%w[EXIF_TAG_LENS_SPECIFICATION ExifTag], 'libexif/exif-tag.h')
|
11
|
+
append_cflags('-D LIBEXIF_0_6_22_OR_HIGHER')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
checking_for 'libexif >= 0.6.23' do
|
16
|
+
if try_const(%w[EXIF_TAG_IMAGE_DEPTH ExifTag], 'libexif/exif-tag.h')
|
17
|
+
append_cflags('-D LIBEXIF_0_6_23_OR_HIGHER')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
libexif_version = pkg_config('libexif', 'modversion') || 'unknown'
|
22
|
+
append_cflags("-D LIBEXIF_VERSION='\"#{libexif_version}\"'")
|
23
|
+
|
8
24
|
create_makefile('exif/exif')
|
data/lib/exif/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exif
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jian Weihang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|