|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectloci.formats.FormatHandler
loci.formats.FormatWriter
loci.formats.out.LegacyQTWriter
public class LegacyQTWriter
LegacyQTWriter is a file format writer for QuickTime movies. It uses the QuickTime for Java library, and allows the user to choose between a variety of common video codecs. Much of this code was based on the QuickTime Movie Writer for ImageJ (available at http://rsb.info.nih.gov/ij/plugins/movie-writer.html).
Field Summary | |
---|---|
protected int |
codec
The codec to use. |
protected int |
quality
The quality to use. |
protected ReflectedUniverse |
r
Reflection tool for QuickTime for Java calls. |
protected LegacyQTTools |
tools
Instance of LegacyQTTools to handle QuickTime for Java detection. |
Fields inherited from class loci.formats.FormatWriter |
---|
cm, compression, compressionTypes, fps, initialized, metadataRetrieve |
Fields inherited from class loci.formats.FormatHandler |
---|
currentId, debug, debugLevel, format, statusListeners, suffixes |
Constructor Summary | |
---|---|
LegacyQTWriter()
|
Method Summary | |
---|---|
boolean |
canDoStacks()
Reports whether the writer can save multiple images to a single file. |
void |
close()
Closes currently open file(s) and frees allocated memory. |
void |
saveImage(Image image,
boolean last)
Saves the given image to the current file. |
void |
setCodec(int codec)
Sets the encoded movie's codec. |
void |
setQuality(int quality)
Sets the quality of the encoded movie. |
Methods inherited from class loci.formats.FormatWriter |
---|
canDoStacks, getColorModel, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getPixelTypes, isSupportedType, isSupportedType, save, saveBytes, saveBytes, saveImage, setColorModel, setCompression, setFramesPerSecond, setId, setMetadataRetrieve |
Methods inherited from class loci.formats.FormatHandler |
---|
addStatusListener, debug, getFormat, getStatusListeners, getSuffixes, isThisType, isThisType, removeStatusListener, setDebug, setDebugLevel, setId, status, status, status, trace, trace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface loci.formats.IFormatHandler |
---|
getFormat, getSuffixes, isThisType, isThisType, setId |
Methods inherited from interface loci.formats.StatusReporter |
---|
addStatusListener, getStatusListeners, removeStatusListener |
Field Detail |
---|
protected LegacyQTTools tools
protected ReflectedUniverse r
protected int codec
protected int quality
Constructor Detail |
---|
public LegacyQTWriter()
Method Detail |
---|
public void setCodec(int codec)
codec
- Codec value:public void setQuality(int quality)
quality
- Quality value:public void saveImage(Image image, boolean last) throws FormatException, IOException
IFormatWriter
FormatException
IOException
public boolean canDoStacks()
IFormatWriter
canDoStacks
in interface IFormatWriter
canDoStacks
in class FormatWriter
public void close() throws IOException
IFormatHandler
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |