File Coverage

blib/lib/Image/ExifTool/Casio.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             #------------------------------------------------------------------------------
2             # File: Casio.pm
3             #
4             # Description: Casio EXIF maker notes tags
5             #
6             # Revisions: 12/09/2003 - P. Harvey Created
7             # 09/10/2004 - P. Harvey Added MakerNote2 (thanks to Joachim Loehr)
8             #
9             # References: 1) http://park2.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html
10             # 2) Joachim Loehr private communication
11             # 3) http://homepage3.nifty.com/kamisaka/makernote/makernote_casio.htm
12             # 4) http://gvsoft.homedns.org/exif/makernote-casio-type1.html
13             # 5) Robert Chi private communication (EX-F1)
14             # 6) https://exiftool.org/forum/index.php/topic,3701.html
15             # JD) Jens Duttke private communication
16             #------------------------------------------------------------------------------
17              
18             package Image::ExifTool::Casio;
19              
20 20     20   4840 use strict;
  20         55  
  20         793  
21 20     20   146 use vars qw($VERSION);
  20         60  
  20         1007  
22 20     20   1578 use Image::ExifTool::Exif;
  20         49  
  20         66405  
23              
24             $VERSION = '1.38';
25              
26             # older Casio maker notes (ref 1)
27             %Image::ExifTool::Casio::Main = (
28             WRITE_PROC => \&Image::ExifTool::Exif::WriteExif,
29             CHECK_PROC => \&Image::ExifTool::Exif::CheckExif,
30             WRITABLE => 1,
31             GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' },
32             0x0001 => {
33             Name => 'RecordingMode' ,
34             Writable => 'int16u',
35             PrintConv => {
36             1 => 'Single Shutter',
37             2 => 'Panorama',
38             3 => 'Night Scene',
39             4 => 'Portrait',
40             5 => 'Landscape',
41             7 => 'Panorama', #4
42             10 => 'Night Scene', #4
43             15 => 'Portrait', #4
44             16 => 'Landscape', #4
45             },
46             },
47             0x0002 => {
48             Name => 'Quality',
49             Writable => 'int16u',
50             PrintConv => { 1 => 'Economy', 2 => 'Normal', 3 => 'Fine' },
51             },
52             0x0003 => {
53             Name => 'FocusMode',
54             Writable => 'int16u',
55             PrintConv => {
56             2 => 'Macro',
57             3 => 'Auto',
58             4 => 'Manual',
59             5 => 'Infinity',
60             7 => 'Spot AF', #4
61             },
62             },
63             0x0004 => [
64             {
65             Name => 'FlashMode',
66             Condition => '$self->{Model} =~ /^QV-(3500EX|8000SX)/',
67             Writable => 'int16u',
68             PrintConv => {
69             1 => 'Auto',
70             2 => 'On',
71             3 => 'Off',
72             4 => 'Off', #4
73             5 => 'Red-eye Reduction', #4
74             },
75             },
76             {
77             Name => 'FlashMode',
78             Writable => 'int16u',
79             PrintConv => {
80             1 => 'Auto',
81             2 => 'On',
82             3 => 'Off',
83             4 => 'Red-eye Reduction',
84             },
85             },
86             ],
87             0x0005 => {
88             Name => 'FlashIntensity',
89             Writable => 'int16u',
90             PrintConv => {
91             11 => 'Weak',
92             12 => 'Low', #4
93             13 => 'Normal',
94             14 => 'High', #4
95             15 => 'Strong',
96             },
97             },
98             0x0006 => {
99             Name => 'ObjectDistance',
100             Writable => 'int32u',
101             ValueConv => '$val / 1000', #4
102             ValueConvInv => '$val * 1000',
103             PrintConv => '"$val m"',
104             PrintConvInv => '$val=~s/\s*m$//;$val',
105             },
106             0x0007 => {
107             Name => 'WhiteBalance',
108             Writable => 'int16u',
109             PrintConv => {
110             1 => 'Auto',
111             2 => 'Tungsten',
112             3 => 'Daylight',
113             4 => 'Fluorescent',
114             5 => 'Shade',
115             129 => 'Manual',
116             },
117             },
118             # 0x0009 Bulb? (ref unknown)
119             0x000a => {
120             Name => 'DigitalZoom',
121             Writable => 'int32u',
122             PrintHex => 1,
123             PrintConv => {
124             0x10000 => 'Off',
125             0x10001 => '2x',
126             0x19999 => '1.6x', #4
127             0x20000 => '2x', #4
128             0x33333 => '3.2x', #4
129             0x40000 => '4x', #4
130             },
131             },
132             0x000b => {
133             Name => 'Sharpness',
134             Writable => 'int16u',
135             PrintConv => {
136             0 => 'Normal',
137             1 => 'Soft',
138             2 => 'Hard',
139             16 => 'Normal', #4
140             17 => '+1', #4
141             18 => '-1', #4
142             },
143             },
144             0x000c => {
145             Name => 'Contrast',
146             Writable => 'int16u',
147             PrintConv => {
148             0 => 'Normal',
149             1 => 'Low',
150             2 => 'High',
151             16 => 'Normal', #4
152             17 => '+1', #4
153             18 => '-1', #4
154             },
155             },
156             0x000d => {
157             Name => 'Saturation',
158             Writable => 'int16u',
159             PrintConv => {
160             0 => 'Normal',
161             1 => 'Low',
162             2 => 'High',
163             16 => 'Normal', #4
164             17 => '+1', #4
165             18 => '-1', #4
166             },
167             },
168             0x0014 => {
169             Name => 'ISO',
170             Writable => 'int16u',
171             Priority => 0,
172             },
173             0x0015 => { #JD (Similar to Type2 0x2001)
174             Name => 'FirmwareDate',
175             Writable => 'string',
176             Format => 'undef', # the 'string' contains nulls
177             Count => 18,
178             PrintConv => q{
179             $_ = $val;
180             if (/^(\d{2})(\d{2})\0\0(\d{2})(\d{2})\0\0(\d{2})(.{2})\0{2}$/) {
181             my $yr = $1 + ($1 < 70 ? 2000 : 1900);
182             my $sec = $6;
183             $val = "$yr:$2:$3 $4:$5";
184             $val .= ":$sec" if $sec=~/^\d{2}$/;
185             return $val;
186             }
187             tr/\0/./; s/\.+$//;
188             return "Unknown ($_)";
189             },
190             PrintConvInv => q{
191             $_ = $val;
192             if (/^(19|20)(\d{2}):(\d{2}):(\d{2}) (\d{2}):(\d{2})$/) {
193             return "$2$3\0\0$4$5\0\0$6\0\0\0\0";
194             } elsif (/^Unknown\s*\((.*)\)$/i) {
195             $_ = $1; tr/./\0/;
196             return $_;
197             } else {
198             return undef;
199             }
200             },
201             },
202             0x0016 => { #4
203             Name => 'Enhancement',
204             Writable => 'int16u',
205             PrintConv => {
206             1 => 'Off',
207             2 => 'Red',
208             3 => 'Green',
209             4 => 'Blue',
210             5 => 'Flesh Tones',
211             },
212             },
213             0x0017 => { #4
214             Name => 'ColorFilter',
215             Writable => 'int16u',
216             PrintConv => {
217             1 => 'Off',
218             2 => 'Black & White',
219             3 => 'Sepia',
220             4 => 'Red',
221             5 => 'Green',
222             6 => 'Blue',
223             7 => 'Yellow',
224             8 => 'Pink',
225             9 => 'Purple',
226             },
227             },
228             0x0018 => { #4
229             Name => 'AFPoint',
230             Writable => 'int16u',
231             Notes => 'may not be valid for all models', #JD
232             PrintConv => {
233             1 => 'Center',
234             2 => 'Upper Left',
235             3 => 'Upper Right',
236             4 => 'Near Left/Right of Center',
237             5 => 'Far Left/Right of Center',
238             6 => 'Far Left/Right of Center/Bottom',
239             7 => 'Top Near-left',
240             8 => 'Near Upper/Left',
241             9 => 'Top Near-right',
242             10 => 'Top Left',
243             11 => 'Top Center',
244             12 => 'Top Right',
245             13 => 'Center Left',
246             14 => 'Center Right',
247             15 => 'Bottom Left',
248             16 => 'Bottom Center',
249             17 => 'Bottom Right',
250             },
251             },
252             0x0019 => { #4
253             Name => 'FlashIntensity',
254             Writable => 'int16u',
255             PrintConv => {
256             1 => 'Normal',
257             2 => 'Weak',
258             3 => 'Strong',
259             },
260             },
261             0x0e00 => {
262             Name => 'PrintIM',
263             Description => 'Print Image Matching',
264             # crazy I know, but the offset for this value is entry-based
265             # (QV-2100, QV-2900UX, QV-3500EX and QV-4000) even though the
266             # offsets for other values isn't
267             EntryBased => 1,
268             SubDirectory => {
269             TagTable => 'Image::ExifTool::PrintIM::Main',
270             },
271             },
272             );
273              
274             # ref 2:
275             %Image::ExifTool::Casio::Type2 = (
276             WRITE_PROC => \&Image::ExifTool::Exif::WriteExif,
277             CHECK_PROC => \&Image::ExifTool::Exif::CheckExif,
278             WRITABLE => 1,
279             GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' },
280             0x0002 => {
281             Name => 'PreviewImageSize',
282             Groups => { 2 => 'Image' },
283             Writable => 'int16u',
284             Count => 2,
285             PrintConv => '$val =~ tr/ /x/; $val',
286             PrintConvInv => '$val =~ tr/x/ /; $val',
287             },
288             0x0003 => {
289             Name => 'PreviewImageLength',
290             Groups => { 2 => 'Image' },
291             OffsetPair => 0x0004, # point to associated offset
292             DataTag => 'PreviewImage',
293             Writable => 'int32u',
294             WriteGroup => 'MakerNotes',
295             Protected => 2,
296             },
297             0x0004 => {
298             Name => 'PreviewImageStart',
299             Groups => { 2 => 'Image' },
300             Flags => 'IsOffset',
301             OffsetPair => 0x0003, # point to associated byte count
302             DataTag => 'PreviewImage',
303             Writable => 'int32u',
304             WriteGroup => 'MakerNotes',
305             Protected => 2,
306             },
307             0x0008 => {
308             Name => 'QualityMode',
309             Writable => 'int16u',
310             PrintConv => {
311             0 => 'Economy',
312             1 => 'Normal',
313             2 => 'Fine',
314             },
315             },
316             0x0009 => {
317             Name => 'CasioImageSize',
318             Groups => { 2 => 'Image' },
319             Writable => 'int16u',
320             PrintConv => {
321             0 => '640x480',
322             4 => '1600x1200',
323             5 => '2048x1536',
324             20 => '2288x1712',
325             21 => '2592x1944',
326             22 => '2304x1728',
327             36 => '3008x2008',
328             },
329             },
330             0x000d => {
331             Name => 'FocusMode',
332             Writable => 'int16u',
333             PrintConv => {
334             0 => 'Normal',
335             1 => 'Macro',
336             },
337             },
338             0x0014 => {
339             Name => 'ISO',
340             Writable => 'int16u',
341             Priority => 0,
342             PrintConv => {
343             3 => 50,
344             4 => 64,
345             6 => 100,
346             9 => 200,
347             },
348             },
349             0x0019 => {
350             Name => 'WhiteBalance',
351             Writable => 'int16u',
352             PrintConv => {
353             0 => 'Auto',
354             1 => 'Daylight',
355             2 => 'Shade',
356             3 => 'Tungsten',
357             4 => 'Fluorescent',
358             5 => 'Manual',
359             },
360             },
361             0x001d => {
362             Name => 'FocalLength',
363             Writable => 'rational64u',
364             PrintConv => 'sprintf("%.1f mm",$val)',
365             PrintConvInv => '$val=~s/\s*mm$//;$val',
366             },
367             0x001f => {
368             Name => 'Saturation',
369             Writable => 'int16u',
370             PrintConv => {
371             0 => 'Low',
372             1 => 'Normal',
373             2 => 'High',
374             },
375             },
376             0x0020 => {
377             Name => 'Contrast',
378             Writable => 'int16u',
379             PrintConv => {
380             0 => 'Low',
381             1 => 'Normal',
382             2 => 'High',
383             },
384             },
385             0x0021 => {
386             Name => 'Sharpness',
387             Writable => 'int16u',
388             PrintConv => {
389             0 => 'Soft',
390             1 => 'Normal',
391             2 => 'Hard',
392             },
393             },
394             0x0e00 => {
395             Name => 'PrintIM',
396             Description => 'Print Image Matching',
397             Writable => 0,
398             SubDirectory => {
399             TagTable => 'Image::ExifTool::PrintIM::Main',
400             },
401             },
402             0x2000 => {
403             # this image data is also referenced by tags 3 and 4
404             # (nasty that they double-reference the image!)
405             %Image::ExifTool::previewImageTagInfo,
406             Groups => { 2 => 'Preview' },
407             },
408             0x2001 => { #PH
409             # I downloaded images from 12 different EX-Z50 cameras, and they showed
410             # only 3 distinct dates here (2004:08:31 18:55, 2004:09:13 14:14, and
411             # 2004:11:26 17:07), so I'm guessing this is a firmware version date - PH
412             Name => 'FirmwareDate',
413             Writable => 'string',
414             Format => 'undef', # the 'string' contains nulls
415             Count => 18,
416             PrintConv => q{
417             $_ = $val;
418             if (/^(\d{2})(\d{2})\0\0(\d{2})(\d{2})\0\0(\d{2})\0{4}$/) {
419             my $yr = $1 + ($1 < 70 ? 2000 : 1900);
420             return "$yr:$2:$3 $4:$5";
421             }
422             tr/\0/./; s/\.+$//;
423             return "Unknown ($_)";
424             },
425             PrintConvInv => q{
426             $_ = $val;
427             if (/^(19|20)(\d{2}):(\d{2}):(\d{2}) (\d{2}):(\d{2})$/) {
428             return "$2$3\0\0$4$5\0\0$6\0\0\0\0";
429             } elsif (/^Unknown\s*\((.*)\)$/i) {
430             $_ = $1; tr/./\0/;
431             return $_;
432             } else {
433             return undef;
434             }
435             },
436             },
437             0x2011 => {
438             Name => 'WhiteBalanceBias',
439             Writable => 'int16u',
440             Count => 2,
441             },
442             0x2012 => {
443             Name => 'WhiteBalance',
444             Writable => 'int16u',
445             PrintConv => {
446             0 => 'Manual',
447             1 => 'Daylight', #3
448             2 => 'Cloudy', #PH (EX-ZR20, NC)
449             3 => 'Shade', #3
450             4 => 'Flash?',
451             6 => 'Fluorescent', #3
452             9 => 'Tungsten?', #PH (EX-Z77)
453             10 => 'Tungsten', #3
454             12 => 'Flash',
455             },
456             },
457             0x2021 => { #JD (guess)
458             Name => 'AFPointPosition',
459             Writable => 'int16u',
460             Count => 4,
461             PrintConv => q{
462             my @v = split ' ', $val;
463             return 'n/a' if $v[0] == 65535 or not $v[1] or not $v[3];
464             sprintf "%.2g %.2g", $v[0]/$v[1], $v[2]/$v[3];
465             },
466             },
467             0x2022 => {
468             Name => 'ObjectDistance',
469             Writable => 'int32u',
470             ValueConv => '$val >= 0x20000000 ? "inf" : $val / 1000',
471             ValueConvInv => '$val eq "inf" ? 0x20000000 : $val * 1000',
472             PrintConv => '$val eq "inf" ? $val : "$val m"',
473             PrintConvInv => '$val=~s/\s*m$//;$val',
474             },
475             # 0x2023 looks interesting (values 0,1,2,3,5 in samples) - PH
476             # - 1 for makeup mode shots (portrait?) (EX-Z450)
477             0x2034 => {
478             Name => 'FlashDistance',
479             Writable => 'int16u',
480             },
481             # 0x203e - normally 62000, but 62001 for anti-shake mode - PH
482             0x2076 => { #PH (EX-Z450)
483             # ("Enhancement" was taken already, so call this "SpecialEffect" for lack of a better name)
484             Name => 'SpecialEffectMode',
485             Writable => 'int8u',
486             Count => 3,
487             PrintConv => {
488             '0 0 0' => 'Off',
489             '1 0 0' => 'Makeup',
490             '2 0 0' => 'Mist Removal',
491             '3 0 0' => 'Vivid Landscape',
492             # have also seen '1 1 1', '2 2 4', '4 3 3', '4 4 4'
493             # '0 0 14' and '0 0 42' - premium auto night shot (EX-Z2300)
494             # and '0 0 2' for Art HDR
495             },
496             },
497             0x2089 => [ #PH
498             {
499             Name => 'FaceInfo1',
500             Condition => '$$valPt =~ /^(\0\0|.\x02\x80\x01\xe0)/s', # (EX-H5)
501             SubDirectory => {
502             TagTable => 'Image::ExifTool::Casio::FaceInfo1',
503             ByteOrder => 'BigEndian',
504             },
505             },{
506             Name => 'FaceInfo2',
507             Condition => '$$valPt =~ /^\x02\x01/', # (EX-H20G,EX-ZR100)
508             SubDirectory => {
509             TagTable => 'Image::ExifTool::Casio::FaceInfo2',
510             ByteOrder => 'LittleEndian',
511             },
512             },{
513             Name => 'FaceInfoUnknown',
514             Unknown => 1,
515             },
516             ],
517             # 0x208a - also some sort of face detection information - PH
518             0x211c => { #PH
519             Name => 'FacesDetected',
520             Format => 'int8u',
521             },
522             0x3000 => {
523             Name => 'RecordMode',
524             Writable => 'int16u',
525             PrintConv => {
526             2 => 'Program AE', #3
527             3 => 'Shutter Priority', #3
528             4 => 'Aperture Priority', #3
529             5 => 'Manual', #3
530             6 => 'Best Shot', #3
531             17 => 'Movie', #PH (UHQ?)
532             19 => 'Movie (19)', #PH (HQ?, EX-P505)
533             20 => 'YouTube Movie', #PH
534             '2 0' => 'Program AE', #PH (NC)
535             '3 0' => 'Shutter Priority', #PH (NC)
536             '4 0' => 'Aperture Priority', #PH (NC)
537             '5 0' => 'Manual', #PH (NC)
538             '6 0' => 'Best Shot', #PH (NC)
539             },
540             },
541             0x3001 => { #3
542             Name => 'ReleaseMode',
543             Writable => 'int16u',
544             PrintConv => {
545             1 => 'Normal',
546             3 => 'AE Bracketing',
547             11 => 'WB Bracketing',
548             13 => 'Contrast Bracketing', #(not sure about translation - PH)
549             19 => 'High Speed Burst', #PH (EX-FH25, 40fps)
550             # have also seen: 2, 7(common), 14, 18 - PH
551             },
552             },
553             0x3002 => {
554             Name => 'Quality',
555             Writable => 'int16u',
556             PrintConv => {
557             1 => 'Economy',
558             2 => 'Normal',
559             3 => 'Fine',
560             },
561             },
562             0x3003 => {
563             Name => 'FocusMode',
564             Writable => 'int16u',
565             PrintConv => {
566             0 => 'Manual', #(guess at translation)
567             1 => 'Focus Lock', #(guess at translation)
568             2 => 'Macro', #3
569             3 => 'Single-Area Auto Focus',
570             5 => 'Infinity', #PH
571             6 => 'Multi-Area Auto Focus',
572             8 => 'Super Macro', #PH (EX-Z2300)
573             },
574             },
575             0x3006 => {
576             Name => 'HometownCity',
577             Writable => 'string',
578             },
579             # unfortunately the BestShotMode numbers are model-dependent - PH
580             #http://search.casio-intl.com/search?q=BEST+SHOT+sets+up+the+camera+CASIO+EX+ZR100+BEST+SHOT&btnG=Search&output=xml_no_dtd&oe=UTF-8&ie=UTF-8&site=casio-intl_com&client=search_casio-intl_com&proxystylesheet=search_casio-intl_com
581             # NOTE: BestShotMode is not used unless RecordMode is "Best Shot"
582             0x3007 => [{
583             Name => 'BestShotMode',
584             Writable => 'int16u',
585             Condition => '$$self{Model} eq "EX-FC100"',
586             Notes => 'EX-FC100',
587             PrintConvColumns => 2,
588             PrintConv => {
589             0 => 'Off',
590             1 => 'Auto',
591             2 => 'Portrait',
592             3 => 'Scenery',
593             4 => 'Portrait with Scenery',
594             5 => 'Children',
595             6 => 'Sports',
596             7 => 'Pet',
597             8 => 'Flower',
598             9 => 'Natural Green',
599             10 => 'Autumn Leaves',
600             11 => 'Sundown',
601             12 => 'High Speed Night Scene',
602             13 => 'Night Scene Portrait',
603             14 => 'Fireworks',
604             15 => 'High Speed Anti Shake',
605             16 => 'Multi-motion Image',
606             17 => 'High Speed Best Selection',
607             18 => 'Move Out CS',
608             19 => 'Move In CS',
609             20 => 'Pre-record Movie',
610             21 => 'For YouTube',
611             },
612             },{
613             Name => 'BestShotMode',
614             Writable => 'int16u',
615             Condition => '$$self{Model} eq "EX-FC150"',
616             Notes => 'EX-FC150',
617             PrintConvColumns => 2,
618             PrintConv => {
619             0 => 'Off',
620             1 => 'Auto',
621             2 => 'Expression CS',
622             3 => 'Baby CS',
623             4 => 'Child CS',
624             5 => 'Pet CS',
625             6 => 'Sports CS',
626             7 => 'Child High Speed Movie',
627             8 => 'Pet High Speed Movie',
628             9 => 'Sports High Speed Movie',
629             10 => 'Lag Correction',
630             11 => 'High Speed Lighting',
631             12 => 'High Speed Night Scene',
632             13 => 'High Speed Night Scene and Portrait',
633             14 => 'High Speed Anti Shake',
634             15 => 'High Speed Best Selection',
635             16 => 'Portrait',
636             17 => 'Scenery',
637             18 => 'Portrait With Scenery',
638             19 => 'Flower',
639             20 => 'Natural Green',
640             21 => 'Autumn Leaves',
641             22 => 'Sundown',
642             23 => 'Fireworks',
643             24 => 'Multi-motion Image',
644             25 => 'Move Out CS',
645             26 => 'Move In CS',
646             27 => 'Pre-record Movie',
647             28 => 'For YouTube',
648             },
649             },{
650             Name => 'BestShotMode',
651             Writable => 'int16u',
652             Condition => '$$self{Model} eq "EX-FC200S"',
653             Notes => 'EX-FC200S',
654             PrintConvColumns => 2,
655             PrintConv => {
656             0 => 'Off',
657             1 => 'Slow Motion Swing (behind)',
658             2 => 'Slow Motion Swing (front)',
659             3 => 'Self Slow Motion (behind)',
660             4 => 'Self Slow Motion (front)',
661             5 => 'Swing Burst',
662             6 => 'HDR',
663             7 => 'HDR Art',
664             8 => 'High Speed Night Scene',
665             9 => 'High Speed Night Scene and Portrait',
666             10 => 'High Speed Anti Shake',
667             11 => 'Multi SR Zoom',
668             12 => 'Blurred Background',
669             13 => 'Wide Shot',
670             14 => 'Slide Panorama',
671             15 => 'High Speed Best Selection',
672             16 => 'Lag Correction',
673             17 => 'High Speed CS',
674             18 => 'Child CS',
675             19 => 'Pet CS',
676             20 => 'Sports CS',
677             21 => 'Child High Speed Movie',
678             22 => 'Pet High Speed Movie',
679             23 => 'Sports High Speed Movie',
680             24 => 'Portrait',
681             25 => 'Scenery',
682             26 => 'Portrait with Scenery',
683             27 => 'Children',
684             28 => 'Sports',
685             29 => 'Candlelight Portrait',
686             30 => 'Party',
687             31 => 'Pet',
688             32 => 'Flower',
689             33 => 'Natural Green',
690             34 => 'Autumn Leaves',
691             35 => 'Soft Flowing Water',
692             36 => 'Splashing Water',
693             37 => 'Sundown',
694             38 => 'Fireworks',
695             39 => 'Food',
696             40 => 'Text',
697             41 => 'Collection',
698             42 => 'Auction',
699             43 => 'Pre-record Movie',
700             44 => 'For YouTube',
701             },
702             },{
703             Name => 'BestShotMode',
704             Writable => 'int16u',
705             Condition => '$$self{Model} eq "EX-FH100"',
706             Notes => 'EX-FH100',
707             PrintConvColumns => 2,
708             PrintConv => {
709             0 => 'Off',
710             1 => 'Expression CS',
711             2 => 'Baby CS',
712             3 => 'Child CS',
713             4 => 'Pet CS',
714             5 => 'Sports CS',
715             6 => 'Child High Speed Movie',
716             7 => 'Pet High Speed Movie',
717             8 => 'Sports High Speed Movie',
718             9 => 'Lag Correction',
719             10 => 'High Speed Lighting',
720             11 => 'High Speed Night Scene',
721             12 => 'High Speed Night Scene and Portrait',
722             13 => 'High Speed Anti Shake',
723             14 => 'High Speed Best Selection',
724             15 => 'Portrait',
725             16 => 'Scenery',
726             17 => 'Portrait With Scenery',
727             18 => 'Flower',
728             19 => 'Natural Green',
729             20 => 'Autumn Leaves',
730             21 => 'Sundown',
731             22 => 'Fireworks',
732             23 => 'Multi-motion Image',
733             24 => 'Move Out CS',
734             25 => 'Move In CS',
735             26 => 'Pre-record Movie',
736             27 => 'For YouTube',
737             },
738             },{
739             Name => 'BestShotMode',
740             Writable => 'int16u',
741             Condition => '$$self{Model} eq "EX-G1"',
742             Notes => 'EX-G1',
743             PrintConvColumns => 3,
744             PrintConv => {
745             0 => 'Off',
746             1 => 'Auto',
747             2 => 'Auto Best Shot',
748             3 => 'Dynamic Photo',
749             4 => 'Interval Snapshot',
750             5 => 'Interval Movie',
751             6 => 'Portrait',
752             7 => 'Scenery',
753             8 => 'Portrait with Scenery',
754             9 => 'Underwater',
755             10 => 'Beach',
756             11 => 'Snow',
757             12 => 'Children',
758             13 => 'Sports',
759             14 => 'Pet',
760             15 => 'Flower',
761             16 => 'Sundown',
762             17 => 'Night Scene',
763             18 => 'Night Scene Portrait',
764             19 => 'Fireworks',
765             20 => 'Food',
766             21 => 'For eBay',
767             22 => 'Multi-motion Image',
768             23 => 'Pre-record Movie',
769             24 => 'For YouTube',
770             25 => 'Voice Recording',
771             },
772             },{
773             Name => 'BestShotMode',
774             Writable => 'int16u',
775             Condition => '$$self{Model} eq "EX-S10"',
776             Notes => 'EX-S10',
777             PrintConvColumns => 3,
778             PrintConv => {
779             0 => 'Off',
780             1 => 'Auto',
781             2 => 'Portrait',
782             3 => 'Scenery',
783             4 => 'Portrait with Scenery',
784             5 => 'Self-portrait (1 person)',
785             6 => 'Self-portrait (2 people)',
786             7 => 'Children',
787             8 => 'Sports',
788             9 => 'Candlelight Portrait',
789             10 => 'Party',
790             11 => 'Pet',
791             12 => 'Flower',
792             13 => 'Natural Green',
793             14 => 'Autumn Leaves',
794             15 => 'Soft Flowing Water',
795             16 => 'Splashing Water',
796             17 => 'Sundown',
797             18 => 'Night Scene',
798             19 => 'Night Scene Portrait',
799             20 => 'Fireworks',
800             21 => 'Food',
801             22 => 'Text',
802             23 => 'Collection',
803             24 => 'Auction',
804             25 => 'Backlight',
805             26 => 'Anti Shake',
806             27 => 'High Sensitivity',
807             28 => 'Underwater',
808             29 => 'Monochrome',
809             30 => 'Retro',
810             31 => 'Business Cards',
811             32 => 'White Board',
812             33 => 'Silent',
813             34 => 'Pre-record Movie',
814             35 => 'For YouTube',
815             36 => 'Voice Recording',
816             },
817             },{
818             Name => 'BestShotMode',
819             Writable => 'int16u',
820             Condition => '$$self{Model} eq "EX-S880"',
821             Notes => 'EX-S880',
822             PrintConvColumns => 3,
823             PrintConv => {
824             0 => 'Off',
825             1 => 'Auto',
826             2 => 'Portrait',
827             3 => 'Scenery',
828             4 => 'Portrait with Scenery',
829             5 => 'Children',
830             6 => 'Sports',
831             7 => 'Candlelight Portrait',
832             8 => 'Party',
833             9 => 'Pet',
834             10 => 'Flower',
835             11 => 'Natural Green',
836             12 => 'Autumn Leaves',
837             13 => 'Soft Flowing Water', # (wrong in documentation)
838             14 => 'Splashing Water',
839             15 => 'Sundown',
840             16 => 'Night Scene',
841             17 => 'Night Scene Portrait',
842             18 => 'Fireworks',
843             19 => 'Food',
844             20 => 'Text',
845             21 => 'Collection',
846             22 => 'Auction',
847             23 => 'Backlight',
848             24 => 'Anti Shake',
849             25 => 'High Sensitivity',
850             26 => 'Monochrome',
851             27 => 'Retro',
852             28 => 'Twilight',
853             29 => 'Layout (2 images)',
854             30 => 'Layout (3 images)',
855             31 => 'Auto Framing',
856             32 => 'Old Photo',
857             33 => 'Business Cards',
858             34 => 'White Board',
859             35 => 'Silent',
860             36 => 'Short Movie',
861             37 => 'Past Movie',
862             38 => 'For YouTube',
863             39 => 'Voice Recording',
864             },
865             },{
866             Name => 'BestShotMode',
867             Writable => 'int16u',
868             Condition => '$$self{Model} eq "EX-Z16"',
869             Notes => 'EX-Z16',
870             PrintConvColumns => 3,
871             PrintConv => {
872             0 => 'Off',
873             1 => 'Auto',
874             2 => 'Portrait',
875             3 => 'Scenery',
876             4 => 'Portrait with Scenery',
877             5 => 'Children',
878             6 => 'Sports',
879             7 => 'Candlelight Portrait',
880             8 => 'Party',
881             9 => 'Pet',
882             10 => 'Flower',
883             11 => 'Soft Flowing Water',
884             12 => 'Sundown',
885             13 => 'Night Scene',
886             14 => 'Night Scene Portrait',
887             15 => 'Fireworks',
888             16 => 'Food',
889             17 => 'Text',
890             18 => 'For eBay',
891             19 => 'Backlight',
892             20 => 'Anti Shake',
893             21 => 'High Sensitivity',
894             22 => 'For YouTube',
895             23 => 'Voice Recording',
896             },
897             },{
898             Name => 'BestShotMode',
899             Writable => 'int16u',
900             Condition => '$$self{Model} eq "EX-Z9"',
901             Notes => 'EX-Z9',
902             PrintConvColumns => 3,
903             PrintConv => {
904             0 => 'Off',
905             1 => 'Auto',
906             2 => 'Movie',
907             3 => 'Portrait',
908             4 => 'Scenery',
909             5 => 'Children',
910             6 => 'Sports',
911             7 => 'Candlelight Portrait',
912             8 => 'Party',
913             9 => 'Pet',
914             10 => 'Flower',
915             11 => 'Soft Flowing Water',
916             12 => 'Sundown',
917             13 => 'Night Scene',
918             14 => 'Night Scene Portrait',
919             15 => 'Fireworks',
920             16 => 'Food',
921             17 => 'Text',
922             18 => 'Auction',
923             19 => 'Backlight',
924             20 => 'Anti Shake',
925             21 => 'High Sensitivity',
926             22 => 'For YouTube',
927             23 => 'Voice Recording',
928             },
929             },{
930             Name => 'BestShotMode',
931             Writable => 'int16u',
932             Condition => '$$self{Model} eq "EX-Z80"',
933             Notes => 'EX-Z80',
934             PrintConvColumns => 3,
935             PrintConv => {
936             0 => 'Off',
937             1 => 'Auto',
938             2 => 'Portrait',
939             3 => 'Scenery',
940             4 => 'Portrait with Scenery',
941             5 => 'Pet',
942             6 => 'Self-portrait (1 person)',
943             7 => 'Self-portrait (2 people)',
944             8 => 'Flower',
945             9 => 'Food',
946             10 => 'Fashion Accessories',
947             11 => 'Magazine',
948             12 => 'Monochrome',
949             13 => 'Retro',
950             14 => 'Cross Filter',
951             15 => 'Pastel',
952             16 => 'Night Scene',
953             17 => 'Night Scene Portrait',
954             18 => 'Party',
955             19 => 'Sports',
956             20 => 'Children',
957             21 => 'Sundown',
958             22 => 'Fireworks',
959             23 => 'Underwater',
960             24 => 'Backlight',
961             25 => 'High Sensitivity',
962             26 => 'Auction',
963             27 => 'White Board',
964             28 => 'Pre-record Movie',
965             29 => 'For YouTube',
966             30 => 'Voice Recording',
967             },
968             },{
969             Name => 'BestShotMode',
970             Writable => 'int16u',
971             Condition => '$$self{Model} =~ /^EX-Z(100|200)$/',
972             Notes => 'EX-Z100 and EX-Z200',
973             PrintConvColumns => 3,
974             PrintConv => {
975             0 => 'Off',
976             1 => 'Auto',
977             2 => 'Auto Best Shot',
978             3 => 'Portrait',
979             4 => 'Scenery',
980             5 => 'Portrait with Scenery',
981             6 => 'Self-portrait (1 person)',
982             7 => 'Self-portrait (2 people)',
983             8 => 'Children',
984             9 => 'Sports',
985             10 => 'Candlelight Portrait',
986             11 => 'Party',
987             12 => 'Pet',
988             13 => 'Flower',
989             14 => 'Natural Green',
990             15 => 'Autumn Leaves',
991             16 => 'Soft Flowing Water',
992             17 => 'Splashing Water',
993             18 => 'Sundown',
994             19 => 'Night Scene',
995             20 => 'Night Scene Portrait',
996             21 => 'Fireworks',
997             22 => 'Food',
998             23 => 'Text',
999             24 => 'Collection',
1000             25 => 'Auction',
1001             26 => 'Backlight',
1002             27 => 'Anti Shake',
1003             28 => 'High Sensitivity',
1004             29 => 'Underwater',
1005             30 => 'Monochrome',
1006             31 => 'Retro',
1007             32 => 'Twilight',
1008             33 => 'ID Photo',
1009             34 => 'Business Cards',
1010             35 => 'White Board',
1011             36 => 'Silent',
1012             37 => 'Pre-record Movie',
1013             38 => 'For YouTube',
1014             39 => 'Voice Recording',
1015             },
1016             },{
1017             Name => 'BestShotMode',
1018             Writable => 'int16u',
1019             # (Movies have different BestShot numbers for this camera)
1020             Condition => '$$self{Model} eq "EX-Z750" and $$self{FILE_TYPE} eq "JPEG"',
1021             Notes => 'EX-Z750 JPEG images',
1022             PrintConvColumns => 3,
1023             PrintConv => {
1024             0 => 'Off',
1025             1 => 'Portrait',
1026             2 => 'Scenery',
1027             3 => 'Portrait with Scenery',
1028             4 => 'Children',
1029             5 => 'Sports',
1030             6 => 'Candlelight Portrait',
1031             7 => 'Party',
1032             8 => 'Pet',
1033             9 => 'Flower',
1034             10 => 'Natural Green',
1035             11 => 'Soft Flowing Water',
1036             12 => 'Splashing Water',
1037             13 => 'Sundown',
1038             14 => 'Night Scene',
1039             15 => 'Night Scene Portrait',
1040             16 => 'Fireworks',
1041             17 => 'Food',
1042             18 => 'Text',
1043             19 => 'Collection',
1044             20 => 'Backlight',
1045             21 => 'Anti Shake',
1046             22 => 'Pastel',
1047             23 => 'Illustration',
1048             24 => 'Cross Filter',
1049             25 => 'Monochrome',
1050             26 => 'Retro',
1051             27 => 'Twilight',
1052             28 => 'Old Photo',
1053             29 => 'ID Photo',
1054             30 => 'Business Cards',
1055             31 => 'White Board',
1056             },
1057             },{
1058             Name => 'BestShotMode',
1059             Writable => 'int16u',
1060             # (Movies have different BestShot numbers for this camera)
1061             Condition => '$$self{Model} eq "EX-Z750" and $$self{FILE_TYPE} =~ /^(MOV|AVI)$/',
1062             Notes => 'EX-Z750 movies',
1063             PrintConvColumns => 3,
1064             PrintConv => {
1065             0 => 'Off',
1066             1 => 'Portrait',
1067             2 => 'Scenery',
1068             3 => 'Night Scene',
1069             4 => 'Fireworks',
1070             5 => 'Backlight',
1071             6 => 'Silent',
1072             },
1073             },{
1074             Name => 'BestShotMode',
1075             Writable => 'int16u',
1076             # (Movies have different BestShot numbers for this camera)
1077             Condition => '$$self{Model} eq "EX-Z850" and $$self{FILE_TYPE} eq "JPEG"',
1078             Notes => 'EX-Z850 JPEG images',
1079             PrintConvColumns => 3,
1080             PrintConv => {
1081             0 => 'Off',
1082             1 => 'Portrait',
1083             2 => 'Scenery',
1084             3 => 'Portrait with Scenery',
1085             4 => 'Children',
1086             5 => 'Sports',
1087             6 => 'Candlelight Portrait',
1088             7 => 'Party',
1089             8 => 'Pet',
1090             9 => 'Flower',
1091             10 => 'Natural Green',
1092             11 => 'Autumn Leaves',
1093             12 => 'Soft Flowing Water',
1094             13 => 'Splashing Water',
1095             14 => 'Sundown',
1096             15 => 'Night Scene',
1097             16 => 'Night Scene Portrait',
1098             17 => 'Fireworks',
1099             18 => 'Food',
1100             19 => 'Text',
1101             20 => 'Collection',
1102             21 => 'For eBay',
1103             22 => 'Backlight',
1104             23 => 'Anti Shake',
1105             24 => 'High Sensitivity',
1106             25 => 'Pastel',
1107             26 => 'Illustration',
1108             27 => 'Cross Filter',
1109             28 => 'Monochrome',
1110             29 => 'Retro',
1111             30 => 'Twilight',
1112             31 => 'ID Photo',
1113             32 => 'Old Photo',
1114             33 => 'Business Cards',
1115             34 => 'White Board',
1116             },
1117             },{
1118             Name => 'BestShotMode',
1119             Writable => 'int16u',
1120             # (Movies have different BestShot numbers for this camera)
1121             Condition => '$$self{Model} eq "EX-Z850" and $$self{FILE_TYPE} =~ /^(MOV|AVI)$/',
1122             Notes => 'EX-Z850 movies',
1123             PrintConvColumns => 3,
1124             PrintConv => {
1125             0 => 'Off',
1126             1 => 'Portrait',
1127             2 => 'Scenery',
1128             3 => 'Night Scene',
1129             4 => 'Fireworks',
1130             5 => 'Backlight',
1131             6 => 'High Sensitivity',
1132             7 => 'Silent',
1133             8 => 'Short Movie',
1134             9 => 'Past Movie',
1135             },
1136             },{
1137             Name => 'BestShotMode',
1138             Writable => 'int16u',
1139             # (Movies have different BestShot numbers for this camera)
1140             Condition => '$$self{Model} eq "EX-Z1050"',
1141             Notes => 'EX-Z1050',
1142             PrintConvColumns => 3,
1143             PrintConv => {
1144             0 => 'Off',
1145             1 => 'Auto',
1146             2 => 'Movie',
1147             3 => 'Portrait',
1148             4 => 'Scenery',
1149             5 => 'Portrait with Scenery',
1150             6 => 'Children',
1151             7 => 'Sports',
1152             8 => 'Candlelight Portrait',
1153             9 => 'Party',
1154             10 => 'Pet',
1155             11 => 'Flower',
1156             12 => 'Natural Green',
1157             13 => 'Autumn Leaves',
1158             14 => 'Soft Flowing Water',
1159             15 => 'Splashing Water',
1160             16 => 'Sundown',
1161             17 => 'Night Scene',
1162             18 => 'Night Scene Portrait',
1163             19 => 'Fireworks',
1164             20 => 'Food',
1165             21 => 'Text',
1166             22 => 'Collection',
1167             23 => 'For eBay',
1168             24 => 'Backlight',
1169             25 => 'Anti Shake',
1170             26 => 'High Sensitivity',
1171             27 => 'Underwater',
1172             28 => 'Monochrome',
1173             29 => 'Retro',
1174             30 => 'Twilight',
1175             31 => 'Layout (2 images)',
1176             32 => 'Layout (3 images)',
1177             33 => 'Auto Framing',
1178             34 => 'ID Photo',
1179             35 => 'Old Photo',
1180             36 => 'Business Cards',
1181             37 => 'White Board',
1182             38 => 'Voice Recording',
1183             },
1184             },{
1185             Name => 'BestShotMode',
1186             Writable => 'int16u',
1187             # (Movies have different BestShot numbers for this camera)
1188             Condition => '$$self{Model} eq "EX-Z1080"',
1189             Notes => 'EX-Z1080',
1190             PrintConvColumns => 3,
1191             PrintConv => {
1192             0 => 'Off',
1193             1 => 'Auto',
1194             2 => 'Movie',
1195             3 => 'Portrait',
1196             4 => 'Scenery',
1197             5 => 'Portrait with Scenery',
1198             6 => 'Children',
1199             7 => 'Sports',
1200             8 => 'Candlelight Portrait',
1201             9 => 'Party',
1202             10 => 'Pet',
1203             11 => 'Flower',
1204             12 => 'Natural Green',
1205             13 => 'Autumn Leaves',
1206             14 => 'Soft Flowing Water',
1207             15 => 'Splashing Water',
1208             16 => 'Sundown',
1209             17 => 'Night Scene',
1210             18 => 'Night Scene Portrait',
1211             19 => 'Fireworks',
1212             20 => 'Food',
1213             21 => 'Text',
1214             22 => 'Collection',
1215             23 => 'For eBay',
1216             24 => 'Backlight',
1217             25 => 'Anti Shake',
1218             26 => 'High Sensitivity',
1219             27 => 'Underwater',
1220             28 => 'Monochrome',
1221             29 => 'Retro',
1222             30 => 'Twilight',
1223             31 => 'Layout (2 images)',
1224             32 => 'Layout (3 images)',
1225             33 => 'Auto Framing',
1226             34 => 'ID Photo',
1227             35 => 'Old Photo',
1228             36 => 'Business Cards',
1229             37 => 'White Board',
1230             38 => 'Short Movie',
1231             39 => 'Past Movie',
1232             40 => 'For YouTube',
1233             41 => 'Voice Recording',
1234             },
1235             },{
1236             Name => 'BestShotMode',
1237             Writable => 'int16u',
1238             # (Movies have different BestShot numbers for this camera)
1239             Condition => '$$self{Model} eq "EX-Z1200" and $$self{FILE_TYPE} eq "JPEG"',
1240             Notes => 'EX-Z1200 JPEG images',
1241             PrintConvColumns => 3,
1242             PrintConv => {
1243             0 => 'Off',
1244             1 => 'Portrait',
1245             2 => 'Scenery',
1246             3 => 'Portrait with Scenery',
1247             4 => 'Children',
1248             5 => 'Sports',
1249             6 => 'Candlelight Portrait',
1250             7 => 'Party',
1251             8 => 'Pet',
1252             9 => 'Flower',
1253             10 => 'Natural Green',
1254             11 => 'Autumn Leaves',
1255             12 => 'Soft Flowing Water',
1256             13 => 'Splashing Water',
1257             14 => 'Sundown',
1258             15 => 'Night Scene',
1259             16 => 'Night Scene Portrait',
1260             17 => 'Fireworks',
1261             18 => 'Food',
1262             19 => 'Text',
1263             20 => 'Collection',
1264             21 => 'Auction',
1265             22 => 'Backlight',
1266             23 => 'High Sensitivity',
1267             24 => 'Underwater',
1268             25 => 'Monochrome',
1269             26 => 'Retro',
1270             27 => 'Twilight',
1271             28 => 'Layout (2 images)',
1272             29 => 'Layout (3 images)',
1273             30 => 'Auto Framing',
1274             31 => 'ID Photo',
1275             32 => 'Old Photo',
1276             33 => 'Business Cards',
1277             34 => 'White Board',
1278             },
1279             },{
1280             Name => 'BestShotMode',
1281             Writable => 'int16u',
1282             # (Movies have different BestShot numbers for this camera)
1283             Condition => '$$self{Model} eq "EX-Z1200" and $$self{FILE_TYPE} =~ /^(MOV|AVI)$/',
1284             Notes => 'EX-Z1200 movies',
1285             PrintConvColumns => 3,
1286             PrintConv => {
1287             0 => 'Off',
1288             1 => 'Portrait',
1289             2 => 'Scenery',
1290             3 => 'Night Scene',
1291             4 => 'Fireworks',
1292             5 => 'Backlight',
1293             6 => 'High Sensitivity',
1294             7 => 'Silent',
1295             8 => 'Short Movie',
1296             9 => 'Past Movie',
1297             },
1298             },
1299             # (the following weren't numbered in the documentation:
1300             # G1, Z300, Z250, Z85, Z19, Z150, F1, FH20)
1301             {
1302             Name => 'BestShotMode',
1303             Writable => 'int16u',
1304             Condition => '$$self{Model} eq "EX-Z2000"',
1305             Notes => 'EX-Z2000',
1306             PrintConvColumns => 3,
1307             #http://support.casio.com/download_files/001/faq_pdf/Z2000/EXZ2000_BS_US_a.pdf
1308             PrintConv => {
1309             0 => 'Off',
1310             1 => 'Auto',
1311             2 => 'Premium Auto',
1312             3 => 'Dynamic Photo',
1313             4 => 'Portrait',
1314             5 => 'Scenery',
1315             6 => 'Portrait with Scenery',
1316             7 => 'Children',
1317             8 => 'Sports',
1318             9 => 'Candlelight Portrait',
1319             10 => 'Party',
1320             11 => 'Pet',
1321             12 => 'Flower',
1322             13 => 'Natural Green',
1323             14 => 'Autumn Leaves',
1324             15 => 'Soft Flowing Water',
1325             16 => 'Splashing Water',
1326             17 => 'Sundown',
1327             18 => 'Night Scene',
1328             19 => 'Night Scene Portrait',
1329             20 => 'Fireworks',
1330             21 => 'Food',
1331             22 => 'Text',
1332             23 => 'Collection',
1333             24 => 'For eBay',
1334             25 => 'Backlight',
1335             26 => 'High Sensitivity',
1336             27 => 'Oil Painting',
1337             28 => 'Crayon',
1338             29 => 'Water Color',
1339             30 => 'Monochrome',
1340             31 => 'Retro',
1341             32 => 'Twilight',
1342             33 => 'Multi-motion Image',
1343             34 => 'ID Photo',
1344             35 => 'Business Cards',
1345             36 => 'White Board',
1346             37 => 'Silent',
1347             38 => 'Pre-record Movie',
1348             39 => 'For YouTube',
1349             40 => 'Voice Recording',
1350             },
1351             },{
1352             Name => 'BestShotMode',
1353             Writable => 'int16u',
1354             # (Movies have different BestShot numbers for this camera)
1355             Condition => '$$self{Model} eq "EX-Z2300"',
1356             Notes => 'EX-Z2300',
1357             PrintConvColumns => 3,
1358             PrintConv => {
1359             0 => 'Off',
1360             1 => 'Auto',
1361             2 => 'Premium Auto',
1362             3 => 'Dynamic Photo',
1363             4 => 'Portrait',
1364             5 => 'Scenery',
1365             6 => 'Portrait with Scenery',
1366             7 => 'Children',
1367             8 => 'Sports',
1368             9 => 'Candlelight Portrait',
1369             10 => 'Party',
1370             11 => 'Pet',
1371             12 => 'Flower',
1372             13 => 'Natural Green',
1373             14 => 'Autumn Leaves',
1374             15 => 'Soft Flowing Water',
1375             16 => 'Splashing Water',
1376             17 => 'Sundown',
1377             18 => 'Night Scene',
1378             19 => 'Night Scene Portrait',
1379             20 => 'Fireworks',
1380             21 => 'Food',
1381             22 => 'Text',
1382             23 => 'Collection',
1383             24 => 'Auction',
1384             25 => 'Backlight',
1385             26 => 'High Sensitivity',
1386             27 => 'Oil Painting',
1387             28 => 'Crayon',
1388             29 => 'Water Color',
1389             30 => 'Monochrome',
1390             31 => 'Retro',
1391             32 => 'Twilight',
1392             33 => 'Multi-motion Image',
1393             34 => 'ID Photo',
1394             35 => 'Business Cards',
1395             36 => 'White Board',
1396             37 => 'Silent',
1397             38 => 'Pre-record Movie',
1398             39 => 'For YouTube',
1399             40 => 'Voice Recording',
1400             },
1401             },{
1402             Name => 'BestShotMode',
1403             Writable => 'int16u',
1404             Condition => '$$self{Model} eq "EX-Z3000"',
1405             Notes => 'EX-Z3000',
1406             PrintConvColumns => 3,
1407             PrintConv => {
1408             0 => 'Off',
1409             1 => 'Portrait',
1410             2 => 'Scenery',
1411             3 => 'Portrait With Scenery',
1412             4 => 'Children',
1413             5 => 'Sports',
1414             6 => 'Night Scene',
1415             },
1416             },{
1417             Name => 'BestShotMode',
1418             Writable => 'int16u',
1419             Condition => '$$self{Model} eq "EX-ZR100"',
1420             Notes => 'EX-ZR100',
1421             PrintConvColumns => 2,
1422             PrintConv => {
1423             0 => 'Off',
1424             1 => 'Child CS',
1425             2 => 'Pet CS',
1426             3 => 'Sports CS',
1427             4 => 'Child High Speed Movie',
1428             5 => 'Pet High Speed Movie',
1429             6 => 'Sports High Speed Movie',
1430             7 => 'Multi SR Zoom',
1431             8 => 'Lag Correction',
1432             9 => 'High Speed Night Scene',
1433             10 => 'High Speed Night Scene and Portrait',
1434             11 => 'High Speed Anti Shake',
1435             12 => 'Portrait',
1436             13 => 'Scenery',
1437             14 => 'Portrait with Scenery',
1438             15 => 'Children',
1439             16 => 'Sports',
1440             17 => 'Candlelight Portrait',
1441             18 => 'Party',
1442             19 => 'Pet',
1443             20 => 'Flower',
1444             21 => 'Natural Green',
1445             22 => 'Autumn Leaves',
1446             23 => 'Soft Flowing Water',
1447             24 => 'Splashing Water',
1448             25 => 'Sundown',
1449             26 => 'Fireworks',
1450             27 => 'Food',
1451             28 => 'Text',
1452             29 => 'Collection',
1453             30 => 'For eBay',
1454             31 => 'Pre-record Movie',
1455             32 => 'For YouTube',
1456             },
1457             },{
1458             Name => 'BestShotMode',
1459             Writable => 'int16u',
1460             Condition => '$$self{Model} eq "EX-ZR200"',
1461             Notes => 'EX-ZR200',
1462             PrintConvColumns => 2,
1463             PrintConv => {
1464             0 => 'Off',
1465             1 => 'High Speed Night Scene',
1466             2 => 'High Speed Night Scene and Portrait',
1467             3 => 'High Speed Anti Shake',
1468             4 => 'Blurred Background',
1469             5 => 'Wide Shot',
1470             6 => 'High Speed Best Selection',
1471             7 => 'Lag Correction',
1472             8 => 'Child CS',
1473             9 => 'Pet CS',
1474             10 => 'Sports CS',
1475             11 => 'Child High Speed Movie',
1476             12 => 'Pet High Speed Movie',
1477             13 => 'Sports High Speed Movie',
1478             14 => 'Portrait',
1479             15 => 'Scenery',
1480             16 => 'Portrait with Scenery',
1481             17 => 'Children',
1482             18 => 'Sports',
1483             19 => 'Candlelight Portrait',
1484             20 => 'Party',
1485             21 => 'Pet',
1486             22 => 'Flower',
1487             23 => 'Natural Green',
1488             24 => 'Autumn Leaves',
1489             25 => 'Soft Flowing Water',
1490             26 => 'Splashing Water',
1491             27 => 'Sundown',
1492             28 => 'Fireworks',
1493             29 => 'Food',
1494             30 => 'Text',
1495             31 => 'Collection',
1496             32 => 'Auction',
1497             33 => 'Pre-record Movie',
1498             34 => 'For YouTube',
1499             },
1500             },{ #http://ftp.casio.co.jp/pub/world_manual/qv/en/qv_4000/BS.pdf
1501             Name => 'BestShotMode',
1502             Writable => 'int16u',
1503             Condition => '$$self{Model} eq "QV-4000"',
1504             Notes => 'QV-4000',
1505             PrintConvColumns => 3,
1506             PrintConv => {
1507             0 => 'Off',
1508             1 => 'People',
1509             2 => 'Scenery',
1510             3 => 'Flower',
1511             4 => 'Night Scene',
1512             5 => 'Soft Focus',
1513             # this camera also supports 100 modes that you can apparently load
1514             # from a CD-ROM, but I don't know how these map into these numbers
1515             },
1516             },{ #Manfred, email
1517             Name => 'BestShotMode',
1518             Writable => 'int16u',
1519             Condition => '$$self{Model} eq "EX-ZR300"',
1520             Notes => 'EX-ZR300',
1521             PrintConvColumns => 2,
1522             PrintConv => {
1523             1 => 'High Speed Night Shot',
1524             2 => 'Blurred Background',
1525             3 => 'Toy Camera',
1526             4 => 'Soft Focus',
1527             5 => 'Light Tone',
1528             6 => 'Pop',
1529             7 => 'Sepia',
1530             8 => 'Monochrome',
1531             9 => 'Miniature',
1532             10 => 'Wide Shot',
1533             11 => 'High Speed Best Selection',
1534             12 => 'Lag Correction',
1535             13 => 'High Speed Night Scene',
1536             14 => 'High Speed Night Scene and Portrait',
1537             15 => 'High Speed Anti Shake',
1538             16 => 'Portrait',
1539             17 => 'Scenery',
1540             18 => 'Portrait with Scenery',
1541             19 => 'Children',
1542             20 => 'Sports',
1543             21 => 'Candlelight Portrait',
1544             22 => 'Party',
1545             23 => 'Pet',
1546             24 => 'Flower',
1547             25 => 'Natural Green',
1548             26 => 'Autumn Leaves',
1549             27 => 'Soft Flowing Water',
1550             28 => 'Splashing Water',
1551             29 => 'Sundown',
1552             30 => 'Fireworks',
1553             31 => 'Food',
1554             32 => 'Text',
1555             33 => 'Collection',
1556             34 => 'Auction',
1557             35 => 'Prerecord (Movie)',
1558             36 => 'For YouTube',
1559             },
1560             },{
1561             Name => 'BestShotMode',
1562             Writable => 'int16u',
1563             Notes => 'other models not yet decoded',
1564             # so we can't use a lookup as usual - PH
1565             PrintConv => '$val ? $val : "Off"',
1566             PrintConvInv => '$val=~/(\d+)/ ? $1 : 0',
1567             }],
1568             0x3008 => { #3
1569             Name => 'AutoISO',
1570             Writable => 'int16u',
1571             PrintConv => {
1572             1 => 'On',
1573             2 => 'Off',
1574             7 => 'On (high sensitivity)', #PH
1575             8 => 'On (anti-shake)', #PH
1576             10 => 'High Speed', #PH (EX-FC150)
1577             },
1578             },
1579             0x3009 => { #6
1580             Name => 'AFMode',
1581             Writable => 'int16u',
1582             PrintConv => {
1583             0 => 'Off',
1584             1 => 'Spot',
1585             2 => 'Multi',
1586             3 => 'Face Detection',
1587             4 => 'Tracking', # (but saw this for "Family First" mode with EX-Z77 - PH)
1588             5 => 'Intelligent',
1589             },
1590             },
1591             0x3011 => { #3
1592             Name => 'Sharpness',
1593             Format => 'int16s',
1594             Writable => 'undef',
1595             },
1596             0x3012 => { #3
1597             Name => 'Contrast',
1598             Format => 'int16s',
1599             Writable => 'undef',
1600             },
1601             0x3013 => { #3
1602             Name => 'Saturation',
1603             Format => 'int16s',
1604             Writable => 'undef',
1605             },
1606             0x3014 => {
1607             Name => 'ISO',
1608             Writable => 'int16u',
1609             Priority => 0,
1610             },
1611             0x3015 => {
1612             Name => 'ColorMode',
1613             Writable => 'int16u',
1614             PrintConv => {
1615             0 => 'Off',
1616             2 => 'Black & White', #PH (EX-Z400,FH20)
1617             3 => 'Sepia', #PH (EX-Z400)
1618             },
1619             },
1620             0x3016 => {
1621             Name => 'Enhancement',
1622             Writable => 'int16u',
1623             PrintConv => {
1624             0 => 'Off',
1625             1 => 'Scenery', #PH (NC) (EX-Z77)
1626             3 => 'Green', #PH (EX-Z77)
1627             5 => 'Underwater', #PH (NC) (EX-Z77)
1628             9 => 'Flesh Tones', #PH (EX-Z77)
1629             },
1630             },
1631             0x3017 => {
1632             Name => 'ColorFilter',
1633             Writable => 'int16u',
1634             PrintConv => {
1635             0 => 'Off',
1636             1 => 'Blue', #PH (FH20,Z400)
1637             3 => 'Green', #PH (FH20)
1638             4 => 'Yellow', #PH (FH20)
1639             5 => 'Red', #PH (FH20,Z77)
1640             6 => 'Purple', #PH (FH20,Z77,Z400)
1641             7 => 'Pink', #PH (FH20)
1642             },
1643             },
1644             0x301b => { #PH
1645             Name => 'ArtMode',
1646             Writable => 'int16u',
1647             PrintConv => {
1648             0 => 'Normal',
1649             8 => 'Silent Movie',
1650             39 => 'HDR', # (EX-ZR10)
1651             45 => 'Premium Auto', # (EX-2300)
1652             47 => 'Painting', # (EX-2300)
1653             49 => 'Crayon Drawing', # (EX-2300)
1654             51 => 'Panorama', # (EX-ZR10)
1655             52 => 'Art HDR', # (EX-ZR10,EX-Z3000)
1656             62 => 'High Speed Night Shot', # (EX-ZR20)
1657             64 => 'Monochrome', # (EX-ZR20)
1658             67 => 'Toy Camera', # (EX-ZR20)
1659             68 => 'Pop Art', # (EX-ZR20)
1660             69 => 'Light Tone', # (EX-ZR20)
1661             },
1662             },
1663             0x301c => { #3
1664             Name => 'SequenceNumber', # for continuous shooting
1665             Writable => 'int16u',
1666             },
1667             0x301d => { #3
1668             Name => 'BracketSequence',
1669             Writable => 'int16u',
1670             Count => 2,
1671             },
1672             # 0x301e - MultiBracket ? (ref 3)
1673             0x3020 => { #3
1674             Name => 'ImageStabilization',
1675             Writable => 'int16u',
1676             PrintConv => {
1677             0 => 'Off',
1678             1 => 'On',
1679             2 => 'Best Shot',
1680             3 => 'Movie Anti-Shake', # (EX-V7, EX-TR100)
1681             # (newer models write 2 numbers here - PH)
1682             '0 0' => 'Off', #PH
1683             '16 0' => 'Slow Shutter', #PH (EX-Z77)
1684             '18 0' => 'Anti-Shake', #PH (EX-Z77)
1685             '20 0' => 'High Sensitivity', #PH (EX-Z77)
1686             # EX-Z2000 in 'Auto' mode gives '0 3' or '2 3' (ref 6)
1687             '0 1' => 'Off (1)', #6
1688             '0 3' => 'CCD Shift', #PH/6 ("Camera AS" in EX-Z2000 manual)
1689             '2 1' => 'High Sensitivity', #6
1690             '2 3' => 'CCD Shift + High Sensitivity', #PH (EX-FC150)
1691             # have also seen:
1692             # '2 0' - EX-Z15 1/60s ISO 200, EX-Z77 1/1000s ISO 50
1693             # '16 1' - EX-Z2300 1/125s ISO 50
1694             },
1695             },
1696             0x302a => { #PH (EX-Z450)
1697             Name => 'LightingMode', #(just guessing here)
1698             Writable => 'int16u',
1699             PrintConv => {
1700             0 => 'Off',
1701             1 => 'High Dynamic Range', # (EX-Z77 anti-blur shot)
1702             5 => 'Shadow Enhance Low', #(NC)
1703             6 => 'Shadow Enhance High', #(NC)
1704             },
1705             },
1706             0x302b => { #PH (EX-Z77)
1707             Name => 'PortraitRefiner',
1708             Writable => 'int16u',
1709             PrintConv => {
1710             0 => 'Off',
1711             1 => '+1',
1712             2 => '+2',
1713             },
1714             },
1715             0x3030 => { #PH (EX-Z450)
1716             Name => 'SpecialEffectLevel',
1717             Writable => 'int16u',
1718             },
1719             0x3031 => { #PH (EX-Z450)
1720             Name => 'SpecialEffectSetting',
1721             Writable => 'int16u',
1722             PrintConv => {
1723             0 => 'Off',
1724             1 => 'Makeup',
1725             2 => 'Mist Removal',
1726             3 => 'Vivid Landscape',
1727             16 => 'Art Shot', # (EX-Z2300)
1728             },
1729             },
1730             0x3103 => { #5
1731             Name => 'DriveMode',
1732             Writable => 'int16u',
1733             PrintConvColumns => 2,
1734             PrintConv => {
1735             OTHER => sub {
1736             # handle new values of future models
1737             my ($val, $inv) = @_;
1738             return $val =~ /(\d+)/ ? $1 : undef if $inv;
1739             return "Continuous ($val fps)";
1740             },
1741             0 => 'Single Shot', #PH (NC)
1742             1 => 'Continuous Shooting', # (1 fps for the EX-F1)
1743             2 => 'Continuous (2 fps)',
1744             3 => 'Continuous (3 fps)',
1745             4 => 'Continuous (4 fps)',
1746             5 => 'Continuous (5 fps)',
1747             6 => 'Continuous (6 fps)',
1748             7 => 'Continuous (7 fps)',
1749             10 => 'Continuous (10 fps)',
1750             12 => 'Continuous (12 fps)',
1751             15 => 'Continuous (15 fps)',
1752             20 => 'Continuous (20 fps)',
1753             30 => 'Continuous (30 fps)',
1754             40 => 'Continuous (40 fps)', #PH (EX-FH25)
1755             60 => 'Continuous (60 fps)',
1756             240 => 'Auto-N',
1757             },
1758             },
1759             0x310b => { #PH (NC)
1760             Name => 'ArtModeParameters',
1761             Writable => 'int8u',
1762             Count => 3,
1763             # "0 1 0" = Toy camera 1
1764             # "0 2 0" = Toy camera 1
1765             # "0 3 0" = Toy camera 1
1766             # Have also seen "0 0 0" and "2 0 0"
1767             },
1768             0x4001 => { #PH (AVI videos)
1769             Name => 'CaptureFrameRate',
1770             Writable => 'int16u',
1771             Count => -1,
1772             ValueConv => q{
1773             my @v=split(" ",$val);
1774             return $val / 1000 if @v == 1;
1775             return $v[1] ? "$v[1]-$v[0]" : ($v[0] > 10000 ? $v[0] / 1000 : $v[0]);
1776             },
1777             ValueConvInv => '$val <= 60 ? $val * 1000 : int($val) . " 0"',
1778             },
1779             # 0x4002 - AVI videos, related to video quality or size - PH
1780             0x4003 => { #PH (AVI and MOV videos)
1781             Name => 'VideoQuality',
1782             Writable => 'int16u',
1783             PrintConv => {
1784             1 => 'Standard',
1785             # 2 - could this be LP?
1786             3 => 'HD (720p)',
1787             4 => 'Full HD (1080p)', # (EX-ZR10, 30fps 1920x1080)
1788             5 => 'Low', # used in High Speed modes
1789             },
1790             },
1791             );
1792              
1793             # face detection information (ref PH) (EX-H5)
1794             %Image::ExifTool::Casio::FaceInfo1 = (
1795             PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
1796             WRITE_PROC => \&Image::ExifTool::WriteBinaryData,
1797             CHECK_PROC => \&Image::ExifTool::CheckBinaryData,
1798             GROUPS => { 0 => 'MakerNotes', 2 => 'Image' },
1799             WRITABLE => 1,
1800             FIRST_ENTRY => 0,
1801             DATAMEMBER => [ 0 ],
1802             NOTES => 'Face-detect tags extracted from models such as the EX-H5.',
1803             0x00 => { # (NC)
1804             Name => 'FacesDetected',
1805             DataMember => 'FacesDetected',
1806             RawConv => '$$self{FacesDetected} = $val',
1807             },
1808             0x01 => {
1809             Name => 'FaceDetectFrameSize',
1810             Condition => '$$self{FacesDetected} >= 1', # (otherwise zeros)
1811             Format => 'int16u[2]',
1812             },
1813             0x0d => {
1814             Name => 'Face1Position',
1815             Condition => '$$self{FacesDetected} >= 1',
1816             Format => 'int16u[4]',
1817             Notes => q{
1818             left, top, right and bottom of detected face in coordinates of
1819             FaceDetectFrameSize, with increasing Y downwards
1820             },
1821             },
1822             # decoding NOT CONFIRMED (NC) for faces 2-10!
1823             0x7c => {
1824             Name => 'Face2Position',
1825             Condition => '$$self{FacesDetected} >= 2',
1826             Format => 'int16u[4]',
1827             },
1828             0xeb => {
1829             Name => 'Face3Position',
1830             Condition => '$$self{FacesDetected} >= 3',
1831             Format => 'int16u[4]',
1832             },
1833             0x15a => {
1834             Name => 'Face4Position',
1835             Condition => '$$self{FacesDetected} >= 4',
1836             Format => 'int16u[4]',
1837             },
1838             0x1c9 => {
1839             Name => 'Face5Position',
1840             Condition => '$$self{FacesDetected} >= 5',
1841             Format => 'int16u[4]',
1842             },
1843             0x238 => {
1844             Name => 'Face6Position',
1845             Condition => '$$self{FacesDetected} >= 6',
1846             Format => 'int16u[4]',
1847             },
1848             0x2a7 => {
1849             Name => 'Face7Position',
1850             Condition => '$$self{FacesDetected} >= 7',
1851             Format => 'int16u[4]',
1852             },
1853             0x316 => {
1854             Name => 'Face8Position',
1855             Condition => '$$self{FacesDetected} >= 8',
1856             Format => 'int16u[4]',
1857             },
1858             0x385 => {
1859             Name => 'Face9Position',
1860             Condition => '$$self{FacesDetected} >= 9',
1861             Format => 'int16u[4]',
1862             },
1863             0x3f4 => {
1864             Name => 'Face10Position',
1865             Condition => '$$self{FacesDetected} >= 10',
1866             Format => 'int16u[4]',
1867             },
1868             );
1869              
1870             # face detection information (ref PH) (EX-ZR100)
1871             %Image::ExifTool::Casio::FaceInfo2 = (
1872             PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
1873             WRITE_PROC => \&Image::ExifTool::WriteBinaryData,
1874             CHECK_PROC => \&Image::ExifTool::CheckBinaryData,
1875             GROUPS => { 0 => 'MakerNotes', 2 => 'Image' },
1876             WRITABLE => 1,
1877             FIRST_ENTRY => 0,
1878             DATAMEMBER => [ 2 ],
1879             NOTES => 'Face-detect tags extracted from models such as the EX-H20G and EX-ZR100.',
1880             0x02 => {
1881             Name => 'FacesDetected',
1882             DataMember => 'FacesDetected',
1883             RawConv => '$$self{FacesDetected} = $val',
1884             },
1885             0x04 => {
1886             Name => 'FaceDetectFrameSize',
1887             Condition => '$$self{FacesDetected} >= 1',
1888             Format => 'int16u[2]',
1889             },
1890             0x08 => {
1891             Name => 'FaceOrientation',
1892             Condition => '$$self{FacesDetected} >= 1',
1893             PrintConv => {
1894             0 => 'Horizontal (normal)',
1895             1 => 'Rotate 90 CW',
1896             2 => 'Rotate 270 CW',
1897             3 => 'Rotate 180', # (NC)
1898             # (have seen 64 here, but image had no face)
1899             },
1900             Notes => 'orientation of face relative to unrotated image',
1901             },
1902             # 0x0a - FaceDetectFrameSize again
1903             # 0x11 - Face1Detected flag (1=detected)
1904             0x18 => {
1905             Name => 'Face1Position',
1906             Condition => '$$self{FacesDetected} >= 1',
1907             Format => 'int16u[4]',
1908             Notes => q{
1909             left, top, right and bottom of detected face in coordinates of
1910             FaceDetectFrameSize, with increasing Y downwards
1911             },
1912             },
1913             # 0x45 - Face2Detected, etc...
1914             0x4c => {
1915             Name => 'Face2Position',
1916             Condition => '$$self{FacesDetected} >= 2',
1917             Format => 'int16u[4]',
1918             },
1919             0x80 => {
1920             Name => 'Face3Position',
1921             Condition => '$$self{FacesDetected} >= 3',
1922             Format => 'int16u[4]',
1923             },
1924             0xb4 => {
1925             Name => 'Face4Position',
1926             Condition => '$$self{FacesDetected} >= 4',
1927             Format => 'int16u[4]',
1928             },
1929             0xe8 => {
1930             Name => 'Face5Position',
1931             Condition => '$$self{FacesDetected} >= 5',
1932             Format => 'int16u[4]',
1933             },
1934             0x11c => {
1935             Name => 'Face6Position',
1936             Condition => '$$self{FacesDetected} >= 6',
1937             Format => 'int16u[4]',
1938             },
1939             0x150 => {
1940             Name => 'Face7Position',
1941             Condition => '$$self{FacesDetected} >= 7',
1942             Format => 'int16u[4]',
1943             },
1944             0x184 => {
1945             Name => 'Face8Position',
1946             Condition => '$$self{FacesDetected} >= 8',
1947             Format => 'int16u[4]',
1948             },
1949             0x1b8 => {
1950             Name => 'Face9Position',
1951             Condition => '$$self{FacesDetected} >= 9',
1952             Format => 'int16u[4]',
1953             },
1954             0x1ec => {
1955             Name => 'Face10Position',
1956             Condition => '$$self{FacesDetected} >= 10',
1957             Format => 'int16u[4]',
1958             },
1959             );
1960              
1961             # Casio APP1 QVCI segment found in QV-7000SX images (ref PH)
1962             %Image::ExifTool::Casio::QVCI = (
1963             PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
1964             GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' },
1965             FIRST_ENTRY => 0,
1966             NOTES => q{
1967             This information is found in the APP1 QVCI segment of JPEG images from the
1968             Casio QV-7000SX.
1969             },
1970             0x2c => {
1971             Name => 'CasioQuality',
1972             PrintConv => {
1973             1 => 'Economy',
1974             2 => 'Normal',
1975             3 => 'Fine',
1976             4 => 'Super Fine',
1977             },
1978             },
1979             0x37 => {
1980             Name => 'FocalRange',
1981             Unknown => 1,
1982             },
1983             0x4d => {
1984             Name => 'DateTimeOriginal',
1985             Description => 'Date/Time Original',
1986             Format => 'string[20]',
1987             Groups => { 2 => 'Time' },
1988             ValueConv => '$val=~tr/./:/; $val=~s/(\d+:\d+:\d+):/$1 /; $val',
1989             PrintConv => '$self->ConvertDateTime($val)',
1990             },
1991             0x62 => {
1992             Name => 'ModelType',
1993             Format => 'string[7]',
1994             },
1995             0x72 => { # could be serial number or manufacture date in form YYMMDDxx ?
1996             Name => 'ManufactureIndex',
1997             Format => 'string[9]',
1998             },
1999             0x7c => {
2000             Name => 'ManufactureCode',
2001             Format => 'string[9]',
2002             },
2003             );
2004              
2005             # tags in Casio AVI videos (ref PH)
2006             %Image::ExifTool::Casio::AVI = (
2007             PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
2008             GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' },
2009             FIRST_ENTRY => 0,
2010             NOTES => 'This information is found in Casio GV-10 AVI videos.',
2011             0 => {
2012             Name => 'Software', # (equivalent to RIFF Software tag)
2013             Format => 'string',
2014             },
2015             );
2016              
2017              
2018             1; # end
2019              
2020             __END__