libnx
v4.8.0
|
HID IR sensor (irs) service IPC wrapper. More...
Go to the source code of this file.
Data Structures | |
struct | IrsIrCameraHandle |
IrCameraHandle. More... | |
struct | IrsPackedMcuVersion |
PackedMcuVersion. More... | |
struct | IrsPackedFunctionLevel |
PackedFunctionLevel. More... | |
struct | IrsRect |
Rect. More... | |
struct | IrsMomentProcessorConfig |
IrsMomentProcessorConfig. More... | |
struct | IrsPackedMomentProcessorConfig |
PackedMomentProcessorConfig. More... | |
struct | IrsClusteringProcessorConfig |
ClusteringProcessorConfig. More... | |
struct | IrsPackedClusteringProcessorConfig |
PackedClusteringProcessorConfig. More... | |
struct | IrsImageTransferProcessorConfig |
ImageTransferProcessorConfig. More... | |
struct | IrsImageTransferProcessorExConfig |
ImageTransferProcessorExConfig. More... | |
struct | IrsPackedImageTransferProcessorConfig |
PackedImageTransferProcessorConfig. More... | |
struct | IrsPackedImageTransferProcessorExConfig |
PackedImageTransferProcessorExConfig. More... | |
struct | IrsImageTransferProcessorState |
ImageTransferProcessorState. More... | |
struct | IrsPackedPointingProcessorConfig |
PackedPointingProcessorConfig. More... | |
struct | IrsTeraPluginProcessorConfig |
TeraPluginProcessorConfig. More... | |
struct | IrsPackedTeraPluginProcessorConfig |
PackedTeraPluginProcessorConfig. More... | |
struct | IrsIrLedProcessorConfig |
IrLedProcessorConfig. More... | |
struct | IrsPackedIrLedProcessorConfig |
PackedIrLedProcessorConfig. More... | |
struct | IrsAdaptiveClusteringProcessorConfig |
AdaptiveClusteringProcessorConfig. More... | |
struct | IrsHandAnalysisConfig |
HandAnalysisConfig. More... | |
struct | IrsMomentStatistic |
MomentStatistic. More... | |
struct | IrsMomentProcessorState |
MomentProcessorState. More... | |
struct | IrsClusteringData |
ClusteringData. More... | |
struct | IrsClusteringProcessorState |
ClusteringProcessorState. More... | |
struct | IrsPointingProcessorMarkerState |
PointingProcessorMarkerState. More... | |
struct | IrsPointingProcessorState |
PointingProcessorState. More... | |
struct | IrsTeraPluginProcessorState |
TeraPluginProcessorState. More... | |
struct | IrsProcessorState |
ProcessorState. More... | |
struct | IrsDeviceFormat |
DeviceFormat. More... | |
struct | IrsAruidFormat |
AruidFormat. More... | |
struct | IrsStatusManager |
StatusManager. More... | |
Macros | |
#define | IRS_MAX_CAMERAS 0x9 |
Typedefs | |
typedef bool(* | IrsValidationCb) (void *userdata, void *arg) |
Internal validation callblack. | |
HID IR sensor (irs) service IPC wrapper.
enum IrsHandAnalysisMode |
ImageTransferProcessorFormat. IR Sensor image resolution.
IrCameraInternalStatus.
enum IrsIrCameraStatus |
enum IrsIrSensorMode |
IrSensorMode.
Enumerator | |
---|---|
IrsIrSensorMode_None | None. |
IrsIrSensorMode_MomentProcessor | MomentProcessor. |
IrsIrSensorMode_ClusteringProcessor | ClusteringProcessor. |
IrsIrSensorMode_ImageTransferProcessor | ImageTransferProcessor. |
IrsIrSensorMode_PointingProcessor | PointingProcessor. |
IrsIrSensorMode_TeraPluginProcessor | TeraPluginProcessor. |
IrsIrSensorMode_IrLedProcessor | IrLedProcessor (doesn't apply to IrsDeviceFormat::ir_sensor_mode) |
IrsMomentStatistic irsCalculateMomentRegionStatistic | ( | const IrsMomentProcessorState * | state, |
IrsRect | rect, | ||
s32 | region_x, | ||
s32 | region_y, | ||
s32 | region_width, | ||
s32 | region_height | ||
) |
Calculates an IrsMomentStatistic from the specified region in the input IrsMomentProcessorState.
[in] | state | IrsMomentProcessorState |
[in] | rect | IrsRect, containing the image width and height. |
[in] | region_x | Region x, must be 0-5 (clamped to this range otherwise). region_x = image_x/6. |
[in] | region_y | Region y, must be 0-7 (clamped to this range otherwise). region_y = image_y/8. |
[in] | region_width | Region width. region_x+region_width must be <=6 (clamped to this range otherwise). |
[in] | region_height | Region height. region_y+region_height must be <=8 (clamped to this range otherwise). |
Result irsCheckFirmwareUpdateNecessity | ( | IrsIrCameraHandle | handle, |
bool * | out | ||
) |
CheckFirmwareUpdateNecessity When successful where the output flag is set, the user should use hidLaShowControllerFirmwareUpdate.
Only available on [4.0.0+].
Result irsGetClusteringProcessorStates | ( | IrsIrCameraHandle | handle, |
IrsClusteringProcessorState * | states, | ||
s32 | count, | ||
s32 * | total_out | ||
) |
Gets the states for ClusteringProcessor.
[in] | handle | IrsIrCameraHandle |
[out] | states | Output array of IrsClusteringProcessorState. |
[in] | count | Size of the states array in entries. Must be 1-5. |
[out] | total_out | Total output entries. |
void irsGetDefaultImageTransferProcessorConfig | ( | IrsImageTransferProcessorConfig * | config | ) |
Gets the default configuration for ImageTransferProcessor.
Defaults are exposure 300us, 8x digital gain, the rest is all-zero. Format is IrsImageTransferProcessorFormat_320x240.
void irsGetDefaultImageTransferProcessorExConfig | ( | IrsImageTransferProcessorExConfig * | config | ) |
Gets the default configuration for ImageTransferProcessorEx.
Defaults are exposure 300us, 8x digital gain, the rest is all-zero. OrigFormat/TrimmingFormat are IrsImageTransferProcessorFormat_320x240.
Result irsGetMomentProcessorStates | ( | IrsIrCameraHandle | handle, |
IrsMomentProcessorState * | states, | ||
s32 | count, | ||
s32 * | total_out | ||
) |
Gets the states for MomentProcessor or IrLedProcessor.
[in] | handle | IrsIrCameraHandle |
[out] | states | Output array of IrsMomentProcessorState. |
[in] | count | Size of the states array in entries. Must be 1-5. |
[out] | total_out | Total output entries. |
Result irsGetPointingProcessorMarkerStates | ( | IrsIrCameraHandle | handle, |
IrsPointingProcessorMarkerState * | states, | ||
s32 | count, | ||
s32 * | total_out | ||
) |
Gets the states for PointingProcessor.
[in] | handle | IrsIrCameraHandle |
[out] | states | Output array of IrsPointingProcessorMarkerState. |
[in] | count | Size of the states array in entries. Must be 1-6. |
[out] | total_out | Total output entries. |
Result irsGetPointingProcessorStates | ( | IrsIrCameraHandle | handle, |
IrsPointingProcessorState * | states, | ||
s32 | count, | ||
s32 * | total_out | ||
) |
Gets the states for IrsPointingProcessorState.
[in] | handle | IrsIrCameraHandle |
[out] | states | Output array of IrsPointingProcessorState. |
[in] | count | Size of the states array in entries. Must be 1-6. |
[out] | total_out | Total output entries. |
Result irsGetTeraPluginProcessorStates | ( | IrsIrCameraHandle | handle, |
IrsTeraPluginProcessorState * | states, | ||
s32 | count, | ||
s64 | sampling_number, | ||
u32 | prefix_data, | ||
u32 | prefix_bitcount, | ||
s32 * | total_out | ||
) |
Gets the states for TeraPluginProcessor, filtered using the input params.
[in] | handle | IrsIrCameraHandle |
[out] | states | Output array of IrsTeraPluginProcessorState. |
[in] | count | Size of the states array in entries. Must be 1-5. |
[in] | sampling_number | Minimum value for IrsTeraPluginProcessorState::sampling_number. |
[in] | prefix_data | Only used when prefix_bitcount is not 0. The first prefix_bitcount bits from prefix_data must match the first prefix_bitcount bits in IrsTeraPluginProcessorState::plugin_data. |
[in] | prefix_bitcount | Total bits for prefix_data. |
[out] | total_out | Total output entries. |
Result irsRunAdaptiveClusteringProcessor | ( | IrsIrCameraHandle | handle, |
const IrsAdaptiveClusteringProcessorConfig * | config | ||
) |
Run the AdaptiveClusteringProcessor.
[in] | handle | IrsIrCameraHandle |
[in] | config | Input config. |
Result irsRunClusteringProcessor | ( | IrsIrCameraHandle | handle, |
const IrsClusteringProcessorConfig * | config | ||
) |
Run the ClusteringProcessor.
[in] | handle | IrsIrCameraHandle |
[in] | config | Input config. |
Result irsRunHandAnalysis | ( | IrsIrCameraHandle | handle, |
const IrsHandAnalysisConfig * | config | ||
) |
Run HandAnalysis.
[in] | handle | IrsIrCameraHandle |
[in] | config | Input config. |
Result irsRunImageTransferExProcessor | ( | IrsIrCameraHandle | handle, |
const IrsImageTransferProcessorExConfig * | config, | ||
size_t | size | ||
) |
Run the ImageTransferExProcessor.
[in] | handle | IrsIrCameraHandle |
[in] | config | Input config. |
[in] | size | Work-buffer size, must be 0x1000-byte aligned. |
Result irsRunImageTransferProcessor | ( | IrsIrCameraHandle | handle, |
const IrsImageTransferProcessorConfig * | config, | ||
size_t | size | ||
) |
Run the ImageTransferProcessor.
[in] | handle | IrsIrCameraHandle |
[in] | config | Input config. |
[in] | size | Work-buffer size, must be 0x1000-byte aligned. |
Result irsRunIrLedProcessor | ( | IrsIrCameraHandle | handle, |
const IrsIrLedProcessorConfig * | config | ||
) |
Run the IrLedProcessor.
[in] | handle | IrsIrCameraHandle |
[in] | config | Input config. |
Result irsRunMomentProcessor | ( | IrsIrCameraHandle | handle, |
const IrsMomentProcessorConfig * | config | ||
) |
Run the MomentProcessor.
[in] | handle | IrsIrCameraHandle |
[in] | config | Input config. |
Result irsRunPointingProcessor | ( | IrsIrCameraHandle | handle | ) |
Run the PointingProcessor.
[in] | handle | IrsIrCameraHandle |
Result irsRunTeraPluginProcessor | ( | IrsIrCameraHandle | handle, |
const IrsTeraPluginProcessorConfig * | config | ||
) |
Run the TeraPluginProcessor.
[in] | handle | IrsIrCameraHandle |
[in] | config | Input config. |
Result irsStopImageProcessor | ( | IrsIrCameraHandle | handle | ) |
Stop the current Processor.
irsExit calls this with all IrCameraHandles which were not already used with irsStopImageProcessor.
Result irsStopImageProcessorAsync | ( | IrsIrCameraHandle | handle | ) |
Stop the current Processor, async.
Only available on [4.0.0+].