mirror of
https://github.com/samsonjs/media.git
synced 2026-04-01 10:35:48 +00:00
Disable texture input when input is HDR
Verified by running all the tests in mh (excluding the analysis tests) on a pixel 7 pro PiperOrigin-RevId: 530655237
This commit is contained in:
parent
dc4c6daf0b
commit
00d5031dcf
1 changed files with 5 additions and 5 deletions
|
|
@ -572,12 +572,12 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
|
|||
|
||||
inputSwitcher.registerInput(INPUT_TYPE_SURFACE);
|
||||
if (!ColorInfo.isTransferHdr(inputColorInfo)) {
|
||||
// HDR bitmaps are not supported.
|
||||
// HDR bitmap or texture input is not supported.
|
||||
inputSwitcher.registerInput(INPUT_TYPE_BITMAP);
|
||||
}
|
||||
if (inputColorInfo.colorTransfer != C.COLOR_TRANSFER_SRGB) {
|
||||
// Image and textureId concatenation not supported.
|
||||
inputSwitcher.registerInput(INPUT_TYPE_TEXTURE_ID);
|
||||
if (inputColorInfo.colorTransfer != C.COLOR_TRANSFER_SRGB) {
|
||||
// Image and textureId concatenation not supported.
|
||||
inputSwitcher.registerInput(INPUT_TYPE_TEXTURE_ID);
|
||||
}
|
||||
}
|
||||
inputSwitcher.setDownstreamShaderProgram(effectsShaderPrograms.get(0));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue