mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
52 lines
1 KiB
Java
52 lines
1 KiB
Java
|
package androidx.media3.decoder;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public abstract class Buffer {
|
||
|
private int flags;
|
||
|
|
||
|
public final void addFlag(int i) {
|
||
|
this.flags = i | this.flags;
|
||
|
}
|
||
|
|
||
|
public void clear() {
|
||
|
this.flags = 0;
|
||
|
}
|
||
|
|
||
|
public final void clearFlag(int i) {
|
||
|
this.flags = (~i) & this.flags;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final boolean getFlag(int i) {
|
||
|
return (this.flags & i) == i;
|
||
|
}
|
||
|
|
||
|
public final void setFlags(int i) {
|
||
|
this.flags = i;
|
||
|
}
|
||
|
|
||
|
public final boolean isDecodeOnly() {
|
||
|
return getFlag(Integer.MIN_VALUE);
|
||
|
}
|
||
|
|
||
|
public final boolean isFirstSample() {
|
||
|
return getFlag(134217728);
|
||
|
}
|
||
|
|
||
|
public final boolean isEndOfStream() {
|
||
|
return getFlag(4);
|
||
|
}
|
||
|
|
||
|
public final boolean isKeyFrame() {
|
||
|
return getFlag(1);
|
||
|
}
|
||
|
|
||
|
public final boolean isLastSample() {
|
||
|
return getFlag(536870912);
|
||
|
}
|
||
|
|
||
|
public final boolean hasSupplementalData() {
|
||
|
return getFlag(268435456);
|
||
|
}
|
||
|
}
|