Swap incorrectly reversed eotf_sRGB/eotf_inverse_sRGB calls. Fix operator precedence in conditional checks. Move colorspace config to class-level constants. Use BT.1886 transfer function for Rec.2020. Clean up bare excepts and dead code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>