Minor code move for readability

PiperOrigin-RevId: 631922318
This commit is contained in:
claincly 2024-05-08 14:16:45 -07:00 committed by Copybara-Service
parent 8b14d71ff0
commit d977eab5f1

View file

@ -182,20 +182,6 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
super.flush();
}
/** Information needed to generate all the frames associated with a specific {@link Bitmap}. */
private static final class BitmapFrameSequenceInfo {
public final Bitmap bitmap;
private final FrameInfo frameInfo;
private final TimestampIterator inStreamOffsetsUs;
public BitmapFrameSequenceInfo(
Bitmap bitmap, FrameInfo frameInfo, TimestampIterator inStreamOffsetsUs) {
this.bitmap = bitmap;
this.frameInfo = frameInfo;
this.inStreamOffsetsUs = inStreamOffsetsUs;
}
}
private void updateCurrentGlTextureInfo(FrameInfo frameInfo, Bitmap bitmap)
throws VideoFrameProcessingException {
int currentTexId;
@ -218,4 +204,18 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
throw VideoFrameProcessingException.from(e);
}
}
/** Information needed to generate all the frames associated with a specific {@link Bitmap}. */
private static final class BitmapFrameSequenceInfo {
public final Bitmap bitmap;
private final FrameInfo frameInfo;
private final TimestampIterator inStreamOffsetsUs;
public BitmapFrameSequenceInfo(
Bitmap bitmap, FrameInfo frameInfo, TimestampIterator inStreamOffsetsUs) {
this.bitmap = bitmap;
this.frameInfo = frameInfo;
this.inStreamOffsetsUs = inStreamOffsetsUs;
}
}
}