aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/PixelValue.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/core/PixelValue.h')
-rw-r--r--arm_compute/core/PixelValue.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arm_compute/core/PixelValue.h b/arm_compute/core/PixelValue.h
index 8c2ab92ad9..52b1f654ad 100644
--- a/arm_compute/core/PixelValue.h
+++ b/arm_compute/core/PixelValue.h
@@ -103,6 +103,15 @@ public:
break;
}
}
+ /** Initialize the union with a S8 pixel value
+ *
+ * @param[in] v S8 value.
+ */
+ PixelValue(int8_t v)
+ : PixelValue()
+ {
+ value.s8 = v;
+ }
/** Initialize the union with a U8 pixel value
*
* @param[in] v U8 value.