Package entagged.audioformats.asf.data

Examples of entagged.audioformats.asf.data.GUID


   * @throws IOException
   */
  private FileHeader parseData(RandomAccessFile raf) throws IOException {
    FileHeader result = null;
    long fileHeaderStart = raf.getFilePointer();
    GUID guid = Utils.readGUID(raf);
    if (GUID.GUID_FILE.equals(guid)) {
      BigInteger chunckLen = Utils.readBig64(raf);
      // Skip client GUID.
      raf.skipBytes(16);

View Full Code Here


   *                   read errors
   */
  private StreamChunk parseData(RandomAccessFile raf) throws IOException {
    StreamChunk result = null;
    long chunkStart = raf.getFilePointer();
    GUID guid = Utils.readGUID(raf);
    if (GUID.GUID_STREAM.equals(guid)) {
      BigInteger chunkLength = Utils.readBig64(raf);
      // Now comes GUID indicating whether stream content type is audio or
      // video
      GUID streamTypeGUID = Utils.readGUID(raf);
      if (GUID.GUID_AUDIOSTREAM.equals(streamTypeGUID)
          || GUID.GUID_VIDEOSTREAM.equals(streamTypeGUID)) {

        // A guid is indicating whether the stream is error
        // concealed
        GUID errorConcealment = Utils.readGUID(raf);
        /*
         * Read the Time Offset
         */
        long timeOffset = Utils.readUINT64(raf);

View Full Code Here

   */
  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);

      /*
 
View Full Code Here

     */
    private ContentDescription parseData(RandomAccessFile raf)
            throws IOException {
        ContentDescription result = null;
        long chunkStart = raf.getFilePointer();
        GUID guid = Utils.readGUID(raf);
        if (GUID.GUID_CONTENTDESCRIPTION.equals(guid)) {
            BigInteger chunkLen = Utils.readBig64(raf);
            result = new ContentDescription(chunkStart, chunkLen);
            /*
             * Now comes 16-Bit values representing the length of the Strings
View Full Code Here

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

      // Can't be interpreted
View Full Code Here

   *                   Access errors.
   */
  public static Chunk readChunckHeader(RandomAccessFile input)
      throws IOException {
    long pos = input.getFilePointer();
    GUID guid = Utils.readGUID(input);
    BigInteger chunkLength = Utils.readBig64(input);
    return new Chunk(guid, pos, chunkLength);
  }
View Full Code Here

     */
    private ExtendedContentDescription parseData(RandomAccessFile raf)
            throws IOException {
        ExtendedContentDescription result = null;
        long chunkStart = raf.getFilePointer();
        GUID guid = Utils.readGUID(raf);

        if (GUID.GUID_EXTENDED_CONTENT_DESCRIPTION.equals(guid)) {
            BigInteger chunkLen = Utils.readBig64(raf);

            // Reading Number of Tags.
View Full Code Here

   *             Read errors.
   */
  private AsfHeader parseData(RandomAccessFile in) throws IOException {
    AsfHeader result = null;
    long chunkStart = in.getFilePointer();
    GUID possibleGuid = Utils.readGUID(in);

    if (GUID.GUID_HEADER.equals(possibleGuid)) {
      // For Know the filepointer pointed to an ASF header chunk.
      BigInteger chunkLen = Utils.readBig64(in);

View Full Code Here

        }
        int[] binaryGuid = new int[GUID.GUID_LENGTH];
        for (int i = 0; i < binaryGuid.length; i++) {
            binaryGuid[i] = raf.read();
        }
        return new GUID(binaryGuid);
    }
View Full Code Here

TOP

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

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.