mirror of
https://github.com/androidx/media.git
synced 2025-05-12 18:19:50 +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 {
|
throws VideoFrameProcessingException {
|
||||||
if (Util.SDK_INT >= 26) {
|
if (Util.SDK_INT >= 26) {
|
||||||
checkState(
|
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) {
|
if (Util.SDK_INT >= 33) {
|
||||||
checkState(
|
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;
|
this.useHdr = useHdr;
|
||||||
checkArgument(inStreamOffsetsUs.hasNext(), "Bitmap queued but no timestamps provided.");
|
checkArgument(inStreamOffsetsUs.hasNext(), "Bitmap queued but no timestamps provided.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user