forked from Xilinx/SDAccel-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkernels.h
More file actions
15 lines (12 loc) · 836 Bytes
/
kernels.h
File metadata and controls
15 lines (12 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "types.h"
extern "C" {
// Convolve RGB video frame with input filter
void convolve_cpu(const RGBPixel* inFrame, RGBPixel* outFrame, const float* filter, int filter_size, int img_width, int img_height);
// Convert RGB video frame to grayscale
void grayscale_cpu(const RGBPixel* inFrame, GrayPixel* outFrame, int img_width, int img_height);
// Convolve RGB video frame with input filter
// void convolve_fpga(const RGBPixel* inFrame, RGBPixel* outFrame, const float* filter, int filter_size, int img_width, int img_height);
void convolve_fpga(const RGBPixel* inFrame, RGBPixel* outFrame, const float* coefficient, int coefficient_size, int img_width, int img_height);
// Convert RGB video frame to grayscale
void grayscale_fpga(const RGBPixel* inFrame, GrayPixel* outFrame, int img_width, int img_height);
}