summaryrefslogtreecommitdiff
path: root/scripts/py/templates/Images.hpp.template
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/py/templates/Images.hpp.template')
-rw-r--r--scripts/py/templates/Images.hpp.template11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/py/templates/Images.hpp.template b/scripts/py/templates/Images.hpp.template
index d39fc49..1f0a70e 100644
--- a/scripts/py/templates/Images.hpp.template
+++ b/scripts/py/templates/Images.hpp.template
@@ -1,5 +1,5 @@
{#
- SPDX-FileCopyrightText: Copyright 2021 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ SPDX-FileCopyrightText: Copyright 2021, 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
@@ -35,6 +35,15 @@ extern const uint8_t {{var_name}}[IMAGE_DATA_SIZE];
**/
const char* GetFilename(const uint32_t idx);
+{% if source_directory %}
+/**
+ * @brief Gets the file path for the image on the local filesystem
+ * @param[in] idx Index of the input.
+ * @return const C string pointer to the file path.
+ **/
+const char* GetFilePath(const uint32_t idx);
+{% endif %}
+
/**
* @brief Gets the pointer to image data.
* @param[in] idx Index of the input.