FileDocCategorySizeDatePackage
RollRecoveryEntry.javaAPI Docmp4parser 1.0-RC-172417Wed Dec 19 20:10:37 GMT 2012com.googlecode.mp4parser.boxes.mp4.samplegrouping

RollRecoveryEntry

public class RollRecoveryEntry extends GroupEntry
roll_distance is a signed integer that gives the number of samples that must be decoded in order for a sample to be decoded correctly. A positive value indicates the number of samples after the sample that is a group member that must be decoded such that at the last of these recovery is complete, i.e. the last sample is correct. A negative value indicates the number of samples before the sample that is a group member that must be decoded in order for recovery to be complete at the marked sample. The value zero must not be used; the sync sample table documents random access points for which no recovery roll is needed.

Fields Summary
public static final String
TYPE
private short
rollDistance
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object o)

        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        RollRecoveryEntry entry = (RollRecoveryEntry) o;

        if (rollDistance != entry.rollDistance) {
            return false;
        }

        return true;
    
public java.nio.ByteBufferget()

        ByteBuffer content = ByteBuffer.allocate(2);
        content.putShort(rollDistance);
        content.rewind();
        return content;
    
public shortgetRollDistance()


       
        return rollDistance;
    
public inthashCode()

        return (int) rollDistance;
    
public voidparse(java.nio.ByteBuffer byteBuffer)

        rollDistance = byteBuffer.getShort();
    
public voidsetRollDistance(short rollDistance)

        this.rollDistance = rollDistance;