mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Use super class for toGlProcessor in RgbFilter.
PiperOrigin-RevId: 472405147
(cherry picked from commit c0ad9f51fa)
This commit is contained in:
parent
e61c876548
commit
6ed69e3d4f
1 changed files with 1 additions and 6 deletions
|
|
@ -20,7 +20,6 @@ import static com.google.android.exoplayer2.util.Assertions.checkState;
|
|||
|
||||
import android.content.Context;
|
||||
import androidx.media3.common.FrameProcessingException;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
|
||||
/** Provides common color filters. */
|
||||
|
|
@ -93,10 +92,6 @@ public class RgbFilter implements RgbMatrix {
|
|||
public MatrixTransformationProcessor toGlTextureProcessor(Context context, boolean useHdr)
|
||||
throws FrameProcessingException {
|
||||
checkForConsistentHdrSetting(useHdr);
|
||||
return MatrixTransformationProcessor.create(
|
||||
context,
|
||||
/* matrixTransformations= */ ImmutableList.of(),
|
||||
/* rgbMatrices= */ ImmutableList.of(this),
|
||||
useHdr);
|
||||
return RgbMatrix.super.toGlTextureProcessor(context, useHdr);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue