| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
package com.drew.metadata.exif.makernotes; |
| 22 |
|
| 23 |
import com.drew.lang.annotations.NotNull; |
| 24 |
import com.drew.lang.annotations.Nullable; |
| 25 |
import com.drew.metadata.TagDescriptor; |
| 26 |
|
| 27 |
import java.text.DecimalFormat; |
| 28 |
import java.util.HashMap; |
| 29 |
|
| 30 |
import static com.drew.metadata.exif.makernotes.CanonMakernoteDirectory.*; |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
@SuppressWarnings("WeakerAccess") |
| 38 |
public class CanonMakernoteDescriptor extends TagDescriptor<CanonMakernoteDirectory> |
| 39 |
{ |
| 40 |
public CanonMakernoteDescriptor(@NotNull CanonMakernoteDirectory directory) |
| 41 |
{ |
| 42 |
super(directory); |
| 43 |
} |
| 44 |
|
| 45 |
@Override |
| 46 |
@Nullable |
| 47 |
public String getDescription(int tagType) |
| 48 |
{ |
| 49 |
switch (tagType) { |
| 50 |
case TAG_CANON_SERIAL_NUMBER: |
| 51 |
return getSerialNumberDescription(); |
| 52 |
case CameraSettings.TAG_FLASH_ACTIVITY: |
| 53 |
return getFlashActivityDescription(); |
| 54 |
case CameraSettings.TAG_FOCUS_TYPE: |
| 55 |
return getFocusTypeDescription(); |
| 56 |
case CameraSettings.TAG_DIGITAL_ZOOM: |
| 57 |
return getDigitalZoomDescription(); |
| 58 |
case CameraSettings.TAG_RECORD_MODE: |
| 59 |
return getRecordModeDescription(); |
| 60 |
case CameraSettings.TAG_QUALITY: |
| 61 |
return getQualityDescription(); |
| 62 |
case CameraSettings.TAG_MACRO_MODE: |
| 63 |
return getMacroModeDescription(); |
| 64 |
case CameraSettings.TAG_SELF_TIMER_DELAY: |
| 65 |
return getSelfTimerDelayDescription(); |
| 66 |
case CameraSettings.TAG_FLASH_MODE: |
| 67 |
return getFlashModeDescription(); |
| 68 |
case CameraSettings.TAG_CONTINUOUS_DRIVE_MODE: |
| 69 |
return getContinuousDriveModeDescription(); |
| 70 |
case CameraSettings.TAG_FOCUS_MODE_1: |
| 71 |
return getFocusMode1Description(); |
| 72 |
case CameraSettings.TAG_IMAGE_SIZE: |
| 73 |
return getImageSizeDescription(); |
| 74 |
case CameraSettings.TAG_EASY_SHOOTING_MODE: |
| 75 |
return getEasyShootingModeDescription(); |
| 76 |
case CameraSettings.TAG_CONTRAST: |
| 77 |
return getContrastDescription(); |
| 78 |
case CameraSettings.TAG_SATURATION: |
| 79 |
return getSaturationDescription(); |
| 80 |
case CameraSettings.TAG_SHARPNESS: |
| 81 |
return getSharpnessDescription(); |
| 82 |
case CameraSettings.TAG_ISO: |
| 83 |
return getIsoDescription(); |
| 84 |
case CameraSettings.TAG_METERING_MODE: |
| 85 |
return getMeteringModeDescription(); |
| 86 |
case CameraSettings.TAG_AF_POINT_SELECTED: |
| 87 |
return getAfPointSelectedDescription(); |
| 88 |
case CameraSettings.TAG_EXPOSURE_MODE: |
| 89 |
return getExposureModeDescription(); |
| 90 |
case CameraSettings.TAG_LENS_TYPE: |
| 91 |
return getLensTypeDescription(); |
| 92 |
case CameraSettings.TAG_LONG_FOCAL_LENGTH: |
| 93 |
return getLongFocalLengthDescription(); |
| 94 |
case CameraSettings.TAG_SHORT_FOCAL_LENGTH: |
| 95 |
return getShortFocalLengthDescription(); |
| 96 |
case CameraSettings.TAG_FOCAL_UNITS_PER_MM: |
| 97 |
return getFocalUnitsPerMillimetreDescription(); |
| 98 |
case CameraSettings.TAG_FLASH_DETAILS: |
| 99 |
return getFlashDetailsDescription(); |
| 100 |
case CameraSettings.TAG_FOCUS_MODE_2: |
| 101 |
return getFocusMode2Description(); |
| 102 |
case FocalLength.TAG_WHITE_BALANCE: |
| 103 |
return getWhiteBalanceDescription(); |
| 104 |
case FocalLength.TAG_AF_POINT_USED: |
| 105 |
return getAfPointUsedDescription(); |
| 106 |
case FocalLength.TAG_FLASH_BIAS: |
| 107 |
return getFlashBiasDescription(); |
| 108 |
case AFInfo.TAG_AF_POINTS_IN_FOCUS: |
| 109 |
return getTagAfPointsInFocus(); |
| 110 |
case CameraSettings.TAG_MAX_APERTURE: |
| 111 |
return getMaxApertureDescription(); |
| 112 |
case CameraSettings.TAG_MIN_APERTURE: |
| 113 |
return getMinApertureDescription(); |
| 114 |
case CameraSettings.TAG_FOCUS_CONTINUOUS: |
| 115 |
return getFocusContinuousDescription(); |
| 116 |
case CameraSettings.TAG_AE_SETTING: |
| 117 |
return getAESettingDescription(); |
| 118 |
case CanonMakernoteDirectory.CameraSettings.TAG_DISPLAY_APERTURE: |
| 119 |
return getDisplayApertureDescription(); |
| 120 |
case CanonMakernoteDirectory.CameraSettings.TAG_SPOT_METERING_MODE: |
| 121 |
return getSpotMeteringModeDescription(); |
| 122 |
case CanonMakernoteDirectory.CameraSettings.TAG_PHOTO_EFFECT: |
| 123 |
return getPhotoEffectDescription(); |
| 124 |
case CanonMakernoteDirectory.CameraSettings.TAG_MANUAL_FLASH_OUTPUT: |
| 125 |
return getManualFlashOutputDescription(); |
| 126 |
case CanonMakernoteDirectory.CameraSettings.TAG_COLOR_TONE: |
| 127 |
return getColorToneDescription(); |
| 128 |
case CanonMakernoteDirectory.CameraSettings.TAG_SRAW_QUALITY: |
| 129 |
return getSRawQualityDescription(); |
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
default: |
| 161 |
return super.getDescription(tagType); |
| 162 |
} |
| 163 |
} |
| 164 |
|
| 165 |
@Nullable |
| 166 |
public String getSerialNumberDescription() |
| 167 |
{ |
| 168 |
|
| 169 |
Integer value = _directory.getInteger(TAG_CANON_SERIAL_NUMBER); |
| 170 |
if (value == null) |
| 171 |
return null; |
| 172 |
return String.format("%04X%05d", (value >> 8) & 0xFF, value & 0xFF); |
| 173 |
} |
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
|
| 268 |
|
| 269 |
|
| 270 |
|
| 271 |
|
| 272 |
|
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
|
| 288 |
|
| 289 |
|
| 290 |
|
| 291 |
|
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
|
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
@Nullable |
| 355 |
public String getFlashBiasDescription() |
| 356 |
{ |
| 357 |
Integer value = _directory.getInteger(FocalLength.TAG_FLASH_BIAS); |
| 358 |
|
| 359 |
if (value == null) |
| 360 |
return null; |
| 361 |
|
| 362 |
boolean isNegative = false; |
| 363 |
if (value > 0xF000) { |
| 364 |
isNegative = true; |
| 365 |
value = 0xFFFF - value; |
| 366 |
value++; |
| 367 |
} |
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
return (isNegative ? "-" : "") + Float.toString(value / 32f) + " EV"; |
| 375 |
} |
| 376 |
|
| 377 |
@Nullable |
| 378 |
public String getAfPointUsedDescription() |
| 379 |
{ |
| 380 |
Integer value = _directory.getInteger(FocalLength.TAG_AF_POINT_USED); |
| 381 |
if (value == null) |
| 382 |
return null; |
| 383 |
if ((value & 0x7) == 0) { |
| 384 |
return "Right"; |
| 385 |
} else if ((value & 0x7) == 1) { |
| 386 |
return "Centre"; |
| 387 |
} else if ((value & 0x7) == 2) { |
| 388 |
return "Left"; |
| 389 |
} else { |
| 390 |
return "Unknown (" + value + ")"; |
| 391 |
} |
| 392 |
} |
| 393 |
|
| 394 |
@Nullable |
| 395 |
public String getTagAfPointsInFocus() |
| 396 |
{ |
| 397 |
Integer value = _directory.getInteger(AFInfo.TAG_AF_POINTS_IN_FOCUS); |
| 398 |
if (value == null) |
| 399 |
return null; |
| 400 |
|
| 401 |
StringBuilder sb = new StringBuilder(); |
| 402 |
|
| 403 |
for (int i = 0; i < 16; i++) |
| 404 |
{ |
| 405 |
if ((value & 1 << i) != 0) |
| 406 |
{ |
| 407 |
if (sb.length() != 0) |
| 408 |
sb.append(','); |
| 409 |
sb.append(i); |
| 410 |
} |
| 411 |
} |
| 412 |
|
| 413 |
return sb.length() == 0 ? "None" : sb.toString(); |
| 414 |
} |
| 415 |
|
| 416 |
@Nullable |
| 417 |
public String getWhiteBalanceDescription() |
| 418 |
{ |
| 419 |
return getIndexedDescription( |
| 420 |
FocalLength.TAG_WHITE_BALANCE, |
| 421 |
"Auto", |
| 422 |
"Sunny", |
| 423 |
"Cloudy", |
| 424 |
"Tungsten", |
| 425 |
"Florescent", |
| 426 |
"Flash", |
| 427 |
"Custom" |
| 428 |
); |
| 429 |
} |
| 430 |
|
| 431 |
@Nullable |
| 432 |
public String getFocusMode2Description() |
| 433 |
{ |
| 434 |
return getIndexedDescription(CameraSettings.TAG_FOCUS_MODE_2, "Single", "Continuous"); |
| 435 |
} |
| 436 |
|
| 437 |
@Nullable |
| 438 |
public String getFlashDetailsDescription() |
| 439 |
{ |
| 440 |
Integer value = _directory.getInteger(CameraSettings.TAG_FLASH_DETAILS); |
| 441 |
if (value == null) |
| 442 |
return null; |
| 443 |
if (((value >> 14) & 1) != 0) { |
| 444 |
return "External E-TTL"; |
| 445 |
} |
| 446 |
if (((value >> 13) & 1) != 0) { |
| 447 |
return "Internal flash"; |
| 448 |
} |
| 449 |
if (((value >> 11) & 1) != 0) { |
| 450 |
return "FP sync used"; |
| 451 |
} |
| 452 |
if (((value >> 4) & 1) != 0) { |
| 453 |
return "FP sync enabled"; |
| 454 |
} |
| 455 |
return "Unknown (" + value + ")"; |
| 456 |
} |
| 457 |
|
| 458 |
@Nullable |
| 459 |
public String getFocalUnitsPerMillimetreDescription() |
| 460 |
{ |
| 461 |
Integer value = _directory.getInteger(CameraSettings.TAG_FOCAL_UNITS_PER_MM); |
| 462 |
if (value == null) |
| 463 |
return null; |
| 464 |
if (value != 0) { |
| 465 |
return Integer.toString(value); |
| 466 |
} else { |
| 467 |
return ""; |
| 468 |
} |
| 469 |
} |
| 470 |
|
| 471 |
@Nullable |
| 472 |
public String getShortFocalLengthDescription() |
| 473 |
{ |
| 474 |
Integer value = _directory.getInteger(CameraSettings.TAG_SHORT_FOCAL_LENGTH); |
| 475 |
if (value == null) |
| 476 |
return null; |
| 477 |
String units = getFocalUnitsPerMillimetreDescription(); |
| 478 |
return Integer.toString(value) + " " + units; |
| 479 |
} |
| 480 |
|
| 481 |
@Nullable |
| 482 |
public String getLongFocalLengthDescription() |
| 483 |
{ |
| 484 |
Integer value = _directory.getInteger(CameraSettings.TAG_LONG_FOCAL_LENGTH); |
| 485 |
if (value == null) |
| 486 |
return null; |
| 487 |
String units = getFocalUnitsPerMillimetreDescription(); |
| 488 |
return Integer.toString(value) + " " + units; |
| 489 |
} |
| 490 |
|
| 491 |
@Nullable |
| 492 |
public String getExposureModeDescription() |
| 493 |
{ |
| 494 |
return getIndexedDescription( |
| 495 |
CameraSettings.TAG_EXPOSURE_MODE, |
| 496 |
"Easy shooting", |
| 497 |
"Program", |
| 498 |
"Tv-priority", |
| 499 |
"Av-priority", |
| 500 |
"Manual", |
| 501 |
"A-DEP" |
| 502 |
); |
| 503 |
} |
| 504 |
|
| 505 |
@Nullable |
| 506 |
public String getLensTypeDescription() { |
| 507 |
Integer value = _directory.getInteger(CameraSettings.TAG_LENS_TYPE); |
| 508 |
if (value == null) |
| 509 |
return null; |
| 510 |
|
| 511 |
return _lensTypeById.containsKey(value) |
| 512 |
? _lensTypeById.get(value) |
| 513 |
: String.format("Unknown (%d)", value); |
| 514 |
} |
| 515 |
|
| 516 |
@Nullable |
| 517 |
public String getMaxApertureDescription() |
| 518 |
{ |
| 519 |
Integer value = _directory.getInteger(CameraSettings.TAG_MAX_APERTURE); |
| 520 |
if (value == null) |
| 521 |
return null; |
| 522 |
if (value > 512) |
| 523 |
return String.format("Unknown (%d)", value); |
| 524 |
return getFStopDescription(Math.exp(decodeCanonEv(value) * Math.log(2.0) / 2.0)); |
| 525 |
} |
| 526 |
|
| 527 |
@Nullable |
| 528 |
public String getMinApertureDescription() |
| 529 |
{ |
| 530 |
Integer value = _directory.getInteger(CameraSettings.TAG_MIN_APERTURE); |
| 531 |
if (value == null) |
| 532 |
return null; |
| 533 |
if (value > 512) |
| 534 |
return String.format("Unknown (%d)", value); |
| 535 |
return getFStopDescription(Math.exp(decodeCanonEv(value) * Math.log(2.0) / 2.0)); |
| 536 |
} |
| 537 |
|
| 538 |
@Nullable |
| 539 |
public String getAfPointSelectedDescription() |
| 540 |
{ |
| 541 |
return getIndexedDescription( |
| 542 |
CameraSettings.TAG_AF_POINT_SELECTED, |
| 543 |
0x3000, |
| 544 |
"None (MF)", |
| 545 |
"Auto selected", |
| 546 |
"Right", |
| 547 |
"Centre", |
| 548 |
"Left" |
| 549 |
); |
| 550 |
} |
| 551 |
|
| 552 |
@Nullable |
| 553 |
public String getMeteringModeDescription() |
| 554 |
{ |
| 555 |
return getIndexedDescription( |
| 556 |
CameraSettings.TAG_METERING_MODE, |
| 557 |
3, |
| 558 |
"Evaluative", |
| 559 |
"Partial", |
| 560 |
"Centre weighted" |
| 561 |
); |
| 562 |
} |
| 563 |
|
| 564 |
@Nullable |
| 565 |
public String getIsoDescription() |
| 566 |
{ |
| 567 |
Integer value = _directory.getInteger(CameraSettings.TAG_ISO); |
| 568 |
if (value == null) |
| 569 |
return null; |
| 570 |
|
| 571 |
|
| 572 |
int canonMask = 0x4000; |
| 573 |
if ((value & canonMask) != 0) |
| 574 |
return "" + (value & ~canonMask); |
| 575 |
|
| 576 |
switch (value) { |
| 577 |
case 0: |
| 578 |
return "Not specified (see ISOSpeedRatings tag)"; |
| 579 |
case 15: |
| 580 |
return "Auto"; |
| 581 |
case 16: |
| 582 |
return "50"; |
| 583 |
case 17: |
| 584 |
return "100"; |
| 585 |
case 18: |
| 586 |
return "200"; |
| 587 |
case 19: |
| 588 |
return "400"; |
| 589 |
default: |
| 590 |
return "Unknown (" + value + ")"; |
| 591 |
} |
| 592 |
} |
| 593 |
|
| 594 |
@Nullable |
| 595 |
public String getSharpnessDescription() |
| 596 |
{ |
| 597 |
Integer value = _directory.getInteger(CameraSettings.TAG_SHARPNESS); |
| 598 |
if (value == null) |
| 599 |
return null; |
| 600 |
switch (value) { |
| 601 |
case 0xFFFF: |
| 602 |
return "Low"; |
| 603 |
case 0x000: |
| 604 |
return "Normal"; |
| 605 |
case 0x001: |
| 606 |
return "High"; |
| 607 |
default: |
| 608 |
return "Unknown (" + value + ")"; |
| 609 |
} |
| 610 |
} |
| 611 |
|
| 612 |
@Nullable |
| 613 |
public String getSaturationDescription() |
| 614 |
{ |
| 615 |
Integer value = _directory.getInteger(CameraSettings.TAG_SATURATION); |
| 616 |
if (value == null) |
| 617 |
return null; |
| 618 |
switch (value) { |
| 619 |
case 0xFFFF: |
| 620 |
return "Low"; |
| 621 |
case 0x000: |
| 622 |
return "Normal"; |
| 623 |
case 0x001: |
| 624 |
return "High"; |
| 625 |
default: |
| 626 |
return "Unknown (" + value + ")"; |
| 627 |
} |
| 628 |
} |
| 629 |
|
| 630 |
@Nullable |
| 631 |
public String getContrastDescription() |
| 632 |
{ |
| 633 |
Integer value = _directory.getInteger(CameraSettings.TAG_CONTRAST); |
| 634 |
if (value == null) |
| 635 |
return null; |
| 636 |
switch (value) { |
| 637 |
case 0xFFFF: |
| 638 |
return "Low"; |
| 639 |
case 0x000: |
| 640 |
return "Normal"; |
| 641 |
case 0x001: |
| 642 |
return "High"; |
| 643 |
default: |
| 644 |
return "Unknown (" + value + ")"; |
| 645 |
} |
| 646 |
} |
| 647 |
|
| 648 |
@Nullable |
| 649 |
public String getEasyShootingModeDescription() |
| 650 |
{ |
| 651 |
return getIndexedDescription( |
| 652 |
CameraSettings.TAG_EASY_SHOOTING_MODE, |
| 653 |
"Full auto", |
| 654 |
"Manual", |
| 655 |
"Landscape", |
| 656 |
"Fast shutter", |
| 657 |
"Slow shutter", |
| 658 |
"Night", |
| 659 |
"B&W", |
| 660 |
"Sepia", |
| 661 |
"Portrait", |
| 662 |
"Sports", |
| 663 |
"Macro / Closeup", |
| 664 |
"Pan focus" |
| 665 |
); |
| 666 |
} |
| 667 |
|
| 668 |
@Nullable |
| 669 |
public String getImageSizeDescription() |
| 670 |
{ |
| 671 |
return getIndexedDescription( |
| 672 |
CameraSettings.TAG_IMAGE_SIZE, |
| 673 |
"Large", |
| 674 |
"Medium", |
| 675 |
"Small" |
| 676 |
); |
| 677 |
} |
| 678 |
|
| 679 |
@Nullable |
| 680 |
public String getFocusMode1Description() |
| 681 |
{ |
| 682 |
return getIndexedDescription( |
| 683 |
CameraSettings.TAG_FOCUS_MODE_1, |
| 684 |
"One-shot", |
| 685 |
"AI Servo", |
| 686 |
"AI Focus", |
| 687 |
"Manual Focus", |
| 688 |
|
| 689 |
"Single", |
| 690 |
"Continuous", |
| 691 |
"Manual Focus" |
| 692 |
); |
| 693 |
} |
| 694 |
|
| 695 |
@Nullable |
| 696 |
public String getContinuousDriveModeDescription() |
| 697 |
{ |
| 698 |
Integer value = _directory.getInteger(CameraSettings.TAG_CONTINUOUS_DRIVE_MODE); |
| 699 |
if (value == null) |
| 700 |
return null; |
| 701 |
switch (value) { |
| 702 |
case 0: |
| 703 |
final Integer delay = _directory.getInteger(CameraSettings.TAG_SELF_TIMER_DELAY); |
| 704 |
if (delay != null) |
| 705 |
return delay == 0 ? "Single shot" : "Single shot with self-timer"; |
| 706 |
case 1: |
| 707 |
return "Continuous"; |
| 708 |
} |
| 709 |
return "Unknown (" + value + ")"; |
| 710 |
} |
| 711 |
|
| 712 |
@Nullable |
| 713 |
public String getFlashModeDescription() |
| 714 |
{ |
| 715 |
Integer value = _directory.getInteger(CameraSettings.TAG_FLASH_MODE); |
| 716 |
if (value == null) |
| 717 |
return null; |
| 718 |
switch (value) { |
| 719 |
case 0: |
| 720 |
return "No flash fired"; |
| 721 |
case 1: |
| 722 |
return "Auto"; |
| 723 |
case 2: |
| 724 |
return "On"; |
| 725 |
case 3: |
| 726 |
return "Red-eye reduction"; |
| 727 |
case 4: |
| 728 |
return "Slow-synchro"; |
| 729 |
case 5: |
| 730 |
return "Auto and red-eye reduction"; |
| 731 |
case 6: |
| 732 |
return "On and red-eye reduction"; |
| 733 |
case 16: |
| 734 |
|
| 735 |
return "External flash"; |
| 736 |
default: |
| 737 |
return "Unknown (" + value + ")"; |
| 738 |
} |
| 739 |
} |
| 740 |
|
| 741 |
@Nullable |
| 742 |
public String getSelfTimerDelayDescription() |
| 743 |
{ |
| 744 |
Integer value = _directory.getInteger(CameraSettings.TAG_SELF_TIMER_DELAY); |
| 745 |
if (value == null) |
| 746 |
return null; |
| 747 |
if (value == 0) { |
| 748 |
return "Self timer not used"; |
| 749 |
} else { |
| 750 |
DecimalFormat format = new DecimalFormat("0.##"); |
| 751 |
return format.format((double)value * 0.1d) + " sec"; |
| 752 |
} |
| 753 |
} |
| 754 |
|
| 755 |
@Nullable |
| 756 |
public String getMacroModeDescription() |
| 757 |
{ |
| 758 |
return getIndexedDescription(CameraSettings.TAG_MACRO_MODE, 1, "Macro", "Normal"); |
| 759 |
} |
| 760 |
|
| 761 |
@Nullable |
| 762 |
public String getQualityDescription() |
| 763 |
{ |
| 764 |
Integer value = _directory.getInteger(CameraSettings.TAG_QUALITY); |
| 765 |
if (value == null) |
| 766 |
return null; |
| 767 |
switch (value) { |
| 768 |
case -1: |
| 769 |
return "n/a"; |
| 770 |
case 1: |
| 771 |
return "Economy"; |
| 772 |
case 2: |
| 773 |
return "Normal"; |
| 774 |
case 3: |
| 775 |
return "Fine"; |
| 776 |
case 4: |
| 777 |
return "RAW"; |
| 778 |
case 5: |
| 779 |
return "Superfine"; |
| 780 |
case 7: |
| 781 |
return "CRAW"; |
| 782 |
case 130: |
| 783 |
return "Normal Movie"; |
| 784 |
case 1131: |
| 785 |
return "Movie (2)"; |
| 786 |
default: |
| 787 |
return "Unknown (" + value + ")"; |
| 788 |
} |
| 789 |
} |
| 790 |
|
| 791 |
@Nullable |
| 792 |
public String getDigitalZoomDescription() |
| 793 |
{ |
| 794 |
return getIndexedDescription(CameraSettings.TAG_DIGITAL_ZOOM, "No digital zoom", "2x", "4x"); |
| 795 |
} |
| 796 |
|
| 797 |
@Nullable |
| 798 |
public String getRecordModeDescription() |
| 799 |
{ |
| 800 |
return getIndexedDescription(CameraSettings.TAG_RECORD_MODE, 1, "JPEG", "CRW+THM", "AVI+THM", "TIF", "TIF+JPEG", "CR2", "CR2+JPEG", null, "MOV", "MP4"); |
| 801 |
} |
| 802 |
|
| 803 |
@Nullable |
| 804 |
public String getFocusTypeDescription() |
| 805 |
{ |
| 806 |
Integer value = _directory.getInteger(CameraSettings.TAG_FOCUS_TYPE); |
| 807 |
if (value == null) |
| 808 |
return null; |
| 809 |
switch (value) { |
| 810 |
case 0: |
| 811 |
return "Manual"; |
| 812 |
case 1: |
| 813 |
return "Auto"; |
| 814 |
case 3: |
| 815 |
return "Close-up (Macro)"; |
| 816 |
case 8: |
| 817 |
return "Locked (Pan Mode)"; |
| 818 |
default: |
| 819 |
return "Unknown (" + value + ")"; |
| 820 |
} |
| 821 |
} |
| 822 |
|
| 823 |
@Nullable |
| 824 |
public String getFlashActivityDescription() |
| 825 |
{ |
| 826 |
return getIndexedDescription(CameraSettings.TAG_FLASH_ACTIVITY, "Flash did not fire", "Flash fired"); |
| 827 |
} |
| 828 |
|
| 829 |
@Nullable |
| 830 |
public String getFocusContinuousDescription() |
| 831 |
{ |
| 832 |
return getIndexedDescription(CameraSettings.TAG_FOCUS_CONTINUOUS, 0, |
| 833 |
"Single", "Continuous", null, null, null, null, null, null, "Manual"); |
| 834 |
} |
| 835 |
|
| 836 |
@Nullable |
| 837 |
public String getAESettingDescription() |
| 838 |
{ |
| 839 |
return getIndexedDescription(CameraSettings.TAG_AE_SETTING, 0, |
| 840 |
"Normal AE", "Exposure Compensation", "AE Lock", "AE Lock + Exposure Comp.", "No AE"); |
| 841 |
} |
| 842 |
|
| 843 |
@Nullable |
| 844 |
public String getDisplayApertureDescription() |
| 845 |
{ |
| 846 |
Integer value = _directory.getInteger(CameraSettings.TAG_DISPLAY_APERTURE); |
| 847 |
if (value == null) |
| 848 |
return null; |
| 849 |
|
| 850 |
if (value == 0xFFFF) |
| 851 |
return value.toString(); |
| 852 |
return getFStopDescription(value / 10f); |
| 853 |
} |
| 854 |
|
| 855 |
@Nullable |
| 856 |
public String getSpotMeteringModeDescription() |
| 857 |
{ |
| 858 |
return getIndexedDescription(CanonMakernoteDirectory.CameraSettings.TAG_SPOT_METERING_MODE, 0, |
| 859 |
"Center", "AF Point"); |
| 860 |
} |
| 861 |
|
| 862 |
@Nullable |
| 863 |
public String getPhotoEffectDescription() |
| 864 |
{ |
| 865 |
Integer value = _directory.getInteger(CameraSettings.TAG_PHOTO_EFFECT); |
| 866 |
if (value == null) |
| 867 |
return null; |
| 868 |
|
| 869 |
switch (value) |
| 870 |
{ |
| 871 |
case 0: |
| 872 |
return "Off"; |
| 873 |
case 1: |
| 874 |
return "Vivid"; |
| 875 |
case 2: |
| 876 |
return "Neutral"; |
| 877 |
case 3: |
| 878 |
return "Smooth"; |
| 879 |
case 4: |
| 880 |
return "Sepia"; |
| 881 |
case 5: |
| 882 |
return "B&W"; |
| 883 |
case 6: |
| 884 |
return "Custom"; |
| 885 |
case 100: |
| 886 |
return "My Color Data"; |
| 887 |
default: |
| 888 |
return "Unknown (" + value + ")"; |
| 889 |
} |
| 890 |
} |
| 891 |
|
| 892 |
@Nullable |
| 893 |
public String getManualFlashOutputDescription() |
| 894 |
{ |
| 895 |
Integer value = _directory.getInteger(CameraSettings.TAG_MANUAL_FLASH_OUTPUT); |
| 896 |
if (value == null) |
| 897 |
return null; |
| 898 |
|
| 899 |
switch (value) |
| 900 |
{ |
| 901 |
case 0: |
| 902 |
return "n/a"; |
| 903 |
case 0x500: |
| 904 |
return "Full"; |
| 905 |
case 0x502: |
| 906 |
return "Medium"; |
| 907 |
case 0x504: |
| 908 |
return "Low"; |
| 909 |
case 0x7fff: |
| 910 |
return "n/a"; |
| 911 |
default: |
| 912 |
return "Unknown (" + value + ")"; |
| 913 |
} |
| 914 |
} |
| 915 |
|
| 916 |
@Nullable |
| 917 |
public String getColorToneDescription() |
| 918 |
{ |
| 919 |
Integer value = _directory.getInteger(CameraSettings.TAG_COLOR_TONE); |
| 920 |
if (value == null) |
| 921 |
return null; |
| 922 |
|
| 923 |
return value == 0x7fff ? "n/a" : value.toString(); |
| 924 |
} |
| 925 |
|
| 926 |
@Nullable |
| 927 |
public String getSRawQualityDescription() |
| 928 |
{ |
| 929 |
return getIndexedDescription(CanonMakernoteDirectory.CameraSettings.TAG_SRAW_QUALITY, 0, "n/a", "sRAW1 (mRAW)", "sRAW2 (sRAW)"); |
| 930 |
} |
| 931 |
|
| 932 |
|
| 933 |
|
| 934 |
|
| 935 |
|
| 936 |
|
| 937 |
|
| 938 |
|
| 939 |
|
| 940 |
|
| 941 |
|
| 942 |
|
| 943 |
|
| 944 |
|
| 945 |
private double decodeCanonEv(int val) |
| 946 |
{ |
| 947 |
int sign = 1; |
| 948 |
if (val < 0) |
| 949 |
{ |
| 950 |
val = -val; |
| 951 |
sign = -1; |
| 952 |
} |
| 953 |
|
| 954 |
int frac = val & 0x1f; |
| 955 |
val -= frac; |
| 956 |
|
| 957 |
if (frac == 0x0c) |
| 958 |
frac = 0x20 / 3; |
| 959 |
else if (frac == 0x14) |
| 960 |
frac = 0x40 / 3; |
| 961 |
|
| 962 |
return sign * (val + frac) / (double)0x20; |
| 963 |
} |
| 964 |
|
| 965 |
|
| 966 |
|
| 967 |
|
| 968 |
|
| 969 |
|
| 970 |
|
| 971 |
|
| 972 |
|
| 973 |
|
| 974 |
private static final HashMap<Integer, String> _lensTypeById = new HashMap<Integer, String>(); |
| 975 |
|
| 976 |
static { |
| 977 |
_lensTypeById.put(1, "Canon EF 50mm f/1.8"); |
| 978 |
_lensTypeById.put(2, "Canon EF 28mm f/2.8"); |
| 979 |
_lensTypeById.put(3, "Canon EF 135mm f/2.8 Soft"); |
| 980 |
_lensTypeById.put(4, "Canon EF 35-105mm f/3.5-4.5 or Sigma Lens"); |
| 981 |
_lensTypeById.put(5, "Canon EF 35-70mm f/3.5-4.5"); |
| 982 |
_lensTypeById.put(6, "Canon EF 28-70mm f/3.5-4.5 or Sigma or Tokina Lens"); |
| 983 |
_lensTypeById.put(7, "Canon EF 100-300mm f/5.6L"); |
| 984 |
_lensTypeById.put(8, "Canon EF 100-300mm f/5.6 or Sigma or Tokina Lens"); |
| 985 |
_lensTypeById.put(9, "Canon EF 70-210mm f/4"); |
| 986 |
_lensTypeById.put(10, "Canon EF 50mm f/2.5 Macro or Sigma Lens"); |
| 987 |
_lensTypeById.put(11, "Canon EF 35mm f/2"); |
| 988 |
_lensTypeById.put(13, "Canon EF 15mm f/2.8 Fisheye"); |
| 989 |
_lensTypeById.put(14, "Canon EF 50-200mm f/3.5-4.5L"); |
| 990 |
_lensTypeById.put(15, "Canon EF 50-200mm f/3.5-4.5"); |
| 991 |
_lensTypeById.put(16, "Canon EF 35-135mm f/3.5-4.5"); |
| 992 |
_lensTypeById.put(17, "Canon EF 35-70mm f/3.5-4.5A"); |
| 993 |
_lensTypeById.put(18, "Canon EF 28-70mm f/3.5-4.5"); |
| 994 |
_lensTypeById.put(20, "Canon EF 100-200mm f/4.5A"); |
| 995 |
_lensTypeById.put(21, "Canon EF 80-200mm f/2.8L"); |
| 996 |
_lensTypeById.put(22, "Canon EF 20-35mm f/2.8L or Tokina Lens"); |
| 997 |
_lensTypeById.put(23, "Canon EF 35-105mm f/3.5-4.5"); |
| 998 |
_lensTypeById.put(24, "Canon EF 35-80mm f/4-5.6 Power Zoom"); |
| 999 |
_lensTypeById.put(25, "Canon EF 35-80mm f/4-5.6 Power Zoom"); |
| 1000 |
_lensTypeById.put(26, "Canon EF 100mm f/2.8 Macro or Other Lens"); |
| 1001 |
_lensTypeById.put(27, "Canon EF 35-80mm f/4-5.6"); |
| 1002 |
_lensTypeById.put(28, "Canon EF 80-200mm f/4.5-5.6 or Tamron Lens"); |
| 1003 |
_lensTypeById.put(29, "Canon EF 50mm f/1.8 II"); |
| 1004 |
_lensTypeById.put(30, "Canon EF 35-105mm f/4.5-5.6"); |
| 1005 |
_lensTypeById.put(31, "Canon EF 75-300mm f/4-5.6 or Tamron Lens"); |
| 1006 |
_lensTypeById.put(32, "Canon EF 24mm f/2.8 or Sigma Lens"); |
| 1007 |
_lensTypeById.put(33, "Voigtlander or Carl Zeiss Lens"); |
| 1008 |
_lensTypeById.put(35, "Canon EF 35-80mm f/4-5.6"); |
| 1009 |
_lensTypeById.put(36, "Canon EF 38-76mm f/4.5-5.6"); |
| 1010 |
_lensTypeById.put(37, "Canon EF 35-80mm f/4-5.6 or Tamron Lens"); |
| 1011 |
_lensTypeById.put(38, "Canon EF 80-200mm f/4.5-5.6"); |
| 1012 |
_lensTypeById.put(39, "Canon EF 75-300mm f/4-5.6"); |
| 1013 |
_lensTypeById.put(40, "Canon EF 28-80mm f/3.5-5.6"); |
| 1014 |
_lensTypeById.put(41, "Canon EF 28-90mm f/4-5.6"); |
| 1015 |
_lensTypeById.put(42, "Canon EF 28-200mm f/3.5-5.6 or Tamron Lens"); |
| 1016 |
_lensTypeById.put(43, "Canon EF 28-105mm f/4-5.6"); |
| 1017 |
_lensTypeById.put(44, "Canon EF 90-300mm f/4.5-5.6"); |
| 1018 |
_lensTypeById.put(45, "Canon EF-S 18-55mm f/3.5-5.6 [II]"); |
| 1019 |
_lensTypeById.put(46, "Canon EF 28-90mm f/4-5.6"); |
| 1020 |
_lensTypeById.put(47, "Zeiss Milvus 35mm f/2 or 50mm f/2"); |
| 1021 |
_lensTypeById.put(48, "Canon EF-S 18-55mm f/3.5-5.6 IS"); |
| 1022 |
_lensTypeById.put(49, "Canon EF-S 55-250mm f/4-5.6 IS"); |
| 1023 |
_lensTypeById.put(50, "Canon EF-S 18-200mm f/3.5-5.6 IS"); |
| 1024 |
_lensTypeById.put(51, "Canon EF-S 18-135mm f/3.5-5.6 IS"); |
| 1025 |
_lensTypeById.put(52, "Canon EF-S 18-55mm f/3.5-5.6 IS II"); |
| 1026 |
_lensTypeById.put(53, "Canon EF-S 18-55mm f/3.5-5.6 III"); |
| 1027 |
_lensTypeById.put(54, "Canon EF-S 55-250mm f/4-5.6 IS II"); |
| 1028 |
_lensTypeById.put(94, "Canon TS-E 17mm f/4L"); |
| 1029 |
_lensTypeById.put(95, "Canon TS-E 24.0mm f/3.5 L II"); |
| 1030 |
_lensTypeById.put(124, "Canon MP-E 65mm f/2.8 1-5x Macro Photo"); |
| 1031 |
_lensTypeById.put(125, "Canon TS-E 24mm f/3.5L"); |
| 1032 |
_lensTypeById.put(126, "Canon TS-E 45mm f/2.8"); |
| 1033 |
_lensTypeById.put(127, "Canon TS-E 90mm f/2.8"); |
| 1034 |
_lensTypeById.put(129, "Canon EF 300mm f/2.8L"); |
| 1035 |
_lensTypeById.put(130, "Canon EF 50mm f/1.0L"); |
| 1036 |
_lensTypeById.put(131, "Canon EF 28-80mm f/2.8-4L or Sigma Lens"); |
| 1037 |
_lensTypeById.put(132, "Canon EF 1200mm f/5.6L"); |
| 1038 |
_lensTypeById.put(134, "Canon EF 600mm f/4L IS"); |
| 1039 |
_lensTypeById.put(135, "Canon EF 200mm f/1.8L"); |
| 1040 |
_lensTypeById.put(136, "Canon EF 300mm f/2.8L"); |
| 1041 |
_lensTypeById.put(137, "Canon EF 85mm f/1.2L or Sigma or Tamron Lens"); |
| 1042 |
_lensTypeById.put(138, "Canon EF 28-80mm f/2.8-4L"); |
| 1043 |
_lensTypeById.put(139, "Canon EF 400mm f/2.8L"); |
| 1044 |
_lensTypeById.put(140, "Canon EF 500mm f/4.5L"); |
| 1045 |
_lensTypeById.put(141, "Canon EF 500mm f/4.5L"); |
| 1046 |
_lensTypeById.put(142, "Canon EF 300mm f/2.8L IS"); |
| 1047 |
_lensTypeById.put(143, "Canon EF 500mm f/4L IS or Sigma Lens"); |
| 1048 |
_lensTypeById.put(144, "Canon EF 35-135mm f/4-5.6 USM"); |
| 1049 |
_lensTypeById.put(145, "Canon EF 100-300mm f/4.5-5.6 USM"); |
| 1050 |
_lensTypeById.put(146, "Canon EF 70-210mm f/3.5-4.5 USM"); |
| 1051 |
_lensTypeById.put(147, "Canon EF 35-135mm f/4-5.6 USM"); |
| 1052 |
_lensTypeById.put(148, "Canon EF 28-80mm f/3.5-5.6 USM"); |
| 1053 |
_lensTypeById.put(149, "Canon EF 100mm f/2 USM"); |
| 1054 |
_lensTypeById.put(150, "Canon EF 14mm f/2.8L or Sigma Lens"); |
| 1055 |
_lensTypeById.put(151, "Canon EF 200mm f/2.8L"); |
| 1056 |
_lensTypeById.put(152, "Canon EF 300mm f/4L IS or Sigma Lens"); |
| 1057 |
_lensTypeById.put(153, "Canon EF 35-350mm f/3.5-5.6L or Sigma or Tamron Lens"); |
| 1058 |
_lensTypeById.put(154, "Canon EF 20mm f/2.8 USM or Zeiss Lens"); |
| 1059 |
_lensTypeById.put(155, "Canon EF 85mm f/1.8 USM"); |
| 1060 |
_lensTypeById.put(156, "Canon EF 28-105mm f/3.5-4.5 USM or Tamron Lens"); |
| 1061 |
_lensTypeById.put(160, "Canon EF 20-35mm f/3.5-4.5 USM or Tamron or Tokina Lens"); |
| 1062 |
_lensTypeById.put(161, "Canon EF 28-70mm f/2.8L or Sigma or Tamron Lens"); |
| 1063 |
_lensTypeById.put(162, "Canon EF 200mm f/2.8L"); |
| 1064 |
_lensTypeById.put(163, "Canon EF 300mm f/4L"); |
| 1065 |
_lensTypeById.put(164, "Canon EF 400mm f/5.6L"); |
| 1066 |
_lensTypeById.put(165, "Canon EF 70-200mm f/2.8 L"); |
| 1067 |
_lensTypeById.put(166, "Canon EF 70-200mm f/2.8 L + 1.4x"); |
| 1068 |
_lensTypeById.put(167, "Canon EF 70-200mm f/2.8 L + 2x"); |
| 1069 |
_lensTypeById.put(168, "Canon EF 28mm f/1.8 USM or Sigma Lens"); |
| 1070 |
_lensTypeById.put(169, "Canon EF 17-35mm f/2.8L or Sigma Lens"); |
| 1071 |
_lensTypeById.put(170, "Canon EF 200mm f/2.8L II"); |
| 1072 |
_lensTypeById.put(171, "Canon EF 300mm f/4L"); |
| 1073 |
_lensTypeById.put(172, "Canon EF 400mm f/5.6L or Sigma Lens"); |
| 1074 |
_lensTypeById.put(173, "Canon EF 180mm Macro f/3.5L or Sigma Lens"); |
| 1075 |
_lensTypeById.put(174, "Canon EF 135mm f/2L or Other Lens"); |
| 1076 |
_lensTypeById.put(175, "Canon EF 400mm f/2.8L"); |
| 1077 |
_lensTypeById.put(176, "Canon EF 24-85mm f/3.5-4.5 USM"); |
| 1078 |
_lensTypeById.put(177, "Canon EF 300mm f/4L IS"); |
| 1079 |
_lensTypeById.put(178, "Canon EF 28-135mm f/3.5-5.6 IS"); |
| 1080 |
_lensTypeById.put(179, "Canon EF 24mm f/1.4L"); |
| 1081 |
_lensTypeById.put(180, "Canon EF 35mm f/1.4L or Other Lens"); |
| 1082 |
_lensTypeById.put(181, "Canon EF 100-400mm f/4.5-5.6L IS + 1.4x or Sigma Lens"); |
| 1083 |
_lensTypeById.put(182, "Canon EF 100-400mm f/4.5-5.6L IS + 2x or Sigma Lens"); |
| 1084 |
_lensTypeById.put(183, "Canon EF 100-400mm f/4.5-5.6L IS or Sigma Lens"); |
| 1085 |
_lensTypeById.put(184, "Canon EF 400mm f/2.8L + 2x"); |
| 1086 |
_lensTypeById.put(185, "Canon EF 600mm f/4L IS"); |
| 1087 |
_lensTypeById.put(186, "Canon EF 70-200mm f/4L"); |
| 1088 |
_lensTypeById.put(187, "Canon EF 70-200mm f/4L + 1.4x"); |
| 1089 |
_lensTypeById.put(188, "Canon EF 70-200mm f/4L + 2x"); |
| 1090 |
_lensTypeById.put(189, "Canon EF 70-200mm f/4L + 2.8x"); |
| 1091 |
_lensTypeById.put(190, "Canon EF 100mm f/2.8 Macro USM"); |
| 1092 |
_lensTypeById.put(191, "Canon EF 400mm f/4 DO IS"); |
| 1093 |
_lensTypeById.put(193, "Canon EF 35-80mm f/4-5.6 USM"); |
| 1094 |
_lensTypeById.put(194, "Canon EF 80-200mm f/4.5-5.6 USM"); |
| 1095 |
_lensTypeById.put(195, "Canon EF 35-105mm f/4.5-5.6 USM"); |
| 1096 |
_lensTypeById.put(196, "Canon EF 75-300mm f/4-5.6 USM"); |
| 1097 |
_lensTypeById.put(197, "Canon EF 75-300mm f/4-5.6 IS USM"); |
| 1098 |
_lensTypeById.put(198, "Canon EF 50mm f/1.4 USM or Zeiss Lens"); |
| 1099 |
_lensTypeById.put(199, "Canon EF 28-80mm f/3.5-5.6 USM"); |
| 1100 |
_lensTypeById.put(200, "Canon EF 75-300mm f/4-5.6 USM"); |
| 1101 |
_lensTypeById.put(201, "Canon EF 28-80mm f/3.5-5.6 USM"); |
| 1102 |
_lensTypeById.put(202, "Canon EF 28-80mm f/3.5-5.6 USM IV"); |
| 1103 |
_lensTypeById.put(208, "Canon EF 22-55mm f/4-5.6 USM"); |
| 1104 |
_lensTypeById.put(209, "Canon EF 55-200mm f/4.5-5.6"); |
| 1105 |
_lensTypeById.put(210, "Canon EF 28-90mm f/4-5.6 USM"); |
| 1106 |
_lensTypeById.put(211, "Canon EF 28-200mm f/3.5-5.6 USM"); |
| 1107 |
_lensTypeById.put(212, "Canon EF 28-105mm f/4-5.6 USM"); |
| 1108 |
_lensTypeById.put(213, "Canon EF 90-300mm f/4.5-5.6 USM or Tamron Lens"); |
| 1109 |
_lensTypeById.put(214, "Canon EF-S 18-55mm f/3.5-5.6 USM"); |
| 1110 |
_lensTypeById.put(215, "Canon EF 55-200mm f/4.5-5.6 II USM"); |
| 1111 |
_lensTypeById.put(217, "Tamron AF 18-270mm f/3.5-6.3 Di II VC PZD"); |
| 1112 |
_lensTypeById.put(224, "Canon EF 70-200mm f/2.8L IS"); |
| 1113 |
_lensTypeById.put(225, "Canon EF 70-200mm f/2.8L IS + 1.4x"); |
| 1114 |
_lensTypeById.put(226, "Canon EF 70-200mm f/2.8L IS + 2x"); |
| 1115 |
_lensTypeById.put(227, "Canon EF 70-200mm f/2.8L IS + 2.8x"); |
| 1116 |
_lensTypeById.put(228, "Canon EF 28-105mm f/3.5-4.5 USM"); |
| 1117 |
_lensTypeById.put(229, "Canon EF 16-35mm f/2.8L"); |
| 1118 |
_lensTypeById.put(230, "Canon EF 24-70mm f/2.8L"); |
| 1119 |
_lensTypeById.put(231, "Canon EF 17-40mm f/4L"); |
| 1120 |
_lensTypeById.put(232, "Canon EF 70-300mm f/4.5-5.6 DO IS USM"); |
| 1121 |
_lensTypeById.put(233, "Canon EF 28-300mm f/3.5-5.6L IS"); |
| 1122 |
_lensTypeById.put(234, "Canon EF-S 17-85mm f/4-5.6 IS USM or Tokina Lens"); |
| 1123 |
_lensTypeById.put(235, "Canon EF-S 10-22mm f/3.5-4.5 USM"); |
| 1124 |
_lensTypeById.put(236, "Canon EF-S 60mm f/2.8 Macro USM"); |
| 1125 |
_lensTypeById.put(237, "Canon EF 24-105mm f/4L IS"); |
| 1126 |
_lensTypeById.put(238, "Canon EF 70-300mm f/4-5.6 IS USM"); |
| 1127 |
_lensTypeById.put(239, "Canon EF 85mm f/1.2L II"); |
| 1128 |
_lensTypeById.put(240, "Canon EF-S 17-55mm f/2.8 IS USM"); |
| 1129 |
_lensTypeById.put(241, "Canon EF 50mm f/1.2L"); |
| 1130 |
_lensTypeById.put(242, "Canon EF 70-200mm f/4L IS"); |
| 1131 |
_lensTypeById.put(243, "Canon EF 70-200mm f/4L IS + 1.4x"); |
| 1132 |
_lensTypeById.put(244, "Canon EF 70-200mm f/4L IS + 2x"); |
| 1133 |
_lensTypeById.put(245, "Canon EF 70-200mm f/4L IS + 2.8x"); |
| 1134 |
_lensTypeById.put(246, "Canon EF 16-35mm f/2.8L II"); |
| 1135 |
_lensTypeById.put(247, "Canon EF 14mm f/2.8L II USM"); |
| 1136 |
_lensTypeById.put(248, "Canon EF 200mm f/2L IS or Sigma Lens"); |
| 1137 |
_lensTypeById.put(249, "Canon EF 800mm f/5.6L IS"); |
| 1138 |
_lensTypeById.put(250, "Canon EF 24mm f/1.4L II or Sigma Lens"); |
| 1139 |
_lensTypeById.put(251, "Canon EF 70-200mm f/2.8L IS II USM"); |
| 1140 |
_lensTypeById.put(252, "Canon EF 70-200mm f/2.8L IS II USM + 1.4x"); |
| 1141 |
_lensTypeById.put(253, "Canon EF 70-200mm f/2.8L IS II USM + 2x"); |
| 1142 |
_lensTypeById.put(254, "Canon EF 100mm f/2.8L Macro IS USM"); |
| 1143 |
_lensTypeById.put(255, "Sigma 24-105mm f/4 DG OS HSM | A or Other Sigma Lens"); |
| 1144 |
_lensTypeById.put(488, "Canon EF-S 15-85mm f/3.5-5.6 IS USM"); |
| 1145 |
_lensTypeById.put(489, "Canon EF 70-300mm f/4-5.6L IS USM"); |
| 1146 |
_lensTypeById.put(490, "Canon EF 8-15mm f/4L Fisheye USM"); |
| 1147 |
_lensTypeById.put(491, "Canon EF 300mm f/2.8L IS II USM"); |
| 1148 |
_lensTypeById.put(492, "Canon EF 400mm f/2.8L IS II USM"); |
| 1149 |
_lensTypeById.put(493, "Canon EF 500mm f/4L IS II USM or EF 24-105mm f4L IS USM"); |
| 1150 |
_lensTypeById.put(494, "Canon EF 600mm f/4.0L IS II USM"); |
| 1151 |
_lensTypeById.put(495, "Canon EF 24-70mm f/2.8L II USM"); |
| 1152 |
_lensTypeById.put(496, "Canon EF 200-400mm f/4L IS USM"); |
| 1153 |
_lensTypeById.put(499, "Canon EF 200-400mm f/4L IS USM + 1.4x"); |
| 1154 |
_lensTypeById.put(502, "Canon EF 28mm f/2.8 IS USM"); |
| 1155 |
_lensTypeById.put(503, "Canon EF 24mm f/2.8 IS USM"); |
| 1156 |
_lensTypeById.put(504, "Canon EF 24-70mm f/4L IS USM"); |
| 1157 |
_lensTypeById.put(505, "Canon EF 35mm f/2 IS USM"); |
| 1158 |
_lensTypeById.put(506, "Canon EF 400mm f/4 DO IS II USM"); |
| 1159 |
_lensTypeById.put(507, "Canon EF 16-35mm f/4L IS USM"); |
| 1160 |
_lensTypeById.put(508, "Canon EF 11-24mm f/4L USM"); |
| 1161 |
_lensTypeById.put(747, "Canon EF 100-400mm f/4.5-5.6L IS II USM"); |
| 1162 |
_lensTypeById.put(750, "Canon EF 35mm f/1.4L II USM"); |
| 1163 |
_lensTypeById.put(4142, "Canon EF-S 18-135mm f/3.5-5.6 IS STM"); |
| 1164 |
_lensTypeById.put(4143, "Canon EF-M 18-55mm f/3.5-5.6 IS STM or Tamron Lens"); |
| 1165 |
_lensTypeById.put(4144, "Canon EF 40mm f/2.8 STM"); |
| 1166 |
_lensTypeById.put(4145, "Canon EF-M 22mm f/2 STM"); |
| 1167 |
_lensTypeById.put(4146, "Canon EF-S 18-55mm f/3.5-5.6 IS STM"); |
| 1168 |
_lensTypeById.put(4147, "Canon EF-M 11-22mm f/4-5.6 IS STM"); |
| 1169 |
_lensTypeById.put(4148, "Canon EF-S 55-250mm f/4-5.6 IS STM"); |
| 1170 |
_lensTypeById.put(4149, "Canon EF-M 55-200mm f/4.5-6.3 IS STM"); |
| 1171 |
_lensTypeById.put(4150, "Canon EF-S 10-18mm f/4.5-5.6 IS STM"); |
| 1172 |
_lensTypeById.put(4152, "Canon EF 24-105mm f/3.5-5.6 IS STM"); |
| 1173 |
_lensTypeById.put(4153, "Canon EF-M 15-45mm f/3.5-6.3 IS STM"); |
| 1174 |
_lensTypeById.put(4154, "Canon EF-S 24mm f/2.8 STM"); |
| 1175 |
_lensTypeById.put(4156, "Canon EF 50mm f/1.8 STM"); |
| 1176 |
_lensTypeById.put(36912, "Canon EF-S 18-135mm f/3.5-5.6 IS USM"); |
| 1177 |
_lensTypeById.put(65535, "N/A"); |
| 1178 |
} |
| 1179 |
} |