49 lines
1.5 KiB
Java
49 lines
1.5 KiB
Java
package com.google.android.exoplayer2.metadata.scte35;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import c.i.a.c.i2.w;
|
|
public final class TimeSignalCommand extends SpliceCommand {
|
|
public static final Parcelable.Creator<TimeSignalCommand> CREATOR = new a();
|
|
public final long i;
|
|
public final long j;
|
|
|
|
public class a implements Parcelable.Creator<TimeSignalCommand> {
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
@Override // android.os.Parcelable.Creator
|
|
public TimeSignalCommand createFromParcel(Parcel parcel) {
|
|
return new TimeSignalCommand(parcel.readLong(), parcel.readLong(), null);
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object[]' to match base method */
|
|
@Override // android.os.Parcelable.Creator
|
|
public TimeSignalCommand[] newArray(int i) {
|
|
return new TimeSignalCommand[i];
|
|
}
|
|
}
|
|
|
|
public TimeSignalCommand(long j, long j2) {
|
|
this.i = j;
|
|
this.j = j2;
|
|
}
|
|
|
|
public TimeSignalCommand(long j, long j2, a aVar) {
|
|
this.i = j;
|
|
this.j = j2;
|
|
}
|
|
|
|
public static long a(w wVar, long j) {
|
|
long s2 = (long) wVar.s();
|
|
if ((128 & s2) != 0) {
|
|
return 8589934591L & ((((s2 & 1) << 32) | wVar.t()) + j);
|
|
}
|
|
return -9223372036854775807L;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeLong(this.i);
|
|
parcel.writeLong(this.j);
|
|
}
|
|
}
|