From 67a455cc9bc41cedff6bf75c0a5336787074f763 Mon Sep 17 00:00:00 2001 From: Kostas Missos Date: Wed, 7 Mar 2018 02:12:20 +0200 Subject: [PATCH] [irs] Change negative to color_invert --- nx/include/switch/services/irs.h | 4 ++-- nx/source/services/irs.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nx/include/switch/services/irs.h b/nx/include/switch/services/irs.h index 67b340f0..f83ebe00 100644 --- a/nx/include/switch/services/irs.h +++ b/nx/include/switch/services/irs.h @@ -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. diff --git a/nx/source/services/irs.c b/nx/source/services/irs.c index aecac488..ac216e36 100644 --- a/nx/source/services/irs.c +++ b/nx/source/services/irs.c @@ -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; }