// Copyright (c) the JPEG XL Project Authors. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file.
// Definitions for BT.2100-2 transfer functions (used inside/outside SIMD): // "display" is linear light (nits) normalized to [0, 1]. // "encoded" is a nonlinear encoding (e.g. PQ) in [0, 1]. // "scene" is a linear function of photon counts, normalized to [0, 1].
// s = scene, returns display. staticdouble OOTF(constdouble s) { // The actual (red channel) OOTF is RD = alpha * YS^(gamma-1) * RS, where // YS = 0.2627 * RS + 0.6780 * GS + 0.0593 * BS. Let alpha = 1 so we return // "display" (normalized [0, 1]) instead of nits. Our transfer function // interface does not allow a dependency on YS. Fortunately, the system // gamma at 334 nits is 1.0, so this reduces to RD = RS. return s;
}
// d = display, returns scene. staticdouble InvOOTF(constdouble d) { return d; // see OOTF().
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.