Changes

657 bytes added ,  04:14, 20 December 2022
→‎REG_CAMDATA: Add YUV mode info
Line 124: Line 124:     
=== REG_CAMDATA ===
 
=== REG_CAMDATA ===
 +
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
! BIT
+
!
! DESCRIPTION
+
! BIT
 +
! DESCRIPTION
 +
|-
 +
! rowspan=4 | YUV422
 +
| 0-7
 +
| First pixel's luminance (Y)
 +
|-
 +
| 8-15
 +
| Both pixels' blue (U)
 
|-
 
|-
| 31-0
+
| 16-23
| RGB555 video data converted by internal-cameras DSP
+
| Second pixel's luminance (Y)
 +
|-
 +
| 24-31
 +
| Both pixels' red (V)
 +
|-
 +
! rowspan=8 | RGB555
 +
| 0-4
 +
| First pixel's red
 +
|-
 +
| 5-9
 +
| First pixel's green
 +
|-
 +
| 10-14
 +
| First pixel's blue
 +
|-
 +
| 15
 +
| First pixel's alpha (always 1)
 +
|-
 +
| 16-20
 +
| Second pixel's red
 +
|-
 +
| 21-25
 +
| Second pixel's green
 +
|-
 +
| 26-30
 +
| Second pixel's blue
 +
|-
 +
| 31
 +
| Second pixel's alpha (always 1)
 
|}
 
|}
   −
For retrieving camera video data, [[NDMA]] with arm9 startup mode 11(camera) is used with this src register. The NDMA frame transfer is started when the cameras [[Interrupts|IRQ]] was thrown. Supported internal-cameras DSP final resolutions are 256x192 and 640x480, the corresponding frame transfer lengths are 0x18000 and 0x96000.(The 256x192 final resolution is converted by the internal-cameras DSP from the camera resolution)
+
For retrieving camera video data, [[NDMA]] with arm9 startup mode 11(camera) is used with this src register. The NDMA frame transfer is started when the cameras [[Interrupts|IRQ]] was thrown. Supported internal-cameras DSP final resolutions are 256x192 and 640x480, the corresponding frame transfer lengths are 0x18000 and 0x96000. (The 256x192 final resolution is converted by the internal-cameras DSP from the camera resolution)
 +
 
 +
The video data can be transferred as the camera's native YUV422 for higher quality or automatically converted to the same RGB555 as the 2D engine bitmap format. No official program uses the YUV mode, but it has been used in the homebrew [[dsi-camera]].
    
== See also ==
 
== See also ==
150

edits