Image/ExifTool/NikonSettings.pm untested

filter: Statementstmt 0.0% 0 / 203 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 221 CC 4 SCAR 25.1
CC
4
Cov
0%
ProcessNikonSettings
20.0
BEGIN
2.0
BEGIN
2.0
CRAP 12.3
1 #------------------------------------------------------------------------------
2 # File: NikonSettings.pm
3 #
4 # Description: Read Nikon user settings
5 #
6 # Revisions: 2021/01/08 - Warren Hatch Created
7 # 2021/01/12 - PH Created ProcessNikonSettings() to extract tags
8 # by ID instead of using fixed offsets
9 #
10 # References: 1) Warren Hatch private communication (D6 and Z7_2)
11 #
12 #------------------------------------------------------------------------------
13  
14 package Image::ExifTool::NikonSettings;
15  
16 use strict;
17 use vars qw($VERSION);
18 use Image::ExifTool qw(:DataAccess :Utils);
19  
20 $VERSION = '1.08';
21  
22 sub ProcessNikonSettings($$$);
23  
24 my %enableDisable = ( 1 => 'Enable', 2 => 'Disable' );
25  
26 my %funcButtonZ6 = ( #forum16316
27 1 => 'AF-On or Subject Tracking', # (bug in 3.xx firmware?)
28 2 => 'AF Lock Only',
29 3 => 'AE Lock (hold)',
30 4 => 'AE Lock (reset on release)',
31 5 => 'AE Lock Only',
32 6 => 'AE/AF Lock',
33 7 => 'FV Lock',
34 8 => 'Flash Disable/Enable',
35 9 => 'Preview',
36 10 => 'Matrix Metering',
37 11 => 'Center-weighted Metering',
38 12 => 'Spot Metering',
39 13 => 'Highlight-weighted Metering',
40 14 => 'Bracketing Burst',
41 15 => 'Synchronized Release (Master)',
42 16 => 'Synchronized Release (Remote)', # no settings map to 17 or 18
43 19 => '+NEF(RAW)',
44 20 => 'Framing Grid Display',
45 # 21 - missing
46 22 => 'Zoom On/Off',
47 # 23 - missing
48 24 => 'My Menu',
49 25 => 'My Menu Top Item',
50 26 => 'Playback',
51 27 => 'Protect',
52 28 => 'Image Area',
53 29 => 'Image Quality',
54 30 => 'White Balance',
55 31 => 'Picture Control',
56 32 => 'Active D-Lighting',
57 33 => 'Metering',
58 34 => 'Flash Mode',
59 35 => 'Focus Mode',
60 36 => 'Auto Bracketing',
61 37 => 'Multiple Exposure',
62 38 => 'HDR',
63 39 => 'Exposure Delay Mode',
64 40 => 'Shutter/Aperture Lock',
65 41 => 'Focus Peaking',
66 42 => 'Rating',
67 43 => 'Non-CPU Lens',
68 44 => 'None',
69 );
70  
71 my %funcButtonZ7m2 = (
72 1 => 'AF-On',
73 2 => 'AF Lock Only',
74 3 => 'AE Lock (hold)',
75 4 => 'AE Lock (reset on release)',
76 5 => 'AE Lock Only',
77 6 => 'AE/AF Lock',
78 7 => 'FV Lock',
79 8 => 'Flash Disable/Enable',
80 9 => 'Preview',
81 10 => 'Matrix Metering',
82 11 => 'Center-weighted Metering',
83 12 => 'Spot Metering',
84 13 => 'Highlight-weighted Metering',
85 14 => 'Bracketing Burst',
86 15 => 'Synchronized Release (Master)',
87 16 => 'Synchronized Release (Remote)', # no settings map to 17 or 18
88 19 => '+NEF(RAW)',
89 20 => 'Subject Tracking',
90 21 => 'Silent Photography',
91 22 => 'LiveView Info Display On/Off',
92 23 => 'Grid Display',
93 24 => 'Zoom (Low)',
94 25 => 'Zoom (1:1)',
95 26 => 'Zoom (High)',
96 27 => 'My Menu',
97 28 => 'My Menu Top Item',
98 29 => 'Playback',
99 30 => 'Protect',
100 31 => 'Image Area',
101 32 => 'Image Quality',
102 33 => 'White Balance',
103 34 => 'Picture Control',
104 35 => 'Active-D Lighting',
105 36 => 'Metering',
106 37 => 'Flash Mode',
107 38 => 'Focus Mode',
108 39 => 'Auto Bracketing',
109 40 => 'Multiple Exposure',
110 41 => 'HDR',
111 42 => 'Exposure Delay Mode',
112 43 => 'Shutter/Aperture Lock',
113 44 => 'Focus Peaking',
114 45 => 'Rating 0',
115 46 => 'Rating 5',
116 47 => 'Rating 4',
117 48 => 'Rating 3',
118 49 => 'Rating 2',
119 50 => 'Rating 1', # no settings map to x'51 (possibly intended for 'Candidate for Delection'
120 52 => 'Non-CPU Lens',
121 52 => 'None',
122 );
123  
124 my %flickUpDownD6 = (
125 1 => 'Rating',
126 2 => 'Select To Send',
127 3 => 'Protect',
128 4 => 'Voice Memo',
129 5 => 'None',
130 );
131  
132 my %flickUpDownRatingD6 = (
133 1 => 'Rating 5',
134 2 => 'Rating 4',
135 3 => 'Rating 3',
136 4 => 'Rating 2',
137 5 => 'Rating 1',
138 6 => 'Candidate for Deletion',
139 );
140  
141 my %groupAreaCustom = (
142 1 => '1x7',
143 2 => '1x5',
144 3 => '3x7',
145 4 => '3x5',
146 5 => '3x3',
147 6 => '5x7',
148 7 => '5x5',
149 8 => '5x3',
150 9 => '5x1',
151 10 => '7x7',
152 11 => '7x5',
153 12 => '7x3',
154 13 => '7x1',
155 14 => '11x3',
156 15 => '11x1',
157 16 => '15x3',
158 17 => '15x1',
159 );
160  
161 my %iSOAutoHiLimitD6 = (
162 1 => 'ISO 200',
163 2 => 'ISO 250',
164 3 => 'ISO 280',
165 4 => 'ISO 320',
166 5 => 'ISO 400',
167 6 => 'ISO 500',
168 7 => 'ISO 560',
169 8 => 'ISO 640',
170 9 => 'ISO 800',
171 10 => 'ISO 1000',
172 11 => 'ISO 1100',
173 12 => 'ISO 1250',
174 13 => 'ISO 1600',
175 14 => 'ISO 2000',
176 15 => 'ISO 2200',
177 16 => 'ISO 2500',
178 17 => 'ISO 3200',
179 18 => 'ISO 4000',
180 19 => 'ISO 4500',
181 20 => 'ISO 5000',
182 21 => 'ISO 6400',
183 22 => 'ISO 8000',
184 23 => 'ISO 9000',
185 24 => 'ISO 10000',
186 25 => 'ISO 12800',
187 26 => 'ISO 16000',
188 27 => 'ISO 18000',
189 28 => 'ISO 20000',
190 29 => 'ISO 25600',
191 30 => 'ISO 32000',
192 31 => 'ISO 36000',
193 32 => 'ISO 40000',
194 33 => 'ISO 51200',
195 34 => 'ISO 64000',
196 35 => 'ISO 72000',
197 36 => 'ISO 81200',
198 37 => 'ISO 102400',
199 38 => 'ISO Hi 0.3',
200 39 => 'ISO Hi 0.5',
201 40 => 'ISO Hi 0.7',
202 41 => 'ISO Hi 1.0',
203 42 => 'ISO Hi 2.0',
204 43 => 'ISO Hi 3.0',
205 44 => 'ISO Hi 4.0',
206 45 => 'ISO Hi 5.0',
207 );
208  
209 my %iSOAutoHiLimitZ7 = (
210 1 => 'ISO 100',
211 2 => 'ISO 125',
212 4 => 'ISO 160',
213 5 => 'ISO 200',
214 6 => 'ISO 250',
215 8 => 'ISO 320',
216 9 => 'ISO 400',
217 10 => 'ISO 500',
218 12 => 'ISO 640',
219 13 => 'ISO 800',
220 14 => 'ISO 1000',
221 16 => 'ISO 1250',
222 17 => 'ISO 1600',
223 18 => 'ISO 2000',
224 20 => 'ISO 2500',
225 21 => 'ISO 3200',
226 22 => 'ISO 4000',
227 24 => 'ISO 5000',
228 25 => 'ISO 6400',
229 26 => 'ISO 8000',
230 28 => 'ISO 10000',
231 29 => 'ISO 12800',
232 30 => 'ISO 16000',
233 32 => 'ISO 20000',
234 33 => 'ISO 25600',
235 38 => 'ISO Hi 0.3',
236 39 => 'ISO Hi 0.5',
237 40 => 'ISO Hi 0.7',
238 41 => 'ISO Hi 1.0',
239 42 => 'ISO Hi 2.0',
240 );
241  
242 my %lensFuncButtonZ7m2 = (
243 1 => 'AF-On',
244 2 => 'AF Lock Only',
245 3 => 'AE Lock (hold)',
246 4 => 'AE Lock (reset on release)',
247 5 => 'AE Lock Only',
248 6 => 'AE/AF Lock',
249 7 => 'FV Lock',
250 8 => 'Flash Disable/Enable',
251 9 => 'Preview',
252 10 => 'Matrix Metering',
253 11 => 'Center-weighted Metering',
254 12 => 'Spot Metering',
255 13 => 'Highlight-weighted Metering',
256 14 => 'Bracketing Burst',
257 15 => 'Synchronized Release (Master)',
258 16 => 'Synchronized Release (Remote)', # no settings map to 17 or 18 (Z7II fw 1.01)
259 19 => '+NEF(RAW)',
260 20 => 'Subject Tracking',
261 21 => 'Grid Display',
262 22 => 'Zoom (Low)',
263 23 => 'Zoom (1:1)',
264 24 => 'Zoom (High)',
265 25 => 'My Menu',
266 26 => 'My Menu Top Item',
267 27 => 'Playback',
268 28 => 'None',
269 );
270  
271 my %limitNolimit = ( 1 => 'Limit', 2 => 'No Limit' );
272  
273 my %limtReleaseModeSel = (
274 0 => 'No Limit', # not sure why 0 and 2 both map to 'No Limit', but they do
275 1 => 'Limit',
276 2 => 'No Limit',
277 );
278  
279 my %menuBank = (
280 1 => 'A',
281 2 => 'B',
282 3 => 'C',
283 4 => 'D',
284 );
285  
286 my %noYes = ( 1 => 'No', 2 => 'Yes' );
287 my %offOn = ( 1 => 'Off', 2 => 'On' );
288 my %onOff = ( 1 => 'On', 2 => 'Off' );
289  
290 my %previewButtonD6 = (
291 1 => 'Preset Focus Point - Press To Recall',
292 2 => 'Preset Focus Point - Hold To Recall',
293 3 => 'AF-AreaMode S',
294 4 => 'AF-AreaMode D9',
295 5 => 'AF-AreaMode D25',
296 6 => 'AF-AreaMode D49',
297 7 => 'AF-AreaMode D105',
298 8 => 'AF-AreaMode 3D',
299 9 => 'AF-AreaMode Group',
300 10 => 'AF-AreaMode Group C1',
301 11 => 'AF-AreaMode Group C2',
302 12 => 'AF-AreaMode Auto Area',
303 13 => 'AF-AreaMode + AF-On S',
304 14 => 'AF-AreaMode + AF-On D9',
305 15 => 'AF-AreaMode + AF-On D25',
306 16 => 'AF-AreaMode + AF-On D49',
307 17 => 'AF-AreaMode + AF-On D105',
308 18 => 'AF-AreaMode + AF-On 3D',
309 19 => 'AF-AreaMode + AF-On Group',
310 20 => 'AF-AreaMode + AF-On Group C1',
311 21 => 'AF-AreaMode + AF-On Group C2',
312 22 => 'AF-AreaMode + AF-On Auto Area',
313 23 => 'AF-On',
314 24 => 'AF Lock Only',
315 25 => 'AE Lock (hold)',
316 26 => 'AE/WB Lock (hold)',
317 27 => 'AE Lock (reset on release)',
318 28 => 'AE Lock Only',
319 29 => 'AE/AF Lock',
320 30 => 'FV Lock',
321 31 => 'Flash Disable/Enable',
322 32 => 'Preview',
323 33 => 'Recall Shooting Functions',
324 34 => 'Bracketing Burst',
325 35 => 'Synchronized Release (Master)',
326 36 => 'Synchronized Release (Remote)', # no settings map to 37 or 38
327 39 => '+NEF(RAW)',
328 40 => 'Grid Display',
329 41 => 'Virtual Horizon',
330 42 => 'Voice Memo',
331 43 => 'Wired LAN',
332 44 => 'My Menu',
333 45 => 'My Menu Top Item',
334 46 => 'Playback',
335 47 => 'Filtered Playback',
336 48 => 'Photo Shooting Bank',
337 49 => 'AF Mode/AF Area Mode',
338 50 => 'Image Area',
339 51 => 'Active-D Lighting',
340 52 => 'Exposure Delay Mode',
341 53 => 'Shutter/Aperture Lock',
342 54 => '1 Stop Speed/Aperture',
343 55 => 'Non-CPU Lens',
344 56 => 'None',
345 );
346  
347 my %releaseFocus = (
348 1 => 'Release',
349 2 => 'Focus',
350 );
351  
352 my %tagMultiSelector = (
353 1 => 'Restart Standby Timer',
354 2 => 'Do Nothing',
355 );
356  
357 my %tagSecondarySlotFunction = (
358 1 => 'Overflow',
359 2 => 'Backup',
360 3 => 'NEF Primary + JPG Secondary',
361 4 => 'JPG Primary + JPG Secondary',
362 );
363  
364 my %tagSubSelector = (
365 1 => 'Same as MultiSelector',
366 2 => 'Focus Point Selection',
367 );
368  
369 my %thirdHalfFull = (
370 1 => '1/3 EV',
371 2 => '1/2 EV',
372 3 => '1 EV',
373 );
374  
375 my %times4s10s20s1m5m20m = (
376 1 => '4 s',
377 2 => '10 s',
378 3 => '20 s',
379 4 => '1 min',
380 5 => '5 min',
381 6 => '10 min',
382 );
383  
384 my %yesNo = ( 1 => 'Yes', 2 => 'No' );
385  
386 my %infoD6 = (
387 Condition => '$$self{Model} =~ /^NIKON D6\b/i',
388 Notes => 'D6',
389 );
390  
391 my %infoZ7 = (
392 Condition => '$$self{Model} =~ /^NIKON Z (7|7_2)\b/i',
393 Notes => 'Z7 and Z7_2',
394 );
395  
396 my %infoZSeries = (
397 Condition => '$$self{Model} =~ /^NIKON Z (5|50|6|6_2|7|7_2|fc)\b/i',
398 Notes => 'Z Series cameras thru November 2021',
399 );
400  
401 # Nikon Settings tags (ref 1, tag ID's ref PH)
402 %Image::ExifTool::NikonSettings::Main = (
403 PROCESS_PROC => \&ProcessNikonSettings,
404 GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' },
405 NOTES => q{
406 User settings for newer Nikon models. A number of the tags are marked as
407 Unknown only to reduce the volume of the normal output.
408 },
409 0x001 => [{
410 Name => 'ISOAutoHiLimit',
411 PrintConv => \%iSOAutoHiLimitD6,
412 %infoD6,
413 },{
414 Name => 'ISOAutoHiLimit',
415 PrintConv => \%iSOAutoHiLimitZ7,
416 %infoZ7,
417 }],
418 0x002 => [{
419 Name => 'ISOAutoFlashLimit',
420 PrintConv => {
421 1 => 'Same As Without Flash',
422 2 => 'ISO 200',
423 3 => 'ISO 250',
424 5 => 'ISO 320',
425 6 => 'ISO 400',
426 7 => 'ISO 500',
427 9 => 'ISO 640',
428 10 => 'ISO 800',
429 11 => 'ISO 1000',
430 13 => 'ISO 1250',
431 14 => 'ISO 1600',
432 15 => 'ISO 2000',
433 17 => 'ISO 2500',
434 18 => 'ISO 3200',
435 19 => 'ISO 4000',
436 21 => 'ISO 5000',
437 22 => 'ISO 6400',
438 23 => 'ISO 8000',
439 25 => 'ISO 10000',
440 26 => 'ISO 12800',
441 27 => 'ISO 16000',
442 29 => 'ISO 20000',
443 30 => 'ISO 25600',
444 31 => 'ISO 32000',
445 33 => 'ISO 40000',
446 34 => 'ISO 51200',
447 35 => 'ISO 64000',
448 36 => 'ISO 72000',
449 37 => 'ISO 81200',
450 38 => 'ISO 102400',
451 39 => 'ISO Hi 0.3',
452 40 => 'ISO Hi 0.5',
453 41 => 'ISO Hi 0.7',
454 42 => 'ISO Hi 1.0',
455 43 => 'ISO Hi 2.0',
456 44 => 'ISO Hi 3.0',
457 45 => 'ISO Hi 4.0',
458 46 => 'ISO Hi 5.0',
459 },
460 %infoD6,
461 },{
462 Name => 'ISOAutoFlashLimit',
463 PrintConv => {
464 1 => 'Same As Without Flash',
465 2 => 'ISO 100',
466 3 => 'ISO 125',
467 5 => 'ISO 160',
468 6 => 'ISO 200',
469 7 => 'ISO 250',
470 9 => 'ISO 320',
471 10 => 'ISO 400',
472 11 => 'ISO 500',
473 13 => 'ISO 640',
474 14 => 'ISO 800',
475 15 => 'ISO 1000',
476 17 => 'ISO 1250',
477 18 => 'ISO 1600',
478 19 => 'ISO 2000',
479 21 => 'ISO 2500',
480 22 => 'ISO 3200',
481 23 => 'ISO 4000',
482 25 => 'ISO 5000',
483 26 => 'ISO 6400',
484 27 => 'ISO 8000',
485 29 => 'ISO 10000',
486 30 => 'ISO 12800',
487 31 => 'ISO 16000',
488 33 => 'ISO 20000',
489 34 => 'ISO 25600',
490 39 => 'ISO Hi 0.3',
491 40 => 'ISO Hi 0.5',
492 41 => 'ISO Hi 0.7',
493 42 => 'ISO Hi 1.0',
494 43 => 'ISO Hi 2.0',
495 },
496 %infoZ7,
497 }],
498 0x003 => { # (D6/Z7_2)
499 Name => 'ISOAutoShutterTime',
500 PrintConv => {
501 1 => 'Auto (Slowest)',
502 2 => 'Auto (Slower)',
503 3 => 'Auto',
504 4 => 'Auto (Faster)',
505 5 => 'Auto (Fastest)',
506 6 => '1/4000 s',
507 7 => '1/3200 s',
508 8 => '1/2500 s',
509 9 => '1/2000 s',
510 10 => '1/1600 s',
511 11 => '1/1250 s',
512 12 => '1/1000 s',
513 13 => '1/800 s',
514 14 => '1/640 s',
515 15 => '1/500 s',
516 16 => '1/400 s',
517 17 => '1/320 s',
518 18 => '1/250 s',
519 19 => '1/200 s',
520 20 => '1/160 s',
521 21 => '1/125 s',
522 22 => '1/100 s',
523 23 => '1/80 s',
524 24 => '1/60 s',
525 25 => '1/50 s',
526 26 => '1/40 s',
527 27 => '1/30 s',
528 28 => '1/25 s',
529 29 => '1/20 s',
530 30 => '1/15 s',
531 31 => '1/13 s',
532 32 => '1/10 s',
533 33 => '1/8 s',
534 34 => '1/6 s',
535 35 => '1/5 s',
536 36 => '1/4 s',
537 37 => '1/3 s',
538 38 => '1/2.5 s',
539 39 => '1/2 s',
540 40 => '1/1.6 s',
541 41 => '1/1.3 s',
542 42 => '1 s',
543 43 => '1.3 s',
544 44 => '1.6 s',
545 45 => '2 s',
546 46 => '2.5 s',
547 47 => '3 s',
548 48 => '4 s',
549 49 => '5 s',
550 50 => '6 s',
551 51 => '8 s',
552 52 => '10 s',
553 53 => '13 s',
554 54 => '15 s',
555 55 => '20 s',
556 56 => '25 s',
557 57 => '30 s',
558 },
559 },
560 0x00b => { Name => 'FlickerReductionShooting', PrintConv => \%enableDisable }, # (D6/Z7_2)
561 0x00c => { Name => 'FlickerReductionIndicator',PrintConv => \%enableDisable }, # (D6)
562 0x00d => [{
563 Name => 'MovieISOAutoHiLimit',
564 PrintConv => \%iSOAutoHiLimitD6,
565 %infoD6,
566 },{
567 Name => 'MovieISOAutoHiLimit',
568 PrintConv => {
569 1 => 'ISO 200',
570 2 => 'ISO 250',
571 4 => 'ISO 320',
572 5 => 'ISO 400',
573 6 => 'ISO 500',
574 8 => 'ISO 640',
575 9 => 'ISO 800',
576 10 => 'ISO 1000',
577 12 => 'ISO 1250',
578 13 => 'ISO 1600',
579 14 => 'ISO 2000',
580 16 => 'ISO 2500',
581 17 => 'ISO 3200',
582 18 => 'ISO 4000',
583 20 => 'ISO 5000',
584 21 => 'ISO 6400',
585 22 => 'ISO 8000',
586 24 => 'ISO 10000',
587 25 => 'ISO 12800',
588 26 => 'ISO 16000',
589 28 => 'ISO 20000',
590 29 => 'ISO 25600',
591 34 => 'ISO Hi 0.3',
592 35 => 'ISO Hi 0.5',
593 36 => 'ISO Hi 0.7',
594 37 => 'ISO Hi 1.0',
595 38 => 'ISO Hi 2.0',
596 },
597 %infoZ7,
598 }],
599 0x00e => { Name => 'MovieISOAutoControlManualMode',PrintConv => \%onOff }, # (D6/Z7_2)
600 0x00f => { Name => 'MovieWhiteBalanceSameAsPhoto', PrintConv => \%yesNo }, # (D6/Z7_2)
601 0x01d => [{ # CSa1 (D6)
602 Name => 'AF-CPrioritySel',
603 PrintConv => { # valid for cameras with 4 options for CS1, otherwise 1=Release, 2=Focus
604 1 => 'Release',
605 2 => 'Release + Focus',
606 3 => 'Focus + Release',
607 4 => 'Focus',
608 },
609 %infoD6,
610 },{ # CSa1 (Z7_2)
611 Name => 'AF-CPrioritySel',
612 PrintConv => \%releaseFocus,
613 %infoZSeries,
614 }],
615 0x01e => { Name => 'AF-SPrioritySel', PrintConv => \%releaseFocus }, # CSa2 (D6), CSa2 (Z7_2)
616 0x020 => [{ # CSa4 (D6)
617 Name => 'AFPointSel',
618 PrintConv => {
619 1 => '105 Points',
620 2 => '27 Points',
621 3 => '15 Points',
622 },
623 %infoD6,
624 },{ # CSa4 (Z7_2)
625 Name => 'AFPointSel',
626 PrintConv => { 1 => 'Use All', 2 => 'Use Half' },
627 %infoZSeries,
628 }],
629 0x022 => { Name => 'AFActivation', PrintConv => { 1 => 'Shutter/AF-On', 2 => 'AF-On Only' } }, # CSa6-a (D6/Z7_2) (missing enable/disable out of focus release) # (D6)
630 0x023 => { Name => 'FocusPointWrap', PrintConv => { 1 => 'Wrap', 2 => 'No Wrap' } }, # CSa16 (D6), CSa8 (Z7_2)
631 0x025 => { # CSa17-a (D6), CSa9-a (Z7_2)
632 Name => 'ManualFocusPointIllumination',
633 PrintConv => {
634 1 => 'On',
635 2 => 'On During Focus Point Selection Only',
636 },
637 },
638 0x026 => { Name => 'AF-AssistIlluminator', PrintConv => \%onOff }, # CSa11 (Z7_2)
639 0x027 => { Name => 'ManualFocusRingInAFMode', PrintConv => \%onOff }, # CSa12 (D6,Z7_2) capability documented in manual, but visibility (& ability to test) requires a compatible lens
640 0x029 => { Name => 'ISOStepSize', PrintConv => \%thirdHalfFull }, # CSb1 (D6)
641 0x02a => { Name => 'ExposureControlStepSize', PrintConv => \%thirdHalfFull }, # CSb2 (D6), CSb1 (Z7_2)
642 0x02b => { # CSb4 (D6), CSb2 (Z7_2)
643 Name => 'EasyExposureCompensation',
644 PrintConv => {
645 1 => 'On (auto reset)',
646 2 => 'On',
647 3 => 'Off',
648 },
649 },
650 0x02c => { Name => 'MatrixMetering', PrintConv => { 1 => 'Face Detection On', 2 => 'Face Detection Off' } }, # CSb5 (D6)
651 0x02d => [{ # CSb6 (D6)
652 Name => 'CenterWeightedAreaSize',
653 PrintConv => {
654 1 => '8 mm',
655 2 => '12 mm',
656 3 => '15 mm',
657 4 => '20 mm',
658 5 => 'Average',
659 },
660 %infoD6
661 },{ # CSb3 (Z7_2)
662 Name => 'CenterWeightedAreaSize',
663 PrintConv => { 1 => '12 mm', 2 => 'Average' },
664 %infoZSeries,
665 }],
666 0x02f => { # CSb7-a (D6), CSb4-a (Z7_2)
667 Name => 'FineTuneOptMatrixMetering',
668 ValueConv => '($val - 7) / 6',
669 ValueConvInv => 'int($val*6+7)',
670 PrintConv => '$val ? sprintf("%+.2f", $val) : 0',
671 PrintConvInv => 'Image::ExifTool::Exif::ConvertFraction($val)',
672 },
673 0x030 => { # CSb7-b (D6), CSb4-b (Z7_2)
674 Name => 'FineTuneOptCenterWeighted',
675 ValueConv => '($val - 7) / 6',
676 ValueConvInv => 'int($val*6+7)',
677 PrintConv => '$val ? sprintf("%+.2f", $val) : 0',
678 PrintConvInv => 'Image::ExifTool::Exif::ConvertFraction($val)',
679 },
680 0x031 => { # CSb7-c (D6), CSb4-c (Z7_2)
681 Name => 'FineTuneOptSpotMetering',
682 ValueConv => '($val - 7) / 6',
683 ValueConvInv => 'int($val*6+7)',
684 PrintConv => '$val ? sprintf("%+.2f", $val) : 0',
685 PrintConvInv => 'Image::ExifTool::Exif::ConvertFraction($val)',
686 },
687 0x032 => { # CSb7-d (D6), CSb4-d (Z7_2)
688 Name => 'FineTuneOptHighlightWeighted',
689 ValueConv => '($val - 7) / 6',
690 ValueConvInv => 'int($val*6+7)',
691 PrintConv => '$val ? sprintf("%+.2f", $val) : 0',
692 PrintConvInv => 'Image::ExifTool::Exif::ConvertFraction($val)',
693 },
694 0x033 => { # CSc1 (D6), CSc1 (Z7_2)
695 Name => 'ShutterReleaseButtonAE-L',
696 PrintConv => {
697 1 => 'On (Half Press)',
698 2 => 'On (Burst Mode)',
699 3 => 'Off',
700 },
701 },
702 0x034 => [{ # CSc2 (D6)
703 Name => 'StandbyMonitorOffTime',
704 PrintConv => {
705 1 => '4 s',
706 2 => '6 s',
707 3 => '10 s',
708 4 => '30 s',
709 5 => '1 min',
710 6 => '5 min',
711 7 => '10 min',
712 8 => '30 min',
713 9 => 'No Limit',
714 },
715 %infoD6,
716 },{ # CSc4-d (Z7_2)
717 Name => 'StandbyMonitorOffTime',
718 PrintConv => {
719 1 => '10 s',
720 2 => '20 s',
721 3 => '30 s',
722 4 => '1 min',
723 5 => '5 min',
724 6 => '10 min',
725 7 => '30 min',
726 8 => 'No Limit',
727 },
728 %infoZSeries,
729 }],
730 0x035 => { # CSc3-a (D6), CSc2-a (Z7_2)
731 Name => 'SelfTimerTime',
732 PrintConv => {
733 1 => '2 s',
734 2 => '5 s',
735 3 => '10 s',
736 4 => '20 s',
737 },
738 },
739 0x036 => { Name => 'SelfTimerShotCount', ValueConv => '10 - $val', ValueConvInv => '10 + $val' }, # CSc3-b (D6), CSc2-b (Z7_2)
740 0x037 => { # CSc3-c (D6), CSc2-c (Z7_2)
741 Name => 'SelfTimerShotInterval',
742 PrintConv => {
743 1 => '0.5 s',
744 2 => '1 s',
745 3 => '2 s',
746 4 => '3 s',
747 },
748 },
749 0x038 => { Name => 'PlaybackMonitorOffTime', PrintConv => \%times4s10s20s1m5m20m }, # CSc4-a (D6), CSc3-a (Z7_2)
750 0x039 => { Name => 'MenuMonitorOffTime', PrintConv => \%times4s10s20s1m5m20m }, # CSc4-b (D6), CSc3-b (Z7_2)
751 0x03a => { Name => 'ShootingInfoMonitorOffTime',PrintConv => \%times4s10s20s1m5m20m }, # CSc4-c (D6)
752 0x03b => { # CSc4-d (D6), CSc3-c (Z7_2)
753 Name => 'ImageReviewMonitorOffTime',
754 PrintConv => {
755 1 => '2 s',
756 2 => '4 s',
757 3 => '10 s',
758 4 => '20 s',
759 5 => '1 min',
760 6 => '5 min',
761 7 => '10 min',
762 },
763 },
764 0x03c => { # CSc4-e (D6)
765 Name => 'LiveViewMonitorOffTime',
766 PrintConv => {
767 1 => '5 min',
768 2 => '10 min',
769 3 => '15 min',
770 4 => '20 min',
771 5 => '30 min',
772 6 => 'No Limit',
773 },
774 },
775 0x03e => { Name => 'CLModeShootingSpeed', ValueConv => '6 - $val', ValueConvInv => '6 + $val', PrintConv => '"$val fps"', PrintConvInv => '$val=~s/\s*fps//i; $val' }, # CSd1 (Z7_2)
776 0x03f => { Name => 'MaxContinuousRelease' }, # CSd2 # values: 1-200 # (D6/Z7_2)
777 0x040 => { # CSd5 (D6), CSd4 (Z7_2)
778 Name => 'ExposureDelayMode',
779 PrintConv => {
780 1 => '3 s',
781 2 => '2 s',
782 3 => '1 s',
783 4 => '0.5 s',
784 5 => '0.2 s',
785 6 => 'Off',
786 },
787 },
788 0x041 => { Name => 'ElectronicFront-CurtainShutter',PrintConv => \%onOff }, # CSd6 (D6)
789 0x042 => { Name => 'FileNumberSequence', PrintConv => \%onOff }, # CSd9 (D6), CSd8 (Z7_2)
790 0x043 => { Name => 'FramingGridDisplay', PrintConv => \%onOff }, # CSd11 (D6), CSd10 (Z7_2), new tag with implementation of NikonSettings # (Z7_2)
791 0x045 => { Name => 'LCDIllumination', PrintConv => \%onOff }, # CSd13 (D6)
792 0x046 => { Name => 'OpticalVR', PrintConv => \%onOff }, # CSd15 (D6)
793 0x047 => [{ # CSe1 (D6)
794 Name => 'FlashSyncSpeed',
795 PrintConv => {
796 1 => '1/250 s (auto FP)',
797 2 => '1/250 s',
798 3 => '1/200 s',
799 4 => '1/160 s',
800 5 => '1/125 s',
801 6 => '1/100 s',
802 7 => '1/80 s',
803 8 => '1/60 s',
804 },
805 %infoD6,
806 },{ # CSe1 (Z7_2)
807 Name => 'FlashSyncSpeed',
808 PrintConv => {
809 1 => '1/200 s (auto FP)',
810 2 => '1/200 s',
811 3 => '1/160 s',
812 4 => '1/125 s',
813 5 => '1/100 s',
814 6 => '1/80 s',
815 7 => '1/60 s',
816 },
817 %infoZSeries,
818 }],
819 0x048 => { # CSe2 (D6/Z7_2)
820 Name => 'FlashShutterSpeed',
821 PrintConv => {
822 1 => '1/60 s',
823 2 => '1/30 s',
824 3 => '1/15 s',
825 4 => '1/8 s',
826 5 => '1/4 s',
827 6 => '1/2 s',
828 7 => '1 s',
829 8 => '2 s',
830 },
831 },
832 0x049 => { Name => 'FlashExposureCompArea', PrintConv => { 1 => 'Entire Frame', 2 => 'Background Only' } }, # CSe3 (D6/Z7_2)
833 0x04a => { # CSe4 (D6/Z7_2)
834 Name => 'AutoFlashISOSensitivity',
835 PrintConv => {
836 1 => 'Subject and Background',
837 2 => 'Subject Only',
838 },
839 },
840 0x051 => { # CSf3-l (D6)
841 Name => 'AssignBktButton',
842 PrintConv => {
843 1 => 'Auto Bracketing',
844 2 => 'Multiple Exposure',
845 3 => 'HDR (high dynamic range)',
846 4 => 'None',
847 },
848 },
849 0x052 => [{ # CSf3-m (D6)
850 Name => 'AssignMovieRecordButton',
851 PrintConv => {
852 1 => 'Voice Memo',
853 2 => 'Photo Shooting Bank',
854 3 => 'Exposure Mode',
855 4 => 'AF Mode/AF Area Mode',
856 5 => 'Image Area',
857 6 => 'Shutter/Aperture Lock',
858 7 => 'None',
859 },
860 %infoD6,
861 },{ # CSf2-f (Z7_2)
862 Name => 'AssignMovieRecordButton',
863 PrintConv => {
864 1 => 'AE Lock (hold)',
865 2 => 'AE Lock (reset on release)',
866 3 => 'Preview',
867 4 => '+NEF(RAW)',
868 5 => 'LiveView Info Display On/Off',
869 6 => 'Grid Display',
870 7 => 'Zoom (Low)',
871 8 => 'Zoom (1:1)',
872 9 => 'Zoom (High)',
873 10 => 'My Menu',
874 11 => 'My Menu Top Item',
875 12 => 'Image Area',
876 13 => 'Image Quality',
877 14 => 'White Balance',
878 15 => 'Picture Control',
879 16 => 'Active-D Lighting',
880 17 => 'Metering',
881 18 => 'Flash Mode',
882 19 => 'Focus Mode',
883 20 => 'Auto Bracketing',
884 21 => 'Multiple Exposure',
885 22 => 'HDR',
886 23 => 'Exposure Delay Mode',
887 24 => 'Shutter/Aperture Lock',
888 25 => 'Non-CPU Lens',
889 26 => 'None',
890 },
891 %infoZSeries,
892 }],
893 0x053 => [{ # CSf4-a (D6)
894 Name => 'MultiSelectorShootMode',
895 PrintConv => {
896 1 => 'Select Center Focus Point',
897 2 => 'Preset Focus Point - Press To Recall',
898 3 => 'Preset Focus Point - Hold To Recall',
899 4 => 'None',
900 },
901 %infoD6,
902 },{ # CSf3-a (Z7_2) also called the OK button on this camera
903 Name => 'MultiSelectorShootMode',
904 PrintConv => {
905 1 => 'Select Center Focus Point',
906 2 => 'Zoom (Low)',
907 3 => 'Zoom (1:1)',
908 4 => 'Zoom (High)',
909 5 => 'None',
910 },
911 %infoZSeries,
912 }],
913 0x054 => [{ # CSf4-c (D6)
914 Name => 'MultiSelectorPlaybackMode',
915 PrintConv => {
916 1 => 'Filtered Playback',
917 2 => 'View Histograms',
918 3 => 'Zoom (Low)',
919 4 => 'Zoom (1:1)',
920 5 => 'Zoom (High)',
921 6 => 'Choose Folder',
922 },
923 %infoD6,
924 },{ # CSf3-b (Z7_2) # these decodes are correct. However, a new camera (or one following a 'reset all settings') will report Zoom (Low), despite the camera exhibiting the expected behavior (Zoom 1:1). Any change to CSf3-b corrects the reporting.
925 Name => 'MultiSelectorPlaybackMode',
926 PrintConv => {
927 1 => 'Thumbnail On/Off',
928 2 => 'View Histograms',
929 3 => 'Zoom (Low)',
930 4 => 'Zoom (1:1)',
931 5 => 'Zoom (High)',
932 6 => 'Choose Folder',
933 },
934 %infoZSeries,
935 }],
936 0x056 => { # CSf4-b (D6)
937 Name => 'MultiSelectorLiveView',
938 PrintConv => {
939 1 => 'Select Center Focus Point',
940 2 => 'Zoom (Low)',
941 3 => 'Zoom (1:1)',
942 4 => 'Zoom (High)',
943 5 => 'None',
944 },
945 },
946 0x058 => { # CSf6-a-1 and CSf6-a-2 (D6), CSf5-a-1 and CSf5-a-2 (Z7_2), Previous cameras reported these 2 in a single tag (CmdDialsReverseRotation). Blend the separate settings together to match extant tag name and values
947 Name => 'CmdDialsReverseRotExposureComp',
948 RawConv => '$$self{CmdDialsReverseRotExposureComp} = $val',
949 Unknown => 1,
950 },
951 0x059 => { # CSf6-b-1 and CSf6-b-2 (D6), CSf5-b-1 and CSf5-b-2 (Z7_2), Previous cameras reported these 2 in a single tag (CmdDialsChangeMainSub). Blend the separate settings together to match extant tag name and values
952 Name => 'CmdDialsChangeMainSubExposure',
953 RawConv => '$$self{CmdDialsChangeMainSubExposure} = $val',
954 Unknown => 1,
955 },
956 0x05a => [{ # CSf6-b-1 and CSf6-b-2 (D6), CSf5-b-1 and CSf5-b-2 (Z7_2), (continued from above)
957 Name => 'CmdDialsChangeMainSub',
958 Condition => '$$self{CmdDialsChangeMainSubExposure} and $$self{CmdDialsChangeMainSubExposure} == 1',
959 PrintConv => {
960 1 => 'Autofocus On, Exposure On',
961 2 => 'Autofocus Off, Exposure On',
962 },
963 },{
964 Name => 'CmdDialsChangeMainSub',
965 Condition => '$$self{CmdDialsChangeMainSubExposure} and $$self{CmdDialsChangeMainSubExposure} == 2',
966 PrintConv => {
967 1 => 'Autofocus On, Exposure On (Mode A)',
968 2 => 'Autofocus Off, Exposure On (Mode A)',
969 },
970 },{
971 Name => 'CmdDialsChangeMainSub',
972 PrintConv => {
973 1 => 'Autofocus On, Exposure Off',
974 2 => 'Autofocus Off, Exposure Off',
975 },
976 }],
977 0x05b => { Name => 'CmdDialsMenuAndPlayback', PrintConv => { 1 => 'On', 2 => 'On (Image Review Excluded)', 3 => 'Off' } }, # CSf5-c (D6), CSf5-c (Z7_2)
978 0x05c => { # CSf6-d (D6), CSf5-d (Z7_2)
979 Name => 'SubDialFrameAdvance',
980 PrintConv => {
981 1 => '10 Frames',
982 2 => '50 Frames',
983 3 => 'Rating',
984 4 => 'Protect',
985 5 => 'Stills Only',
986 6 => 'Movies Only',
987 7 => 'Folder',
988 },
989 },
990 0x05d => { Name => 'ReleaseButtonToUseDial', PrintConv => \%yesNo }, # CSf8 (D6), CSf6 (Z7_2)
991 0x05e => { Name => 'ReverseIndicators', PrintConv => { 1 => '+ 0 -', 2 => '- 0 +' } }, # CSf9 (D6), CSf7 (Z7_2)
992 0x062 => { # CSg2-f (D6), CSg2-e (Z7_2)
993 Name => 'MovieShutterButton',
994 PrintConv => {
995 1 => 'Take Photo',
996 2 => 'Record Movie',
997 },
998 },
999 0x063 => { # Settings menu # (D6,Z7_2)
1000 Name => 'Language',
1001 PrintConv => {
1002 5 => 'English',
1003 6 => 'Spanish',
1004 8 => 'French',
1005 15 => 'Portuguese (Br)',
1006 },
1007 },
1008 0x06c => [{
1009 Name => 'ShootingInfoDisplay',
1010 PrintConv => {
1011 1 => 'Auto',
1012 2 => 'Manual (dark on light)',
1013 3 => 'Manual (light on dark)',
1014 },
1015 %infoD6,
1016 },{
1017 Name => 'ShootingInfoDisplay',
1018 PrintConv => {
1019 1 => 'Manual (dark on light)',
1020 2 => 'Manual (light on dark)',
1021 },
1022 %infoZSeries,
1023 }],
1024 0x074 => { Name => 'FlickAdvanceDirection', PrintConv => { 1 => 'Right to Left', 2 => 'Left to Right' } }, # CSf12-3 (D6)
1025 0x075 => { # Settings menu # (D6,Z7_2)
1026 Name => 'HDMIOutputResolution',
1027 PrintConv => {
1028 1 => 'Auto',
1029 2 => '2160p',
1030 3 => '1080p',
1031 4 => '1080i',
1032 5 => '720p',
1033 6 => '576p',
1034 7 => '480p',
1035 },
1036 },
1037 0x077 => { # Settings menu # (D6,Z7_2)
1038 Name => 'HDMIOutputRange',
1039 PrintConv => {
1040 1 => 'Auto',
1041 2 => 'Limit',
1042 3 => 'Full',
1043 },
1044 },
1045 0x080 => [{
1046 Name => 'RemoteFuncButton',
1047 PrintConv => {
1048 1 => 'AF-On',
1049 2 => 'AF Lock Only',
1050 3 => 'AE Lock (reset on release)',
1051 4 => 'AE Lock Only',
1052 5 => 'AE/AF Lock',
1053 6 => 'FV Lock',
1054 7 => 'Flash Disable/Enable',
1055 8 => 'Preview',
1056 9 => '+NEF(RAW)',
1057 10 => 'LiveView Info Display On/Off',
1058 11 => 'Recall Shooting Functions',
1059 12 => 'None',
1060 },
1061 %infoD6,
1062 },{
1063 Name => 'RemoteFuncButton',
1064 PrintConv => {
1065 1 => 'AF-On',
1066 2 => 'AF Lock Only',
1067 3 => 'AE Lock (reset on release)',
1068 4 => 'AE Lock Only',
1069 5 => 'AE/AF Lock',
1070 6 => 'FV Lock',
1071 7 => 'Flash Disable/Enable',
1072 8 => 'Preview',
1073 9 => '+NEF(RAW)',
1074 10 => 'None',
1075 11 => 'LiveView Info Display On/Off',
1076 },
1077 %infoZSeries,
1078 }],
1079 0x08b => [{ # CSf6-a-1 and CSf6-a-2 (D6), CSf5-a-1 and CSf5-a-2 (Z7_2), (continued from above)
1080 Name => 'CmdDialsReverseRotation',
1081 Condition => '$$self{CmdDialsReverseRotExposureComp} and $$self{CmdDialsReverseRotExposureComp} == 1',
1082 PrintConv => {
1083 1 => 'No',
1084 2 => 'Shutter Speed & Aperture',
1085 },
1086 },{
1087 Name => 'CmdDialsReverseRotation',
1088 PrintConv => {
1089 1 => 'Exposure Compensation',
1090 2 => 'Exposure Compensation, Shutter Speed & Aperture',
1091 },
1092 }],
1093 0x08d => { # CSd10-b (D6), CSd11-b (Z7_2)
1094 Name => 'FocusPeakingHighlightColor',
1095 PrintConv => {
1096 1 => 'Red',
1097 2 => 'Yellow',
1098 3 => 'Blue',
1099 4 => 'White',
1100 },
1101 },
1102 0x08e => { Name => 'ContinuousModeDisplay', PrintConv => \%onOff }, # CSd14 (D6), CSd12 (Z7_2)
1103 0x08f => { Name => 'ShutterSpeedLock', PrintConv => \%onOff }, # CSf54-a (D6), CSf4-a (Z7_2)
1104 0x090 => { Name => 'ApertureLock', PrintConv => \%onOff }, # CSf5-b (D6), CSf4-b (Z7_2 could not select)
1105 0x091 => { # CSg4-b (D6), CSg6-b (Z7_2)
1106 Name => 'MovieHighlightDisplayThreshold',
1107 PrintConv => {
1108 1 => '255',
1109 2 => '248',
1110 3 => '235',
1111 4 => '224',
1112 5 => '213',
1113 6 => '202',
1114 7 => '191',
1115 8 => '180',
1116 },
1117 },
1118 0x092 => { Name => 'HDMIExternalRecorder', PrintConv => \%onOff }, # Settings Menu/HDMI/Advanced entry (D6 & Z7_2)
1119 0x093 => { # CSa3-a (D6), CSa3 (Z7_2)
1120 Name => 'BlockShotAFResponse',
1121 PrintConv => {
1122 1 => '1 (Quick)',
1123 2 => '2',
1124 3 => '3 (Normal)',
1125 4 => '4',
1126 5 => '5 (Delay)',
1127 },
1128 },
1129 0x094 => { Name => 'SubjectMotion', PrintConv => { 1 => 'Erratic', 2 => 'Steady' } }, # CSa3-b (D6)
1130 0x095 => { Name => 'Three-DTrackingFaceDetection', PrintConv => \%onOff }, # CSa8 (D6)
1131 0x097 => [{ # CSa5 (D6)
1132 Name => 'StoreByOrientation',
1133 PrintConv => {
1134 1 => 'Focus Point',
1135 2 => 'Focus Point and AF-area mode',
1136 3 => 'Off',
1137 },
1138 %infoD6,
1139 },{ # CSa5 (Z7_2)
1140 Name => 'StoreByOrientation',
1141 PrintConv => {
1142 1 => 'Focus Point',
1143 2 => 'Off',
1144 },
1145 %infoZSeries,
1146 }],
1147 0x099 => { Name => 'DynamicAreaAFAssist',PrintConv => \%onOff }, # CSa17-c (D6), CSa9-b (Z7_2)
1148 0x09a => { Name => 'ExposureCompStepSize', PrintConv => \%thirdHalfFull }, # CSb3 (D6)
1149 0x09b => { Name => 'SyncReleaseMode', PrintConv => { 1 => 'Sync', 2 => 'No Sync' } }, # CSd4 (D6), CSd3 (Z7_2)
1150 0x09c => { Name => 'ModelingFlash', PrintConv => \%onOff }, # CSe6 (D6), CSe5 (Z7_2)
1151 0x09d => { # CSe7 (D6), CSe6 (Z7_2)
1152 Name => 'AutoBracketModeM',
1153 PrintConv => {
1154 1 => 'Flash/Speed',
1155 2 => 'Flash/Speed/Aperture',
1156 3 => 'Flash/Aperture',
1157 4 => 'Flash Only',
1158 },
1159 },
1160 0x09e => { Name => 'PreviewButton', PrintConv => \%previewButtonD6 }, # CSf3-a (D6)
1161 0x0a0 => [{ # CSf3-b (D6)
1162 Name => 'Func1Button',
1163 PrintConv => \%previewButtonD6,
1164 %infoD6,
1165 },{ # CSf2-a (Z6)
1166 Name => 'Func1Button',
1167 Condition => '$$self{Model} =~ /^NIKON Z [67]\b/',
1168 Notes => 'Z6 and Z7',
1169 PrintConv => \%funcButtonZ6,
1170 },{ # CSf2-a (Z7_2)
1171 Name => 'Func1Button',
1172 PrintConv => \%funcButtonZ7m2,
1173 %infoZSeries,
1174 }],
1175 0x0a2 => [{ # CSf3-c (D6)
1176 Name => 'Func2Button',
1177 PrintConv => \%previewButtonD6,
1178 %infoD6,
1179 },{ # CSf2-b (Z6)
1180 Name => 'Func2Button',
1181 Condition => '$$self{Model} =~ /^NIKON Z [67]\b/',
1182 Notes => 'Z6 and Z7',
1183 PrintConv => \%funcButtonZ6,
1184 },{ # CSf2-b (Z7_2)
1185 Name => 'Func2Button',
1186 PrintConv => \%funcButtonZ7m2,
1187 %infoZSeries,
1188 }],
1189 0x0a3 => [{ # CSf3-f (D6)
1190 Name => 'AF-OnButton',
1191 PrintConv => {
1192 1 => 'AF-AreaMode S',
1193 2 => 'AF-AreaMode D9',
1194 3 => 'AF-AreaMode D25',
1195 4 => 'AF-AreaMode D49',
1196 5 => 'AF-AreaMode D105',
1197 6 => 'AF-AreaMode 3D',
1198 7 => 'AF-AreaMode Group',
1199 8 => 'AF-AreaMode Group C1',
1200 9 => 'AF-AreaMode Group C2',
1201 10 => 'AF-AreaMode Auto Area',
1202 11 => 'AF-AreaMode + AF-On S',
1203 12 => 'AF-AreaMode + AF-On D9',
1204 13 => 'AF-AreaMode + AF-On D25',
1205 14 => 'AF-AreaMode + AF-On D49',
1206 15 => 'AF-AreaMode + AF-On D105',
1207 16 => 'AF-AreaMode + AF-On 3D',
1208 17 => 'AF-AreaMode + AF-On Group',
1209 18 => 'AF-AreaMode + AF-On Group C1',
1210 19 => 'AF-AreaMode + AF-On Group C2',
1211 20 => 'AF-AreaMode + AF-On Auto Area',
1212 21 => 'AF-On',
1213 22 => 'AF Lock Only',
1214 23 => 'AE Lock (hold)',
1215 24 => 'AE/WB Lock (hold)',
1216 25 => 'AE Lock (reset on release)',
1217 26 => 'AE Lock Only',
1218 27 => 'AE/AF Lock',
1219 28 => 'Recall Shooting Functions',
1220 29 => 'None',
1221 },
1222 %infoD6,
1223 },{ # CSf2-c (Z7_2)
1224 Name => 'AF-OnButton',
1225 PrintConv => {
1226 1 => 'Center Focus Point',
1227 2 => 'AF-On',
1228 3 => 'AF Lock Only',
1229 4 => 'AE Lock (hold)',
1230 5 => 'AE Lock (reset on release)',
1231 6 => 'AE Lock Only',
1232 7 => 'AE/AF Lock',
1233 8 => 'LiveView Info Display On/Off',
1234 9 => 'Zoom (Low)',
1235 10 => 'Zoom (1:1)',
1236 11 => 'Zoom (High)',
1237 12 => 'None'
1238 },
1239 %infoZSeries,
1240 }],
1241 0x0a4 => { Name => 'SubSelector', PrintConv => \%tagSubSelector }, # CSf3-g-1 # (D6), CSf2-d-1 # (Z7_2)
1242 0x0a5 => [{ # CSf3-h (D6)
1243 Name => 'SubSelectorCenter',
1244 PrintConv => {
1245 1 => 'Preset Focus Point - Press To Recall',
1246 2 => 'Preset Focus Point - Hold To Recall',
1247 3 => 'Center Focus Point',
1248 4 => 'AF-AreaMode S',
1249 5 => 'AF-AreaMode D9',
1250 6 => 'AF-AreaMode D25',
1251 7 => 'AF-AreaMode D49',
1252 8 => 'AF-AreaMode D105',
1253 9 => 'AF-AreaMode 3D',
1254 10 => 'AF-AreaMode Group',
1255 11 => 'AF-AreaMode Group C1',
1256 12 => 'AF-AreaMode Group C2',
1257 13 => 'AF-AreaMode Auto Area',
1258 14 => 'AF-AreaMode + AF-On S',
1259 15 => 'AF-AreaMode + AF-On D9',
1260 16 => 'AF-AreaMode + AF-On D25',
1261 17 => 'AF-AreaMode + AF-On D49',
1262 18 => 'AF-AreaMode + AF-On D105',
1263 19 => 'AF-AreaMode + AF-On 3D',
1264 20 => 'AF-AreaMode + AF-On Group',
1265 21 => 'AF-AreaMode + AF-On Group C1',
1266 22 => 'AF-AreaMode + AF-On Group C2',
1267 23 => 'AF-AreaMode + AF-On Auto Area',
1268 24 => 'AF-On',
1269 25 => 'AF Lock Only',
1270 26 => 'AE Lock (hold)',
1271 27 => 'AE/WB Lock (hold)',
1272 28 => 'AE Lock (reset on release)',
1273 29 => 'AE Lock Only',
1274 30 => 'AE/AF Lock',
1275 31 => 'FV Lock',
1276 32 => 'Flash Disable/Enable',
1277 33 => 'Preview',
1278 34 => 'Recall Shooting Functions',
1279 35 => 'Bracketing Burst',
1280 36 => 'Synchronized Release (Master)',
1281 37 => 'Synchronized Release (Remote)',
1282 38 => 'None',
1283 },
1284 %infoD6,
1285 },{ # CSf2-e (Z7_2)
1286 Name => 'SubSelectorCenter',
1287 PrintConv => {
1288 1 => 'Center Focus Point',
1289 2 => 'AF-On',
1290 3 => 'AF Lock Only',
1291 4 => 'AE Lock (hold)',
1292 5 => 'AE Lock (reset on release)',
1293 6 => 'AE Lock Only',
1294 7 => 'AE/AF Lock',
1295 8 => 'FV Lock',
1296 9 => 'Flash Disable/Enable',
1297 10 => 'Preview',
1298 11 => 'Matrix Metering',
1299 12 => 'Center-weighted Metering',
1300 13 => 'Spot Metering',
1301 14 => 'Highlight-weighted Metering',
1302 15 => 'Bracketing Burst',
1303 16 => 'Synchronized Release (Master)',
1304 17 => 'Synchronized Release (Remote)',
1305 20 => '+NEF(RAW)',
1306 21 => 'LiveView Info Display On/Off',
1307 22 => 'Grid Display',
1308 23 => 'Image Area',
1309 24 => 'Non-CPU Lens',
1310 25 => 'None',
1311 },
1312 %infoZSeries,
1313 }],
1314 0x0a7 => [{ # CSf3-n (D6)
1315 Name => 'LensFunc1Button',
1316 PrintConv => {
1317 1 => 'Preset Focus Point - Press To Recall',
1318 2 => 'Preset Focus Point - Hold To Recall',
1319 3 => 'AF-AreaMode S',
1320 4 => 'AF-AreaMode D9',
1321 5 => 'AF-AreaMode D25',
1322 6 => 'AF-AreaMode D49',
1323 7 => 'AF-AreaMode D105',
1324 8 => 'AF-AreaMode 3D',
1325 9 => 'AF-AreaMode Group',
1326 10 => 'AF-AreaMode Group C1',
1327 11 => 'AF-AreaMode Group C2',
1328 12 => 'AF-AreaMode Auto Area',
1329 13 => 'AF-AreaMode + AF-On S',
1330 14 => 'AF-AreaMode + AF-On D9',
1331 15 => 'AF-AreaMode + AF-On D25',
1332 16 => 'AF-AreaMode + AF-On D49',
1333 17 => 'AF-AreaMode + AF-On D105',
1334 18 => 'AF-AreaMode + AF-On 3D',
1335 19 => 'AF-AreaMode + AF-On Group',
1336 20 => 'AF-AreaMode + AF-On Group C1',
1337 21 => 'AF-AreaMode + AF-On Group C2',
1338 22 => 'AF-AreaMode + AF-On Auto Area',
1339 23 => 'AF-On',
1340 24 => 'AF Lock Only',
1341 25 => 'AE Lock Only',
1342 26 => 'AE/AF Lock',
1343 27 => 'Flash Disable/Enable',
1344 28 => 'Recall Shooting Functions',
1345 29 => 'Synchronized Release (Master)',
1346 30 => 'Synchronized Release (Remote)',
1347 },
1348 %infoD6,
1349 },{ # CSf2-g (Z7_2)
1350 Name => 'LensFunc1Button',
1351 PrintConv => \%lensFuncButtonZ7m2,
1352 %infoZSeries,
1353 }],
1354 0x0a8 => { Name => 'CmdDialsApertureSetting', PrintConv => { 1 => 'Sub-command Dial', 2 => 'Aperture Ring' } }, # CSf6-c (D6)
1355 0x0a9 => { Name => 'MultiSelector', PrintConv => \%tagMultiSelector }, # CSf7 (D6)
1356 0x0aa => { # CSf10 (D6)
1357 Name => 'LiveViewButtonOptions',
1358 PrintConv => {
1359 1 => 'Enable',
1360 2 => 'Enable (Standby Timer Active)',
1361 3 => 'Disable',
1362 },
1363 },
1364 0x0ab => { # CSf11 (D6)
1365 Name => 'LightSwitch',
1366 PrintConv => {
1367 1 => 'LCD Backlight',
1368 2 => 'LCD Backlight and Shooting Information',
1369 },
1370 },
1371 0x0b1 => [{ # CSg2-a (D6)
1372 Name => 'MoviePreviewButton',
1373 PrintConv => {
1374 1 => 'Power Aperture (Open)',
1375 2 => 'Exposure Compensation',
1376 3 => 'Grid Display',
1377 4 => 'Zoom (Low)',
1378 5 => 'Zoom (1:1)',
1379 6 => 'Zoom (High)',
1380 7 => 'Image Area',
1381 8 => 'Microphone Sensitivity',
1382 9 => 'None',
1383 },
1384 %infoD6,
1385 },{ # CSg2-a (Z7_2)
1386 Name => 'MovieFunc1Button',
1387 PrintConv => {
1388 1 => 'Power Aperture (Open)',
1389 2 => 'Exposure Compensation',
1390 3 => 'Subject Tracking',
1391 4 => 'LiveView Info Display On/Off',
1392 5 => 'Grid Display',
1393 6 => 'Zoom (Low)',
1394 7 => 'Zoom (1:1)',
1395 8 => 'Zoom (High)',
1396 9 => 'Protect',
1397 10 => 'Image Area',
1398 11 => 'White Balance',
1399 12 => 'Picture Control',
1400 13 => 'Active-D Lighting',
1401 14 => 'Metering',
1402 15 => 'Focus Mode',
1403 16 => 'Microphone Sensitivity',
1404 17 => 'Focus Peaking',
1405 18 => 'Rating (None)',
1406 19 => 'Rating (5)',
1407 20 => 'Rating (4)',
1408 21 => 'Rating (3)',
1409 22 => 'Rating (2)',
1410 23 => 'Rating (1)', # no mapping for 24 on the Z7_2. Possibly intended for Rating = 'Candidate for Deletion'?
1411 25 => 'None',
1412 },
1413 %infoZSeries,
1414 }],
1415 0x0b3 => [{ # CSg2-b (D6)
1416 Name => 'MovieFunc1Button',
1417 PrintConv => {
1418 1 => 'Power Aperture (Close)',
1419 2 => 'Exposure Compensation',
1420 3 => 'Grid Display',
1421 4 => 'Zoom (Low)',
1422 5 => 'Zoom (1:1)',
1423 6 => 'Zoom (High)',
1424 7 => 'Image Area',
1425 8 => 'Microphone Sensitivity',
1426 9 => 'None',
1427 },
1428 %infoD6,
1429 },{ # CSg2-b (Z7_2)
1430 Name => 'MovieFunc2Button',
1431 PrintConv => { # TODO: simplify Func1 and Func2 movies buttons - identical except for the 1st entry
1432 1 => 'Power Aperture (Close)',
1433 2 => 'Exposure Compensation',
1434 3 => 'Subject Tracking',
1435 4 => 'LiveView Info Display On/Off',
1436 5 => 'Grid Display',
1437 6 => 'Zoom (Low)',
1438 7 => 'Zoom (1:1)',
1439 8 => 'Zoom (High)',
1440 9 => 'Protect',
1441 10 => 'Image Area',
1442 11 => 'White Balance',
1443 12 => 'Picture Control',
1444 13 => 'Active-D Lighting',
1445 14 => 'Metering',
1446 15 => 'Focus Mode',
1447 16 => 'Microphone Sensitivity',
1448 17 => 'Focus Peaking',
1449 18 => 'Rating (None)',
1450 19 => 'Rating (5)',
1451 20 => 'Rating (4)',
1452 21 => 'Rating (3)',
1453 22 => 'Rating (2)',
1454 23 => 'Rating (1)', # no mapping for 24 on the Z7_2. Possibly intended for Rating = 'Candidate for Deletion'?
1455 25 => 'None',
1456 },
1457 %infoZSeries,
1458 }],
1459 0x0b5 => { # CSg2-c (D6)
1460 Name => 'MovieFunc2Button',
1461 PrintConv => {
1462 1 => 'Grid Display',
1463 2 => 'Zoom (Low)',
1464 3 => 'Zoom (1:1)',
1465 4 => 'Zoom (High)',
1466 5 => 'Image Area',
1467 6 => 'Microphone Sensitivity',
1468 7 => 'None',
1469 },
1470 },
1471 0x0b6 => [{ # CSg2-e (D6)
1472 Name => 'AssignMovieSubselector',
1473 PrintConv => {
1474 1 => 'Center Focus Point',
1475 2 => 'AF Lock Only',
1476 3 => 'AE Lock (hold)',
1477 4 => 'AE/WB Lock (hold)',
1478 5 => 'AE Lock Only',
1479 6 => 'AE/AF Lock',
1480 7 => 'Zoom (Low)',
1481 8 => 'Zoom (1:1)',
1482 9 => 'Zoom (High)',
1483 10 => 'Record Movie',
1484 11 => 'None',
1485 },
1486 %infoD6,
1487 },{ # CSg2-d (Z7_2)
1488 Name => 'AssignMovieSubselector',
1489 PrintConv => {
1490 1 => 'Center Focus Point',
1491 2 => 'AF Lock Only',
1492 3 => 'AE Lock (hold)',
1493 4 => 'AE Lock Only',
1494 5 => 'AE/AF Lock',
1495 6 => 'LiveView Info Display On/Off',
1496 7 => 'Grid Display',
1497 8 => 'Zoom (Low)',
1498 9 => 'Zoom (1:1)',
1499 10 => 'Zoom (High)',
1500 11 => 'Record Movie',
1501 12 => 'Image Area',
1502 13 => 'None',
1503 },
1504 %infoZSeries,
1505 }],
1506 0x0b8 => { Name => 'LimitAFAreaModeSelD9', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa14-a (D6)
1507 0x0b9 => { Name => 'LimitAFAreaModeSelD25', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa14-b (D6)
1508 0x0bc => { Name => 'LimitAFAreaModeSel3D', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa14-e (D6)
1509 0x0bd => { Name => 'LimitAFAreaModeSelGroup', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa14-f (D6)
1510 0x0be => { Name => 'LimitAFAreaModeSelAuto', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa14-i (D6), CSa7-g (Z7_2)
1511 # 0x0bf => { Name => 'LimitSelectableImageArea30x20', PrintConv => \%limitNolimit }, # CSd8-1 (D6) further investigation & testing of CSd8-1 and CSd8-2 required. The other CSd8 tags are fine.
1512 # 0x0c0 => { Name => 'LimitSelectableImageAreaDX', PrintConv => \%limitNolimit }, # CSd8-2 (D6) further investigation & testing of CSd8-1 and CSd8-2 required. The other CSd8 tags are fine.
1513 0x0c1 => { Name => 'LimitSelectableImageArea5To4', PrintConv => \%limitNolimit, Unknown => 1 }, # CSd8-3 (D6)
1514 0x0c2 => { Name => 'LimitSelectableImageArea1To1', PrintConv => \%limitNolimit, Unknown => 1 }, # CSd8-4 (D6)
1515 # 0x0d3 => CSf3-g-2 (D6), CSf2-d-2 (Z7_2) SelectorPlaybackRole 'Scroll' and 'Display Next/Previous' (skipped to reduce volume of output)
1516 0x0d4 => { Name => 'PhotoShootingMenuBank', PrintConv => \%menuBank }, # (D6)
1517 0x0d5 => { Name => 'CustomSettingsBank', PrintConv => \%menuBank }, # (D6)
1518 0x0d6 => { Name => 'LimitAF-AreaModeSelPinpoint', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa7-a (Z7_2)
1519 0x0d7 => { Name => 'LimitAF-AreaModeSelDynamic', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa7-b (Z7_2)
1520 0x0d8 => { Name => 'LimitAF-AreaModeSelWideAF_S', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa7-c (Z7_2)
1521 0x0d9 => { Name => 'LimitAF-AreaModeSelWideAF_L', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa7-d (Z7_2)
1522 0x0da => { Name => 'LowLightAF', PrintConv => \%onOff }, # CSa10 (Z7_2)
1523 0x0db => { Name => 'LimitSelectableImageAreaDX', PrintConv => \%limitNolimit, Unknown => 1 }, # CSd7-a (Z7_2)
1524 0x0dc => { Name => 'LimitSelectableImageArea5To4', PrintConv => \%limitNolimit, Unknown => 1 }, # CSd7-b (Z7_2)
1525 0x0dd => { Name => 'LimitSelectableImageArea1To1', PrintConv => \%limitNolimit, Unknown => 1 }, # CSd7-c (Z7_2)
1526 0x0de => { Name => 'LimitSelectableImageArea16To9', PrintConv => \%limitNolimit, Unknown => 1 }, # CSd7-d (Z7_2)
1527 0x0df => { Name => 'ApplySettingsToLiveView', PrintConv => \%onOff }, # CSd9 # new tag with Z7_2 # (Z7_2)
1528 0x0e0 => { # CSd10-a (D6), CSd11-a (Z7_2)
1529 Name => 'FocusPeakingLevel',
1530 PrintConv => {
1531 1 => 'High Sensitivity',
1532 2 => 'Standard Sensitivity',
1533 3 => 'Low Sensitivity',
1534 4 => 'Off',
1535 },
1536 },
1537 0x0ea => { # CSf2-i #option for 'Focus (M/A)' is documented, but not available from camera menu
1538 Name => 'LensControlRing',
1539 PrintConv => {
1540 1 => 'Aperture',
1541 2 => 'Exposure Compensation',
1542 3 => 'ISO Sensitivity',
1543 4 => 'None (Disabled)',
1544 },
1545 },
1546 # 0x0eb MovieLensControlRing ? # (Z7_2)
1547 # 0x0ec # (Z7_2)
1548 0x0ed => [{ # CSg3 (D6)
1549 Name => 'MovieMultiSelector',
1550 PrintConv => {
1551 1 => 'Center Focus Point',
1552 2 => 'Zoom (Low)',
1553 3 => 'Zoom (1:1)',
1554 4 => 'Zoom (High)',
1555 5 => 'Record Movie',
1556 6 => 'None',
1557 },
1558 %infoD6,
1559 },{ # labels Ok button on camera # (Z7_2)
1560 Name => 'MovieMultiSelector',
1561 PrintConv => { # Z7 has codes for both OK and MultiSelector - although only the OK value can be changed. [The multiselector served as the OK button on these cameras].
1562 1 => 'Center Focus Point',
1563 2 => 'Zoom (Low)',
1564 3 => 'Zoom (1:1)',
1565 4 => 'Zoom (High)',
1566 5 => 'Record Movie',
1567 6 => 'None',
1568 },
1569 }],
1570 0x0ee => { Name => 'MovieAFSpeed', ValueConv => '$val - 6', ValueConvInv => '$val + 6' }, # CSg4-a (Z7_2)
1571 0x0ef => { # CSg4-b (Z7_2)
1572 Name => 'MovieAFSpeedApply',
1573 PrintConv => {
1574 1 => 'Always',
1575 2 => 'Only During Recording',
1576 },
1577 },
1578 0x0f0 => { # CSg5 (Z7_2)
1579 Name => 'MovieAFTrackingSensitivity',
1580 PrintConv => {
1581 1 => '1 (High)',
1582 2 => '2',
1583 3 => '3',
1584 4 => '4 (Normal)',
1585 5 => '5',
1586 6 => '6',
1587 7 => '7 (Low)',
1588 },
1589 },
1590 0x0f1 => { # CSg4-a (D6), CSg6-a (Z7_2)
1591 Name => 'MovieHighlightDisplayPattern',
1592 PrintConv => {
1593 1 => 'Pattern 1',
1594 2 => 'Pattern 2',
1595 3 => 'Off',
1596 },
1597 },
1598 0x0f2 => { Name => 'SubDialFrameAdvanceRating5', PrintConv => \%noYes, Unknown => 1 }, # (D6,Z7_2)
1599 0x0f3 => { Name => 'SubDialFrameAdvanceRating4', PrintConv => \%noYes, Unknown => 1 }, # (D6,Z7_2)
1600 0x0f4 => { Name => 'SubDialFrameAdvanceRating3', PrintConv => \%noYes, Unknown => 1 }, # (D6,Z7_2)
1601 0x0f5 => { Name => 'SubDialFrameAdvanceRating2', PrintConv => \%noYes, Unknown => 1 }, # (D6,Z7_2)
1602 0x0f6 => { Name => 'SubDialFrameAdvanceRating1', PrintConv => \%noYes, Unknown => 1 }, # (D6,Z7_2)
1603 0x0f7 => { Name => 'SubDialFrameAdvanceRating0', PrintConv => \%noYes, Unknown => 1 }, # (D6,Z7_2)
1604 # 0x0f8 ?? looks like it should be part of the above, but nothing seems to cause the value to change. Possibly intended for Rating='Candidate for Deletion' # (D6)
1605 0x0f9 => { # CSg2-c (Z7_2)
1606 Name => 'MovieAF-OnButton',
1607 PrintConv => {
1608 1 => 'Center Focus Point',
1609 2 => 'AF-On',
1610 3 => 'AF Lock Only',
1611 4 => 'AE Lock (hold)',
1612 5 => 'AE Lock Only',
1613 6 => 'AE/AF Lock',
1614 7 => 'LiveView Info Display On/Off',
1615 8 => 'Zoom (Low)',
1616 9 => 'Zoom (1:1)',
1617 10 => 'Zoom (High)',
1618 11 => 'Record Movie',
1619 12 => 'None',
1620 },
1621 },
1622 0x0fb => { Name => 'SecondarySlotFunction', PrintConv => \%tagSecondarySlotFunction }, # tag name selected to maintain compatibility with older cameras # (Z7_2)
1623 0x0fb => { Name => 'SecondarySlotFunction', PrintConv => \%tagSecondarySlotFunction }, # (D6)
1624 0x0fc => { Name => 'SilentPhotography', PrintConv => \%onOff }, # (D6,Z7_2) # tag is associated with Silent LiveView Photography (as distinguisehed from Silent Interval or Silent Focus Shift)
1625 0x0fd => { Name => 'ExtendedShutterSpeeds', PrintConv => \%onOff }, # CSd7 (D6), CSd6 (Z7_2)
1626 0x102 => { # (Z7_2)
1627 Name => 'HDMIBitDepth',
1628 RawConv => '$$self{HDMIBitDepth} = $val',
1629 PrintConv => {
1630 1 => '8 Bit',
1631 2 => '10 Bit',
1632 #5 => 'Auto', #observed on the Z50 - needs confirmation
1633 },
1634 },
1635 0x103 => { # (Z7_2)
1636 Name => 'HDMIOutputHDR',
1637 Condition => '$$self{HDMIBitDepth} == 2', # HDR(HLC) output option only available only for 10 bit
1638 RawConv => '$$self{HDMIOutputHDR} = $val',
1639 PrintConv => {
1640 2 => 'On', # unusual decode perhaps due to sharing sub-menu with tag HDMIOutputN-Log?
1641 3 => 'Off',
1642 },
1643 },
1644 0x104 => { # valid for 10 bit with either N-Log or HDR/HLG selected CSg5 (Z7_2)
1645 Name => 'HDMIViewAssist',
1646 Condition => '$$self{HDMIBitDepth} == 2',
1647 PrintConv => \%onOff
1648 },
1649 0x109 => { # (D6,Z7_2)
1650 Name => 'BracketSet',
1651 RawConv => '$$self{BracketSet} = $val',
1652 PrintConv => {
1653 1 => 'AE/Flash',
1654 2 => 'AE',
1655 3 => 'Flash',
1656 4 => 'White Balance',
1657 5 => 'Active-D Lighting',
1658 },
1659 },
1660 0x10a => [{ # (D6/Z7_2)
1661 Name => 'BracketProgram',
1662 Condition => '$$self{BracketSet} < 4',
1663 Notes => 'AE and/or Flash Bracketing',
1664 RawConv => '$$self{BracketProgram} = $val',
1665 PrintConv => {
1666 15 => '+3F',
1667 16 => '-3F',
1668 17 => '+2F',
1669 18 => '-2F',
1670 19 => 'Disabled',
1671 20 => '3F',
1672 21 => '5F',
1673 22 => '7F',
1674 23 => '9F',
1675 },
1676 },{
1677 Name => 'BracketProgram',
1678 Condition => '$$self{BracketSet} and $$self{BracketSet} == 4',
1679 Notes => 'White Balance Bracketing',
1680 RawConv => '$$self{BracketProgram} = $val',
1681 PrintConv => {
1682 1 => 'B3F',
1683 2 => 'A3F',
1684 3 => 'B2F',
1685 4 => 'A2F',
1686 5 => 'Disabled',
1687 6 => '3F',
1688 7 => '5F',
1689 8 => '7F',
1690 9 => '9F',
1691 19 => 'N/A' # observed when shooting other than JPG
1692 },
1693 },{
1694 Name => 'BracketProgram',
1695 Condition => '$$self{BracketSet} and $$self{BracketSet} == 5',
1696 Notes => 'Active-D Bracketing',
1697 RawConv => '$$self{BracketProgram} = $val',
1698 Mask => 0x0f,
1699 PrintConv => {
1700 10 => 'Disabled',
1701 11 => '2 Exposures',
1702 12 => '3 Exposures',
1703 13 => '4 Exposures',
1704 14 => '5 Exposures',
1705 },
1706 }],
1707 0x10b => [{ # (D6/Z7_2)
1708 Name => 'BracketIncrement',
1709 Condition => '$$self{BracketSet} < 4 and $$self{BracketProgram} ne 19',
1710 Notes => 'AE and/or Flash Bracketing enabled',
1711 PrintConv => {
1712 0x01 => '0.3',
1713 0x03 => '0.5',
1714 0x04 => '1.0',
1715 0x05 => '2.0',
1716 0x06 => '3.0',
1717 },
1718 },{
1719 Name => 'BracketIncrement',
1720 Condition => '$$self{BracketSet} == 4 and $$self{BracketProgram} ne 5',
1721 Notes => 'White Balance Bracketing enabled',
1722 PrintConv => '$val-6', # TODO: qualify amber/blue direction of increment (eg, '1A' vs.'1B' vs '1A,1B')
1723 }],
1724 0x10c => { # (D6/Z7_2)
1725 Name => 'BracketIncrement',
1726 Condition => '$$self{BracketSet} == 5 and $$self{BracketProgram} ne 10',
1727 Notes => 'Active-D Bracketing enabled',
1728 PrintConv => {
1729 0 => 'Off',
1730 1 => 'Off, Low',
1731 2 => 'Off, Normal',
1732 3 => 'Off, High',
1733 4 => 'Off, Extra High',
1734 5 => 'Off, Auto',
1735 6 => 'Off, Low, Normal',
1736 7 => 'Off, Low, Normal, High',
1737 8 => 'Off, Low, Normal, High, Extra High',
1738 },
1739 },
1740 0x10e => { # (D6/Z7_2)
1741 Name => 'MonitorBrightness',
1742 # settings: -5 to +5
1743 ValueConv => '$val - 6',
1744 },
1745 0x116 => { Name => 'GroupAreaC1', PrintConv =>\%groupAreaCustom }, # CSa10-a (new with D6) # (D6)
1746 0x117 => { Name => 'AutoAreaAFStartingPoint', PrintConv => \%enableDisable }, # CSa12 (D6)
1747 0x118 => { Name => 'FocusPointPersistence', PrintConv => { 1 => 'Auto', 2 => 'Off' } }, # CSa13 (new with D6) # (D6)
1748 0x119 => { Name => 'LimitAFAreaModeSelD49', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa14-c (D6)
1749 0x11a => { Name => 'LimitAFAreaModeSelD105', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa14-d (D6)
1750 0x11b => { Name => 'LimitAFAreaModeSelGroupC1', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa14-g (D6)
1751 0x11c => { Name => 'LimitAFAreaModeSelGroupC2', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa14-h (D6)
1752 0x11d => { # CSa15 (D6)
1753 Name => 'AutoFocusModeRestrictions',
1754 PrintConv => {
1755 1 => 'AF-S',
1756 2 => 'AF-C',
1757 3 => 'No Limit',
1758 },
1759 },
1760 0x11e => { # CSa17-b (D6)
1761 Name => 'FocusPointBrightness',
1762 PrintConv => {
1763 1 => 'Extra High',
1764 2 => 'High',
1765 3 => 'Normal',
1766 4 => 'Low',
1767 },
1768 },
1769 0x11f => { Name => 'CHModeShootingSpeed', ValueConv => '15 - $val', ValueConvInv => '15 + $val', PrintConv => '"$val fps"', PrintConvInv => '$val=~s/\s*fps//i; $val' }, # CSd1-a (D6)
1770 0x120 => { Name => 'CLModeShootingSpeed', ValueConv => '11 - $val', ValueConvInv => '11 + $val', PrintConv => '"$val fps"', PrintConvInv => '$val=~s/\s*fps//i; $val' }, # CSd1-b (D6)
1771 0x121 => { # CSd1-c (new with D6)
1772 Name => 'QuietShutterShootingSpeed',
1773 PrintConv => {
1774 1 => 'Single',
1775 2 => '5 fps',
1776 3 => '4 fps',
1777 4 => '3 fps',
1778 5 => '2 fps',
1779 6 => '1 fps',
1780 },
1781 },
1782 0x122 => { Name => 'LimitReleaseModeSelCL', PrintConv => \%limtReleaseModeSel, Unknown => 1 }, # CSd3-a (D6)
1783 0x123 => { Name => 'LimitReleaseModeSelCH', PrintConv => \%limtReleaseModeSel, Unknown => 1 }, # CSd3-b (D6)
1784 0x124 => { Name => 'LimitReleaseModeSelQ', PrintConv => \%limtReleaseModeSel, Unknown => 1 }, # CSd3-c (D6)
1785 0x125 => { Name => 'LimitReleaseModeSelTimer', PrintConv => \%limtReleaseModeSel, Unknown => 1 }, # CSd3-d (D6)
1786 0x126 => { Name => 'LimitReleaseModeSelMirror-Up', PrintConv => \%limtReleaseModeSel, Unknown => 1 }, # CSd3-e (D6)
1787 0x127 => { Name => 'LimitSelectableImageArea16To9', PrintConv => \%limitNolimit, Unknown => 1 }, # CSd8-5 (D6)
1788 0x128 => { Name => 'RearControPanelDisplay', PrintConv => { 1 => 'Release Mode', 2 => 'Frame Count' } }, # CSd12 # new tag with D6 # (D6)
1789 0x129 => { Name => 'FlashBurstPriority', PrintConv => { 1 => 'Frame Rate', 2 => 'Exposure' } }, # CSE5 # new tag with D6 # (D6)
1790 0x12a => { Name => 'RecallShootFuncExposureMode', PrintConv => \%offOn }, # (D6)
1791 0x12b => { Name => 'RecallShootFuncShutterSpeed', PrintConv => \%offOn }, # (D6)
1792 0x12c => { Name => 'RecallShootFuncAperture', PrintConv => \%offOn }, # (D6)
1793 0x12d => { Name => 'RecallShootFuncExposureComp', PrintConv => \%offOn }, # (D6)
1794 0x12e => { Name => 'RecallShootFuncISO', PrintConv => \%offOn }, # (D6)
1795 0x12f => { Name => 'RecallShootFuncMeteringMode', PrintConv => \%offOn }, # (D6)
1796 0x130 => { Name => 'RecallShootFuncWhiteBalance', PrintConv => \%offOn }, # (D6)
1797 0x131 => { Name => 'RecallShootFuncAFAreaMode', PrintConv => \%offOn }, # (D6)
1798 0x132 => { Name => 'RecallShootFuncFocusTracking', PrintConv => \%offOn }, # (D6)
1799 0x133 => { Name => 'RecallShootFuncAF-On', PrintConv => \%offOn }, # (D6)
1800 0x134 => { # CSf3-d (D6)
1801 Name => 'VerticalFuncButton',
1802 PrintConv => {
1803 1 => 'Preset Focus Point',
1804 2 => 'AE Lock (hold)',
1805 3 => 'AE/WB Lock (hold)',
1806 4 => 'AE Lock (reset on release)',
1807 5 => 'FV Lock',
1808 6 => 'Preview',
1809 7 => '+NEF(RAW)',
1810 8 => 'Grid Display',
1811 9 => 'Virtual Horizon',
1812 10 => 'Voice Memo',
1813 11 => 'Playback',
1814 12 => 'Filtered Playback',
1815 13 => 'Photo Shooting Bank',
1816 14 => 'Exposure Mode',
1817 15 => 'Exposure Comp',
1818 16 => 'AF Mode/AF Area Mode',
1819 17 => 'Image Area',
1820 18 => 'ISO',
1821 19 => 'Active-D Lighting',
1822 20 => 'Metering',
1823 21 => 'Exposure Delay Mode',
1824 22 => 'Shutter/Aperture Lock',
1825 23 => '1 Stop Speed/Aperture',
1826 24 => 'Rating 0',
1827 25 => 'Rating 5',
1828 26 => 'Rating 4',
1829 27 => 'Rating 3',
1830 28 => 'Rating 2',
1831 29 => 'Rating 1',
1832 30 => 'Candidate For Deletion',
1833 31 => 'Non-CPU Lens',
1834 32 => 'None',
1835 },
1836 },
1837 0x135 => { # CSf3-e (D6)
1838 Name => 'Func3Button',
1839 PrintConv => {
1840 1 => 'Voice Memo',
1841 2 => 'Select To Send',
1842 3 => 'Wired LAN',
1843 4 => 'My Menu',
1844 5 => 'My Menu Top Item',
1845 6 => 'Filtered Playback',
1846 7 => 'Rating 0',
1847 8 => 'Rating 5',
1848 9 => 'Rating 4',
1849 10 => 'Rating 3',
1850 11 => 'Rating 2',
1851 12 => 'Rating 1',
1852 13 => 'Candidate For Deletion',
1853 14 => 'None',
1854 },
1855 },
1856 0x136 => { # CSf3-i (D6)
1857 Name => 'VerticalAF-OnButton',
1858 PrintConv => {
1859 1 => 'AF-AreaMode S',
1860 2 => 'AF-AreaMode D9',
1861 3 => 'AF-AreaMode D25',
1862 4 => 'AF-AreaMode D49',
1863 5 => 'AF-AreaMode D105',
1864 6 => 'AF-AreaMode 3D',
1865 7 => 'AF-AreaMode Group',
1866 8 => 'AF-AreaMode Group C1',
1867 9 => 'AF-AreaMode Group C2',
1868 10 => 'AF-AreaMode Auto Area',
1869 11 => 'AF-AreaMode + AF-On S',
1870 12 => 'AF-AreaMode + AF-On D9',
1871 13 => 'AF-AreaMode + AF-On D25',
1872 14 => 'AF-AreaMode + AF-On D49',
1873 15 => 'AF-AreaMode + AF-On D105',
1874 16 => 'AF-AreaMode + AF-On 3D',
1875 17 => 'AF-AreaMode + AF-On Group',
1876 18 => 'AF-AreaMode + AF-On Group C1',
1877 19 => 'AF-AreaMode + AF-On Group C2',
1878 20 => 'AF-AreaMode + AF-On Auto Area',
1879 21 => 'Same as AF-On',
1880 22 => 'AF-On',
1881 23 => 'AF Lock Only',
1882 24 => 'AE Lock (hold)',
1883 25 => 'AE/WB Lock (hold)',
1884 26 => 'AE Lock (reset on release)',
1885 27 => 'AE Lock Only',
1886 28 => 'AE/AF Lock',
1887 29 => 'Recall Shooting Functions',
1888 30 => 'None',
1889 },
1890 },
1891 0x137 => { Name => 'VerticalMultiSelector', PrintConv => \%tagSubSelector }, # CSf3-j-1 # (D6)
1892 0x138 => { # CSf3-k (D6)
1893 Name => 'MeteringButton',
1894 PrintConv => {
1895 1 => 'Photo Shooting Bank',
1896 2 => 'Image Area',
1897 3 => 'Active-D Lighting',
1898 4 => 'Metering',
1899 5 => 'Exposure Delay Mode',
1900 6 => 'Shutter/Aperture Lock',
1901 7 => '1 Stop Speed/Aperture',
1902 8 => 'Non-CPU Lens',
1903 9 => 'None',
1904 },
1905 },
1906 0x139 => { Name => 'PlaybackFlickUp', RawConv => '$$self{PlaybackFlickUp} = $val', PrintConv => \%flickUpDownD6 }, # CSf12-1-a # (D6)
1907 0x13a => { Name => 'PlaybackFlickUpRating', Condition => '$$self{PlaybackFlickUp} and $$self{PlaybackFlickUp} == 1', Notes => 'Meaningful only when PlaybackFlickUp is Rating', PrintConv => \%flickUpDownRatingD6 }, # CSf12-1-b # (D6)
1908 0x13b => { Name => 'PlaybackFlickDown', RawConv => '$$self{PlaybackFlickDown} = $val', PrintConv => \%flickUpDownD6 }, # CSf12-2-a # (D6)
1909 0x13c => { Name => 'PlaybackFlickDownRating', Condition => '$$self{PlaybackFlickDown} and $$self{PlaybackFlickDown} == 1', Notes => 'Meaningful only when PlaybackFlickDown is Rating', PrintConv => \%flickUpDownRatingD6 }, # CSf12-2-b # (D6)
1910 0x13d => { # CSg2-d (D6)
1911 Name => 'MovieFunc3Button',
1912 PrintConv => {
1913 1 => 'Record Movie',
1914 2 => 'My Menu',
1915 3 => 'My Menu Top Item',
1916 4 => 'None',
1917 },
1918 },
1919 0x150 => { # CSd5 (Z7_2) new with Z series
1920 Name => 'ShutterType',
1921 PrintConv => {
1922 1 => 'Auto',
1923 2 => 'Mechanical',
1924 3 => 'Electronic',
1925 },
1926 },
1927 0x151 => { Name => 'LensFunc2Button', PrintConv => \%lensFuncButtonZ7m2 }, # CSf2-h (Z7_2)
1928 #0x153 => { Name => 'ViewfinderBrightness', } #(Z7_2) # commented out to reduce output volume. Range [-5,+5]. PrintConv matches MonitorBrightness.
1929 0x158 => { Name => 'USBPowerDelivery', PrintConv => \%enableDisable }, # (Z7_2)
1930 0x159 => { Name => 'EnergySavingMode', PrintConv =>\%onOff }, # (Z7_2)
1931 0x15c => { Name => 'BracketingBurstOptions',PrintConv => \%enableDisable }, # CSe9 (D6)
1932 # 0x15d => CSf3-j-2 (D6) 'Same as Multi-Selector with Info(U/D) & Playback(R/L)' and 'Same as Multi-Selector with Info(R/L) & Playback(U/D)' (skipped to reduce volume of output)
1933 0x15e => { Name => 'PrimarySlot', PrintConv => { 1 => 'CFexpress/XQD Card', 2 => 'SD Card' } }, # (Z7_2)
1934 0x15f => { Name => 'ReverseFocusRing', PrintConv => { 1 => 'Not Reversed', 2 => 'Reversed' } }, # CSf8 (Z7_2)
1935 0x160 => { # CSf9-a (Z7_2)
1936 Name => 'VerticalFuncButton',
1937 PrintConv => {
1938 1 => 'AE Lock (hold)',
1939 2 => 'AE Lock (reset on release)',
1940 3 => 'FV Lock',
1941 4 => 'Preview',
1942 5 => '+NEF(RAW)',
1943 6 => 'Subject Tracking',
1944 7 => 'Silent Photography',
1945 8 => 'LiveView Info Display On/Off',
1946 9 => 'Playback',
1947 10 => 'Image Area',
1948 11 => 'Metering',
1949 12 => 'Flash Mode',
1950 13 => 'Focus Mode',
1951 14 => 'Exposure Delay Mode',
1952 15 => 'Shutter/Aperture Lock',
1953 16 => 'Exposure Compensation',
1954 17 => 'ISO Sensitivity',
1955 18 => 'None',
1956 },
1957 },
1958 0x161 => { # CSf9-b (Z7_2)
1959 Name => 'VerticalAFOnButton',
1960 PrintConv => {
1961 1 => 'Same as AF-On Button',
1962 2 => 'Select Center Focus Point',
1963 3 => 'AF-On',
1964 4 => 'AF Lock Only',
1965 5 => 'AE Lock (hold)',
1966 6 => 'AE Lock (reset on release)',
1967 7 => 'AE Lock Only',
1968 8 => 'AE/AF Lock',
1969 9 => 'LiveView Info Display On/Off',
1970 10 => 'Zoom (Low)',
1971 11 => 'Zoom (1:1)',
1972 12 => 'Zoom (High)',
1973 13 => 'None',
1974 },
1975 },
1976 0x162 => { Name => 'VerticalMultiSelector', PrintConv => \%tagSubSelector }, # CSf9-c (Z7_2)
1977 # 0x163 => CSf9-c-2 (Z7_2) 'Same as Multi-Selector with Info(U/D) & Playback(R/L)' and 'Same as Multi-Selector with Info(R/L) & Playback(U/D)' (skipped to reduce volume of output)
1978 0x164 => { # CSg7-a (Z7_2)
1979 Name => 'VerticalMovieFuncButton',
1980 PrintConv => {
1981 1 => 'LiveView Info Display On/Off',
1982 2 => 'Record Movie',
1983 3 => 'Exposure Compensation',
1984 4 => 'ISO',
1985 5 => 'None',
1986 },
1987 },
1988 0x165 => { # CSg7-b (Z7_2)
1989 Name => 'VerticalMovieAFOnButton',
1990 PrintConv => {
1991 1 => 'Same as AF-On',
1992 2 => 'Center Focus Point',
1993 3 => 'AF-On',
1994 4 => 'AF Lock Only',
1995 5 => 'AE Lock (hold)',
1996 6 => 'AE Lock Only',
1997 7 => 'AE/AF Lock',
1998 8 => 'LiveView Info Display On/Off',
1999 9 => 'Zoom (Low)',
2000 10 => 'Zoom (1:1)',
2001 11 => 'Zoom (High)',
2002 12 => 'Record Movie',
2003 13 => 'None',
2004 },
2005 },
2006 #0x168 => { Name => 'ControlPanelBrightness', # (Z7_2) #commented to reduce output volume
2007 0x169 => { Name => 'LimitAF-AreaModeSelAutoPeople', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa7-h (Z7_2)
2008 0x16a => { Name => 'LimitAF-AreaModeSelAutoAnimals', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa7-h (Z7_2)
2009 0x16b => { Name => 'LimitAF-AreaModeSelWideLPeople', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa7-e (Z7_2)
2010 0x16c => { Name => 'LimitAF-AreaModeSelWideLAnimals', PrintConv => \%limitNolimit, Unknown => 1 }, # CSa7-f (Z7_2)
2011 0x16d => { Name => 'SaveFocus', PrintConv => \%onOff }, # (Z7_2)
2012 0x16e => { # (Z7_2)
2013 Name => 'AFAreaMode',
2014 RawConv => '$$self{AFAreaMode} = $val',
2015 PrintConv => {
2016 2 => 'Single-point',
2017 3 => 'Dynamic-area',
2018 4 => 'Wide (S)',
2019 5 => 'Wide (L)',
2020 6 => 'Wide (L-people)',
2021 7 => 'Wide (L-animals)',
2022 8 => 'Auto',
2023 9 => 'Auto (People)',
2024 10 => 'Auto (Animals)',
2025 },
2026 },
2027 0x16f => { # (Z7_2)
2028 Name => 'MovieAFAreaMode',
2029 PrintConv => {
2030 1 => 'Single-point',
2031 2 => 'Wide (S)',
2032 3 => 'Wide (L)',
2033 4 => 'Wide (L-people)',
2034 5 => 'Wide (L-animals)',
2035 6 => 'Auto',
2036 7 => 'Auto (People)',
2037 8 => 'Auto (Animals)',
2038 },
2039 },
2040 0x170 => { Name => 'PreferSubSelectorCenter', PrintConv => \%offOn }, # CSf13 (D6 firmware v1.2.0)
2041 0x171 => { # CSb8 (D6 firmware v1.3.0)
2042 Name => 'KeepExposureWithTeleconverter',
2043 PrintConv => {
2044 1 => 'Off',
2045 2 => 'Shutter Speed',
2046 3 => 'ISO',
2047 },
2048 },
2049 0x174 => { # CSa17-d (D6 firmware v1.2.0)
2050 Name => 'FocusPointSelectionSpeed',
2051 PrintConv => {
2052 1 => 'Normal',
2053 2 => 'High',
2054 3 => 'Very High',
2055 },
2056 },
2057 );
2058  
2059 #------------------------------------------------------------------------------
2060 # Process NikonSettings directory (ref PH)
2061 # Inputs: 0) ExifTool ref, 1) dirInfo ref, 2) tag table ref
2062 # Returns: 1 on success
2063 sub ProcessNikonSettings($$$)
2064 {
2065 my ($et, $dirInfo, $tagTablePtr) = @_;
2066  
2067 # NikonSettings directory has a 24-byte header:
2068 # 0x00 - undef[4]: '0100'
2069 # 0x04 - int32u: 1 (D-models), 2 (Z-models)
2070 # 0x08 - undef[4]: '0100'
2071 # 0x0c - int32u: 1 (Z7), 2 (D850), 3 (D780,Z50), 4 (D6,Z5), 5(Z7m2)
2072 # 0x10 - undef[4]: firmware version (eg. '0110' for firmware 1.10)
2073 # 0x14 - int32u: number of entries in directory
2074  
2075 return 0 if $$dirInfo{DirLen} < 24; # sanity check
2076  
2077 my $dataPt = $$dirInfo{DataPt};
2078 my $start = $$dirInfo{DirStart};
2079 my $num = Get32u($dataPt, $start + 0x14);
2080  
2081 $et->VerboseDir('NikonSettings', $num);
2082  
2083 my $n = int(($$dirInfo{DirLen} - 0x18) / 8);
2084 if ($n < $num) {
2085 $et->Warn('Missing '.($num-$n).' NikonSettings entries', 1);
2086 $num = $n;
2087 } elsif ($n > $num) {
2088 $et->Warn('Unused space in NikonSettings directory', 1);
2089 }
2090 my $i;
2091 for ($i=0; $i<$num; ++$i) {
2092 my $entry = $start + 0x18 + $i * 8;
2093 my $tag = Get16u($dataPt, $entry);
2094 # this is odd, but either the format is 16-bit and always big-endian,
2095 # or it is 8-bit and we have an unknown byte in the entry...
2096 my $fmt = Get8u($dataPt, $entry + 3);
2097 my $val = Get32u($dataPt, $entry + 4);
2098 # abort if the tag has a format that we haven't yet seen
2099 # (assuming this is a size/format code. So far we have only seen a code of 4)
2100 $fmt == 4 or $et->Warn(sprintf('Unknown format $fmt for NikonSettings tag 0x%.4x',$tag)), last;
2101 $et->HandleTag($tagTablePtr, $tag, $val,
2102 DataPt => $dataPt,
2103 DataPos => $$dirInfo{DataPos},
2104 Base => $$dirInfo{Base},
2105 Start => $entry + 4,
2106 Size => 4,
2107 Format => 'int32u',
2108 Index => $i,
2109 );
2110 }
2111 return 1;
2112 }
2113  
2114  
2115 1; # end
2116  
2117 __END__