loci.formats.out
Class LegacyQTWriter
java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatWriter
loci.formats.out.LegacyQTWriter
- All Implemented Interfaces:
- loci.formats.IFormatHandler, loci.formats.IFormatWriter, loci.formats.StatusReporter
public class LegacyQTWriter
- extends loci.formats.FormatWriter
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).
- Source code:
- Trac,
SVN
Field Summary |
protected int |
codec
The codec to use. |
protected int |
quality
The quality to use. |
protected loci.formats.ReflectedUniverse |
r
Reflection tool for QuickTime for Java calls. |
protected loci.formats.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 |
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 |
tools
protected loci.formats.LegacyQTTools tools
- Instance of LegacyQTTools to handle QuickTime for Java detection.
r
protected loci.formats.ReflectedUniverse r
- Reflection tool for QuickTime for Java calls.
codec
protected int codec
- The codec to use.
quality
protected int quality
- The quality to use.
LegacyQTWriter
public LegacyQTWriter()
setCodec
public void setCodec(int codec)
- Sets the encoded movie's codec.
- Parameters:
codec
- Codec value:
- QTWriter.CODEC_CINEPAK
- QTWriter.CODEC_ANIMATION
- QTWriter.CODEC_H_263
- QTWriter.CODEC_SORENSON
- QTWriter.CODEC_SORENSON_3
- QTWriter.CODEC_MPEG_4
- QTWriter.CODEC_RAW
setQuality
public void setQuality(int quality)
- Sets the quality of the encoded movie.
- Parameters:
quality
- Quality value:
- QTWriter.QUALITY_LOW
- QTWriter.QUALITY_MEDIUM
- QTWriter.QUALITY_HIGH
- QTWriter.QUALITY_MAXIMUM
saveImage
public void saveImage(Image image,
boolean last)
throws loci.formats.FormatException,
IOException
- Throws:
loci.formats.FormatException
IOException
canDoStacks
public boolean canDoStacks()
- Specified by:
canDoStacks
in interface loci.formats.IFormatWriter
- Overrides:
canDoStacks
in class loci.formats.FormatWriter
close
public void close()
throws IOException
- Throws:
IOException