Package entagged.audioformats.asf.data

Examples of entagged.audioformats.asf.data.StreamBitratePropertiesChunk


   * @throws IOException
   *             read errors.
   */
  private StreamBitratePropertiesChunk parseData(RandomAccessFile raf)
      throws IOException {
    StreamBitratePropertiesChunk result = null;
    long chunkStart = raf.getFilePointer();
    GUID guid = Utils.readGUID(raf);
    if (GUID.GUID_STREAM_BITRATE_PROPERTIES.equals(guid)) {
      BigInteger chunkLen = Utils.readBig64(raf);
      result = new StreamBitratePropertiesChunk(chunkStart, chunkLen);

      /*
       * Read the amount of bitrate records
       */
      long recordCount = Utils.readUINT16(raf);
      for (int i = 0; i < recordCount; i++) {
        int flags = Utils.readUINT16(raf);
        long avgBitrate = Utils.readUINT32(raf);
        result.addBitrateRecord(flags & 0x00FF, avgBitrate);
      }

    }
    return result;
  }
View Full Code Here


      FileHeader fileHeader = null;
      ExtendedContentDescription extendedDescription = null;
      EncodingChunk encodingChunk = null;
      StreamChunk streamChunk = null;
      ContentDescription contentDescription = null;
      StreamBitratePropertiesChunk bitratePropertiesChunk = null;

      Iterator iterator = chunks.iterator();
      while (iterator.hasNext()) {
        Chunk currentChunk = (Chunk) iterator.next();
        if (fileHeader == null
View Full Code Here

TOP

Related Classes of entagged.audioformats.asf.data.StreamBitratePropertiesChunk

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.