mirror of
https://github.com/androidx/media.git
synced 2025-05-11 17:49:52 +08:00
Suppress nullability warnings
PiperOrigin-RevId: 600891113 (cherry picked from commit 9c1aaa7c4341db3de4c59c3068748bd2e4e76959)
This commit is contained in:
parent
733c982a21
commit
be0d531857
@ -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.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user