public class QTWriter
extends loci.formats.FormatWriter
| Modifier and Type | Field and Description |
|---|---|
protected long |
byteCountOffset
Seek to this offset to update the total number of pixel bytes.
|
protected int |
codec
The codec to use.
|
static int |
CODEC_ANIMATION
Value indicating Animation codec.
|
static int |
CODEC_CINEPAK
Value indicating Cinepack codec.
|
static int |
CODEC_H_263
Value indicating H.263 codec.
|
static int |
CODEC_MOTION_JPEG_B
Value indicating Motion JPEG-B codec.
|
static int |
CODEC_MPEG_4
Value indicating MPEG-4 codec.
|
static int |
CODEC_RAW
Value indicating Raw codec.
|
static int |
CODEC_SORENSON
Value indicating Sorenson codec.
|
static int |
CODEC_SORENSON_3
Value indicating Sorenson 3 codec.
|
protected int |
created
Time the file was created.
|
protected LegacyQTWriter |
legacy
Legacy QuickTime writer.
|
protected boolean |
needLegacy
Whether we need the legacy writer.
|
protected int |
numBytes
Total number of pixel bytes.
|
protected int |
numWritten
Number of planes written.
|
protected java.util.Vector |
offsets
Vector of plane offsets.
|
protected java.io.RandomAccessFile |
out
Current file.
|
protected int |
quality
The quality to use.
|
static int |
QUALITY_HIGH
Value indicating High quality.
|
static int |
QUALITY_LOW
Value indicating Low quality.
|
static int |
QUALITY_MAXIMUM
Value indicating Maximum quality.
|
static int |
QUALITY_NORMAL
Value indicating Normal quality.
|
| Constructor and Description |
|---|
QTWriter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
int[] |
getPixelTypes()
Gets the supported pixel types.
|
void |
saveImage(java.awt.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.
|
canDoStacks, getColorModel, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, isSupportedType, isSupportedType, save, saveBytes, saveBytes, saveImage, setColorModel, setCompression, setFramesPerSecond, setId, setMetadataRetrieveaddStatusListener, debug, getFormat, getStatusListeners, getSuffixes, isThisType, isThisType, removeStatusListener, setDebug, setDebugLevel, setId, status, status, status, trace, traceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final int CODEC_MOTION_JPEG_B
public static final int CODEC_CINEPAK
public static final int CODEC_ANIMATION
public static final int CODEC_H_263
public static final int CODEC_SORENSON
public static final int CODEC_SORENSON_3
public static final int CODEC_MPEG_4
public static final int CODEC_RAW
public static final int QUALITY_LOW
public static final int QUALITY_NORMAL
public static final int QUALITY_HIGH
public static final int QUALITY_MAXIMUM
protected java.io.RandomAccessFile out
protected int codec
protected int quality
protected int numWritten
protected long byteCountOffset
protected int numBytes
protected java.util.Vector offsets
protected int created
protected boolean needLegacy
protected LegacyQTWriter legacy
public void setCodec(int codec)
codec - Codec value:public void setQuality(int quality)
quality - Quality value:public void saveImage(java.awt.Image image,
boolean last)
throws loci.formats.FormatException,
java.io.IOException
loci.formats.IFormatWriterloci.formats.FormatExceptionjava.io.IOExceptionpublic boolean canDoStacks()
loci.formats.IFormatWritercanDoStacks in interface loci.formats.IFormatWritercanDoStacks in class loci.formats.FormatWriterpublic int[] getPixelTypes()
loci.formats.IFormatWritergetPixelTypes in interface loci.formats.IFormatWritergetPixelTypes in class loci.formats.FormatWriterpublic void close()
throws java.io.IOException
loci.formats.IFormatHandlerjava.io.IOException