chromium/ui/display/types/display_color_management.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "ui/display/types/display_color_management.h"

#include "base/check.h"
#include "base/notreached.h"
#include "base/strings/stringprintf.h"

#include <cmath>

namespace display {

namespace {

float EvaluateLut(float x,
                  const std::vector<GammaRampRGBEntry>& lut,
                  size_t channel) {}

}  // namespace

GammaCurve::GammaCurve() = default;
GammaCurve::GammaCurve(const std::vector<GammaRampRGBEntry>& lut)
    :{}
GammaCurve::GammaCurve(GammaCurve&& other)
    :{}
GammaCurve::GammaCurve(const GammaCurve& other) {}
GammaCurve::~GammaCurve() = default;
GammaCurve& GammaCurve::operator=(const GammaCurve& other) {}

// static
GammaCurve GammaCurve::MakeConcat(const GammaCurve& f, const GammaCurve& g) {}

// static
GammaCurve GammaCurve::MakeGamma(float gamma) {}

// static
GammaCurve GammaCurve::MakeScale(float red, float green, float blue) {}

float GammaCurve::Evaluate(float x, size_t channel) const {}

void GammaCurve::Evaluate(float x,
                          uint16_t& out_r,
                          uint16_t& out_g,
                          uint16_t& out_b) const {}

void GammaCurve::Evaluate(float rgb[3]) const {}

std::string GammaCurve::ToString() const {}

std::string GammaCurve::ToActionString(const std::string& name) const {}

}  // namespace display