blob: 6e86f988569ae6d99b2e4f73e43b7f20ff42f5de [file] [log] [blame]
alexander3c798932021-03-26 21:42:19 +00001{#
2 Copyright (c) 2021 Arm Limited. All rights reserved.
3 SPDX-License-Identifier: Apache-2.0
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16#}
17{{common_template_header}}
18
19#include "InputFiles.hpp"
20
21static const char *img_filenames[] = {
22{% for name in img_names %}
23 "{{name}}",
24{% endfor %}
25};
26
27static const uint8_t *img_arrays[] = {
28 {{ var_names|join(',\n\t') }}
29};
30
31const char* get_filename(const uint32_t idx)
32{
33 if (idx < NUMBER_OF_FILES) {
34 return img_filenames[idx];
35 }
36 return nullptr;
37}
38
39
40const uint8_t* get_img_array(const uint32_t idx)
41{
42 if (idx < NUMBER_OF_FILES) {
43 return img_arrays[idx];
44 }
45 return nullptr;
46}
47