godot/thirdparty/libktx/lib/dfdutils/colourspaces.c

/* Copyright 2019-2020 The Khronos Group Inc.
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @file
 * @~English
 * @brief Helper functions for colourspaces.
 */

#include <KHR/khr_df.h>
#include "dfd.h"

sPrimaryMapping;

sPrimaryMapping primaryMap[] =;

/**
 * @brief Map a set of primaries to a KDFS primaries enum.
 *
 * @param[in] p           pointer to a Primaries struct filled in with the primary values.
 * @param[in] latitude tolerance to use while matching. A suitable value might be 0.002
 *                 but it depends on the application.
 */
khr_df_primaries_e findMapping(const Primaries *p, float latitude) {}

/**
 * @brief Get the primaries corresponding to a KDFS primaries enum.
 *
 * @param[in]   primaries   the enum identifying the KDFS primaries.
 * @param[out]  p           pointer to a Primaries struct that will
 *                          be filled with the primary values.
 */
bool getPrimaries(khr_df_primaries_e primaries, Primaries *p) {}