Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
365 changed files
with
15,266 additions
and 3,293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,6 +1,16 @@ | ||
| /* Optimization type */ | ||
|
|
||
| #define RO 0 // Resource Optimized (8-pixel implementation) | ||
| #define NO 1 // Normal Operation (1-pixel implementation) | ||
|
|
||
|
|
||
| #define GRAY 1 | ||
|
|
||
| #define FILTER_SIZE 3 | ||
|
|
||
| #define KERNEL_SHAPE XF_SHAPE_CROSS | ||
|
|
||
| #define ITERATIONS 1 | ||
|
|
||
|
|
||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,63 +1,65 @@ | ||
| /*************************************************************************** | ||
| Copyright (c) 2018, Xilinx, Inc. | ||
| All rights reserved. | ||
| Redistribution and use in source and binary forms, with or without modification, | ||
| are permitted provided that the following conditions are met: | ||
| 1. Redistributions of source code must retain the above copyright notice, | ||
| this list of conditions and the following disclaimer. | ||
| 2. Redistributions in binary form must reproduce the above copyright notice, | ||
| this list of conditions and the following disclaimer in the documentation | ||
| and/or other materials provided with the distribution. | ||
| 3. Neither the name of the copyright holder nor the names of its contributors | ||
| may be used to endorse or promote products derived from this software | ||
| without specific prior written permission. | ||
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
| ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
| THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
| IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
| PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| HOWEVER CXFSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
| OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
| EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| ***************************************************************************/ | ||
| #ifndef _XF_HEADERS_H_ | ||
| #define _XF_HEADERS_H_ | ||
|
|
||
|
|
||
| #include <stdio.h> | ||
| #include <stdlib.h> | ||
| #include <stdint.h> | ||
| #include "ap_int.h" | ||
| #include "hls_stream.h" | ||
|
|
||
| #if __SDSCC__ | ||
| #undef __ARM_NEON__ | ||
| #undef __ARM_NEON | ||
| #include "opencv2/opencv.hpp" | ||
| #include "opencv2/highgui/highgui.hpp" | ||
| #include "opencv2/imgproc/imgproc.hpp" | ||
| #define __ARM_NEON__ | ||
| #define __ARM_NEON | ||
| #else | ||
| #include "opencv/cv.h" | ||
| #include "opencv/highgui.h" | ||
| #include "opencv2/imgproc/imgproc.hpp" | ||
| #endif | ||
|
|
||
|
|
||
|
|
||
| #if __SDSCC__ | ||
| #include "sds_lib.h" | ||
| #define TIME_STAMP_INIT unsigned int clock_start, clock_end; clock_start = sds_clock_counter(); | ||
| #define TIME_STAMP { clock_end = sds_clock_counter(); printf("elapsed time %lu \n", clock_end-clock_start); clock_start = sds_clock_counter(); } | ||
| #endif | ||
|
|
||
| #include "common/xf_sw_utils.h" | ||
|
|
||
|
|
||
| #endif//_XF_HEADERS_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,7 +1,16 @@ | ||
| /* Optimization type */ | ||
|
|
||
| #define RO 0 // Resource Optimized (8-pixel implementation) | ||
| #define NO 1 // Normal Operation (1-pixel implementation) | ||
|
|
||
|
|
||
| #define GRAY 1 | ||
|
|
||
| #define FILTER_SIZE 3 | ||
|
|
||
| #define KERNEL_SHAPE XF_SHAPE_CROSS | ||
|
|
||
| #define ITERATIONS 1 | ||
|
|
||
|
|
||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,63 +1,65 @@ | ||
| /*************************************************************************** | ||
| Copyright (c) 2018, Xilinx, Inc. | ||
| All rights reserved. | ||
| Redistribution and use in source and binary forms, with or without modification, | ||
| are permitted provided that the following conditions are met: | ||
| 1. Redistributions of source code must retain the above copyright notice, | ||
| this list of conditions and the following disclaimer. | ||
| 2. Redistributions in binary form must reproduce the above copyright notice, | ||
| this list of conditions and the following disclaimer in the documentation | ||
| and/or other materials provided with the distribution. | ||
| 3. Neither the name of the copyright holder nor the names of its contributors | ||
| may be used to endorse or promote products derived from this software | ||
| without specific prior written permission. | ||
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
| ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
| THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
| IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
| PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| HOWEVER CXFSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
| OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
| EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| ***************************************************************************/ | ||
| #ifndef _XF_HEADERS_H_ | ||
| #define _XF_HEADERS_H_ | ||
|
|
||
|
|
||
| #include <stdio.h> | ||
| #include <stdlib.h> | ||
| #include <stdint.h> | ||
| #include "ap_int.h" | ||
| #include "hls_stream.h" | ||
|
|
||
| #if __SDSCC__ | ||
| #undef __ARM_NEON__ | ||
| #undef __ARM_NEON | ||
| #include "opencv2/opencv.hpp" | ||
| #include "opencv2/highgui/highgui.hpp" | ||
| #include "opencv2/imgproc/imgproc.hpp" | ||
| #define __ARM_NEON__ | ||
| #define __ARM_NEON | ||
| #else | ||
| #include "opencv/cv.h" | ||
| #include "opencv/highgui.h" | ||
| #include "opencv2/imgproc/imgproc.hpp" | ||
| #endif | ||
|
|
||
|
|
||
|
|
||
| #if __SDSCC__ | ||
| #include "sds_lib.h" | ||
| #define TIME_STAMP_INIT unsigned int clock_start, clock_end; clock_start = sds_clock_counter(); | ||
| #define TIME_STAMP { clock_end = sds_clock_counter(); printf("elapsed time %lu \n", clock_end-clock_start); clock_start = sds_clock_counter(); } | ||
| #endif | ||
|
|
||
| #include "common/xf_sw_utils.h" | ||
|
|
||
|
|
||
| #endif//_XF_HEADERS_H_ |
Oops, something went wrong.