Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112454

Android-Multimedia know issue with pixel format need to be documented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.5.1
    • 6.5.1
    • Documentation
    • None
    • Android

    Description

      Case with different pixelFormat chosen and different received is know issue on Android side. But documentation is missing:

       

      It is happening when using ffmpeg backend - on Android.

      In Multimedia, when we are using camera, we can request a YUV420P pixelFormat which will be translated in Android to ImageFormat.YUV_420_888. Then the camera2 api will return YUV_420_888 Images as frames.
      The issue is the ImageFormat.YUV_420_888 is 
      "This format is a generic YCbCr format, capable of describing any 4:2:0 chroma-subsampled planar or semiplanar buffer (but not fully interleaved), with 8 bits per color sample."

      Being a generic format, we can receive either a fully planar 4:2:0 - YUV420P or a semiplanar NV12/NV21. That will depend on the codec implemented in the device, so device-dependent.

      So at the end:

      When someone request  YUV420P format - he can receive YUV420P or NV12/NV21 on Android with ffmpeg backend

      Information about this known issue should be added to:
      https://doc.qt.io/qt-6/qcameraformat.html

      or

      https://doc.qt.io/qt-6/qcamera.html#setCameraFormat

      FFmpeg was not included in installer for Android 6.5.0 version, so the documentation need to be updated for 6.5.1.

      Attachments

        Activity

          People

            nick_bennett Nicholas Bennett
            bartlomiejmoskal Bartlomiej Moskal
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: