linux/drivers/gpu/drm/arm/display/komeda/komeda_color_mgmt.c

// SPDX-License-Identifier: GPL-2.0
/*
 * (C) COPYRIGHT 2019 ARM Limited. All rights reserved.
 * Author: James.Qian.Wang <[email protected]>
 *
 */

#include "komeda_color_mgmt.h"

/* 10bit precision YUV2RGB matrix */
static const s32 yuv2rgb_bt601_narrow[KOMEDA_N_YUV2RGB_COEFFS] =;

static const s32 yuv2rgb_bt601_wide[KOMEDA_N_YUV2RGB_COEFFS] =;

static const s32 yuv2rgb_bt709_narrow[KOMEDA_N_YUV2RGB_COEFFS] =;

static const s32 yuv2rgb_bt709_wide[KOMEDA_N_YUV2RGB_COEFFS] =;

static const s32 yuv2rgb_bt2020[KOMEDA_N_YUV2RGB_COEFFS] =;

const s32 *komeda_select_yuv2rgb_coeffs(u32 color_encoding, u32 color_range)
{}

struct gamma_curve_sector {};

static struct gamma_curve_sector sector_tbl[] =;

static void
drm_lut_to_coeffs(struct drm_property_blob *lut_blob, u32 *coeffs,
		  struct gamma_curve_sector *sector_tbl, u32 num_sectors)
{}

void drm_lut_to_fgamma_coeffs(struct drm_property_blob *lut_blob, u32 *coeffs)
{}

void drm_ctm_to_coeffs(struct drm_property_blob *ctm_blob, u32 *coeffs)
{}