com.googlecode.mp4parser.boxes.piff
Class PiffSampleEncryptionBox

java.lang.Object
  extended by com.coremedia.iso.boxes.AbstractBox
      extended by com.coremedia.iso.boxes.AbstractFullBox
          extended by com.googlecode.mp4parser.boxes.AbstractSampleEncryptionBox
              extended by com.googlecode.mp4parser.boxes.piff.PiffSampleEncryptionBox
All Implemented Interfaces:
Box, FullBox

public class PiffSampleEncryptionBox
extends AbstractSampleEncryptionBox

 aligned(8) class SampleEncryptionBox extends FullBox(‘uuid’, extended_type= 0xA2394F52-5A9B-4f14-A244-6C427C648DF4, version=0, flags=0)
 {
  if (flags & 0x000001)
  {
   unsigned int(24) AlgorithmID;
   unsigned int(8) IV_size;
   unsigned int(8)[16] KID;
  }
  unsigned int (32) sample_count;
  {
   unsigned int(IV_size) InitializationVector;
   if (flags & 0x000002)
   {
    unsigned int(16) NumberOfEntries;
    {
     unsigned int(16) BytesOfClearData;
     unsigned int(32) BytesOfEncryptedData;
    } [ NumberOfEntries]
   }
  }[ sample_count ]
 }
 


Nested Class Summary
 
Nested classes/interfaces inherited from class com.googlecode.mp4parser.boxes.AbstractSampleEncryptionBox
AbstractSampleEncryptionBox.Entry
 
Field Summary
 
Fields inherited from class com.coremedia.iso.boxes.AbstractBox
deadBytes, type
 
Constructor Summary
PiffSampleEncryptionBox()
          Creates a AbstractSampleEncryptionBox for non-h264 tracks.
 
Method Summary
 byte[] getUserType()
           
 
Methods inherited from class com.googlecode.mp4parser.boxes.AbstractSampleEncryptionBox
_parseDetails, createEntry, equals, getAlgorithmId, getBox, getContent, getContentSize, getEntries, getEntrySizes, getIvSize, getKid, getOffsetToFirstIV, getSampleCount, hashCode, isOverrideTrackEncryptionBoxParameters, isSubSampleEncryption, setAlgorithmId, setEntries, setIvSize, setKid, setOverrideTrackEncryptionBoxParameters, setSubSampleEncryption
 
Methods inherited from class com.coremedia.iso.boxes.AbstractFullBox
getFlags, getVersion, parseVersionAndFlags, setFlags, setVersion, writeVersionAndFlags
 
Methods inherited from class com.coremedia.iso.boxes.AbstractBox
getDeadBytes, getHeader, getIsoFile, getParent, getSize, getType, isParsed, parse, parseDetails, setDeadBytes, setParent, setUserType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.coremedia.iso.boxes.Box
getParent, getSize, getType, parse, setParent
 

Constructor Detail

PiffSampleEncryptionBox

public PiffSampleEncryptionBox()
Creates a AbstractSampleEncryptionBox for non-h264 tracks.

Method Detail

getUserType

public byte[] getUserType()
Overrides:
getUserType in class AbstractBox


Copyright © 2012. All Rights Reserved.