mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
[irs] Change negative to color_invert
This commit is contained in:
parent
22d8ac4e80
commit
67a455cc9b
@ -29,7 +29,7 @@ typedef struct {
|
||||
u64 exposure; ///< IR Sensor exposure time in nanoseconds.
|
||||
u32 ir_leds; ///< Controls the IR leds. 0: All leds, 1: Bright group, 2: Dim group, 3: None.
|
||||
u32 digital_gain; ///< IR sensor signal's digital gain.
|
||||
u8 negative; ///< Inverts the captured image. 0: Normal image, 1: Negative image.
|
||||
u8 color_invert; ///< Inverts the colors of the captured image. 0: Normal image, 1: Negative image.
|
||||
u8 pad[7];
|
||||
u32 sensor_res; ///< IR Sensor resolution. 0: 240x320, 1: 120x160, 2: 60x80.
|
||||
} irsImageTransferProcessorConfig;
|
||||
@ -38,7 +38,7 @@ typedef struct {
|
||||
u64 exposure; ///< IR Sensor exposure time in nanoseconds.
|
||||
u8 ir_leds; ///< Controls the IR leds. 0: All leds, 1: Bright group, 2: Dim group, 3: None.
|
||||
u8 digital_gain; ///< IR sensor signal's digital gain.
|
||||
u8 negative; ///< Inverts the captured image. 0: Normal image, 1: Negative image.
|
||||
u8 color_invert; ///< Inverts the colors of the captured image. 0: Normal image, 1: Negative image.
|
||||
u8 pad[5];
|
||||
u32 unk_constant;//offset 0x10
|
||||
u8 sensor_res; ///< IR Sensor resolution. 0: 240x320, 1: 120x160, 2: 60x80.
|
||||
|
@ -337,7 +337,7 @@ Result irsRunImageTransferProcessor(u32 IrCameraHandle, irsImageTransferProcesso
|
||||
packed_config.exposure = config->exposure;
|
||||
packed_config.ir_leds = config->ir_leds;
|
||||
packed_config.digital_gain = config->digital_gain;
|
||||
packed_config.negative = config->negative;
|
||||
packed_config.color_invert = config->color_invert;
|
||||
packed_config.unk_constant = 0xa0003;
|
||||
packed_config.sensor_res = config->sensor_res;
|
||||
|
||||
@ -419,7 +419,7 @@ void irsGetDefaultImageTransferProcessorConfig(irsImageTransferProcessorConfig *
|
||||
config->exposure = 300000;
|
||||
config->ir_leds = 0;
|
||||
config->digital_gain = 8;
|
||||
config->negative = 0;
|
||||
config->color_invert = 0;
|
||||
config->sensor_res = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user