color: input colorspace auto-detection, HDR export tags, LGG/white balance nodes, more LUT formats, waveform parade

- media color primaries/transfer tags now flow from the FFmpeg probe
  through VideoParams into Footage::get_colorspace_to_use(); precedence
  is user override > media tags > project default
- export nclc tags derive from the output colorspace (PQ/HLG/BT.2020,
  P3, sRGB, Rec.601, Rec.709) instead of hardcoded BT.709
- new OCIO Color Grading (Log) node (lift/gamma/gain) and White Balance
  node (kelvin temperature + tint, HDR-safe)
- LUT whitelist extended to 9 OCIO-supported formats
- waveform scope gains an RGB parade mode (GPU and software paths)
- tests updated for the new colorspace precedence
This commit is contained in:
2026-07-19 21:45:51 +08:00
parent a7ddc0f114
commit 76f5c2a65b
37 changed files with 1449 additions and 40 deletions
+12 -2
View File
@@ -29,6 +29,17 @@
namespace olive
{
const QStringList &LUTLibrary::supported_extensions()
{
// LUT formats OCIO FileTransform can load
static const QStringList extensions = {
QStringLiteral("cube"), QStringLiteral("3dl"), QStringLiteral("spi1d"),
QStringLiteral("spi3d"), QStringLiteral("spimtx"), QStringLiteral("csp"),
QStringLiteral("clf"), QStringLiteral("ctf"), QStringLiteral("cub"),
};
return extensions;
}
bool LUTLibrary::is_supported_extension(const QString &suffix)
{
QString s = suffix;
@@ -36,8 +47,7 @@ bool LUTLibrary::is_supported_extension(const QString &suffix)
s.remove(0, 1);
}
const QString lower = s.toLower();
return lower == QStringLiteral("cube") || lower == QStringLiteral("3dl");
return supported_extensions().contains(s.toLower());
}
QStringList LUTLibrary::get_directories()