#ifndef _SH_CSS_DEFS_H_
#define _SH_CSS_DEFS_H_
#include "isp.h"
#include "math_support.h"
#define IA_CSS_REFCOUNT_PARAM_SET_POOL …
#define IA_CSS_REFCOUNT_PARAM_BUFFER …
#define SH_CSS_DIS_DECI_FACTOR_LOG2 …
#define SH_CSS_UV_OFFSET_IS_0 …
#define SH_CSS_BAYER_BITS …
#define SH_CSS_BAYER_MAXVAL …
#define SH_CSS_ISP_YUV_BITS …
#define SH_CSS_DP_GAIN_SHIFT …
#define SH_CSS_BNR_GAIN_SHIFT …
#define SH_CSS_YNR_GAIN_SHIFT …
#define SH_CSS_AE_YCOEF_SHIFT …
#define SH_CSS_AF_FIR_SHIFT …
#define SH_CSS_YEE_DETAIL_GAIN_SHIFT …
#define SH_CSS_YEE_SCALE_SHIFT …
#define SH_CSS_TNR_COEF_SHIFT …
#define SH_CSS_MACC_COEF_SHIFT …
#define SH_CSS_MACC2_COEF_SHIFT …
#define SH_CSS_DIS_COEF_SHIFT …
#define SH_CSS_BDS_FACTOR_1_00 …
#define SH_CSS_BDS_FACTOR_1_25 …
#define SH_CSS_BDS_FACTOR_1_50 …
#define SH_CSS_BDS_FACTOR_2_00 …
#define SH_CSS_BDS_FACTOR_2_25 …
#define SH_CSS_BDS_FACTOR_2_50 …
#define SH_CSS_BDS_FACTOR_3_00 …
#define SH_CSS_BDS_FACTOR_4_00 …
#define SH_CSS_BDS_FACTOR_4_50 …
#define SH_CSS_BDS_FACTOR_5_00 …
#define SH_CSS_BDS_FACTOR_6_00 …
#define SH_CSS_BDS_FACTOR_8_00 …
#define NUM_BDS_FACTORS …
#define PACK_BDS_FACTOR(factor) …
#define SH_CSS_ISP_PIPE_VERSION_1 …
#define SH_CSS_ISP_PIPE_VERSION_2_2 …
#define SH_CSS_ISP_PIPE_VERSION_2_6_1 …
#define SH_CSS_ISP_PIPE_VERSION_2_7 …
#define SH_CSS_RGB_GAMMA_INPUT_BITS …
#define SH_CSS_RGB_GAMMA_OUTPUT_BITS …
#define SH_CSS_RGB_GAMMA_FRAC_BITS …
#define SH_CSS_RGB_GAMMA_ONE …
#define SH_CSS_YUV2RGB_CCM_INPUT_BITS …
#define SH_CSS_YUV2RGB_CCM_OUTPUT_BITS …
#define SH_CSS_YUV2RGB_CCM_MAX_OUTPUT …
#define SH_CSS_NUM_INPUT_BUF_LINES …
#define SH_CSS_MAX_LEFT_CROPPING …
#define SH_CSS_MAX_TOP_CROPPING …
#define SH_CSS_SP_MAX_WIDTH …
#define SH_CSS_MAX_BQ_GRID_WIDTH …
#define SH_CSS_MAX_BQ_GRID_HEIGHT …
#define SH_CSS_MIN_DVS_ENVELOPE …
#define SH_CSS_MAX_SENSOR_WIDTH …
#define SH_CSS_MAX_SENSOR_HEIGHT …
#if ISP_VMEM_DEPTH >= 3072
#define SH_CSS_MAX_CONTINUOUS_SENSOR_WIDTH …
#define SH_CSS_MAX_CONTINUOUS_SENSOR_HEIGHT …
#else
#define SH_CSS_MAX_CONTINUOUS_SENSOR_WIDTH …
#define SH_CSS_MAX_CONTINUOUS_SENSOR_HEIGHT …
#endif
#define SH_CSS_MAX_CONTINUOUS_SENSOR_WIDTH_DEC …
#define SH_CSS_MAX_CONTINUOUS_SENSOR_HEIGHT_DEC …
#define SH_CSS_MIN_SENSOR_WIDTH …
#define SH_CSS_MIN_SENSOR_HEIGHT …
#define SH_CSS_MAX_VF_WIDTH_DEC …
#define SH_CSS_MAX_VF_HEIGHT_DEC …
#define SH_CSS_MORPH_TABLE_GRID …
#define SH_CSS_MORPH_TABLE_ELEM_BYTES …
#define SH_CSS_MORPH_TABLE_ELEMS_PER_DDR_WORD …
#define SH_CSS_MAX_SCTBL_WIDTH_PER_COLOR …
#define SH_CSS_MAX_SCTBL_HEIGHT_PER_COLOR …
#define SH_CSS_MAX_SCTBL_ALIGNED_WIDTH_PER_COLOR …
#define SH_CSS_MAX_S3ATBL_WIDTH …
#define MAX_DVS_FRAME_DELAY …
#define MAX_NUM_VIDEO_DELAY_FRAMES …
#define NUM_VIDEO_TNR_FRAMES …
#define _ISP_BQS(num) …
#define _ISP_VECS(width) …
#define ISP_BQ_GRID_WIDTH(elements_per_line, deci_factor_log2) …
#define ISP_BQ_GRID_HEIGHT(lines_per_frame, deci_factor_log2) …
#define ISP_C_VECTORS_PER_LINE(elements_per_line) …
#define _ISP_MORPH_TABLE_WIDTH(int_width) …
#define _ISP_MORPH_TABLE_HEIGHT(int_height) …
#define _ISP_MORPH_TABLE_ALIGNED_WIDTH(width) …
#define _ISP_SCTBL_WIDTH_PER_COLOR(input_width, deci_factor_log2) …
#define _ISP_SCTBL_HEIGHT(input_height, deci_factor_log2) …
#define _ISP_SCTBL_ALIGNED_WIDTH_PER_COLOR(input_width, deci_factor_log2) …
#define SH_CSS_SCTBL_CENTERING_MARGIN …
#define SH_CSS_SCTBL_LAST_GRID_COUNT …
#define _ISP2401_SCTBL_WIDTH_PER_COLOR(input_width, deci_factor_log2) …
#define _ISP2401_SCTBL_HEIGHT(input_height, deci_factor_log2) …
#define _ISP_SCTBL_LEGACY_WIDTH_PER_COLOR(input_width, deci_factor_log2) …
#define _ISP_SCTBL_LEGACY_HEIGHT(input_height, deci_factor_log2) …
#define _ISP_S3ATBL_WIDTH(in_width, deci_factor_log2) …
#define _ISP_S3ATBL_HEIGHT(in_height, deci_factor_log2) …
#define _ISP_S3A_ELEMS_ISP_WIDTH(width, left_crop) …
#define _ISP_S3ATBL_ISP_WIDTH(in_width, deci_factor_log2) …
#define _ISP_S3ATBL_ISP_HEIGHT(in_height, deci_factor_log2) …
#define ISP_S3ATBL_VECTORS …
#define ISP_S3ATBL_HI_LO_STRIDE …
#define ISP_S3ATBL_HI_LO_STRIDE_BYTES …
#define __ISP_MAX_VF_OUTPUT_WIDTH(width, left_crop) …
#define __ISP_VF_OUTPUT_WIDTH_VECS(out_width, vf_log_downscale) …
#define _ISP_VF_OUTPUT_WIDTH(vf_out_vecs) …
#define _ISP_VF_OUTPUT_HEIGHT(out_height, vf_log_ds) …
#define _ISP_LOG_VECTOR_STEP(mode) …
#define MAX_PREFERRED_YUV_DS_PER_STEP …
#define _ISP_LEFT_CROP_EXTRA(left_crop) …
#define __ISP_MIN_INTERNAL_WIDTH(num_chunks, pipelining, mode) …
#define __ISP_PADDED_OUTPUT_WIDTH(out_width, dvs_env_width, left_crop) …
#define __ISP_CHUNK_STRIDE_ISP(mode) …
#define __ISP_CHUNK_STRIDE_DDR(c_subsampling, num_chunks) …
#define __ISP_INTERNAL_WIDTH(out_width, \
dvs_env_width, \
left_crop, \
mode, \
c_subsampling, \
num_chunks, \
pipelining) …
#define __ISP_INTERNAL_HEIGHT(out_height, dvs_env_height, top_crop) …
#define _ISP_MAX_INPUT_WIDTH(max_internal_width, enable_ds, enable_fixed_bayer_ds, enable_raw_bin, \
enable_continuous) …
#define _ISP_INPUT_WIDTH(internal_width, ds_input_width, enable_ds) …
#define _ISP_MAX_INPUT_HEIGHT(max_internal_height, enable_ds, enable_fixed_bayer_ds, enable_raw_bin, \
enable_continuous) …
#define _ISP_INPUT_HEIGHT(internal_height, ds_input_height, enable_ds) …
#define SH_CSS_MAX_STAGES …
#define _ISP_EXTRA_PADDING_VECS …
#endif