Mobile-SDK-Android-V5 icon indicating copy to clipboard operation
Mobile-SDK-Android-V5 copied to clipboard

YUV frames have distorted colors after rebooting M350

Open wooldridgetm opened this issue 5 months ago • 9 comments

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:

  1. boot up M350 and connect it to the RC Plus
  2. Run the MSDK sample app
  3. click on testing tools
  4. click on Multi-Video Decoding (CameraStreamManager - New)
  5. w/o relaunching the app, reboot the M350 at least 3 x's.
  6. capture the image.
  7. examine the image - you will see that the colors do not align correctly.

image image

wooldridgetm avatar Sep 03 '24 14:09 wooldridgetm