Reality Display Processor/Commands: Difference between revisions

Set Convert
(Set Scissor)
(Set Convert)
Line 526:
}}
 
====<span style="display:none;">0x2c - Set_ConvertSet Convert ====
----
{| class="wikitable" style="text-align: center; white-space:nowrap;"
! colspan="17"|Set_ConvertSet Convert <code>0x2c</code>
|-
| 63:48 || — || — || colspan=6| command = 0x2c[5:0] || — || — || colspan=6| convert.k[0][8:3]
|-
| 47:32 || colspan=3| convert.k[0]k0[2:0] || colspan=9| convert.k[1]k1[8:0] || colspan=4| convert.k[2]k2[8:5]
|-
| 31:16 || colspan=5| convert.k[2]k2[4:0] || colspan=9| convert.k[3]k3[8:0] || colspan=2| convert.k[4]k4[8:7]
|-
| 15:0 || colspan=7| convert.k[4]k4[6:0] || — || colspan=89| convert.kk5[5][78:0]
|}
{{#invoke:Register table|definitions
| 61:56 | command[5:0] | 0x2c
| 53:45 | convert.k[0]K0[8:0] | -Color conversion constant K0
| 44:36 | convert.k[1]K1[8:0] | -Color conversion constant K1
| 35:27 | convert.k[2]K2[8:0] | -Color conversion constant K2
| 26:18 | convert.k[3]K3[8:0] | -Color conversion constant K3
| 17:9 | convert.k[4]K4[8:0] | -Color conversion constant K4
| 78:0 | convert.kK5[5][78:0] | -Color conversion constant K5
}}
 
Sets colorspace conversion coefficients intended for YUV -> RGB conversion.
 
K0 through K3 are used in the Texture Filter color conversion step:
 
<math>
\begin{pmatrix}
R \\
G \\
B \\
A \\
\end{pmatrix}
=
\begin{pmatrix}
1 & 0 & K_0 \\
1 & K_1 & K_2 \\
1 & K_3 & 0 \\
1 & 0 & 0 \\
\end{pmatrix}
\begin{pmatrix}
Y \\
U \\
V \\
\end{pmatrix}
</math>
 
K4 and K5 are made available as Color Combiner inputs, with the intention that the CC complete the colorspace conversion process after receiving values from the Texture Filter.
 
K4 and K5 may also simply be used as additional general-purpose CC inputs.
 
====<span style="display:none;">0x2d - Set Scissor ====
56

edits