public abstract class AbstractAVIStream
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractAVIStream.AudioTrack
The format of a video track is defined in a "strf" chunk, which
contains a
WAVEFORMATEX struct. |
static class |
AbstractAVIStream.AVIMediaType
Supported media types.
|
protected class |
AbstractAVIStream.Chunk
Chunk base class.
|
protected class |
AbstractAVIStream.CompositeChunk
A CompositeChunk contains an ordered list of Chunks.
|
protected class |
AbstractAVIStream.DataChunk
Data Chunk.
|
protected class |
AbstractAVIStream.FixedSizeDataChunk
A DataChunk with a fixed size.
|
protected static class |
AbstractAVIStream.MainHeader
Holds information about the entire movie.
|
protected class |
AbstractAVIStream.MidiTrack |
protected static class |
AbstractAVIStream.Sample
AVI stores media data in sample chunks.
|
protected class |
AbstractAVIStream.TextTrack |
protected class |
AbstractAVIStream.Track
Represents a track (or "stream") in an AVI file.
|
protected class |
AbstractAVIStream.VideoTrack
Represents a video track in an AVI file.
|
Modifier and Type | Field and Description |
---|---|
protected static int |
AVI_ID |
static int |
AVIH_FLAG_COPYRIGHTED |
static int |
AVIH_FLAG_HAS_INDEX
Indicates the AVI file has an index.
|
static int |
AVIH_FLAG_IS_INTERLEAVED
Indicates the AVI file is interleaved.
|
static int |
AVIH_FLAG_MUST_USE_INDEX
Indicates that application should use the index, rather than the physical
ordering of the chunks in the file, to determine the order of
presentation of the data.
|
static int |
AVIH_FLAG_TRUST_CK_TYPE
??
|
static int |
AVIH_FLAG_WAS_CAPTURE_FILE
// Indicates the AVI file is a specially allocated file used for
capturing real-time video.
|
protected static int |
AVIH_ID |
protected static int |
AVIX_ID |
protected static int |
CHUNK_SUBTYPE_MASK |
protected static int |
DB_ID |
protected static int |
DC_ID |
protected static int |
HDRL_ID |
protected static int |
IDX1_ID |
protected static int |
LIST_ID |
protected static int |
MOVI_ID |
protected javax.imageio.stream.ImageOutputStream |
out
Underlying output stream.
|
protected static int |
PC_ID |
protected static int |
REC_ID |
protected static int |
RIFF_ID
Chunk IDs.
|
protected static int |
STRD_ID |
protected long |
streamOffset
The offset in the underlying ImageOutputStream.
|
protected static int |
STRF_ID |
static int |
STRH_FLAG_DISABLED
Indicates this stream should not be enabled by default.
|
static int |
STRH_FLAG_VIDEO_PALETTE_CHANGES
Indicates this video stream contains palette changes.
|
protected static int |
STRH_ID |
protected static int |
STRL_ID |
protected static int |
STRN_ID |
protected java.util.ArrayList<AbstractAVIStream.Track> |
tracks
The list of tracks in the file.
|
protected static int |
WB_ID |
Constructor and Description |
---|
AbstractAVIStream() |
Modifier and Type | Method and Description |
---|---|
protected long |
getRelativeStreamPosition()
Gets the position relative to the beginning of the QuickTime stream.
|
protected static java.lang.String |
intToType(int id) |
protected static boolean |
isFlagSet(int flag,
int mask)
Returns true, if the specified mask is set on the flag.
|
protected void |
seekRelative(long newPosition)
Seeks relative to the beginning of the AVI stream.
|
protected static int |
typeToInt(java.lang.String str) |
protected static final int RIFF_ID
protected static final int AVI_ID
protected static final int AVIX_ID
protected static final int LIST_ID
protected static final int MOVI_ID
protected static final int HDRL_ID
protected static final int AVIH_ID
protected static final int STRL_ID
protected static final int STRH_ID
protected static final int STRN_ID
protected static final int STRF_ID
protected static final int STRD_ID
protected static final int IDX1_ID
protected static final int REC_ID
protected static final int CHUNK_SUBTYPE_MASK
protected static final int PC_ID
protected static final int DB_ID
protected static final int DC_ID
protected static final int WB_ID
public static final int AVIH_FLAG_HAS_INDEX
public static final int AVIH_FLAG_MUST_USE_INDEX
public static final int AVIH_FLAG_IS_INTERLEAVED
public static final int AVIH_FLAG_TRUST_CK_TYPE
public static final int AVIH_FLAG_WAS_CAPTURE_FILE
public static final int AVIH_FLAG_COPYRIGHTED
public static final int STRH_FLAG_DISABLED
public static final int STRH_FLAG_VIDEO_PALETTE_CHANGES
protected javax.imageio.stream.ImageOutputStream out
protected long streamOffset
protected java.util.ArrayList<AbstractAVIStream.Track> tracks
protected long getRelativeStreamPosition() throws java.io.IOException
Usually this value is equal to the stream position of the underlying ImageOutputStream, but can be larger if the underlying stream already contained data.
java.io.IOException
protected void seekRelative(long newPosition) throws java.io.IOException
Usually this equal to seeking in the underlying ImageOutputStream, but can be different if the underlying stream already contained data.
java.io.IOException
protected static int typeToInt(java.lang.String str)
protected static java.lang.String intToType(int id)
protected static boolean isFlagSet(int flag, int mask)