linux/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c

/*
 * Copyright 2012-17 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: AMD
 *
 */

#include "reg_helper.h"
#include "fixed31_32.h"
#include "resource.h"
#include "dwb.h"
#include "dcn20_dwb.h"

#define NUM_PHASES
#define HORZ_MAX_TAPS
#define VERT_MAX_TAPS

#define REG(reg)

#define CTX

#undef FN
#define FN(reg_name, field_name)

#define TO_DCN20_DWBC(dwbc_base)


static const uint16_t filter_3tap_16p_upscale[27] =;

static const uint16_t filter_3tap_16p_117[27] =;

static const uint16_t filter_3tap_16p_150[27] =;

static const uint16_t filter_3tap_16p_183[27] =;

static const uint16_t filter_4tap_16p_upscale[36] =;

static const uint16_t filter_4tap_16p_117[36] =;

static const uint16_t filter_4tap_16p_150[36] =;

static const uint16_t filter_4tap_16p_183[36] =;

static const uint16_t filter_5tap_16p_upscale[45] =;

static const uint16_t filter_5tap_16p_117[45] =;

static const uint16_t filter_5tap_16p_150[45] =;

static const uint16_t filter_5tap_16p_183[45] =;

static const uint16_t filter_6tap_16p_upscale[54] =;

static const uint16_t filter_6tap_16p_117[54] =;

static const uint16_t filter_6tap_16p_150[54] =;

static const uint16_t filter_6tap_16p_183[54] =;

static const uint16_t filter_7tap_16p_upscale[63] =;

static const uint16_t filter_7tap_16p_117[63] =;

static const uint16_t filter_7tap_16p_150[63] =;

static const uint16_t filter_7tap_16p_183[63] =;

static const uint16_t filter_8tap_16p_upscale[72] =;

static const uint16_t filter_8tap_16p_117[72] =;

static const uint16_t filter_8tap_16p_150[72] =;

static const uint16_t filter_8tap_16p_183[72] =;

static const uint16_t filter_9tap_16p_upscale[81] =;

static const uint16_t filter_9tap_16p_117[81] =;

static const uint16_t filter_9tap_16p_150[81] =;

static const uint16_t filter_9tap_16p_183[81] =;

static const uint16_t filter_10tap_16p_upscale[90] =;

static const uint16_t filter_10tap_16p_117[90] =;

static const uint16_t filter_10tap_16p_150[90] =;

static const uint16_t filter_10tap_16p_183[90] =;

static const uint16_t filter_11tap_16p_upscale[99] =;

static const uint16_t filter_11tap_16p_117[99] =;

static const uint16_t filter_11tap_16p_150[99] =;

static const uint16_t filter_11tap_16p_183[99] =;

static const uint16_t filter_12tap_16p_upscale[108] =;

static const uint16_t filter_12tap_16p_117[108] =;

static const uint16_t filter_12tap_16p_150[108] =;

static const uint16_t filter_12tap_16p_183[108] =;

static const uint16_t *wbscl_get_filter_3tap_16p(struct fixed31_32 ratio)
{}

static const uint16_t *wbscl_get_filter_4tap_16p(struct fixed31_32 ratio)
{}

static const uint16_t *wbscl_get_filter_5tap_16p(struct fixed31_32 ratio)
{}

static const uint16_t *wbscl_get_filter_6tap_16p(struct fixed31_32 ratio)
{}

static const uint16_t *wbscl_get_filter_7tap_16p(struct fixed31_32 ratio)
{}

static const uint16_t *wbscl_get_filter_8tap_16p(struct fixed31_32 ratio)
{}

static const uint16_t *wbscl_get_filter_9tap_16p(struct fixed31_32 ratio)
{}
static const uint16_t *wbscl_get_filter_10tap_16p(struct fixed31_32 ratio)
{}

static const uint16_t *wbscl_get_filter_11tap_16p(struct fixed31_32 ratio)
{}

static const uint16_t *wbscl_get_filter_12tap_16p(struct fixed31_32 ratio)
{}

static const uint16_t *wbscl_get_filter_coeffs_16p(int taps, struct fixed31_32 ratio)
{}

static void wbscl_set_scaler_filter(
	struct dcn20_dwbc *dwbc20,
	uint32_t taps,
	enum wbscl_coef_filter_type_sel filter_type,
	const uint16_t *filter)
{}

bool dwb_program_horz_scalar(struct dcn20_dwbc *dwbc20,
		uint32_t src_width,
		uint32_t dest_width,
		struct scaling_taps num_taps)
{}

bool dwb_program_vert_scalar(struct dcn20_dwbc *dwbc20,
		uint32_t src_height,
		uint32_t dest_height,
		struct scaling_taps num_taps,
		enum dwb_subsample_position subsample_position)
{}