|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectloci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.AVIReader
AVIReader is the file format reader for uncompressed AVI files. Much of this form's code was adapted from Wayne Rasband's AVI Movie Reader plugin for ImageJ (available at http://rsb.info.nih.gov/ij).
| Field Summary | |
(package private) int |
bigChunkSize
|
(package private) int |
bmpActualColorsUsed
|
(package private) int |
bmpActualSize
|
(package private) short |
bmpBitsPerPixel
|
(package private) int |
bmpColorsImportant
|
(package private) int |
bmpColorsUsed
|
(package private) int |
bmpCompression
|
(package private) int |
bmpHeight
|
(package private) int |
bmpHorzResolution
|
(package private) int |
bmpNoOfPixels
|
(package private) short |
bmpPlanes
|
(package private) int |
bmpScanLineSize
|
(package private) int |
bmpSize
|
(package private) int |
bmpSizeOfBitmap
|
(package private) boolean |
bmpTopDown
|
(package private) int |
bmpVertResolution
|
(package private) int |
bmpWidth
|
(package private) byte[] |
byteData
|
(package private) int |
dwFlags
|
(package private) int |
dwHeight
|
(package private) int |
dwInitialFrames
|
(package private) int |
dwLength
|
(package private) int |
dwMaxBytesPerSec
|
(package private) int |
dwMicroSecPerFrame
|
(package private) int |
dwRate
|
(package private) int |
dwReserved1
|
(package private) int |
dwScale
|
(package private) int |
dwStart
|
(package private) int |
dwStreamFlags
|
(package private) int |
dwStreamInitialFrames
|
(package private) int |
dwStreamLength
|
(package private) int |
dwStreamQuality
|
(package private) int |
dwStreamRate
|
(package private) int |
dwStreamReserved1
|
(package private) int |
dwStreams
|
(package private) int |
dwStreamSampleSize
|
(package private) int |
dwStreamScale
|
(package private) int |
dwStreamStart
|
(package private) int |
dwStreamSuggestedBufferSize
|
(package private) int |
dwSuggestedBufferSize
|
(package private) int |
dwTotalFrames
|
(package private) int |
dwWidth
|
(package private) String |
fcc
|
(package private) String |
fccStreamHandler
|
(package private) String |
fccStreamType
|
protected RandomAccessFile |
in
Current file. |
(package private) short[] |
intData
|
(package private) byte[] |
pb
|
(package private) byte[] |
pg
|
(package private) long |
pos
|
(package private) byte[] |
pr
|
(package private) byte[] |
rawData
|
(package private) int |
size
|
(package private) String |
type
|
| Fields inherited from class loci.formats.FormatReader |
DEBUG, DEBUG_LEVEL, metadata, ome |
| Fields inherited from class loci.formats.FormatHandler |
chooser, currentId, filters, format, suffixes |
| Constructor Summary | |
AVIReader()
Constructs a new AVI reader. |
|
| Method Summary | |
void |
close()
Closes any open files. |
int |
getImageCount(String id)
Determines the number of images in the given AVI file. |
protected void |
initFile(String id)
Initializes the given AVI file. |
void |
initOMEMetadata()
Initialize the OME-XML tree. |
boolean |
isThisType(byte[] block)
Checks if the given block is a valid header for an AVI file. |
static void |
main(String[] args)
|
BufferedImage |
open(String id,
int no)
Obtains the specified image from the given AVI file. |
String |
readStringBytes()
Reads a 4-byte String. |
void |
unpack(byte[] rawData,
int rawOffset,
byte[] byteData,
int byteOffset,
int w)
Unpacks a byte array into a new byte array. |
| Methods inherited from class loci.formats.FormatReader |
createFilters, getMetadata, getMetadataValue, getOMENode, open, testRead |
| Methods inherited from class loci.formats.FormatHandler |
getFileChooser, getFileFilters, getFormat, getSuffixes, isThisType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected RandomAccessFile in
String type
String fcc
int size
int bigChunkSize
long pos
int dwMicroSecPerFrame
int dwMaxBytesPerSec
int dwReserved1
int dwFlags
int dwTotalFrames
int dwInitialFrames
int dwStreams
int dwSuggestedBufferSize
int dwWidth
int dwHeight
int dwScale
int dwRate
int dwStart
int dwLength
String fccStreamType
String fccStreamHandler
int dwStreamFlags
int dwStreamReserved1
int dwStreamInitialFrames
int dwStreamScale
int dwStreamRate
int dwStreamStart
int dwStreamLength
int dwStreamSuggestedBufferSize
int dwStreamQuality
int dwStreamSampleSize
int bmpSize
int bmpSizeOfBitmap
int bmpHorzResolution
int bmpVertResolution
int bmpColorsUsed
int bmpColorsImportant
int bmpNoOfPixels
int bmpWidth
int bmpHeight
int bmpCompression
int bmpActualSize
int bmpScanLineSize
int bmpActualColorsUsed
short bmpPlanes
short bmpBitsPerPixel
boolean bmpTopDown
short[] intData
byte[] byteData
byte[] rawData
byte[] pr
byte[] pg
byte[] pb
| Constructor Detail |
public AVIReader()
| Method Detail |
public boolean isThisType(byte[] block)
isThisType in class FormatReader
public int getImageCount(String id)
throws FormatException,
IOException
getImageCount in class FormatReaderFormatException
IOException
public BufferedImage open(String id,
int no)
throws FormatException,
IOException
open in class FormatReaderFormatException
IOException
public void close()
throws FormatException,
IOException
close in class FormatReaderFormatException
IOException
protected void initFile(String id)
throws FormatException,
IOException
initFile in class FormatReaderFormatException
IOExceptionpublic void initOMEMetadata()
public void unpack(byte[] rawData,
int rawOffset,
byte[] byteData,
int byteOffset,
int w)
public String readStringBytes()
throws IOException
IOException
public static void main(String[] args)
throws FormatException,
IOException
FormatException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||