Esempio n. 1
0
 public void parse(IsoBufferWrapper in, long size, BoxParser boxParser, Box lastMovieFragmentBox)
     throws IOException {
   super.parse(in, size, boxParser, lastMovieFragmentBox);
   classificationEntity = IsoFile.bytesToFourCC(in.read(4));
   classificationTableIndex = in.readUInt16();
   language = in.readIso639();
   classificationInfo = in.readString();
 }
 @Override
 public void parse(IsoBufferWrapper in, long size, BoxParser boxParser, Box lastMovieFragmentBox)
     throws IOException {
   super.parse(in, size, boxParser, lastMovieFragmentBox);
   maxSamplePerFrame = in.readUInt32();
   unknown1 = in.readUInt8();
   sampleSize = in.readUInt8();
   historyMult = in.readUInt8();
   initialHistory = in.readUInt8();
   kModifier = in.readUInt8();
   channels = in.readUInt8();
   unknown2 = in.readUInt16();
   maxCodedFrameSize = in.readUInt32();
   bitRate = in.readUInt32();
   sampleRate = in.readUInt32();
 }
 private long getVariable(long length, IsoBufferWrapper in) throws IOException {
   long ret;
   if (((length + 1) * 8) == 8) {
     ret = in.readUInt8();
   } else if (((length + 1) * 8) == 16) {
     ret = in.readUInt16();
   } else if (((length + 1) * 8) == 24) {
     ret = in.readUInt24();
   } else if (((length + 1) * 8) == 32) {
     ret = in.readUInt32();
   } else if (((length + 1) * 8) == 64) {
     ret = in.readUInt64();
   } else {
     throw new IOException("lengthSize not power of two");
   }
   return ret;
 }