Methods Summary |
---|
public boolean | equals(java.lang.Object o)
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RateShareEntry that = (RateShareEntry) o;
if (discardPriority != that.discardPriority) {
return false;
}
if (maximumBitrate != that.maximumBitrate) {
return false;
}
if (minimumBitrate != that.minimumBitrate) {
return false;
}
if (operationPointCut != that.operationPointCut) {
return false;
}
if (targetRateShare != that.targetRateShare) {
return false;
}
if (entries != null ? !entries.equals(that.entries) : that.entries != null) {
return false;
}
return true;
|
public java.nio.ByteBuffer | get()
ByteBuffer buf = ByteBuffer.allocate(operationPointCut == 1?13:(operationPointCut * 6 + 11 ));
buf.putShort(operationPointCut);
if (operationPointCut == 1) {
buf.putShort(targetRateShare );
} else {
for (Entry entry : entries) {
buf.putInt(entry.getAvailableBitrate());
buf.putShort(entry.getTargetRateShare());
}
}
buf.putInt(maximumBitrate);
buf.putInt(minimumBitrate);
IsoTypeWriter.writeUInt8(buf, discardPriority);
buf.rewind();
return buf;
|
public short | getDiscardPriority()
return discardPriority;
|
public java.util.List | getEntries()
return entries;
|
public int | getMaximumBitrate()
return maximumBitrate;
|
public int | getMinimumBitrate()
return minimumBitrate;
|
public short | getOperationPointCut()
return operationPointCut;
|
public short | getTargetRateShare()
return targetRateShare;
|
public int | hashCode()
int result = (int) operationPointCut;
result = 31 * result + (int) targetRateShare;
result = 31 * result + (entries != null ? entries.hashCode() : 0);
result = 31 * result + maximumBitrate;
result = 31 * result + minimumBitrate;
result = 31 * result + (int) discardPriority;
return result;
|
public void | parse(java.nio.ByteBuffer byteBuffer)
operationPointCut = byteBuffer.getShort();
if (operationPointCut == 1) {
targetRateShare = byteBuffer.getShort();
} else {
int entriesLeft = operationPointCut;
while (entriesLeft-- > 0) {
entries.add(new Entry(l2i(IsoTypeReader.readUInt32(byteBuffer)), byteBuffer.getShort()));
}
}
maximumBitrate = l2i(IsoTypeReader.readUInt32(byteBuffer));
minimumBitrate = l2i(IsoTypeReader.readUInt32(byteBuffer));
discardPriority = (short) IsoTypeReader.readUInt8(byteBuffer);
|
public void | setDiscardPriority(short discardPriority)
this.discardPriority = discardPriority;
|
public void | setEntries(java.util.List entries)
this.entries = entries;
|
public void | setMaximumBitrate(int maximumBitrate)
this.maximumBitrate = maximumBitrate;
|
public void | setMinimumBitrate(int minimumBitrate)
this.minimumBitrate = minimumBitrate;
|
public void | setOperationPointCut(short operationPointCut)
this.operationPointCut = operationPointCut;
|
public void | setTargetRateShare(short targetRateShare)
this.targetRateShare = targetRateShare;
|