Changeset 10862 in josm for trunk/src/com/drew/metadata/jpeg/JpegComponent.java
- Timestamp:
- 2016-08-20T20:58:03+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/jpeg/JpegComponent.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 21 21 package com.drew.metadata.jpeg; 22 22 23 import com.drew.lang.annotations.N ullable;23 import com.drew.lang.annotations.NotNull; 24 24 25 25 import java.io.Serializable; … … 55 55 * @return the component name 56 56 */ 57 @N ullable57 @NotNull 58 58 public String getComponentName() 59 59 { … … 70 70 case 5: 71 71 return "Q"; 72 default: 73 return String.format("Unknown (%s)", _componentId); 72 74 } 73 return null;74 75 } 75 76 … … 81 82 public int getHorizontalSamplingFactor() 82 83 { 83 return _samplingFactorByte & 0x0F; 84 return (_samplingFactorByte>>4) & 0x0F; 84 85 } 85 86 86 87 public int getVerticalSamplingFactor() 87 88 { 88 return (_samplingFactorByte>>4)& 0x0F;89 return _samplingFactorByte & 0x0F; 89 90 } 90 91 }
Note:
See TracChangeset
for help on using the changeset viewer.
