public class NativeQTReader extends FormatReader
| Modifier and Type | Field and Description | 
|---|---|
| private String | altCodecSome movies use two video codecs -- this is the second codec. | 
| private int | altPlanesNumber of frames that use the alternate codec. | 
| private int | bitsPerPixelPixel depth. | 
| private boolean | canUsePreviousFlag indicating whether we can safely use prevPixels. | 
| private Vector<Integer> | chunkSizesNumber of bytes in each plane. | 
| private String | codecVideo codec used by this movie. | 
| private static String[] | CONTAINER_TYPESList of identifiers for each container atom. | 
| private boolean | flip | 
| private String | forkFile | 
| private boolean | interlacedSet to true if the scanlines in a plane are interlaced (mjpb only). | 
| private Vector<Integer> | offsetsOffsets to each plane's pixel data. | 
| private long | pixelBytesTotal number of bytes of pixel data. | 
| private long | pixelOffsetOffset to start of pixel data. | 
| private byte[] | prevPixelsPixel data for the previous image plane. | 
| private int | prevPlanePrevious plane number. | 
| private int | rawSizeRaw plane size, in bytes. | 
| private int | scaleAmount to subtract from each offset. | 
| private boolean | separatedForkFlag indicating whether the resource and data fork are separated. | 
core, coreIndex, datasetDescription, domains, filterMetadata, flattenedResolutions, group, hasCompanionFiles, in, indexedAsRGB, metadata, metadataOptions, metadataStore, normalizeData, resolution, saveOriginalMetadata, series, suffixNecessary, suffixSufficient, THUMBNAIL_DIMENSIONCOMPRESSION_SUFFIXES, currentId, format, LOGGER, suffixesCAN_GROUP, CANNOT_GROUP, MUST_GROUP| Constructor and Description | 
|---|
| NativeQTReader()Constructs a new QuickTime reader. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close(boolean fileOnly)Closes the currently open file. | 
| String[] | getSeriesUsedFiles(boolean noPixels)Returns an array of filenames needed to open the current series. | 
| protected void | initFile(String id)Initializes the given file (parsing header information, etc.). | 
| private boolean | isContainer(String type)Checks if the given String is a container atom type. | 
| boolean | isThisType(RandomAccessInputStream stream)Checks if the given stream is a valid stream for this file format. | 
| byte[] | openBytes(int no,
         byte[] buf,
         int x,
         int y,
         int w,
         int h)Obtains a sub-image of the specified image plane
 into a pre-allocated byte array. | 
| private void | parse(int depth,
     long offset,
     long length)Parse all of the atoms in the file. | 
| private void | print(int depth,
     long size,
     String type)Debugging method; prints information on an atom. | 
| private void | stripHeader()Cut off header bytes from a resource fork file. | 
| private byte[] | uncompress(byte[] pixs,
          String code)Uncompresses an image plane according to the the codec identifier. | 
addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMetaList, addMeta, addMetaList, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMetaList, close, coreIndexToSeries, fileGroupOption, flattenHashtables, get16BitLookupTable, get8BitLookupTable, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getBinning, getBitsPerPixel, getCompression, getContrastMethod, getCoreIndex, getCoreMetadataList, getCorrection, getCurrentFile, getDatasetStructureDescription, getDetectorType, getDimensionOrder, getDimensionOrder, getDomains, getEffectiveSizeC, getExperimentType, getFilamentType, getFillRule, getFilterType, getFontFamily, getFontStyle, getGlobalMeta, getGlobalMetadata, getIlluminationType, getImageCount, getImmersion, getIndex, getIndex, getLaserMedium, getLaserType, getLineCap, getMarker, getMedium, getMetadataOptions, getMetadataStore, getMetadataStoreRoot, getMetadataValue, getMicrobeamManipulationType, getMicroscopeType, getModuloC, getModuloT, getModuloZ, getNamingConvention, getOptimalTileHeight, getOptimalTileWidth, getPixelType, getPixelType, getPossibleDomains, getPulse, getRequiredDirectories, getResolution, getResolutionCount, getRGBChannelCount, getRotationTransform, getSeries, getSeriesCount, getSeriesMeta, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getSupportedMetadataLevels, getThumbSizeX, getThumbSizeY, getUnderlyingReaders, getUsedFiles, getUsedFiles, getZCTCoords, getZCTModuloCoords, hasCompanionFiles, hasFlattenedResolutions, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, isThisType, isThisType, isThumbnailSeries, isUsedFile, makeFilterMetadata, openBytes, openBytes, openBytes, openPlane, openThumbBytes, readPlane, readPlane, reopenFile, seriesToCoreIndex, setCoreIndex, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataOptions, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeriescheckSuffix, checkSuffix, getFormat, getNativeDataType, getSuffixesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormat, getNativeDataType, getSuffixesprivate static final String[] CONTAINER_TYPES
private long pixelOffset
private long pixelBytes
private int bitsPerPixel
private int rawSize
private byte[] prevPixels
private int prevPlane
private boolean canUsePrevious
private String codec
private String altCodec
private int altPlanes
private int scale
private boolean interlaced
private boolean separatedFork
private String forkFile
private boolean flip
public boolean isThisType(RandomAccessInputStream stream) throws IOException
IFormatReaderisThisType in interface IFormatReaderisThisType in class FormatReaderIOExceptionpublic String[] getSeriesUsedFiles(boolean noPixels)
IFormatReadergetSeriesUsedFiles in interface IFormatReadergetSeriesUsedFiles in class FormatReaderpublic byte[] openBytes(int no,
               byte[] buf,
               int x,
               int y,
               int w,
               int h)
                 throws FormatException,
                        IOException
IFormatReaderopenBytes in interface IFormatReaderopenBytes in class FormatReaderno - the image index within the file.buf - a pre-allocated buffer.x - X coordinate of the upper-left corner of the sub-imagey - Y coordinate of the upper-left corner of the sub-imagew - width of the sub-imageh - height of the sub-imagebuf for convenience.FormatException - if there was a problem parsing the metadata of the
   file.IOException - if there was a problem reading the file.IFormatReader.openBytes(int, byte[], int, int, int, int)public void close(boolean fileOnly)
           throws IOException
IFormatReaderCloseable.close().close in interface IFormatReaderclose in class FormatReaderIOExceptionprotected void initFile(String id) throws FormatException, IOException
FormatReaderinitFile in class FormatReaderFormatException - if a parsing error occurs processing the file.IOException - if an I/O error occurs processing the fileprivate void parse(int depth,
         long offset,
         long length)
            throws FormatException,
                   IOException
FormatExceptionIOExceptionprivate boolean isContainer(String type)
private void print(int depth,
         long size,
         String type)
private byte[] uncompress(byte[] pixs,
                String code)
                   throws FormatException,
                          IOException
FormatExceptionIOExceptionprivate void stripHeader()
                  throws IOException
IOExceptionCopyright © 2015 Open Microscopy Environment