Camera Services: Difference between revisions
Jump to navigation
Jump to search
Add y2r command parameters (from Brunswick Pro Bowling DWARF info) |
Add y2r enums from Brunswick Pro Bowling DWARF information |
||
Line 15: | Line 15: | ||
|- | |- | ||
| 0x00010040 | | 0x00010040 | ||
| SetInputFormat( | | SetInputFormat(InputFormat) | ||
|- | |- | ||
| 0x00030040 | | 0x00030040 | ||
| SetOutputFormat( | | SetOutputFormat(OutputFormat) | ||
|- | |- | ||
| 0x00050040 | | 0x00050040 | ||
| SetRotation( | | SetRotation(Rotation) | ||
|- | |- | ||
| 0x00070040 | | 0x00070040 | ||
| SetBlockAlignment( | | SetBlockAlignment(BlockAlignment) | ||
|- | |- | ||
| 0x000D0040 | | 0x000D0040 | ||
Line 54: | Line 54: | ||
|- | |- | ||
| 0x00200040 | | 0x00200040 | ||
| SetStandardCoefficient( | | SetStandardCoefficient(StandardCoefficient) | ||
|- | |- | ||
| 0x00220040 | | 0x00220040 | ||
Line 76: | Line 76: | ||
| 0x002C0000 | | 0x002C0000 | ||
| DriverFinalize | | DriverFinalize | ||
|} | |||
'''InputFormat''' | |||
{| class="wikitable" border="1" | |||
|- | |||
! Enum | |||
! Value | |||
|- | |||
| INPUT_YUV422_INDIV_8 | |||
| 0x0 | |||
|- | |||
| INPUT_YUV420_INDIV_8 | |||
| 0x1 | |||
|- | |||
| INPUT_YUV422_INDIV_16 | |||
| 0x2 | |||
|- | |||
| INPUT_YUV420_INDIV_16 | |||
| 0x3 | |||
|- | |||
| INPUT_YUV422_BATCH | |||
| 0x4 | |||
|} | |||
'''OutputFormat''' | |||
{| class="wikitable" border="1" | |||
|- | |||
! Enum | |||
! Value | |||
|- | |||
| OUTPUT_RGB_32 | |||
| 0x0 | |||
|- | |||
| OUTPUT_RGB_24 | |||
| 0x1 | |||
|- | |||
| OUTPUT_RGB_16_555 | |||
| 0x2 | |||
|- | |||
| OUTPUT_RGB_16_565 | |||
| 0x3 | |||
|} | |||
'''Rotation''' | |||
{| class="wikitable" border="1" | |||
|- | |||
! Enum | |||
! Value | |||
|- | |||
| ROTATION_NONE | |||
| 0x0 | |||
|- | |||
| ROTATION_CLOCKWISE_90 | |||
| 0x1 | |||
|- | |||
| ROTATION_CLOCKWISE_180 | |||
| 0x2 | |||
|- | |||
| ROTATION_CLOCKWISE_270 | |||
| 0x3 | |||
|} | |||
'''BlockAlignment''' | |||
{| class="wikitable" border="1" | |||
|- | |||
! Enum | |||
! Value | |||
|- | |||
| BLOCK_LINE | |||
| 0x0 | |||
|- | |||
| BLOCK_8_BY_8 | |||
| 0x1 | |||
|} | |||
'''StandardCoefficient''' | |||
{| class="wikitable" border="1" | |||
|- | |||
! Enum | |||
! Value | |||
|- | |||
| COEFFICIENT_ITU_R_BT_601 | |||
| 0x0 | |||
|- | |||
| COEFFICIENT_ITU_R_BT_709 | |||
| 0x1 | |||
|- | |||
| COEFFICIENT_ITU_R_BT_601_SCALING | |||
| 0x2 | |||
|- | |||
| COEFFICIENT_ITU_R_BT_709_SCALING | |||
| 0x3 | |||
|- | |||
| COEFFICIENT_MAX | |||
| 0x4 | |||
|} | |} |
Revision as of 05:57, 17 May 2015
cam:c (PORT_REG)
cam:s (PORT_CAL)
cam:q (PORT_QTM)
This was added with New3DS.
cam:u (PORT_USER)
y2r:u
Command Header | Description |
---|---|
0x00010040 | SetInputFormat(InputFormat) |
0x00030040 | SetOutputFormat(OutputFormat) |
0x00050040 | SetRotation(Rotation) |
0x00070040 | SetBlockAlignment(BlockAlignment) |
0x000D0040 | SetTransferEndInterrupt(bool) |
0x000F0000 | GetTransferEndEvent(Handle*) |
0x00100102 | SetSendingY(Handle srcProcess, unsigned int pSrc, unsigned int imageSize, short transferUnit, short transferStride). This DMAs from 0x1EE02000 into your buf. |
0x00110102 | SetSendingU(Handle srcProcess, unsigned int pSrc, unsigned int imageSize, short transferUnit, short transferStride). This DMAs from 0x1EE02080 into your buf. |
0x00120102 | SetSendingV(Handle srcProcess, unsigned int pSrc, unsigned int imageSize, short transferUnit, short transferStride). This DMAs from 0x1EE02100 into your buf. |
0x00130102 | This DMAs from 0x1EE02180 into your buf. |
0x00180102 | SetReceiving(Handle dstProcess, unsigned int pDst, unsigned int imageSize, short transferUnit, short transferStride). This DMAs from 0x1EE02200 into your buf. |
0x001A0040 | SetInputLineWidth(short) |
0x001C0040 | SetInputLines(short) |
0x00200040 | SetStandardCoefficient(StandardCoefficient) |
0x00220040 | SetAlpha(short) |
0x00260000 | StartConversion |
0x00270000 | StopConversion |
0x00280000 | IsBusyConversion(bool * state) |
0x002A0000 | PingProcess(unsigned char * connectedNumber) |
0x002B0000 | DriverInitialize |
0x002C0000 | DriverFinalize |
InputFormat
Enum | Value |
---|---|
INPUT_YUV422_INDIV_8 | 0x0 |
INPUT_YUV420_INDIV_8 | 0x1 |
INPUT_YUV422_INDIV_16 | 0x2 |
INPUT_YUV420_INDIV_16 | 0x3 |
INPUT_YUV422_BATCH | 0x4 |
OutputFormat
Enum | Value |
---|---|
OUTPUT_RGB_32 | 0x0 |
OUTPUT_RGB_24 | 0x1 |
OUTPUT_RGB_16_555 | 0x2 |
OUTPUT_RGB_16_565 | 0x3 |
Rotation
Enum | Value |
---|---|
ROTATION_NONE | 0x0 |
ROTATION_CLOCKWISE_90 | 0x1 |
ROTATION_CLOCKWISE_180 | 0x2 |
ROTATION_CLOCKWISE_270 | 0x3 |
BlockAlignment
Enum | Value |
---|---|
BLOCK_LINE | 0x0 |
BLOCK_8_BY_8 | 0x1 |
StandardCoefficient
Enum | Value |
---|---|
COEFFICIENT_ITU_R_BT_601 | 0x0 |
COEFFICIENT_ITU_R_BT_709 | 0x1 |
COEFFICIENT_ITU_R_BT_601_SCALING | 0x2 |
COEFFICIENT_ITU_R_BT_709_SCALING | 0x3 |
COEFFICIENT_MAX | 0x4 |