FileDocCategorySizeDatePackage
ExtensionDescriptor.javaAPI Docmp4parser 1.0-RC-172973Wed Dec 19 20:10:37 GMT 2012com.googlecode.mp4parser.boxes.mp4.objectdescriptors

ExtensionDescriptor

public class ExtensionDescriptor extends BaseDescriptor
abstract class ExtensionDescriptor extends BaseDescriptor : bit(8) tag = ExtensionProfileLevelDescrTag, ExtDescrTagStartRange .. ExtDescrTagEndRange { // empty. To be filled by classes extending this class. }

Fields Summary
private static Logger
log
byte[]
bytes
Constructors Summary
Methods Summary
static int[]allTags()



    //todo: add this better to the tags list?
    //14496-1:2010 p.20:
    //0x6A-0xBF Reserved for ISO use
    //0xC0-0xFE User private
    //
    //ExtDescrTagStartRange = 0x6A
    //ExtDescrTagEndRange = 0xFE
       
        int[] ints = new int[0xFE - 0x6A];

        for (int i = 0x6A; i < 0xFE; i++) {
            final int pos = i - 0x6A;
            log.finest("pos:" + pos);
            ints[pos] = i;
        }
        return ints;
    
public voidparseDetail(java.nio.ByteBuffer bb)

        if (getSize() > 0) {
            bytes = new byte[sizeOfInstance];
            bb.get(bytes);
        }
    
public java.lang.StringtoString()

        final StringBuilder sb = new StringBuilder();
        sb.append("ExtensionDescriptor");
        sb.append("{bytes=").append(bytes == null ? "null" : Hex.encodeHex(bytes));
        sb.append('}");
        return sb.toString();