linux/drivers/media/platform/amphion/vpu_color.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright 2020-2021 NXP
 */

#include <linux/init.h>
#include <linux/device.h>
#include <linux/ioctl.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/types.h>
#include <media/v4l2-device.h>
#include "vpu.h"
#include "vpu_helpers.h"

static const u8 colorprimaries[] =;

static const u8 colortransfers[] =;

static const u8 colormatrixcoefs[] =;

u32 vpu_color_cvrt_primaries_v2i(u32 primaries)
{}

u32 vpu_color_cvrt_primaries_i2v(u32 primaries)
{}

u32 vpu_color_cvrt_transfers_v2i(u32 transfers)
{}

u32 vpu_color_cvrt_transfers_i2v(u32 transfers)
{}

u32 vpu_color_cvrt_matrix_v2i(u32 matrix)
{}

u32 vpu_color_cvrt_matrix_i2v(u32 matrix)
{}

u32 vpu_color_cvrt_full_range_v2i(u32 full_range)
{}

u32 vpu_color_cvrt_full_range_i2v(u32 full_range)
{}

int vpu_color_check_primaries(u32 primaries)
{}

int vpu_color_check_transfers(u32 transfers)
{}

int vpu_color_check_matrix(u32 matrix)
{}

int vpu_color_check_full_range(u32 full_range)
{}

int vpu_color_get_default(u32 primaries, u32 *ptransfers, u32 *pmatrix, u32 *pfull_range)
{}