|
1 | 1 | /*************************************************************************** |
2 | | -Copyright (c) 2018, Xilinx, Inc. |
3 | | -All rights reserved. |
| 2 | + Copyright (c) 2018, Xilinx, Inc. |
| 3 | + All rights reserved. |
4 | 4 |
|
5 | | -Redistribution and use in source and binary forms, with or without modification, |
6 | | -are permitted provided that the following conditions are met: |
| 5 | + Redistribution and use in source and binary forms, with or without modification, |
| 6 | + are permitted provided that the following conditions are met: |
7 | 7 |
|
8 | | -1. Redistributions of source code must retain the above copyright notice, |
9 | | -this list of conditions and the following disclaimer. |
| 8 | + 1. Redistributions of source code must retain the above copyright notice, |
| 9 | + this list of conditions and the following disclaimer. |
10 | 10 |
|
11 | | -2. Redistributions in binary form must reproduce the above copyright notice, |
12 | | -this list of conditions and the following disclaimer in the documentation |
13 | | -and/or other materials provided with the distribution. |
| 11 | + 2. Redistributions in binary form must reproduce the above copyright notice, |
| 12 | + this list of conditions and the following disclaimer in the documentation |
| 13 | + and/or other materials provided with the distribution. |
14 | 14 |
|
15 | | -3. Neither the name of the copyright holder nor the names of its contributors |
16 | | -may be used to endorse or promote products derived from this software |
17 | | -without specific prior written permission. |
| 15 | + 3. Neither the name of the copyright holder nor the names of its contributors |
| 16 | + may be used to endorse or promote products derived from this software |
| 17 | + without specific prior written permission. |
18 | 18 |
|
19 | | -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
20 | | -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
21 | | -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
22 | | -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
23 | | -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
24 | | -PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
25 | | -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
26 | | -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
27 | | -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 | | -
|
29 | | -***************************************************************************/ |
| 19 | + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 20 | + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 21 | + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 22 | + IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 23 | + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 24 | + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 25 | + HOWEVER CXFSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 26 | + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| 27 | + EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 | 28 |
|
| 29 | + ***************************************************************************/ |
31 | 30 | #ifndef _XF_HEADERS_H_ |
32 | 31 | #define _XF_HEADERS_H_ |
33 | 32 |
|
| 33 | + |
34 | 34 | #include <stdio.h> |
35 | 35 | #include <stdlib.h> |
36 | | - |
37 | | - |
| 36 | +#include <stdint.h> |
| 37 | +#include "ap_int.h" |
| 38 | +#include "hls_stream.h" |
38 | 39 |
|
39 | 40 | #if __SDSCC__ |
40 | 41 | #undef __ARM_NEON__ |
41 | 42 | #undef __ARM_NEON |
42 | 43 | #include "opencv2/opencv.hpp" |
43 | | -#include "opencv2/imgproc/imgproc.hpp" |
44 | 44 | #include "opencv2/highgui/highgui.hpp" |
| 45 | +#include "opencv2/imgproc/imgproc.hpp" |
45 | 46 | #define __ARM_NEON__ |
46 | 47 | #define __ARM_NEON |
47 | 48 | #else |
48 | | -#include "opencv2/opencv.hpp" |
| 49 | +#include "opencv/cv.h" |
| 50 | +#include "opencv/highgui.h" |
49 | 51 | #include "opencv2/imgproc/imgproc.hpp" |
50 | | -#include "opencv2/highgui/highgui.hpp" |
51 | 52 | #endif |
52 | 53 |
|
53 | 54 |
|
| 55 | + |
54 | 56 | #if __SDSCC__ |
55 | 57 | #include "sds_lib.h" |
56 | 58 | #define TIME_STAMP_INIT unsigned int clock_start, clock_end; clock_start = sds_clock_counter(); |
57 | 59 | #define TIME_STAMP { clock_end = sds_clock_counter(); printf("elapsed time %lu \n", clock_end-clock_start); clock_start = sds_clock_counter(); } |
58 | 60 | #endif |
59 | 61 |
|
60 | 62 | #include "common/xf_sw_utils.h" |
61 | | -#include "common/xf_axi.h" |
62 | | -#endif//_XF_HEADERS_H_ |
63 | 63 |
|
| 64 | + |
| 65 | +#endif//_XF_HEADERS_H_ |
0 commit comments