package com.mp4parser.streaming;

import java.nio.ByteBuffer;

/**
 *
 */
public interface StreamingSample {
    ByteBuffer getContent();

    /**
     * Gets the sample dependency as 4 times 2 bits:
     * <ul>
     * <li>unsigned int(2) is_leading;</li>
     * <li>unsigned int(2) sample_depends_on;</li>
     * <li>unsigned int(2) sample_is_depended_on; </li>
     * <li>unsigned int(2) sample_has_redundancy;</li>
     * </ul>
     * <pre>is_leading</pre> takes one of the following four values:
     * 0: the leading nature of this sample is unknown;<br/>
     * 1: this sample is a leading sample that hasa dependency before the referenced I-picture (and is therefore not decodable);<br/>
     * 2: this sample is not a leading sample; <br/>
     * 3: this sample is a leading sample that has no dependency before the referenced I-picture (and is  therefore decodable);<br/>
     * <pre>sample_depends_on</pre>takes one of the following four values:
     * 0: the dependency of this sample is unknown; <br/>
     * 1: this sample does depend on others (not an I picture);<br/>
     * 2: this sample does not depend on others (I picture); <br/>
     * 3: reserved <br/>
     * <pre>sample_is_depended_on</pre> takes one of the following four values:
     * 0: the dependency of other samples on this sample is unknown;<br/>
     * 1: other samples may depend on this one (not disposable); <br/>
     * 2: no other sample depends on this one (disposable); <br/>
     * 3: reserved<br/>
     * <pre>sample_has_redundancy</pre> takes one of the following four values:
     * 0: it is unknown whether there is redundant coding in this sample;<br/>
     * 1: there is redundant coding in this sample; <br/>
     * 2: there is no redundant coding in this sample; <br/>
     * 3: reserved <br/>
     */
    byte getSampleDependency();

    /**
     * This value provides the offset between decoding time and composition time. The offset is expressed as
     * signed long such that CT(n) = DT(n) + CTTS(n). This method is
     *
     * @return offset between decoding time and composition time.
     */
    long getCompositionTimeOffset();

    long getPresentationTime();

}

@@ -543,33 +543,32 @@
 e is unknown;%3Cbr
-/
 %3E%0A     * 1: this
@@ -676,33 +676,32 @@
 t decodable);%3Cbr
-/
 %3E%0A     * 2: this
@@ -728,33 +728,32 @@
 ding sample; %3Cbr
-/
 %3E%0A     * 3: this
@@ -864,25 +864,24 @@
 codable);%3Cbr
-/
 %3E%0A     * %3Cpr
@@ -996,25 +996,24 @@
 unknown; %3Cbr
-/
 %3E%0A     * 1: 
@@ -1064,25 +1064,24 @@
 picture);%3Cbr
-/
 %3E%0A     * 2: 
@@ -1130,25 +1130,24 @@
 icture); %3Cbr
-/
 %3E%0A     * 3: 
@@ -1150,33 +1150,32 @@
  3: reserved %3Cbr
-/
 %3E%0A     * %3Cpre%3Esa
@@ -1307,25 +1307,24 @@
  unknown;%3Cbr
-/
 %3E%0A     * 1: 
@@ -1373,33 +1373,32 @@
 disposable); %3Cbr
-/
 %3E%0A     * 2: no o
@@ -1442,25 +1442,24 @@
 osable); %3Cbr
-/
 %3E%0A     * 3: 
@@ -1469,17 +1469,16 @@
 erved%3Cbr
-/
 %3E%0A     *
@@ -1627,17 +1627,16 @@
 mple;%3Cbr
-/
 %3E%0A     *
@@ -1676,33 +1676,32 @@
 this sample; %3Cbr
-/
 %3E%0A     * 2: ther
@@ -1740,25 +1740,24 @@
  sample; %3Cbr
-/
 %3E%0A     * 3: 
@@ -1768,17 +1768,16 @@
 rved %3Cbr
-/
 %3E%0A     *

remove invalid javadoc