Class SampleFlags
java.lang.Object
org.mp4parser.boxes.iso14496.part12.SampleFlags
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidgetContent(ByteBuffer os) byteintintintsample_depends_on takes one of the following four values:intsample_has_redundancy takes one of the following four values:intsample_is_depended_on takes one of the following four values:intinthashCode()booleanvoidsetIsLeading(byte isLeading) voidsetReserved(int reserved) voidsetSampleDegradationPriority(int sampleDegradationPriority) voidsetSampleDependsOn(int sampleDependsOn) sample_depends_on takes one of the following four values:voidsetSampleHasRedundancy(int sampleHasRedundancy) sample_has_redundancy takes one of the following four values:voidsetSampleIsDependedOn(int sampleIsDependedOn) sample_is_depended_on takes one of the following four values:voidsetSampleIsDifferenceSample(boolean sampleIsDifferenceSample) voidsetSamplePaddingValue(int samplePaddingValue) toString()
-
Constructor Details
-
SampleFlags
public SampleFlags() -
SampleFlags
-
-
Method Details
-
getContent
-
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
-
equals
-
hashCode
public int hashCode()
-