Reality Display Processor/Commands: Difference between revisions

Set Key R/GB
(Set Convert: Fix some formatting)
(Set Key R/GB)
Line 483:
}}
 
====<span style="display:none;">0x2a - Set_Key_GBSet Key GB ====
----
{| class="wikitable" style="text-align: center; white-space:nowrap;"
! colspan="17"|Set_Key_GBSet Key GB <code>0x2a</code>
|-
| 63:48 || — || — || colspan=6| command = 0x2a[5:0] || colspan=8| key.g.widthwidth_G[11:4]
|-
| 47:32 || colspan=4| key.g.widthwidth_G[3:0] || colspan=12| key.b.widthwidth_B[11:0]
|-
| 31:16 || colspan=8| key.g.centercenter_G[7:0] || colspan=8| key.g.scalescale_G[7:0]
|-
| 15:0 || colspan=8| key.b.centercenter_B[7:0] || colspan=8| key.b.scalescale_B[7:0]
|}
{{#invoke:Register table|definitions
| 61:56 | command[5:0] | 0x2a
| 55:44 | key.g.widthwidth_G[11:0] | Keying window half-width for green channel (4.8 format)
| 43:32 | key.b.widthwidth_B[11:0] | Keying window half-width for blue channel (4.8 format)
| 31:24 | key.g.centercenter_G[7:0] | -Center Color Combiner input for green channel
| 23:16 | key.g.scalescale_G[7:0] | -Scale Color Combiner input for green channel
| 15:8 | key.b.centercenter_B[7:0] | -Center Color Combiner input for blue channel
| 7:0 | key.b.scalescale_B[7:0] | -Scale Color Combiner input for blue channel
}}
 
Sets chroma Key parameters for the green and blue color channels.
====<span style="display:none;">0x2b - Set_Key_R ====
 
Key width is used exclusively in the chroma key pipeline stage following the Color Combiner (if enabled in othermodes)
 
<math>\mathrm{key\_alpha} = \mathrm{clamp}(-\mathrm{abs}(\mathrm{Combined}) + \mathrm{Width}, 0.0, 1.0)</math>
 
Key center and scale are Color Combiner inputs, the expectation is that the Color Combiner is configured to <math>(X - \mathrm{Center}) \cdot \mathrm{Scale}</math> when chroma keying, where <math>X</math> is any color source. If not chroma keying, these may be used as general-purpose Color Combiner inputs.
 
====<span style="display:none;">0x2b - Set_Key_RSet Key R ====
----
{| class="wikitable" style="text-align: center; white-space:nowrap;"
! colspan="17"|Set_Key_RSet Key R <code>0x2b</code>
|-
| 63:48 || — || — || colspan=6| command = 0x2b[5:0] || — || — || — || — || — || — || — || —
Line 515 ⟶ 523:
| 47:32 || — || — || — || — || — || — || — || — || — || — || — || — || — || — || — || —
|-
| 31:16 || — || — || — || — || colspan=12| key.r.widthwidth_R[11:0]
|-
| 15:0 || colspan=8| key.r.centercenter_R[7:0] || colspan=8| key.r.scalescale_R[7:0]
|}
{{#invoke:Register table|definitions
| 61:56 | command[5:0] | 0x2b
| 27:16 | key.r.widthwidth_R[11:0] | Keying window half-width for red channel (4.8 format)
| 15:8 | key.r.centercenter_R[7:0] | -Center Color Combiner input for red channel
| 7:0 | key.r.scalescale_R[7:0] | -Scale Color Combiner input for red channel
}}
 
Sets Chroma Key parameters for the red color channel. See '''Set Key GB''' for discussion.
 
====<span style="display:none;">0x2c - Set Convert ====
56

edits