#include "dm_services.h"
#include "core_types.h"
#include "reg_helper.h"
#include "dcn10/dcn10_dpp.h"
#include "basics/conversion.h"
#define NUM_PHASES …
#define HORZ_MAX_TAPS …
#define VERT_MAX_TAPS …
#define BLACK_OFFSET_RGB_Y …
#define BLACK_OFFSET_CBCR …
#define REG(reg) …
#define CTX …
#undef FN
#define FN(reg_name, field_name) …
enum dcn10_coef_filter_type_sel { … };
enum dscl_autocal_mode { … };
enum dscl_mode_sel { … };
static int dpp1_dscl_get_pixel_depth_val(enum lb_pixel_depth depth)
{ … }
static bool dpp1_dscl_is_video_format(enum pixel_format format)
{ … }
static bool dpp1_dscl_is_420_format(enum pixel_format format)
{ … }
static enum dscl_mode_sel dpp1_dscl_get_dscl_mode(
struct dpp *dpp_base,
const struct scaler_data *data,
bool dbg_always_scale)
{ … }
static void dpp1_power_on_dscl(
struct dpp *dpp_base,
bool power_on)
{ … }
static void dpp1_dscl_set_lb(
struct dcn10_dpp *dpp,
const struct line_buffer_params *lb_params,
enum lb_memory_config mem_size_config)
{ … }
static const uint16_t *dpp1_dscl_get_filter_coeffs_64p(int taps, struct fixed31_32 ratio)
{ … }
static void dpp1_dscl_set_scaler_filter(
struct dcn10_dpp *dpp,
uint32_t taps,
enum dcn10_coef_filter_type_sel filter_type,
const uint16_t *filter)
{ … }
static void dpp1_dscl_set_scl_filter(
struct dcn10_dpp *dpp,
const struct scaler_data *scl_data,
bool chroma_coef_mode)
{ … }
static int dpp1_dscl_get_lb_depth_bpc(enum lb_pixel_depth depth)
{ … }
void dpp1_dscl_calc_lb_num_partitions(
const struct scaler_data *scl_data,
enum lb_memory_config lb_config,
int *num_part_y,
int *num_part_c)
{ … }
bool dpp1_dscl_is_lb_conf_valid(int ceil_vratio, int num_partitions, int vtaps)
{ … }
static enum lb_memory_config dpp1_dscl_find_lb_memory_config(struct dcn10_dpp *dpp,
const struct scaler_data *scl_data)
{ … }
static void dpp1_dscl_set_manual_ratio_init(
struct dcn10_dpp *dpp, const struct scaler_data *data)
{ … }
static void dpp1_dscl_set_recout(struct dcn10_dpp *dpp,
const struct rect *recout)
{ … }
void dpp1_dscl_set_scaler_manual_scale(struct dpp *dpp_base,
const struct scaler_data *scl_data)
{ … }