public class LegacyQTWriter extends FormatWriter
| Modifier and Type | Field and Description | 
|---|---|
| protected int | codecThe codec to use. | 
| private int | heightFrame height. | 
| private int | numWrittenNumber of frames written. | 
| private int[] | pixels2 | 
| protected int | qualityThe quality to use. | 
| protected loci.common.ReflectedUniverse | rReflection tool for QuickTime for Java calls. | 
| private static int | TIME_SCALETime scale. | 
| protected LegacyQTTools | toolsInstance of LegacyQTTools to handle QuickTime for Java detection. | 
| private int | widthFrame width. | 
cm, compression, compressionTypes, fps, initialized, interleaved, metadataRetrieve, options, out, resolution, resolutionData, sequential, series, validBitsCOMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixes| Constructor and Description | 
|---|
| LegacyQTWriter() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | canDoStacks()Reports whether the writer can save multiple images to a single file. | 
| void | close() | 
| java.lang.Class<?> | getNativeDataType()Returns the native data type of image planes for this reader, as returned
 by  IFormatReader.openPlane(int, int, int, int, int)orIFormatWriter.savePlane(int, java.lang.Object). | 
| 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 | savePlane(int no,
         java.lang.Object plane,
         int x,
         int y,
         int w,
         int h)Saves the given image plane to the current series in the current file. | 
| void | setCodec(int codec)Sets the encoded movie's codec. | 
| void | setQuality(int quality)Sets the quality of the encoded movie. | 
changeOutputFile, checkParams, createOutputStream, getColorModel, getCompression, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getPixelTypes, getPlaneCount, getPlaneCount, getResolution, getResolutionCount, getResolutions, getSamplesPerPixel, getSamplesPerPixel, getSeries, getSizeX, getSizeY, getTileSizeX, getTileSizeY, hasResolutions, isFullPlane, isInterleaved, isSupportedType, saveBytes, saveBytes, savePlane, savePlane, seekToPlaneOffset, setCodecOptions, setColorModel, setCompression, setFramesPerSecond, setId, setInterleaved, setMetadataRetrieve, setResolution, setResolutions, setSeries, setTileSizeX, setTileSizeY, setValidBitsPerPixel, setWriteSequentiallycheckSuffix, checkSuffix, getFormat, getMetadataOptions, getSuffixes, getSupportedMetadataLevels, isThisType, setMetadataOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormat, getSuffixes, isThisTypegetMetadataOptions, getSupportedMetadataLevels, setMetadataOptionsprivate static final int TIME_SCALE
protected LegacyQTTools tools
protected loci.common.ReflectedUniverse r
protected int codec
protected int quality
private int numWritten
private int width
private int height
private int[] pixels2
public void setCodec(int codec)
codec - Codec value:public void setQuality(int quality)
quality - Quality value:public void saveBytes(int no,
                      byte[] buf,
                      int x,
                      int y,
                      int w,
                      int h)
               throws FormatException,
                      java.io.IOException
IFormatWriterno - the image index within the current file, starting from 0.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 void savePlane(int no,
                      java.lang.Object plane,
                      int x,
                      int y,
                      int w,
                      int h)
               throws FormatException,
                      java.io.IOException
IFormatWritersavePlane in interface IFormatWritersavePlane in class FormatWriterno - the image index within the current file, starting from 0.plane - the image plane.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.savePlane(int, Object, int, int, int, int)public boolean canDoStacks()
IFormatWritercanDoStacks in interface IFormatWritercanDoStacks in class FormatWriterpublic java.lang.Class<?> getNativeDataType()
IFormatHandlerIFormatReader.openPlane(int, int, int, int, int) or IFormatWriter.savePlane(int, java.lang.Object).
 For most readers this type will be a byte array; however, some readers
 call external APIs that work with other types such as
 BufferedImage.getNativeDataType in interface IFormatHandlergetNativeDataType in class FormatHandlerpublic void close()
           throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class FormatWriterjava.io.IOExceptionCopyright © 2019 Open Microscopy Environment