@Nullable public String getSpotFocusPointXCoordinateDescription() { return super.getDescription(CameraSettings.TAG_SPOT_FOCUS_POINT_X_COORDINATE); }
public PngChromaticitiesDirectory() { this.setDescriptor(new TagDescriptor<PngChromaticitiesDirectory>(this)); }
@Nullable protected String getVersionBytesDescription(final int tagType, int majorDigits) { int[] values = _directory.getIntArray(tagType); return values == null ? null : convertBytesToVersionString(values, majorDigits); }
ExifIFD0Directory exifDirectory = metadata.getDirectory(ExifIFD0Directory.class); ExifIFD0Descriptor descriptor = new ExifIFD0Descriptor(exifDirectory); TagDescriptor td = new TagDescriptor(exifDirectory) {}; int rating = Integer.parseInt(td.getDescription(18246));
@Nullable public String getWbTypeDescription(int tagType) { Integer wbtype = _directory.getInteger(tagType); if (wbtype == null) return null; return super.getLightSourceDescription(wbtype.shortValue()); }
@Nullable public String getShutterSpeedDescription() { return super.getShutterSpeedDescription(TAG_SHUTTER_SPEED); }
@Nullable protected String getOrientationDescription(int tag) { return getIndexedDescription(tag, 1, "Top, left side (Horizontal / normal)", "Top, right side (Mirror horizontal)", "Bottom, right side (Rotate 180)", "Bottom, left side (Mirror vertical)", "Left side, top (Mirror horizontal and rotate 270 CW)", "Right side, top (Rotate 90 CW)", "Right side, bottom (Mirror horizontal and rotate 90 CW)", "Left side, bottom (Rotate 270 CW)"); }
@Nullable public String getOrientationDescription() { return super.getOrientationDescription(TAG_ORIENTATION); }
@Nullable protected String getLensSpecificationDescription(int tag) { Rational[] values = _directory.getRationalArray(tag); if (values == null || values.length != 4 || (values[0].isZero() && values[2].isZero())) return null; StringBuilder sb = new StringBuilder(); if (values[0].equals(values[1])) sb.append(values[0].toSimpleString(true)).append("mm"); else sb.append(values[0].toSimpleString(true)).append('-').append(values[1].toSimpleString(true)).append("mm"); if (!values[2].isZero()) { sb.append(' '); DecimalFormat format = new DecimalFormat("0.0"); format.setRoundingMode(RoundingMode.HALF_UP); if (values[2].equals(values[3])) sb.append(getFStopDescription(values[2].doubleValue())); else sb.append("f/").append(format.format(values[2].doubleValue())).append('-').append(format.format(values[3].doubleValue())); } return sb.toString(); }
@Nullable public String getWbTypeDescription(int tagType) { Integer wbtype = _directory.getInteger(tagType); if (wbtype == null) return null; return super.getLightSourceDescription(wbtype.shortValue()); } }
@Nullable public String getShutterSpeedDescription() { return super.getShutterSpeedDescription(TAG_SHUTTER_SPEED_VALUE); }
@Nullable protected String getIndexedDescription(final int tagType, @NotNull String... descriptions) { return getIndexedDescription(tagType, 0, descriptions); }
@Nullable public String getOrientationDescription() { return super.getOrientationDescription(TAG_ORIENTATION); }
@Nullable protected String getLensSpecificationDescription(int tag) { Rational[] values = _directory.getRationalArray(tag); if (values == null || values.length != 4 || (values[0].isZero() && values[2].isZero())) return null; StringBuilder sb = new StringBuilder(); if (values[0].equals(values[1])) sb.append(values[0].toSimpleString(true)).append("mm"); else sb.append(values[0].toSimpleString(true)).append('-').append(values[1].toSimpleString(true)).append("mm"); if (!values[2].isZero()) { sb.append(' '); DecimalFormat format = new DecimalFormat("0.0"); format.setRoundingMode(RoundingMode.HALF_UP); if (values[2].equals(values[3])) sb.append(getFStopDescription(values[2].doubleValue())); else sb.append("f/").append(format.format(values[2].doubleValue())).append('-').append(format.format(values[3].doubleValue())); } return sb.toString(); }
@Override @Nullable public String getDescription(int tagType) { switch (tagType) { default: return super.getDescription(tagType); } } }
public DuckyDirectory() { this.setDescriptor(new TagDescriptor<DuckyDirectory>(this)); }
@Nullable public String getWbTypeDescription(int tagType) { Integer wbtype = _directory.getInteger(tagType); if (wbtype == null) return null; return super.getLightSourceDescription(wbtype.shortValue()); } }
@Nullable public String getShutterSpeedDescription() { return super.getShutterSpeedDescription(TAG_SHUTTER_SPEED); }
@Nullable protected String getOrientationDescription(int tag) { return getIndexedDescription(tag, 1, "Top, left side (Horizontal / normal)", "Top, right side (Mirror horizontal)", "Bottom, right side (Rotate 180)", "Bottom, left side (Mirror vertical)", "Left side, top (Mirror horizontal and rotate 270 CW)", "Right side, top (Rotate 90 CW)", "Right side, bottom (Mirror horizontal and rotate 90 CW)", "Left side, bottom (Rotate 270 CW)"); }
@Nullable protected String getVersionBytesDescription(final int tagType, int majorDigits) { int[] values = _directory.getIntArray(tagType); return values == null ? null : convertBytesToVersionString(values, majorDigits); }