Suppress nullability warnings

PiperOrigin-RevId: 600891113
This commit is contained in:
timpeut 2024-01-23 13:31:49 -08:00 committed by Copybara-Service
parent 35ac46b92e
commit 9c1aaa7c43
1 changed files with 4 additions and 2 deletions

View File

@ -139,11 +139,13 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
throws VideoFrameProcessingException {
if (Util.SDK_INT >= 26) {
checkState(
!bitmap.getConfig().equals(Bitmap.Config.RGBA_F16), UNSUPPORTED_IMAGE_CONFIGURATION);
!checkNotNull(bitmap.getConfig()).equals(Bitmap.Config.RGBA_F16),
UNSUPPORTED_IMAGE_CONFIGURATION);
}
if (Util.SDK_INT >= 33) {
checkState(
!bitmap.getConfig().equals(Bitmap.Config.RGBA_1010102), UNSUPPORTED_IMAGE_CONFIGURATION);
!checkNotNull(bitmap.getConfig()).equals(Bitmap.Config.RGBA_1010102),
UNSUPPORTED_IMAGE_CONFIGURATION);
}
this.useHdr = useHdr;
checkArgument(inStreamOffsetsUs.hasNext(), "Bitmap queued but no timestamps provided.");