FileDocCategorySizeDatePackage
VideoMediaHeaderBox.javaAPI Docmp4parser 1.0-RC-172420Wed Dec 19 20:10:38 GMT 2012com.coremedia.iso.boxes

VideoMediaHeaderBox

public class VideoMediaHeaderBox extends AbstractMediaHeaderBox
The video media header contains general presentation information, independent of the coding, for video media. Note that the flags field has the value 1.

Fields Summary
private int
graphicsmode
private int[]
opcolor
public static final String
TYPE
Constructors Summary
public VideoMediaHeaderBox()


      
        super(TYPE);
        setFlags(1); // 1 is default.
    
Methods Summary
public void_parseDetails(java.nio.ByteBuffer content)

        parseVersionAndFlags(content);
        graphicsmode = IsoTypeReader.readUInt16(content);
        opcolor = new int[3];
        for (int i = 0; i < 3; i++) {
            opcolor[i] = IsoTypeReader.readUInt16(content);
        }
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        writeVersionAndFlags(byteBuffer);
        IsoTypeWriter.writeUInt16(byteBuffer, graphicsmode);
        for (int anOpcolor : opcolor) {
            IsoTypeWriter.writeUInt16(byteBuffer, anOpcolor);
        }
    
protected longgetContentSize()

        return 12;
    
public intgetGraphicsmode()

        return graphicsmode;
    
public int[]getOpcolor()

        return opcolor;
    
public voidsetGraphicsmode(int graphicsmode)

        this.graphicsmode = graphicsmode;
    
public voidsetOpcolor(int[] opcolor)

        this.opcolor = opcolor;
    
public java.lang.StringtoString()

        return "VideoMediaHeaderBox[graphicsmode=" + getGraphicsmode() + ";opcolor0=" + getOpcolor()[0] + ";opcolor1=" + getOpcolor()[1] + ";opcolor2=" + getOpcolor()[2] + "]";