|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectloci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.LegacyQTReader
LegacyQTReader is the old file format reader for QuickTime movie files. To use it, QuickTime for Java must be installed. Much of this reader's code was adapted from Wayne Rasband's QuickTime Movie Opener plugin for ImageJ (available at http://rsb.info.nih.gov/ij/). TODO -- address efficiency issues; currently 200-550ms are required to process each plane, with an additional 2500+ ms of overhead
| Field Summary | |
static String |
EXPIRED_QT_MSG
|
protected boolean |
expiredQT
Flag indicating QuickTime for Java has expired. |
protected Image |
image
Image containing current frame. |
protected boolean |
initialized
Flag indicating this reader has been initialized. |
protected static ClassLoader |
LOADER
This custom class loader searches additional paths for the QTJava.zip library. |
protected static boolean |
MAC_OS_X
|
protected boolean |
needsRedrawing
Flag indicating QuickTime frame needs to be redrawn. |
static String |
NO_QT_MSG
|
protected boolean |
noQT
Flag indicating QuickTime for Java is not installed. |
protected int |
numImages
Number of images in current QuickTime movie. |
protected ReflectedUniverse |
r
Reflection tool for QuickTime for Java calls. |
protected static String[] |
SUFFIXES
|
protected int |
timeStep
Time increment between frames. |
| Fields inherited from class loci.formats.FormatReader |
DEBUG, DEBUG_LEVEL, metadata, ome |
| Fields inherited from class loci.formats.FormatHandler |
chooser, currentId, filters, format, suffixes |
| Constructor Summary | |
LegacyQTReader()
Constructs a new QT reader. |
|
| Method Summary | |
boolean |
canDoQT()
Whether QuickTime is available to this JVM. |
void |
close()
Closes any open files. |
protected static ClassLoader |
constructLoader()
|
int |
getImageCount(String id)
Determines the number of images in the given QuickTime file. |
Dimension |
getPictDimensions(byte[] bytes)
Gets width and height for the given PICT bytes. |
ReflectedUniverse |
getUniverse()
Gets QuickTime for Java reflected universe. |
protected void |
initFile(String id)
Initializes the given QuickTime file. |
protected void |
initReader()
Initializes the QuickTime reader. |
boolean |
isQTExpired()
Whether QuickTime for Java has expired. |
boolean |
isThisType(byte[] block)
Checks if the given block is a valid header for a QuickTime file. |
static void |
main(String[] args)
|
BufferedImage |
open(String id,
int no)
Obtains the specified image from the given QuickTime file. |
Image |
pictToImage(byte[] bytes)
Converts the given byte array in PICT format to a Java image. |
| Methods inherited from class loci.formats.FormatReader |
createFilters, getMetadata, getMetadataValue, getOMENode, open, testRead |
| Methods inherited from class loci.formats.FormatHandler |
getFileChooser, getFileFilters, getFormat, getSuffixes, isThisType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String NO_QT_MSG
public static final String EXPIRED_QT_MSG
protected static final String[] SUFFIXES
protected static final boolean MAC_OS_X
protected static final ClassLoader LOADER
protected boolean initialized
protected boolean noQT
protected boolean expiredQT
protected ReflectedUniverse r
protected int numImages
protected int timeStep
protected boolean needsRedrawing
protected Image image
| Constructor Detail |
public LegacyQTReader()
| Method Detail |
protected static ClassLoader constructLoader()
protected void initReader()
public boolean canDoQT()
public boolean isQTExpired()
public ReflectedUniverse getUniverse()
public Dimension getPictDimensions(byte[] bytes)
throws FormatException,
ReflectException
FormatException
ReflectException
public Image pictToImage(byte[] bytes)
throws FormatException
FormatExceptionpublic boolean isThisType(byte[] block)
isThisType in class FormatReader
public int getImageCount(String id)
throws FormatException,
IOException
getImageCount in class FormatReaderFormatException
IOException
public BufferedImage open(String id,
int no)
throws FormatException,
IOException
open in class FormatReaderFormatException
IOException
public void close()
throws FormatException,
IOException
close in class FormatReaderFormatException
IOException
protected void initFile(String id)
throws FormatException,
IOException
initFile in class FormatReaderFormatException
IOException
public static void main(String[] args)
throws FormatException,
IOException
FormatException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||