Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8337686

Add support for NV12 and P010 pixel formats

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • jfx25
    • jfx24
    • javafx
    • None

      This enhancement request is for Windows only. For now no need to support NV12 and P010 on other platforms.

      H.265 Media Foundation decoder only supports NV12 (for 8-bit video) and P010 (for 10-bit video and 4k 8-bit). Note: Usage of P010 for 8-bit 4k was noticed for some video files, not sure if it is default pixel format for decoder. Graphics only supports IYUV or YV12 for rendering. Media Foundation color converter can do NV12->IYUV and P010->NV12->IYUV. Such conversion adds CPU time especially for 4k videos with P010. I noticed ~15% CPU utilization for 4k with P010 on i7-10700.

      With JDK-8336277 we introduced dual color conversion P010->NV12->IYUV for 10-bits and 4k. NV12-IYUV was in place before for 10-bit only, but with JDK-8336277 it is for all 8-bit video upto 4k. Once NV12 and P010 support is added, unnecessary color conversion needs to be removed.

            almatvee Alexander Matveev
            almatvee Alexander Matveev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: