M7.7: viewer and colour completion
View > Switch 3D View > Default, Split with New Locked Viewer, Use Display Color Management (sRGB/P3 display in Settings > Previews), Simulate Output (Rec. 709/2020, P3, sRGB, Linear, NTSC, PAL, Mac 1.8, Custom; Preserve RGB). Project Settings: Color Engine (OCIO built-in config with ACEScg/ACES2065-1 working spaces), HDR clip/compand/ tone map, output space incl. Rec. 2100 PQ/HLG (SMPTE ST 2084, BT.2100, BT.2408 reference white; GPU curves too), Time Display Feet + Frames (35mm/16mm) display and entry. OCIO effects read custom .ocio configs (YAML subset; Matrix/File/Exponent/Log/ LogAffine/CDL/Range/Group transforms, roles, displays/views). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8696d1e9ba
commit
9994f5d309
@@ -95,6 +95,62 @@ pub enum TimeDisplayStyle {
|
||||
#[default]
|
||||
Timecode,
|
||||
Frames,
|
||||
/// Feet + Frames, 35 mm film (16 frames per foot).
|
||||
Feet35,
|
||||
/// Feet + Frames, 16 mm film (40 frames per foot).
|
||||
Feet16,
|
||||
}
|
||||
|
||||
impl TimeDisplayStyle {
|
||||
/// Frames per foot of the Feet + Frames styles.
|
||||
pub fn frames_per_foot(self) -> Option<i64> {
|
||||
match self {
|
||||
TimeDisplayStyle::Feet35 => Some(16),
|
||||
TimeDisplayStyle::Feet16 => Some(40),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
pub fn id(self) -> &'static str {
|
||||
match self {
|
||||
TimeDisplayStyle::Timecode => "timecode",
|
||||
TimeDisplayStyle::Frames => "frames",
|
||||
TimeDisplayStyle::Feet35 => "feet35",
|
||||
TimeDisplayStyle::Feet16 => "feet16",
|
||||
}
|
||||
}
|
||||
pub fn parse(s: &str) -> Option<TimeDisplayStyle> {
|
||||
let k: String = s.chars().filter(|c| c.is_ascii_alphanumeric()).collect::<String>().to_ascii_lowercase();
|
||||
match k.as_str() {
|
||||
"timecode" => Some(TimeDisplayStyle::Timecode),
|
||||
"frames" => Some(TimeDisplayStyle::Frames),
|
||||
"feet35" | "feetframes" | "feetandframes" | "feet35mm" | "35mm" | "feetframes35mm" => Some(TimeDisplayStyle::Feet35),
|
||||
"feet16" | "feet16mm" | "16mm" | "feetframes16mm" => Some(TimeDisplayStyle::Feet16),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Project Settings ▸ Color ▸ Color Engine.
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum ColorEngine {
|
||||
/// Built-in colour management (ICC-style working spaces).
|
||||
#[default]
|
||||
Adobe,
|
||||
/// OCIO managed, with the built-in configuration (ACES working spaces).
|
||||
Ocio,
|
||||
}
|
||||
|
||||
/// Project Settings ▸ Color ▸ HDR: how over-range (HDR) values reach a standard-dynamic-range
|
||||
/// display or output.
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum HdrMode {
|
||||
/// Values above 1.0 clip.
|
||||
#[default]
|
||||
Clip,
|
||||
/// Highlights above 80% are companded (an exponential knee) into the remaining range.
|
||||
Compand,
|
||||
/// Extended Reinhard tone mapping of luminance (white at 4.0).
|
||||
ToneMap,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
@@ -118,6 +174,16 @@ pub struct ProjectSettings {
|
||||
/// when a GPU adapter exists) or Mercury Software Only (`false`, the CPU compositor).
|
||||
#[serde(default = "yes")]
|
||||
pub gpu_acceleration: bool,
|
||||
/// Color Engine (Adobe-style built-in or OCIO with ACES working spaces).
|
||||
#[serde(default)]
|
||||
pub color_engine: ColorEngine,
|
||||
/// HDR handling for standard-dynamic-range output (display and renders).
|
||||
#[serde(default)]
|
||||
pub hdr: HdrMode,
|
||||
/// The space the top-level comp is output in (renders and the viewer's source). `None` =
|
||||
/// sRGB; Rec. 2100 PQ / HLG give HDR output.
|
||||
#[serde(default)]
|
||||
pub output_space: Option<ColorSpace>,
|
||||
}
|
||||
|
||||
impl Default for ProjectSettings {
|
||||
@@ -131,6 +197,9 @@ impl Default for ProjectSettings {
|
||||
frame_start: 0,
|
||||
audio_sample_rate: 48_000,
|
||||
gpu_acceleration: true,
|
||||
color_engine: ColorEngine::Adobe,
|
||||
hdr: HdrMode::Clip,
|
||||
output_space: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user