Investigate possibilities to improve performance of mfwrapper.
It was noticed that using TopoEdit (tool to build Media Foundation topologies) was able to play 4k H.265 media file with 50-60% CPU utilization, but when playing via JavaFX Media CPU utilization is 75-90%. When memcpy() of raw frames was disabled CPU utilization under JavaFX Media dropped to 60-70% including dual color conversion introduced withJDK-8336277. I think with JDK-8337686 and avoiding memcpy() of raw frames performance similar to TopoEdit can be achieved.
It was noticed that using TopoEdit (tool to build Media Foundation topologies) was able to play 4k H.265 media file with 50-60% CPU utilization, but when playing via JavaFX Media CPU utilization is 75-90%. When memcpy() of raw frames was disabled CPU utilization under JavaFX Media dropped to 60-70% including dual color conversion introduced with
- relates to
-
JDK-8336277 Colors are incorrect when playing H.265/HEVC on Windows 11
- Resolved
-
JDK-8337686 Add support for NV12 and P010 pixel formats
- Open