RFR: 8336277: Colors are incorrect when playing H.265/HEVC on Windows 11

Alexander Matveev almatvee at openjdk.org
Wed Jul 31 03:48:48 UTC 2024


- For some reason H.265 decoder on Windows accepts proposed media format without error, but does not actually change output format.
- For 8-bit we proposed IYUV, but decoder outputs NV12. For 10-bit we proposed NV12, but decoder outputs P010. As result colors where not correct during rendering.
- To detect such condition we will propose media format and then read it back to determine actual decoder output format.
- Added color conversion for P010 format, which was missing. P010 conversion is done in two stages (P010->NV12->IYUV), since color converter does not support direct conversion from P010 to IYUV.
- Added debug trace for formats. Disabled by default.

-------------

Commit messages:
 - 8336277: Colors are incorrect when playing H.265/HEVC on Windows 11

Changes: https://git.openjdk.org/jfx/pull/1525/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1525&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8336277
  Stats: 628 lines in 2 files changed: 467 ins; 61 del; 100 mod
  Patch: https://git.openjdk.org/jfx/pull/1525.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1525/head:pull/1525

PR: https://git.openjdk.org/jfx/pull/1525


More information about the openjfx-dev mailing list