java.lang.Object
org.monte.media.quicktime.QuickTimeMeta.SampleDescription
- Enclosing class:
QuickTimeMeta
Represents a sample description.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe data reference index.protected StringThe media type.protected longThe number of bytes in a frame: for uncompressed audio, an uncompressed frame; for compressed audio, a compressed frame.protected longFor uncompressed audio, the number of bytes in a sample for a single channel.protected longThe size of an uncompressed sample in bytes.protected intSound compressionId.protected intNumber of sound channels used by the sound sample.protected doubleSound sample rate.protected intNumber of bits per audio sample before compression.protected longSound stsd samples per packet.protected byte[]Extensions to the stsd chunk.protected intprotected Stringprotected intNumber of bits per Pixel.protected intprotected intprotected doubleprotected floatprotected floatprotected doubleprotected int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
mediaType
The media type. -
dataReferenceIndex
protected int dataReferenceIndexThe data reference index. -
videoTemporalQuality
protected float videoTemporalQuality -
videoSpatialQuality
protected float videoSpatialQuality -
videoWidth
protected int videoWidth -
videoHeight
protected int videoHeight -
videoHorizontalResolution
protected double videoHorizontalResolution -
videoVerticalResolution
protected double videoVerticalResolution -
videoFrameCount
protected int videoFrameCount -
videoCompressorName
-
videoDepth
protected int videoDepthNumber of bits per Pixel. All frames must have the same depth. The value -1 is used to mark unspecified depth. -
videoColorTableId
protected int videoColorTableId -
soundNumberOfChannels
protected int soundNumberOfChannelsNumber of sound channels used by the sound sample. -
soundSampleSize
protected int soundSampleSizeNumber of bits per audio sample before compression. -
soundCompressionId
protected int soundCompressionIdSound compressionId. The value -1 means fixed bit rate, -2 means variable bit rate. -
soundSamplesPerPacket
protected long soundSamplesPerPacketSound stsd samples per packet. The number of uncompressed samples generated by a compressed sample (an uncompressed sample is one sample from each channel). This is also the sample duration, expressed in the media’s timescale, where the timescale is equal to the sample rate. For uncompressed formats, this field is always 1. -
soundBytesPerPacket
protected long soundBytesPerPacketFor uncompressed audio, the number of bytes in a sample for a single channel. This replaces the older sampleSize field, which is set to 16. This value is calculated by dividing the frame size by the number of channels. The same calculation is performed to calculate the value of this field for compressed audio, but the result of the calculation is not generally meaningful for compressed audio. -
soundBytesPerFrame
protected long soundBytesPerFrameThe number of bytes in a frame: for uncompressed audio, an uncompressed frame; for compressed audio, a compressed frame. This can be calculated by multiplying the bytes per packet field by the number of channels. -
soundBytesPerSample
protected long soundBytesPerSampleThe size of an uncompressed sample in bytes. This is set to 1 for 8-bit audio, 2 for all other cases, even if the sample size is greater than 2 bytes. -
soundSampleRate
protected double soundSampleRateSound sample rate. The integer portion must match the media's time scale. -
stsdExtensions
protected byte[] stsdExtensionsExtensions to the stsd chunk. Must contain atom-based fields: ([long size, long type, some data], repeat)
-
-
Constructor Details
-
SampleDescription
protected SampleDescription()
-
-
Method Details