Class QuickTime
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.pict.QuickTime
-
final class QuickTime extends java.lang.Object
QuickTime- Version:
- $Id: QT.java,v 1.0 Feb 16, 2009 7:20:59 PM haraldk Exp$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
QuickTime.ImageDesc
Class representing the'idsc'
QuickTime Atom.
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<QTDecompressor>
sDecompressors
(package private) static java.lang.String
VENDOR_APPLE
-
Constructor Summary
Constructors Constructor Description QuickTime()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.image.BufferedImage
decompress(javax.imageio.stream.ImageInputStream stream)
Decompresses the QuickTime image data from the given stream.private static QTDecompressor
getDecompressor(QuickTime.ImageDesc description)
Gets a decompressor that can decompress the described data.
-
-
-
Field Detail
-
VENDOR_APPLE
static final java.lang.String VENDOR_APPLE
- See Also:
- Constant Field Values
-
sDecompressors
private static final java.util.List<QTDecompressor> sDecompressors
-
-
Method Detail
-
getDecompressor
private static QTDecompressor getDecompressor(QuickTime.ImageDesc description)
Gets a decompressor that can decompress the described data.- Parameters:
description
- the image description ('idsc'
Atom).- Returns:
- a decompressor that can decompress data decribed by the given
description
, ornull
if no decompressor is found
-
decompress
public static java.awt.image.BufferedImage decompress(javax.imageio.stream.ImageInputStream stream) throws java.io.IOException
Decompresses the QuickTime image data from the given stream.- Parameters:
stream
- the image input stream- Returns:
- a
BufferedImage
containing the image data, ornull
if no decompressor is capable of decompressing the image. - Throws:
java.io.IOException
- if an I/O exception occurs during read
-
-