Plumb colorspace and color range into MediaCodecDecoderRenderer

This commit is contained in:
Cameron Gutman
2022-10-13 00:51:15 -05:00
parent 2cbc94e51d
commit d0432de981
6 changed files with 47 additions and 4 deletions

View File

@@ -326,6 +326,14 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer implements C
return false;
}
public int getPreferredColorSpace() {
return MoonBridge.COLORSPACE_REC_601;
}
public int getPreferredColorRange() {
return MoonBridge.COLOR_RANGE_LIMITED;
}
public void notifyVideoForeground() {
foreground = true;
}