Class QuickTimeMeta.SampleDescription

java.lang.Object
org.monte.media.quicktime.QuickTimeMeta.SampleDescription
Enclosing class:
QuickTimeMeta

protected static class QuickTimeMeta.SampleDescription extends Object
Represents a sample description.
Author:
Werner Randelshofer
  • Field Details

    • dataFormat

      protected String dataFormat
      The media type.
    • dataReferenceIndex

      protected int dataReferenceIndex
      The 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

      protected String videoCompressorName
    • videoDepth

      protected int videoDepth
      Number of bits per Pixel. All frames must have the same depth. The value -1 is used to mark unspecified depth.
    • videoColorTableId

      protected int videoColorTableId
    • extendData

      protected byte[] extendData
    • soundNumberOfChannels

      protected int soundNumberOfChannels
      Number of sound channels used by the sound sample.
    • soundSampleSize

      protected int soundSampleSize
      Number of bits per audio sample before compression.
    • soundCompressionId

      protected int soundCompressionId
      Sound compressionId. The value -1 means fixed bit rate, -2 means variable bit rate.
    • soundSamplesPerPacket

      protected long soundSamplesPerPacket
      Sound 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 soundBytesPerPacket
      For 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 soundBytesPerFrame
      The 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 soundBytesPerSample
      The 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 soundSampleRate
      Sound sample rate. The integer portion must match the media's time scale.
    • stsdExtensions

      protected byte[] stsdExtensions
      Extensions to the stsd chunk. Must contain atom-based fields: ([long size, long type, some data], repeat)
  • Constructor Details

    • SampleDescription

      protected SampleDescription()
  • Method Details