public static EditListBox createEditListBox(List<Edit> edits) { EditListBox elst = new EditListBox(new Header(fourcc())); elst.edits = edits; return elst; }
public List<Edit> getEdits() { EditListBox editListBox = Box.findFirst(box, EditListBox.class, "edts", "elst"); if (editListBox != null) return editListBox.getEdits(); return null; }
public EditListBox() { this(new Header(fourcc())); }
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 putEdits(TrakBox trak) { if (edits != null) { NodeBox edts = new NodeBox(new Header("edts")); edts.add(EditListBox.createEditListBox(edits)); trak.add(edts); } }
public EditListBox() { this(new Header(fourcc())); }
protected void putEdits(TrakBox trak) { if (edits != null) { NodeBox edts = new NodeBox(new Header("edts")); edts.add(new EditListBox(edits)); trak.add(edts); } }
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 List<Edit> getEdits() { EditListBox editListBox = Box.findFirst(box, EditListBox.class, "edts", "elst"); if (editListBox != null) return editListBox.getEdits(); return null; }
mappings.put(TrackHeaderBox.fourcc(), TrackHeaderBox.class); mappings.put("edts", NodeBox.class); mappings.put(EditListBox.fourcc(), EditListBox.class); mappings.put(MediaBox.fourcc(), MediaBox.class); mappings.put(MediaHeaderBox.fourcc(), MediaHeaderBox.class);
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 List<Edit> getEdits() { EditListBox elst = findFirst(this, EditListBox.class, "edts", "elst"); if (elst == null) return null; return elst.getEdits(); }
mappings.put(TrackHeaderBox.fourcc(), TrackHeaderBox.class); mappings.put("edts", NodeBox.class); mappings.put(EditListBox.fourcc(), EditListBox.class); mappings.put(MediaBox.fourcc(), MediaBox.class); mappings.put(MediaHeaderBox.fourcc(), MediaHeaderBox.class);
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 List<Edit> getEdits() { EditListBox elst = findFirst(this, EditListBox.class, "edts", "elst"); if (elst == null) return null; return elst.getEdits(); }
mappings.put(TrackHeaderBox.fourcc(), TrackHeaderBox.class); mappings.put("edts", NodeBox.class); mappings.put(EditListBox.fourcc(), EditListBox.class); mappings.put(MediaBox.fourcc(), MediaBox.class); mappings.put(MediaHeaderBox.fourcc(), MediaHeaderBox.class);
public List<Edit> getEdits() { EditListBox elst = NodeBox.findFirstPath(this, EditListBox.class, Box.path("edts.elst")); if (elst == null) return null; return elst.getEdits(); }
public List<Edit> getEdits() { EditListBox editListBox = NodeBox.findFirstPath(box, EditListBox.class, Box.path("edts.elst")); if (editListBox != null) return editListBox.getEdits(); return null; }