Mobile-SDK-Android-V5
Mobile-SDK-Android-V5 copied to clipboard
YUV frames have distorted colors after rebooting M350
YUV frames retrieved using MediaDataCenter CameraStreamManager
have color distortions, which are delineated below.
This is how we're retrieving the YUV frames.
MediaDataCenter.getInstance().cameraStreamManager.addFrameListener(
ComponentIndexType.LEFT_OR_MAIN,
FrameFormat.YUV420_888,
this
)
override fun onFrame(
frameData: ByteArray,
offset: Int,
length: Int,
width: Int,
height: Int,
format: FrameFormat
) {
if (frameData.size < width * height) return
// process the byte array
processor.onFrame(frameData, width, height + offset, formaț, isDirect = true)
}
Steps to Reproduce:
- boot up M350 and connect it to the RC Plus
- Run the MSDK sample app
- click on testing tools
- click on Multi-Video Decoding (CameraStreamManager - New)
- w/o relaunching the app, reboot the M350 at least 3 x's.
- capture the image.
- examine the image - you will see that the colors do not align correctly.