File indexing completed on 2024-04-28 04:52:21
0001 #pragma once 0002 /* 0003 SPDX-FileCopyrightText: 2020 Simon Andreas Eugster <simon.eu@gmail.com> 0004 This file is part of kdenlive. See www.kdenlive.org. 0005 SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0006 */ 0007 /** 0008 * ITU-R Recommendation for luminance calculation. 0009 * See http://www.poynton.com/ColorFAQ.html for details. 0010 */ 0011 enum class ITURec { 0012 Rec_601, Rec_709 0013 }; 0014 0015 // CIE 601 luminance factors 0016 constexpr float REC_601_R = .299f; 0017 constexpr float REC_601_G = .587f; 0018 constexpr float REC_601_B = .114f; 0019 0020 // CIE 709 luminance factors 0021 constexpr float REC_709_R = .2125f; 0022 constexpr float REC_709_G = .7154f; 0023 constexpr float REC_709_B = .0721f;