📄 via_3d_reg.h
字号:
#define HC_HZCYNum_SHIFT 16#define HC_HZWCQWnum_MASK 0x00003fff#define HC_HZWCQWnum_SHIFT 0/* HC_SubA_HZWCFire 0x0019 */#define HC_ZWCFire_MASK 0x00010000#define HC_HZWCQWnumLast_MASK 0x00003fff#define HC_HZWCQWnumLast_SHIFT 0/* Stencil Setting */#define HC_SubA_HSTREF 0x0023#define HC_SubA_HSTMD 0x0024/* HC_SubA_HSBFM */#define HC_HSBFM_MASK 0x00030000#define HC_HSBLoc_MASK 0x0000c000#define HC_HSBPit_MASK 0x00003fff/* HC_SubA_HSTREF */#define HC_HSTREF_MASK 0x00ff0000#define HC_HSTOPMSK_MASK 0x0000ff00#define HC_HSTBMSK_MASK 0x000000ff#define HC_HSTREF_SHIFT 16#define HC_HSTOPMSK_SHIFT 8/* HC_SubA_HSTMD */#define HC_HSTMD_MASK 0x00070000#define HC_HSTOPSF_MASK 0x000001c0#define HC_HSTOPSPZF_MASK 0x00000038#define HC_HSTOPSPZP_MASK 0x00000007#define HC_HSTMD_NeverPass 0x00000000#define HC_HSTMD_LT 0x00010000#define HC_HSTMD_EQ 0x00020000#define HC_HSTMD_LE 0x00030000#define HC_HSTMD_GT 0x00040000#define HC_HSTMD_NE 0x00050000#define HC_HSTMD_GE 0x00060000#define HC_HSTMD_AllPass 0x00070000#define HC_HSTOPSF_KEEP 0x00000000#define HC_HSTOPSF_ZERO 0x00000040#define HC_HSTOPSF_REPLACE 0x00000080#define HC_HSTOPSF_INCRSAT 0x000000c0#define HC_HSTOPSF_DECRSAT 0x00000100#define HC_HSTOPSF_INVERT 0x00000140#define HC_HSTOPSF_INCR 0x00000180#define HC_HSTOPSF_DECR 0x000001c0#define HC_HSTOPSPZF_KEEP 0x00000000#define HC_HSTOPSPZF_ZERO 0x00000008#define HC_HSTOPSPZF_REPLACE 0x00000010#define HC_HSTOPSPZF_INCRSAT 0x00000018#define HC_HSTOPSPZF_DECRSAT 0x00000020#define HC_HSTOPSPZF_INVERT 0x00000028#define HC_HSTOPSPZF_INCR 0x00000030#define HC_HSTOPSPZF_DECR 0x00000038#define HC_HSTOPSPZP_KEEP 0x00000000#define HC_HSTOPSPZP_ZERO 0x00000001#define HC_HSTOPSPZP_REPLACE 0x00000002#define HC_HSTOPSPZP_INCRSAT 0x00000003#define HC_HSTOPSPZP_DECRSAT 0x00000004#define HC_HSTOPSPZP_INVERT 0x00000005#define HC_HSTOPSPZP_INCR 0x00000006#define HC_HSTOPSPZP_DECR 0x00000007/* Alpha Setting */#define HC_SubA_HABBasL 0x0030#define HC_SubA_HABBasH 0x0031#define HC_SubA_HABFM 0x0032#define HC_SubA_HATMD 0x0033#define HC_SubA_HABLCsat 0x0034#define HC_SubA_HABLCop 0x0035#define HC_SubA_HABLAsat 0x0036#define HC_SubA_HABLAop 0x0037#define HC_SubA_HABLRCa 0x0038#define HC_SubA_HABLRFCa 0x0039#define HC_SubA_HABLRCbias 0x003a#define HC_SubA_HABLRCb 0x003b#define HC_SubA_HABLRFCb 0x003c#define HC_SubA_HABLRAa 0x003d#define HC_SubA_HABLRAb 0x003e/* HC_SubA_HABFM */#define HC_HABFM_MASK 0x00030000#define HC_HABLoc_MASK 0x0000c000#define HC_HABPit_MASK 0x000007ff/* HC_SubA_HATMD */#define HC_HATMD_MASK 0x00000700#define HC_HATREF_MASK 0x000000ff#define HC_HATMD_NeverPass 0x00000000#define HC_HATMD_LT 0x00000100#define HC_HATMD_EQ 0x00000200#define HC_HATMD_LE 0x00000300#define HC_HATMD_GT 0x00000400#define HC_HATMD_NE 0x00000500#define HC_HATMD_GE 0x00000600#define HC_HATMD_AllPass 0x00000700/* HC_SubA_HABLCsat */#define HC_HABLCsat_MASK 0x00010000#define HC_HABLCa_MASK 0x0000fc00#define HC_HABLCa_C_MASK 0x0000c000#define HC_HABLCa_OPC_MASK 0x00003c00#define HC_HABLFCa_MASK 0x000003f0#define HC_HABLFCa_C_MASK 0x00000300#define HC_HABLFCa_OPC_MASK 0x000000f0#define HC_HABLCbias_MASK 0x0000000f#define HC_HABLCbias_C_MASK 0x00000008#define HC_HABLCbias_OPC_MASK 0x00000007/*-- Define the input color. */#define HC_XC_Csrc 0x00000000#define HC_XC_Cdst 0x00000001#define HC_XC_Asrc 0x00000002#define HC_XC_Adst 0x00000003#define HC_XC_Fog 0x00000004#define HC_XC_HABLRC 0x00000005#define HC_XC_minSrcDst 0x00000006#define HC_XC_maxSrcDst 0x00000007#define HC_XC_mimAsrcInvAdst 0x00000008#define HC_XC_OPC 0x00000000#define HC_XC_InvOPC 0x00000010#define HC_XC_OPCp5 0x00000020/*-- Define the input Alpha */#define HC_XA_OPA 0x00000000#define HC_XA_InvOPA 0x00000010#define HC_XA_OPAp5 0x00000020#define HC_XA_0 0x00000000#define HC_XA_Asrc 0x00000001#define HC_XA_Adst 0x00000002#define HC_XA_Fog 0x00000003#define HC_XA_minAsrcFog 0x00000004#define HC_XA_minAsrcAdst 0x00000005#define HC_XA_maxAsrcFog 0x00000006#define HC_XA_maxAsrcAdst 0x00000007#define HC_XA_HABLRA 0x00000008#define HC_XA_minAsrcInvAdst 0x00000008#define HC_XA_HABLFRA 0x00000009/*-- */#define HC_HABLCa_OPC (HC_XC_OPC << 10)#define HC_HABLCa_InvOPC (HC_XC_InvOPC << 10)#define HC_HABLCa_OPCp5 (HC_XC_OPCp5 << 10)#define HC_HABLCa_Csrc (HC_XC_Csrc << 10)#define HC_HABLCa_Cdst (HC_XC_Cdst << 10)#define HC_HABLCa_Asrc (HC_XC_Asrc << 10)#define HC_HABLCa_Adst (HC_XC_Adst << 10)#define HC_HABLCa_Fog (HC_XC_Fog << 10)#define HC_HABLCa_HABLRCa (HC_XC_HABLRC << 10)#define HC_HABLCa_minSrcDst (HC_XC_minSrcDst << 10)#define HC_HABLCa_maxSrcDst (HC_XC_maxSrcDst << 10)#define HC_HABLFCa_OPC (HC_XC_OPC << 4)#define HC_HABLFCa_InvOPC (HC_XC_InvOPC << 4)#define HC_HABLFCa_OPCp5 (HC_XC_OPCp5 << 4)#define HC_HABLFCa_Csrc (HC_XC_Csrc << 4)#define HC_HABLFCa_Cdst (HC_XC_Cdst << 4)#define HC_HABLFCa_Asrc (HC_XC_Asrc << 4)#define HC_HABLFCa_Adst (HC_XC_Adst << 4)#define HC_HABLFCa_Fog (HC_XC_Fog << 4)#define HC_HABLFCa_HABLRCa (HC_XC_HABLRC << 4)#define HC_HABLFCa_minSrcDst (HC_XC_minSrcDst << 4)#define HC_HABLFCa_maxSrcDst (HC_XC_maxSrcDst << 4)#define HC_HABLFCa_mimAsrcInvAdst (HC_XC_mimAsrcInvAdst << 4)#define HC_HABLCbias_HABLRCbias 0x00000000#define HC_HABLCbias_Asrc 0x00000001#define HC_HABLCbias_Adst 0x00000002#define HC_HABLCbias_Fog 0x00000003#define HC_HABLCbias_Cin 0x00000004/* HC_SubA_HABLCop 0x0035 */#define HC_HABLdot_MASK 0x00010000#define HC_HABLCop_MASK 0x00004000#define HC_HABLCb_MASK 0x00003f00#define HC_HABLCb_C_MASK 0x00003000#define HC_HABLCb_OPC_MASK 0x00000f00#define HC_HABLFCb_MASK 0x000000fc#define HC_HABLFCb_C_MASK 0x000000c0#define HC_HABLFCb_OPC_MASK 0x0000003c#define HC_HABLCshift_MASK 0x00000003#define HC_HABLCb_OPC (HC_XC_OPC << 8)#define HC_HABLCb_InvOPC (HC_XC_InvOPC << 8)#define HC_HABLCb_OPCp5 (HC_XC_OPCp5 << 8)#define HC_HABLCb_Csrc (HC_XC_Csrc << 8)#define HC_HABLCb_Cdst (HC_XC_Cdst << 8)#define HC_HABLCb_Asrc (HC_XC_Asrc << 8)#define HC_HABLCb_Adst (HC_XC_Adst << 8)#define HC_HABLCb_Fog (HC_XC_Fog << 8)#define HC_HABLCb_HABLRCa (HC_XC_HABLRC << 8)#define HC_HABLCb_minSrcDst (HC_XC_minSrcDst << 8)#define HC_HABLCb_maxSrcDst (HC_XC_maxSrcDst << 8)#define HC_HABLFCb_OPC (HC_XC_OPC << 2)#define HC_HABLFCb_InvOPC (HC_XC_InvOPC << 2)#define HC_HABLFCb_OPCp5 (HC_XC_OPCp5 << 2)#define HC_HABLFCb_Csrc (HC_XC_Csrc << 2)#define HC_HABLFCb_Cdst (HC_XC_Cdst << 2)#define HC_HABLFCb_Asrc (HC_XC_Asrc << 2)#define HC_HABLFCb_Adst (HC_XC_Adst << 2)#define HC_HABLFCb_Fog (HC_XC_Fog << 2)#define HC_HABLFCb_HABLRCb (HC_XC_HABLRC << 2)#define HC_HABLFCb_minSrcDst (HC_XC_minSrcDst << 2)#define HC_HABLFCb_maxSrcDst (HC_XC_maxSrcDst << 2)#define HC_HABLFCb_mimAsrcInvAdst (HC_XC_mimAsrcInvAdst << 2)/* HC_SubA_HABLAsat 0x0036 */#define HC_HABLAsat_MASK 0x00010000#define HC_HABLAa_MASK 0x0000fc00#define HC_HABLAa_A_MASK 0x0000c000#define HC_HABLAa_OPA_MASK 0x00003c00#define HC_HABLFAa_MASK 0x000003f0#define HC_HABLFAa_A_MASK 0x00000300#define HC_HABLFAa_OPA_MASK 0x000000f0#define HC_HABLAbias_MASK 0x0000000f#define HC_HABLAbias_A_MASK 0x00000008#define HC_HABLAbias_OPA_MASK 0x00000007#define HC_HABLAa_OPA (HC_XA_OPA << 10)#define HC_HABLAa_InvOPA (HC_XA_InvOPA << 10)#define HC_HABLAa_OPAp5 (HC_XA_OPAp5 << 10)#define HC_HABLAa_0 (HC_XA_0 << 10)#define HC_HABLAa_Asrc (HC_XA_Asrc << 10)#define HC_HABLAa_Adst (HC_XA_Adst << 10)#define HC_HABLAa_Fog (HC_XA_Fog << 10)#define HC_HABLAa_minAsrcFog (HC_XA_minAsrcFog << 10)#define HC_HABLAa_minAsrcAdst (HC_XA_minAsrcAdst << 10)#define HC_HABLAa_maxAsrcFog (HC_XA_maxAsrcFog << 10)#define HC_HABLAa_maxAsrcAdst (HC_XA_maxAsrcAdst << 10)#define HC_HABLAa_HABLRA (HC_XA_HABLRA << 10)#define HC_HABLFAa_OPA (HC_XA_OPA << 4)#define HC_HABLFAa_InvOPA (HC_XA_InvOPA << 4)#define HC_HABLFAa_OPAp5 (HC_XA_OPAp5 << 4)#define HC_HABLFAa_0 (HC_XA_0 << 4)#define HC_HABLFAa_Asrc (HC_XA_Asrc << 4)#define HC_HABLFAa_Adst (HC_XA_Adst << 4)#define HC_HABLFAa_Fog (HC_XA_Fog << 4)#define HC_HABLFAa_minAsrcFog (HC_XA_minAsrcFog << 4)#define HC_HABLFAa_minAsrcAdst (HC_XA_minAsrcAdst << 4)#define HC_HABLFAa_maxAsrcFog (HC_XA_maxAsrcFog << 4)#define HC_HABLFAa_maxAsrcAdst (HC_XA_maxAsrcAdst << 4)#define HC_HABLFAa_minAsrcInvAdst (HC_XA_minAsrcInvAdst << 4)#define HC_HABLFAa_HABLFRA (HC_XA_HABLFRA << 4)#define HC_HABLAbias_HABLRAbias 0x00000000#define HC_HABLAbias_Asrc 0x00000001#define HC_HABLAbias_Adst 0x00000002#define HC_HABLAbias_Fog 0x00000003#define HC_HABLAbias_Aaa 0x00000004/* HC_SubA_HABLAop 0x0037 */#define HC_HABLAop_MASK 0x00004000#define HC_HABLAb_MASK 0x00003f00#define HC_HABLAb_OPA_MASK 0x00000f00#define HC_HABLFAb_MASK 0x000000fc#define HC_HABLFAb_OPA_MASK 0x0000003c#define HC_HABLAshift_MASK 0x00000003#define HC_HABLAb_OPA (HC_XA_OPA << 8)#define HC_HABLAb_InvOPA (HC_XA_InvOPA << 8)#define HC_HABLAb_OPAp5 (HC_XA_OPAp5 << 8)#define HC_HABLAb_0 (HC_XA_0 << 8)#define HC_HABLAb_Asrc (HC_XA_Asrc << 8)#define HC_HABLAb_Adst (HC_XA_Adst << 8)#define HC_HABLAb_Fog (HC_XA_Fog << 8)#define HC_HABLAb_minAsrcFog (HC_XA_minAsrcFog << 8)#define HC_HABLAb_minAsrcAdst (HC_XA_minAsrcAdst << 8)#define HC_HABLAb_maxAsrcFog (HC_XA_maxAsrcFog << 8)#define HC_HABLAb_maxAsrcAdst (HC_XA_maxAsrcAdst << 8)#define HC_HABLAb_HABLRA (HC_XA_HABLRA << 8)#define HC_HABLFAb_OPA (HC_XA_OPA << 2)#define HC_HABLFAb_InvOPA (HC_XA_InvOPA << 2)#define HC_HABLFAb_OPAp5 (HC_XA_OPAp5 << 2)#define HC_HABLFAb_0 (HC_XA_0 << 2)#define HC_HABLFAb_Asrc (HC_XA_Asrc << 2)#define HC_HABLFAb_Adst (HC_XA_Adst << 2)#define HC_HABLFAb_Fog (HC_XA_Fog << 2)#define HC_HABLFAb_minAsrcFog (HC_XA_minAsrcFog << 2)#define HC_HABLFAb_minAsrcAdst (HC_XA_minAsrcAdst << 2)#define HC_HABLFAb_maxAsrcFog (HC_XA_maxAsrcFog << 2)#define HC_HABLFAb_maxAsrcAdst (HC_XA_maxAsrcAdst << 2)#define HC_HABLFAb_minAsrcInvAdst (HC_XA_minAsrcInvAdst << 2)#define HC_HABLFAb_HABLFRA (HC_XA_HABLFRA << 2)/* HC_SubA_HABLRAa 0x003d */#define HC_HABLRAa_MASK 0x00ff0000#define HC_HABLRFAa_MASK 0x0000ff00#define HC_HABLRAbias_MASK 0x000000ff#define HC_HABLRAa_SHIFT 16#define HC_HABLRFAa_SHIFT 8/* HC_SubA_HABLRAb 0x003e */#define HC_HABLRAb_MASK 0x0000ff00#define HC_HABLRFAb_MASK 0x000000ff#define HC_HABLRAb_SHIFT 8/* Destination Setting */#define HC_SubA_HDBBasL 0x0040#define HC_SubA_HDBBasH 0x0041#define HC_SubA_HDBFM 0x0042#define HC_SubA_HFBBMSKL 0x0043#define HC_SubA_HROP 0x0044/* HC_SubA_HDBFM 0x0042 */#define HC_HDBFM_MASK 0x001f0000#define HC_HDBLoc_MASK 0x0000c000#define HC_HDBPit_MASK 0x00003fff#define HC_HDBFM_RGB555 0x00000000#define HC_HDBFM_RGB565 0x00010000#define HC_HDBFM_ARGB4444 0x00020000#define HC_HDBFM_ARGB1555 0x00030000#define HC_HDBFM_BGR555 0x00040000#define HC_HDBFM_BGR565 0x00050000#define HC_HDBFM_ABGR4444 0x00060000#define HC_HDBFM_ABGR1555 0x00070000#define HC_HDBFM_ARGB0888 0x00080000#define HC_HDBFM_ARGB8888 0x00090000#define HC_HDBFM_ABGR0888 0x000a0000#define HC_HDBFM_ABGR8888 0x000b0000#define HC_HDBLoc_Local 0x00000000#define HC_HDBLoc_Sys 0x00004000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -