• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.googlecode.mp4parser.boxes.adobe;
2 
3 import com.coremedia.iso.boxes.Box;
4 import com.coremedia.iso.boxes.sampleentry.SampleEntry;
5 
6 import java.nio.ByteBuffer;
7 
8 /**
9  * Sample Entry as used for Action Message Format tracks.
10  */
11 public class ActionMessageFormat0SampleEntryBox extends SampleEntry {
ActionMessageFormat0SampleEntryBox()12     public ActionMessageFormat0SampleEntryBox() {
13         super("amf0");
14     }
15 
16     @Override
getContentSize()17     protected long getContentSize() {
18         long size = 8;
19         for (Box box : boxes) {
20             size += box.getSize();
21         }
22 
23         return size;
24     }
25 
26 
27     @Override
_parseDetails(ByteBuffer content)28     public void _parseDetails(ByteBuffer content) {
29         _parseReservedAndDataReferenceIndex(content);
30         _parseChildBoxes(content);
31     }
32 
33     @Override
getContent(ByteBuffer byteBuffer)34     protected void getContent(ByteBuffer byteBuffer) {
35         _writeReservedAndDataReferenceIndex(byteBuffer);
36         _writeChildBoxes(byteBuffer);
37     }
38 }
39