protected void putEdits(TrakBox trak) { if (edits != null) { NodeBox edts = new NodeBox(new Header("edts")); edts.add(new EditListBox(edits)); trak.add(edts); } }
protected void putName(TrakBox trak) { if (name != null) { NodeBox udta = new NodeBox(new Header("udta")); udta.add(new NameBox(name)); trak.add(udta); } }
protected void putEdits(TrakBox trak) { if (edits != null) { NodeBox edts = new NodeBox(new Header("edts")); edts.add(EditListBox.createEditListBox(edits)); trak.add(edts); } }
protected void putName(TrakBox trak) { if (name != null) { NodeBox udta = new NodeBox(new Header("udta")); udta.add(NameBox.createNameBox(name)); trak.add(udta); } }
protected void putEdits(TrakBox trak) { if (edits != null) { NodeBox edts = new NodeBox(new Header("edts")); edts.add(new EditListBox(edits)); trak.add(edts); } }
protected void putName(TrakBox trak) { if (name != null) { NodeBox udta = new NodeBox(new Header("udta")); udta.add(new NameBox(name)); trak.add(udta); } }
public void setClipRect(short x, short y, short width, short height) { NodeBox clip = NodeBox.findFirst(this, NodeBox.class, "clip"); if (clip == null) { clip = new NodeBox(new Header("clip")); add(clip); } clip.replace("crgn", ClipRegionBox.createClipRegionBox(x, y, width, height)); }
public void setClipRect(short x, short y, short width, short height) { NodeBox clip = NodeBox.findFirst(this, NodeBox.class, "clip"); if (clip == null) { clip = new NodeBox(new Header("clip")); add(clip); } clip.replace("crgn", new ClipRegionBox(x, y, width, height)); }
public void setClipRect(short x, short y, short width, short height) { NodeBox clip = NodeBox.findFirst(this, NodeBox.class, "clip"); if (clip == null) { clip = new NodeBox(new Header("clip")); add(clip); } clip.replace("crgn", new ClipRegionBox(x, y, width, height)); }
public void setName(String string) { NodeBox udta = findFirst(this, NodeBox.class, "udta"); if (udta == null) { udta = new NodeBox(new Header("udta")); this.add(udta); } udta.removeChildren("name"); udta.add(new NameBox(string)); }
public void setName(String string) { NodeBox udta = NodeBox.findFirst(this, NodeBox.class, "udta"); if (udta == null) { udta = new NodeBox(new Header("udta")); this.add(udta); } udta.removeChildren("name"); udta.add(NameBox.createNameBox(string)); }
public void setName(String string) { NodeBox udta = findFirst(this, NodeBox.class, "udta"); if (udta == null) { udta = new NodeBox(new Header("udta")); this.add(udta); } udta.removeChildren("name"); udta.add(new NameBox(string)); }
public void setEdits(List<Edit> edits) { NodeBox edts = NodeBox.findFirst(this, NodeBox.class, "edts"); if (edts == null) { edts = new NodeBox(new Header("edts")); this.add(edts); } edts.removeChildren("elst"); edts.add(EditListBox.createEditListBox(edits)); getTrackHeader().setDuration(getEditedDuration(this)); }
public void setEdits(List<Edit> edits) { NodeBox edts = findFirst(this, NodeBox.class, "edts"); if (edts == null) { edts = new NodeBox(new Header("edts")); this.add(edts); } edts.removeChildren("elst"); edts.add(new EditListBox(edits)); getTrackHeader().setDuration(getEditedDuration(this)); }
public void setEdits(List<Edit> edits) { NodeBox edts = findFirst(this, NodeBox.class, "edts"); if (edts == null) { edts = new NodeBox(new Header("edts")); this.add(edts); } edts.removeChildren("elst"); edts.add(new EditListBox(edits)); getTrackHeader().setDuration(getEditedDuration(this)); }
public void tapt(TrakBox trak) { Size dd = getDisplayDimensions(); if (type == VIDEO) { NodeBox tapt = new NodeBox(new Header("tapt")); tapt.add(ClearApertureBox.createClearApertureBox(dd.getWidth(), dd.getHeight())); tapt.add(ProductionApertureBox.createProductionApertureBox(dd.getWidth(), dd.getHeight())); tapt.add(EncodedPixelBox.createEncodedPixelBox(dd.getWidth(), dd.getHeight())); trak.add(tapt); } }
public void tapt(TrakBox trak) { Size dd = getDisplayDimensions(); if (type == VIDEO) { NodeBox tapt = new NodeBox(new Header("tapt")); tapt.add(new ClearApertureBox(dd.getWidth(), dd.getHeight())); tapt.add(new ProductionApertureBox(dd.getWidth(), dd.getHeight())); tapt.add(new EncodedPixelBox(dd.getWidth(), dd.getHeight())); trak.add(tapt); } }
public void setAperture(Size sar, Size dar) { removeChildren("tapt"); NodeBox tapt = new NodeBox(new Header("tapt")); tapt.add(new ClearApertureBox(dar.getWidth(), dar.getHeight())); tapt.add(new ProductionApertureBox(dar.getWidth(), dar.getHeight())); tapt.add(new EncodedPixelBox(sar.getWidth(), sar.getHeight())); add(tapt); }
public void setAperture(Size sar, Size dar) { removeChildren("tapt"); NodeBox tapt = new NodeBox(new Header("tapt")); tapt.add(ClearApertureBox.createClearApertureBox(dar.getWidth(), dar.getHeight())); tapt.add(ProductionApertureBox.createProductionApertureBox(dar.getWidth(), dar.getHeight())); tapt.add(EncodedPixelBox.createEncodedPixelBox(sar.getWidth(), sar.getHeight())); add(tapt); }
public void setAperture(Size sar, Size dar) { removeChildren("tapt"); NodeBox tapt = new NodeBox(new Header("tapt")); tapt.add(new ClearApertureBox(dar.getWidth(), dar.getHeight())); tapt.add(new ProductionApertureBox(dar.getWidth(), dar.getHeight())); tapt.add(new EncodedPixelBox(sar.getWidth(), sar.getHeight())); add(tapt); }