| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
package com.drew.metadata.exif; |
| 23 |
|
| 24 |
import com.drew.lang.annotations.NotNull; |
| 25 |
import com.drew.lang.annotations.Nullable; |
| 26 |
import com.drew.metadata.TagDescriptor; |
| 27 |
|
| 28 |
import static com.drew.metadata.exif.PanasonicRawWbInfo2Directory.*; |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
@SuppressWarnings("WeakerAccess") |
| 37 |
public class PanasonicRawWbInfo2Descriptor extends TagDescriptor<PanasonicRawWbInfo2Directory> |
| 38 |
{ |
| 39 |
public PanasonicRawWbInfo2Descriptor(@NotNull PanasonicRawWbInfo2Directory directory) |
| 40 |
{ |
| 41 |
super(directory); |
| 42 |
} |
| 43 |
|
| 44 |
@Override |
| 45 |
@Nullable |
| 46 |
public String getDescription(int tagType) |
| 47 |
{ |
| 48 |
switch (tagType) { |
| 49 |
case TagWbType1: |
| 50 |
case TagWbType2: |
| 51 |
case TagWbType3: |
| 52 |
case TagWbType4: |
| 53 |
case TagWbType5: |
| 54 |
case TagWbType6: |
| 55 |
case TagWbType7: |
| 56 |
return getWbTypeDescription(tagType); |
| 57 |
default: |
| 58 |
return super.getDescription(tagType); |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
@Nullable |
| 63 |
public String getWbTypeDescription(int tagType) |
| 64 |
{ |
| 65 |
Integer value = _directory.getInteger(tagType); |
| 66 |
if (value == null) |
| 67 |
return null; |
| 68 |
return ExifDescriptorBase.getWhiteBalanceDescription(value); |
| 69 |
} |
| 70 |
} |