Class 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 Detail

      • SampleFlags

        public SampleFlags()
      • SampleFlags

        public SampleFlags​(ByteBuffer bb)
    • Method Detail

      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object