Class SampleFlags

java.lang.Object
org.mp4parser.boxes.iso14496.part12.SampleFlags

public class SampleFlags extends Object
bit(6) reserved=0; unsigned int(2) sample_depends_on; unsigned int(2) sample_is_depended_on; unsigned int(2) sample_has_redundancy; bit(3) sample_padding_value; bit(1) sample_is_difference_sample; // i.e. when 1 signals a non-key or non-sync sample unsigned int(16) sample_degradation_priority;
  • Constructor Details

    • SampleFlags

      public SampleFlags()
    • SampleFlags

      public SampleFlags(ByteBuffer bb)
  • Method Details

    • getContent

      public void getContent(ByteBuffer os)
    • getReserved

      public int getReserved()
    • setReserved

      public void setReserved(int reserved)
    • getIsLeading

      public byte getIsLeading()
    • setIsLeading

      public void setIsLeading(byte isLeading)
    • getSampleDependsOn

      public int getSampleDependsOn()
      sample_depends_on takes one of the following four values:
       0: the dependency of this sample is unknown;
       1: this sample does depend on others (not an I picture);
       2: this sample does not depend on others (I picture);
       3: reserved
       
      Returns:
      current depends_on level
    • setSampleDependsOn

      public void setSampleDependsOn(int sampleDependsOn)
      sample_depends_on takes one of the following four values:
       0: the dependency of this sample is unknown;
       1: this sample does depend on others (not an I picture);
       2: this sample does not depend on others (I picture);
       3: reserved
       
      Parameters:
      sampleDependsOn - new depends on value
    • getSampleIsDependedOn

      public int getSampleIsDependedOn()
      sample_is_depended_on takes one of the following four values:
       0: the dependency of other samples on this sample is unknown;
       1: other samples may depend on this one (not disposable);
       2: no other sample depends on this one (disposable);
       3: reserved
       
      Returns:
      current is_dependend_on level
    • setSampleIsDependedOn

      public void setSampleIsDependedOn(int sampleIsDependedOn)
      sample_is_depended_on takes one of the following four values:
       0: the dependency of other samples on this sample is unknown;
       1: other samples may depend on this one (not disposable);
       2: no other sample depends on this one (disposable);
       3: reserved
       
      Parameters:
      sampleIsDependedOn - new is_depends on value
    • getSampleHasRedundancy

      public int getSampleHasRedundancy()
      sample_has_redundancy takes one of the following four values:
       0: it is unknown whether there is redundant coding in this sample;
       1: there is redundant coding in this sample;
       2: there is no redundant coding in this sample;
       3: reserved
       
      Returns:
      current redundancy level
    • setSampleHasRedundancy

      public void setSampleHasRedundancy(int sampleHasRedundancy)
      sample_has_redundancy takes one of the following four values:
       0: it is unknown whether there is redundant coding in this sample;
       1: there is redundant coding in this sample;
       2: there is no redundant coding in this sample;
       3: reserved
       
      Parameters:
      sampleHasRedundancy - new redundancy level
    • getSamplePaddingValue

      public int getSamplePaddingValue()
    • setSamplePaddingValue

      public void setSamplePaddingValue(int samplePaddingValue)
    • isSampleIsDifferenceSample

      public boolean isSampleIsDifferenceSample()
    • setSampleIsDifferenceSample

      public void setSampleIsDifferenceSample(boolean sampleIsDifferenceSample)
    • getSampleDegradationPriority

      public int getSampleDegradationPriority()
    • setSampleDegradationPriority

      public void setSampleDegradationPriority(int sampleDegradationPriority)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object