|
libnx v4.9.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. | |
Functions | |
| Result | irsInitialize (void) |
| Initialize irs. | |
| void | irsExit (void) |
| Exit irs. | |
| Service * | irsGetServiceSession (void) |
| Gets the Service object for the actual irs service session. | |
| void * | irsGetSharedmemAddr (void) |
| Gets the address of the SharedMemory (IrsStatusManager). | |
| Result | irsGetIrCameraHandle (IrsIrCameraHandle *handle, HidNpadIdType id) |
| Gets the IrsIrCameraHandle for the specified controller. | |
| Result | irsGetIrCameraStatus (IrsIrCameraHandle handle, IrsIrCameraStatus *out) |
| GetIrCameraStatus. | |
| Result | irsCheckFirmwareUpdateNecessity (IrsIrCameraHandle handle, bool *out) |
| CheckFirmwareUpdateNecessity When successful where the output flag is set, the user should use hidLaShowControllerFirmwareUpdate. | |
| Result | irsGetImageProcessorStatus (IrsIrCameraHandle handle, IrsImageProcessorStatus *out) |
| GetImageProcessorStatus Only available on [4.0.0+]. | |
| Result | irsStopImageProcessor (IrsIrCameraHandle handle) |
| Stop the current Processor. | |
| Result | irsStopImageProcessorAsync (IrsIrCameraHandle handle) |
| Stop the current Processor, async. | |
| Result | irsRunMomentProcessor (IrsIrCameraHandle handle, const IrsMomentProcessorConfig *config) |
| Run the MomentProcessor. | |
| Result | irsGetMomentProcessorStates (IrsIrCameraHandle handle, IrsMomentProcessorState *states, s32 count, s32 *total_out) |
| Gets the states for MomentProcessor or IrLedProcessor. | |
| 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. | |
| Result | irsRunClusteringProcessor (IrsIrCameraHandle handle, const IrsClusteringProcessorConfig *config) |
| Run the ClusteringProcessor. | |
| Result | irsGetClusteringProcessorStates (IrsIrCameraHandle handle, IrsClusteringProcessorState *states, s32 count, s32 *total_out) |
| Gets the states for ClusteringProcessor. | |
| Result | irsRunImageTransferProcessor (IrsIrCameraHandle handle, const IrsImageTransferProcessorConfig *config, size_t size) |
| Run the ImageTransferProcessor. | |
| Result | irsRunImageTransferExProcessor (IrsIrCameraHandle handle, const IrsImageTransferProcessorExConfig *config, size_t size) |
| Run the ImageTransferExProcessor. | |
| Result | irsGetImageTransferProcessorState (IrsIrCameraHandle handle, void *buffer, size_t size, IrsImageTransferProcessorState *state) |
| GetImageTransferProcessorState. | |
| Result | irsRunPointingProcessor (IrsIrCameraHandle handle) |
| Run the PointingProcessor. | |
| Result | irsGetPointingProcessorMarkerStates (IrsIrCameraHandle handle, IrsPointingProcessorMarkerState *states, s32 count, s32 *total_out) |
| Gets the states for PointingProcessor. | |
| Result | irsGetPointingProcessorStates (IrsIrCameraHandle handle, IrsPointingProcessorState *states, s32 count, s32 *total_out) |
| Gets the states for IrsPointingProcessorState. | |
| Result | irsRunTeraPluginProcessor (IrsIrCameraHandle handle, const IrsTeraPluginProcessorConfig *config) |
| Run the TeraPluginProcessor. | |
| 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. | |
| Result | irsRunIrLedProcessor (IrsIrCameraHandle handle, const IrsIrLedProcessorConfig *config) |
| Run the IrLedProcessor. | |
| Result | irsRunAdaptiveClusteringProcessor (IrsIrCameraHandle handle, const IrsAdaptiveClusteringProcessorConfig *config) |
| Run the AdaptiveClusteringProcessor. | |
| Result | irsRunHandAnalysis (IrsIrCameraHandle handle, const IrsHandAnalysisConfig *config) |
| Run HandAnalysis. | |
| void | irsGetMomentProcessorDefaultConfig (IrsMomentProcessorConfig *config) |
| Gets the default configuration for MomentProcessor. | |
| void | irsGetClusteringProcessorDefaultConfig (IrsClusteringProcessorConfig *config) |
| Gets the default configuration for ClusteringProcessor. | |
| void | irsGetDefaultImageTransferProcessorConfig (IrsImageTransferProcessorConfig *config) |
| Gets the default configuration for ImageTransferProcessor. | |
| void | irsGetDefaultImageTransferProcessorExConfig (IrsImageTransferProcessorExConfig *config) |
| Gets the default configuration for ImageTransferProcessorEx. | |
| static void | irsGetIrLedProcessorDefaultConfig (IrsIrLedProcessorConfig *config) |
| Gets the default configuration for IrLedProcessor. | |
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+].