123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- #ifndef _VE_REG_H
- #define _VE_REG_H
- // *****************************************************************************
- // ******** VIDEO ENHANCEMENT REGISTERS ********
- // *****************************************************************************
- //#define VPP_BLACKEXT_CTRL 0x1d80
- #define BEXT_START_BIT 24
- #define BEXT_START_WID 8
- #define BEXT_SLOPE1_BIT 16
- #define BEXT_SLOPE1_WID 8
- #define BEXT_MIDPT_BIT 8
- #define BEXT_MIDPT_WID 8
- #define BEXT_SLOPE2_BIT 0
- #define BEXT_SLOPE2_WID 8
- //#define VPP_DNLP_CTRL_00 0x1d81
- #define DNLP_GAMMA03_BIT 24
- #define DNLP_GAMMA03_WID 8
- #define DNLP_GAMMA02_BIT 16
- #define DNLP_GAMMA02_WID 8
- #define DNLP_GAMMA01_BIT 8
- #define DNLP_GAMMA01_WID 8
- #define DNLP_GAMMA00_BIT 0
- #define DNLP_GAMMA00_WID 8
- //#define VPP_DNLP_CTRL_01 0x1d82
- #define DNLP_GAMMA07_BIT 24
- #define DNLP_GAMMA07_WID 8
- #define DNLP_GAMMA06_BIT 16
- #define DNLP_GAMMA06_WID 8
- #define DNLP_GAMMA05_BIT 8
- #define DNLP_GAMMA05_WID 8
- #define DNLP_GAMMA04_BIT 0
- #define DNLP_GAMMA04_WID 8
- //#define VPP_DNLP_CTRL_02 0x1d83
- #define DNLP_GAMMA11_BIT 24
- #define DNLP_GAMMA11_WID 8
- #define DNLP_GAMMA10_BIT 16
- #define DNLP_GAMMA10_WID 8
- #define DNLP_GAMMA09_BIT 8
- #define DNLP_GAMMA09_WID 8
- #define DNLP_GAMMA08_BIT 0
- #define DNLP_GAMMA08_WID 8
- //#define VPP_DNLP_CTRL_03 0x1d84
- #define DNLP_GAMMA15_BIT 24
- #define DNLP_GAMMA15_WID 8
- #define DNLP_GAMMA14_BIT 16
- #define DNLP_GAMMA14_WID 8
- #define DNLP_GAMMA13_BIT 8
- #define DNLP_GAMMA13_WID 8
- #define DNLP_GAMMA12_BIT 0
- #define DNLP_GAMMA12_WID 8
- //#define VPP_DNLP_CTRL_04 0x1d85
- #define DNLP_GAMMA19_BIT 24
- #define DNLP_GAMMA19_WID 8
- #define DNLP_GAMMA18_BIT 16
- #define DNLP_GAMMA18_WID 8
- #define DNLP_GAMMA17_BIT 8
- #define DNLP_GAMMA17_WID 8
- #define DNLP_GAMMA16_BIT 0
- #define DNLP_GAMMA16_WID 8
- //#define VPP_DNLP_CTRL_05 0x1d86
- #define DNLP_GAMMA23_BIT 24
- #define DNLP_GAMMA23_WID 8
- #define DNLP_GAMMA22_BIT 16
- #define DNLP_GAMMA22_WID 8
- #define DNLP_GAMMA21_BIT 8
- #define DNLP_GAMMA21_WID 8
- #define DNLP_GAMMA20_BIT 0
- #define DNLP_GAMMA20_WID 8
- //#define VPP_DNLP_CTRL_06 0x1d87
- #define DNLP_GAMMA27_BIT 24
- #define DNLP_GAMMA27_WID 8
- #define DNLP_GAMMA26_BIT 16
- #define DNLP_GAMMA26_WID 8
- #define DNLP_GAMMA25_BIT 8
- #define DNLP_GAMMA25_WID 8
- #define DNLP_GAMMA24_BIT 0
- #define DNLP_GAMMA24_WID 8
- //#define VPP_DNLP_CTRL_07 0x1d88
- #define DNLP_GAMMA31_BIT 24
- #define DNLP_GAMMA31_WID 8
- #define DNLP_GAMMA30_BIT 16
- #define DNLP_GAMMA30_WID 8
- #define DNLP_GAMMA29_BIT 8
- #define DNLP_GAMMA29_WID 8
- #define DNLP_GAMMA28_BIT 0
- #define DNLP_GAMMA28_WID 8
- //#define VPP_DNLP_CTRL_08 0x1d89
- #define DNLP_GAMMA35_BIT 24
- #define DNLP_GAMMA35_WID 8
- #define DNLP_GAMMA34_BIT 16
- #define DNLP_GAMMA34_WID 8
- #define DNLP_GAMMA33_BIT 8
- #define DNLP_GAMMA33_WID 8
- #define DNLP_GAMMA32_BIT 0
- #define DNLP_GAMMA32_WID 8
- //#define VPP_DNLP_CTRL_09 0x1d8a
- #define DNLP_GAMMA39_BIT 24
- #define DNLP_GAMMA39_WID 8
- #define DNLP_GAMMA38_BIT 16
- #define DNLP_GAMMA38_WID 8
- #define DNLP_GAMMA37_BIT 8
- #define DNLP_GAMMA37_WID 8
- #define DNLP_GAMMA36_BIT 0
- #define DNLP_GAMMA36_WID 8
- //#define VPP_DNLP_CTRL_10 0x1d8b
- #define DNLP_GAMMA43_BIT 24
- #define DNLP_GAMMA43_WID 8
- #define DNLP_GAMMA42_BIT 16
- #define DNLP_GAMMA42_WID 8
- #define DNLP_GAMMA41_BIT 8
- #define DNLP_GAMMA41_WID 8
- #define DNLP_GAMMA40_BIT 0
- #define DNLP_GAMMA40_WID 8
- //#define VPP_DNLP_CTRL_11 0x1d8c
- #define DNLP_GAMMA47_BIT 24
- #define DNLP_GAMMA47_WID 8
- #define DNLP_GAMMA46_BIT 16
- #define DNLP_GAMMA46_WID 8
- #define DNLP_GAMMA45_BIT 8
- #define DNLP_GAMMA45_WID 8
- #define DNLP_GAMMA44_BIT 0
- #define DNLP_GAMMA44_WID 8
- //#define VPP_DNLP_CTRL_12 0x1d8d
- #define DNLP_GAMMA51_BIT 24
- #define DNLP_GAMMA51_WID 8
- #define DNLP_GAMMA50_BIT 16
- #define DNLP_GAMMA50_WID 8
- #define DNLP_GAMMA49_BIT 8
- #define DNLP_GAMMA49_WID 8
- #define DNLP_GAMMA48_BIT 0
- #define DNLP_GAMMA48_WID 8
- //#define VPP_DNLP_CTRL_13 0x1d8e
- #define DNLP_GAMMA55_BIT 24
- #define DNLP_GAMMA55_WID 8
- #define DNLP_GAMMA54_BIT 16
- #define DNLP_GAMMA54_WID 8
- #define DNLP_GAMMA53_BIT 8
- #define DNLP_GAMMA53_WID 8
- #define DNLP_GAMMA52_BIT 0
- #define DNLP_GAMMA52_WID 8
- //#define VPP_DNLP_CTRL_14 0x1d8f
- #define DNLP_GAMMA59_BIT 24
- #define DNLP_GAMMA59_WID 8
- #define DNLP_GAMMA58_BIT 16
- #define DNLP_GAMMA58_WID 8
- #define DNLP_GAMMA57_BIT 8
- #define DNLP_GAMMA57_WID 8
- #define DNLP_GAMMA56_BIT 0
- #define DNLP_GAMMA56_WID 8
- //#define VPP_DNLP_CTRL_15 0x1d90
- #define DNLP_GAMMA63_BIT 24
- #define DNLP_GAMMA63_WID 8
- #define DNLP_GAMMA62_BIT 16
- #define DNLP_GAMMA62_WID 8
- #define DNLP_GAMMA61_BIT 8
- #define DNLP_GAMMA61_WID 8
- #define DNLP_GAMMA60_BIT 0
- #define DNLP_GAMMA60_WID 8
- //#define VPP_PEAKING_HGAIN 0x1d91
- #define VLTI_STEP_BIT 28
- #define VLTI_STEP_WID 1
- #define VLTI_STEP2_BIT 27
- #define VLTI_STEP2_WID 1
- #define HLTI_STEP_BIT 25
- #define HLTI_STEP_WID 2
- #define PEAK_GAIN_H1_BIT 20
- #define PEAK_GAIN_H1_WID 5
- #define PEAK_GAIN_H2_BIT 15
- #define PEAK_GAIN_H2_WID 5
- #define PEAK_GAIN_H3_BIT 10
- #define PEAK_GAIN_H3_WID 5
- #define PEAK_GAIN_H4_BIT 5
- #define PEAK_GAIN_H4_WID 5
- #define PEAK_GAIN_H5_BIT 0
- #define PEAK_GAIN_H5_WID 5
- //#define VPP_PEAKING_VGAIN 0x1d92
- #define VCTI_BUF_EN_BIT 31
- #define VCTI_BUF_EN_WID 1
- #define VCTI_BUF_MODE_C5L_BIT 30
- #define VCTI_BUF_MODE_C5L_WID 1
- #define PEAK_GAIN_V1_BIT 25
- #define PEAK_GAIN_V1_WID 5
- #define PEAK_GAIN_V2_BIT 20
- #define PEAK_GAIN_V2_WID 5
- #define PEAK_GAIN_V3_BIT 15
- #define PEAK_GAIN_V3_WID 5
- #define PEAK_GAIN_V4_BIT 10
- #define PEAK_GAIN_V4_WID 5
- #define PEAK_GAIN_V5_BIT 5
- #define PEAK_GAIN_V5_WID 5
- #define PEAK_GAIN_V6_BIT 0
- #define PEAK_GAIN_V6_WID 5
- //#define VPP_PEAKING_NLP_1 0x1d93
- #define HPEAK_SLOPE1_BIT 26
- #define HPEAK_SLOPE1_WID 6
- #define HPEAK_SLOPE2_BIT 20
- #define HPEAK_SLOPE2_WID 6
- #define HPEAK_THR1_BIT 12
- #define HPEAK_THR1_WID 8
- #define VPEAK_SLOPE1_BIT 6
- #define VPEAK_SLOPE1_WID 6
- #define VPEAK_SLOPE2_BIT 0
- #define VPEAK_SLOPE2_WID 6
- //#define VPP_PEAKING_NLP_2 0x1d94
- #define HPEAK_THR2_BIT 24
- #define HPEAK_THR2_WID 8
- #define HPEAK_NLP_COR_THR_BIT 16
- #define HPEAK_NLP_COR_THR_WID 8
- #define HPEAK_NLP_GAIN_POS_BIT 8
- #define HPEAK_NLP_GAIN_POS_WID 8
- #define HPEAK_NLP_GAIN_NEG_BIT 0
- #define HPEAK_NLP_GAIN_NEG_WID 8
- //#define VPP_PEAKING_NLP_3 0x1d95
- #define VPEAK_THR1_BIT 24
- #define VPEAK_THR1_WID 8
- #define SPEAK_SLOPE1_BIT 18
- #define SPEAK_SLOPE1_WID 6
- #define SPEAK_SLOPE2_BIT 12
- #define SPEAK_SLOPE2_WID 6
- #define SPEAK_THR1_BIT 4
- #define SPEAK_THR1_WID 8
- #define PEAK_COR_GAIN_BIT 0
- #define PEAK_COR_GAIN_WID 4
- //#define VPP_PEAKING_NLP_4 0x1d96
- #define VPEAK_THR2_BIT 24
- #define VPEAK_THR2_WID 8
- #define VPEAK_NLP_COR_THR_BIT 16
- #define VPEAK_NLP_COR_THR_WID 8
- #define VPEAK_NLP_GAIN_POS_BIT 8
- #define VPEAK_NLP_GAIN_POS_WID 8
- #define VPEAK_NLP_GAIN_NEG_BIT 0
- #define VPEAK_NLP_GAIN_NEG_WID 8
- //#define VPP_PEAKING_NLP_5 0x1d97
- #define SPEAK_THR2_BIT 24
- #define SPEAK_THR2_WID 8
- #define SPEAK_NLP_COR_THR_BIT 16
- #define SPEAK_NLP_COR_THR_WID 8
- #define SPEAK_NLP_GAIN_POS_BIT 8
- #define SPEAK_NLP_GAIN_POS_WID 8
- #define SPEAK_NLP_GAIN_NEG_BIT 0
- #define SPEAK_NLP_GAIN_NEG_WID 8
- //#define VPP_HSVS_LIMIT 0x1d98
- #define PEAK_COR_THR_L_BIT 24
- #define PEAK_COR_THR_L_WID 8
- #define PEAK_COR_THR_H_BIT 16
- #define PEAK_COR_THR_H_WID 8
- #define VLIMIT_COEF_H_BIT 12
- #define VLIMIT_COEF_H_WID 4
- #define VLIMIT_COEF_L_BIT 8
- #define VLIMIT_COEF_L_WID 4
- #define HLIMIT_COEF_H_BIT 4
- #define HLIMIT_COEF_H_WID 4
- #define HLIMIT_COEF_L_BIT 0
- #define HLIMIT_COEF_L_WID 4
- //#define VPP_VLTI_CTRL 0x1d99
- #define VLTI_GAIN_NEG_BIT 24
- #define VLTI_GAIN_NEG_WID 8
- #define VLTI_GAIN_POS_BIT 16
- #define VLTI_GAIN_POS_WID 8
- #define VLTI_THR_BIT 8
- #define VLTI_THR_WID 8
- #define VLTI_BLEND_FACTOR_BIT 0
- #define VLTI_BLEND_FACTOR_WID 8
- //#define VPP_HLTI_CTRL 0x1d9a
- #define HLTI_GAIN_NEG_BIT 24
- #define HLTI_GAIN_NEG_WID 8
- #define HLTI_GAIN_POS_BIT 16
- #define HLTI_GAIN_POS_WID 8
- #define HLTI_THR_BIT 8
- #define HLTI_THR_WID 8
- #define HLTI_BLEND_FACTOR_BIT 0
- #define HLTI_BLEND_FACTOR_WID 8
- //#define VPP_CTI_CTRL 0x1d9b
- #define CTI_C444TO422_EN_BIT 30
- #define CTI_C444TO422_EN_WID 1
- #define VCTI_FILTER_BIT 28
- #define VCTI_FILTER_WID 2
- #define CTI_C422TO444_EN_BIT 27
- #define CTI_C422TO444_EN_WID 1
- #define HCTI_STEP2_BIT 24
- #define HCTI_STEP2_WID 3
- #define HCTI_STEP_BIT 21
- #define HCTI_STEP_WID 3
- #define CTI_BLEND_FACTOR_BIT 16
- #define CTI_BLEND_FACTOR_WID 5
- #define HCTI_MODE_MEDIAN_BIT 15
- #define HCTI_MODE_MEDIAN_WID 1
- #define HCTI_THR_BIT 8
- #define HCTI_THR_WID 7
- #define HCTI_GAIN_BIT 0
- #define HCTI_GAIN_WID 8
- //#define VPP_BLUE_STRETCH_1 0x1d9c
- #define BENH_CB_INC_BIT 29
- #define BENH_CB_INC_WID 1
- #define BENH_CR_INC_BIT 28
- #define BENH_CR_INC_WID 1
- #define BENH_ERR_CRP_INV_H_BIT 27
- #define BENH_ERR_CRP_INV_H_WID 1
- #define BENH_ERR_CRN_INV_H_BIT 26
- #define BENH_ERR_CRN_INV_H_WID 1
- #define BENH_ERR_CBP_INV_H_BIT 25
- #define BENH_ERR_CBP_INV_H_WID 1
- #define BENH_ERR_CBN_INV_H_BIT 24
- #define BENH_ERR_CBN_INV_H_WID 1
- #define BENH_GAIN_CR_BIT 16
- #define BENH_GAIN_CR_WID 8
- #define BENH_GAIN_CB4CR_BIT 8
- #define BENH_GAIN_CB4CR_WID 8
- #define BENH_LUMA_H_BIT 0
- #define BENH_LUMA_H_WID 8
- //#define VPP_BLUE_STRETCH_2 0x1d9d
- #define BENH_ERR_CRP_BIT 27
- #define BENH_ERR_CRP_WID 5
- #define BENH_ERR_CRP_INV_L_BIT 16
- #define BENH_ERR_CRP_INV_L_WID 11
- #define BENH_ERR_CRN_BIT 11
- #define BENH_ERR_CRN_WID 5
- #define BENH_ERR_CRN_INV_L_BIT 0
- #define BENH_ERR_CRN_INV_L_WID 11
- //#define VPP_BLUE_STRETCH_3 0x1d9e
- #define BENH_ERR_CBP_BIT 27
- #define BENH_ERR_CBP_WID 5
- #define BENH_ERR_CBP_INV_L_BIT 16
- #define BENH_ERR_CBP_INV_L_WID 11
- #define BENH_ERR_CBN_BIT 11
- #define BENH_ERR_CBN_WID 5
- #define BENH_ERR_CBN_INV_L_BIT 0
- #define BENH_ERR_CBN_INV_L_WID 11
- //#define VPP_CCORING_CTRL 0x1da0
- #define CCOR_THR_BIT 8
- #define CCOR_THR_WID 8
- #define CCOR_SLOPE_BIT 0
- #define CCOR_SLOPE_WID 4
- //#define VPP_VE_ENABLE_CTRL 0x1da1
- #define DEMO_CCOR_BIT 20
- #define DEMO_CCOR_WID 1
- #define DEMO_BEXT_BIT 19
- #define DEMO_BEXT_WID 1
- #define DEMO_DNLP_BIT 18
- #define DEMO_DNLP_WID 1
- #define DEMO_HSVS_BIT 17
- #define DEMO_HSVS_WID 1
- #define DEMO_BENH_BIT 16
- #define DEMO_BENH_WID 1
- #define VE_DEMO_POS_BIT 15
- #define VE_DEMO_POS_WID 1
- #define CCOR_EN_BIT 4
- #define CCOR_EN_WID 1
- #define BEXT_EN_BIT 3
- #define BEXT_EN_WID 1
- #define DNLP_EN_BIT 2
- #define DNLP_EN_WID 1
- #define HSVS_EN_BIT 1
- #define HSVS_EN_WID 1
- #define BENH_EN_BIT 0
- #define BENH_EN_WID 1
- //#define VPP_VE_DEMO_LEFT_SCREEN_WIDTH 0x1da2
- #define DEMO_WID_BIT 0
- #define DEMO_WID_WID 12
- #endif // _VE_REG_H
|