Esempio n. 1
0
  @Override
  public void _parseDetails(ByteBuffer content) {
    parseVersionAndFlags(content);
    if (getVersion() == 1) {
      creationTime = IsoTypeReader.readUInt64(content);
      modificationTime = IsoTypeReader.readUInt64(content);
      timescale = IsoTypeReader.readUInt32(content);
      duration = IsoTypeReader.readUInt64(content);
    } else {
      creationTime = IsoTypeReader.readUInt32(content);
      modificationTime = IsoTypeReader.readUInt32(content);
      timescale = IsoTypeReader.readUInt32(content);
      duration = IsoTypeReader.readUInt32(content);
    }
    rate = IsoTypeReader.readFixedPoint1616(content);
    volume = IsoTypeReader.readFixedPoint88(content);
    IsoTypeReader.readUInt16(content);
    IsoTypeReader.readUInt32(content);
    IsoTypeReader.readUInt32(content);
    matrix = new long[9];
    for (int i = 0; i < 9; i++) {
      matrix[i] = IsoTypeReader.readUInt32(content);
    }

    previewTime = content.getInt();
    previewDuration = content.getInt();
    posterTime = content.getInt();
    selectionTime = content.getInt();
    selectionDuration = content.getInt();
    currentTime = content.getInt();

    nextTrackId = IsoTypeReader.readUInt32(content);
  }