|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object loci.formats.FormatHandler loci.formats.FormatWriter loci.formats.out.QTWriter
public class QTWriter
QTWriter is the file format writer for uncompressed QuickTime movie files.
Field Summary | |
---|---|
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 Vector |
offsets
Vector of plane offsets. |
protected 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. |
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 | |
---|---|
QTWriter()
|
Method Summary | |
---|---|
boolean |
canDoStacks()
|
void |
close()
|
int[] |
getPixelTypes()
|
void |
saveImage(Image image,
boolean last)
|
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, 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 |
---|
public 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 RandomAccessFile out
protected int codec
protected int quality
protected int numWritten
protected long byteCountOffset
protected int numBytes
protected Vector offsets
protected int created
protected boolean needLegacy
protected LegacyQTWriter legacy
Constructor Detail |
---|
public QTWriter()
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 loci.formats.FormatException, IOException
loci.formats.FormatException
IOException
public boolean canDoStacks()
canDoStacks
in interface loci.formats.IFormatWriter
canDoStacks
in class loci.formats.FormatWriter
public int[] getPixelTypes()
getPixelTypes
in interface loci.formats.IFormatWriter
getPixelTypes
in class loci.formats.FormatWriter
public void close() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |