public class AVIWriter extends FormatWriter
| Modifier and Type | Field and Description |
|---|---|
private int |
bytesPerPixel |
private static java.lang.String |
DATA_SIGNATURE |
private long |
endPos |
private static long |
FRAME_OFFSET |
private static long |
FRAME_OFFSET_2 |
private long |
idx1Pos |
private int |
microSecPerFrame |
private static long |
PADDING_BYTES |
private int |
planesWritten |
private static long |
SAVE_FILE_SIZE |
private static long |
SAVE_JUNK_SIG |
private static long |
SAVE_LIST1_SIZE |
private static long |
SAVE_LIST1_SUBSIZE |
private static long |
SAVE_LIST2_SIZE |
private static long |
SAVE_MOVI |
private static long |
SAVE_STRF_SIZE |
private static long |
SAVE_STRN_POS |
private java.util.List<java.lang.Long> |
savedbLength |
private long |
saveidx1Length |
private int |
tDim |
private int |
xDim |
private int |
xPad |
private int |
yDim |
private int |
zDim |
cm, compression, compressionTypes, fps, initialized, interleaved, metadataRetrieve, options, out, resolution, resolutionData, sequential, series, validBitsCOMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixes| Constructor and Description |
|---|
AVIWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDoStacks()
Reports whether the writer can save multiple images to a single file.
|
void |
close() |
int[] |
getPixelTypes(java.lang.String codec)
Gets the supported pixel types for the given codec.
|
void |
saveBytes(int no,
byte[] buf,
int x,
int y,
int w,
int h)
Saves the given image tile to the current series in the current file.
|
void |
setId(java.lang.String id)
Initializes a writer from the input file name.
|
changeOutputFile, checkParams, createOutputStream, getColorModel, getCompression, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getPlaneCount, getPlaneCount, getResolution, getResolutionCount, getResolutions, getSamplesPerPixel, getSamplesPerPixel, getSeries, getSizeX, getSizeY, getTileSizeX, getTileSizeY, hasResolutions, isFullPlane, isInterleaved, isSupportedType, saveBytes, saveBytes, savePlane, savePlane, savePlane, seekToPlaneOffset, setCodecOptions, setColorModel, setCompression, setFramesPerSecond, setInterleaved, setMetadataRetrieve, setResolution, setResolutions, setSeries, setTileSizeX, setTileSizeY, setValidBitsPerPixel, setWriteSequentiallycheckSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, getSuffixes, getSupportedMetadataLevels, isThisType, setMetadataOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormat, getNativeDataType, getSuffixes, isThisTypegetMetadataOptions, getSupportedMetadataLevels, setMetadataOptionsprivate static final long SAVE_MOVI
private static final long SAVE_FILE_SIZE
private static final long SAVE_STRF_SIZE
private static final long SAVE_STRN_POS
private static final long SAVE_JUNK_SIG
private static final long SAVE_LIST1_SIZE
private static final long SAVE_LIST1_SUBSIZE
private static final long FRAME_OFFSET
private static final long FRAME_OFFSET_2
private static final long PADDING_BYTES
private static final long SAVE_LIST2_SIZE
private static final java.lang.String DATA_SIGNATURE
private int planesWritten
private int bytesPerPixel
private int xDim
private int yDim
private int zDim
private int tDim
private int xPad
private int microSecPerFrame
private java.util.List<java.lang.Long> savedbLength
private long idx1Pos
private long endPos
private long saveidx1Length
public void saveBytes(int no,
byte[] buf,
int x,
int y,
int w,
int h)
throws FormatException,
java.io.IOException
IFormatWriterno - the plane index within the series.buf - the byte array that represents the image tile.x - the X coordinate of the upper-left corner of the image tile.y - the Y coordinate of the upper-left corner of the image tile.w - the width (in pixels) of the image tile.h - the height (in pixels) of the image tile.FormatException - if one of the parameters is invalid.java.io.IOException - if there was a problem writing to the file.IFormatWriter.saveBytes(int, byte[], int, int, int, int)public boolean canDoStacks()
IFormatWritercanDoStacks in interface IFormatWritercanDoStacks in class FormatWriterpublic int[] getPixelTypes(java.lang.String codec)
IFormatWritergetPixelTypes in interface IFormatWritergetPixelTypes in class FormatWriterpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class FormatWriterjava.io.IOExceptionpublic void setId(java.lang.String id)
throws FormatException,
java.io.IOException
FormatWriterRandomAccessOutputStream for the output
file and initializes the metadata for all the series using
FormatWriter.setSeries(int).setId in interface IFormatHandlersetId in class FormatWriterid - a String specifying the path to the fileFormatExceptionjava.io.IOExceptionCopyright © 2021 Open Microscopy Environment