Skip to content

Commit

Permalink
Add ID for Tokina atx-i 11-16mm F2.8 CF (Nikon)
Browse files Browse the repository at this point in the history
Fixes #1078

(cherry picked from commit 2870a16)
  • Loading branch information
kd35a authored and D4N committed Jan 15, 2020
1 parent 0890d66 commit 5360d82
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nikonmn_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2538,6 +2538,8 @@ fmountlens[] = {
{0xCF,0x47,0x5C,0x8E,0x31,0x3D,0xDF,0x0E,0x00,0x00,0x00, "Tamron", "A030", "SP 70-300mm F/4-5.6 Di VC USD"},
//
{0xf4,0x4c,0x7c,0x7c,0x2c,0x2c,0x4b,0x02,0x00,0x00,0x00, "Sigma", "", "APO MACRO 180mm F3.5 EX DG"},
// https://github.com/Exiv2/exiv2/issues/1078
{0x80,0x48,0x1C,0x29,0x24,0x24,0x7A,0x06,0x00,0x00,0x00, "Tokina", "", "atx-i 11-16mm F2.8 CF"},
//
{0,0,0,0,0,0,0,0,0,0,0, NULL, NULL, NULL}
};
Expand Down
Binary file added test/data/Tokina_atx-i_11-16mm_F2.8_CF.exv
Binary file not shown.
15 changes: 15 additions & 0 deletions tests/bugfixes/github/test_issue_1078.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-

import system_tests

class NikonTokinaLens_atx_i_11_16_F28(metaclass=system_tests.CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/1078"

filename = "$data_path/Tokina_atx-i_11-16mm_F2.8_CF.exv"
commands = ["$exiv2 -pa --grep lensid/i $filename"]
stderr = [""]
stdout = [""
"""Exif.NikonLd3.LensIDNumber Byte 1 Tokina atx-i 11-16mm F2.8 CF
"""
]
retval = [0]

0 comments on commit 5360d82

Please sign in to comment.