- java.lang.Object
-
- de.bernd_michaely.x3f.types.X3fHeader
-
- de.bernd_michaely.x3f.types.X3fHeader_2_x
-
- Direct Known Subclasses:
X3fHeader_2_1
,X3fHeader_3_x
public class X3fHeader_2_x extends X3fHeader
Class representing the data contained in a X3F header section with major revision 2.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
X3fHeader_2_x(VersionNumber version, RandomAccessData data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageSize
getImageSize()
Size of unrotated image in columns and rows.UInt32
getMarkBits()
Can be used to denote that images are marked into one or more subsets.UInt32
getRotation()
Image rotation in degrees clockwise from normal camera orientation.ByteArray
getStrUniqueId()
Guaranteed unique to each image.-
Methods inherited from class de.bernd_michaely.x3f.types.X3fHeader
getVersion, toString
-
-
-
-
Constructor Detail
-
X3fHeader_2_x
protected X3fHeader_2_x(VersionNumber version, RandomAccessData data) throws RandomAccessDataException
- Throws:
RandomAccessDataException
-
-
Method Detail
-
getStrUniqueId
public ByteArray getStrUniqueId()
Guaranteed unique to each image. Formed from camera serial number / OUI, timestamp, and high speed timer register. Can be used to identify images even if they are renamed. No, it's not UUID-compatible.- Returns:
- a String containing a unique image id
-
getMarkBits
public UInt32 getMarkBits()
Can be used to denote that images are marked into one or more subsets. File interface functions allow setting these bits and searching for files based on these bits. This feature will not be usable on write once media.- Returns:
- X3F mark bits
-
getImageSize
public ImageSize getImageSize()
Size of unrotated image in columns and rows. This is the size output the user expects from this image, not the size of the raw image data. Not necessarily equal to the width and of any image entry in the file; this supports images where the raw data has rectangular pixels.- Returns:
- size of unrotated image
-
getRotation
public UInt32 getRotation()
Image rotation in degrees clockwise from normal camera orientation. Valid values are 0, 90, 180, 270.- Returns:
- image rotation in degrees
-
-