systemviewinc / visual-system-integrator

Visual System Integrator - Accelerate your embedded development
7 stars 4 forks source link

Lambda expression confuses vsi_clang #235

Closed sandeepdutta closed 2 years ago

sandeepdutta commented 6 years ago

The following adds the parameters of the lambda expression cvt_0 to the parameter list of the top level function.

void process_webcam_0(uint32_t oa[WC_IMGSIZE/WC_BPP], hls::stream &cont, hls::stream &ctl) { // wait for the webcam to start streaming while (1) { if (webcam_0 && webcam_0->running) break; sleep(1); }; auto cvt_0 = [] (cv::Mat &in, cv::Mat &out) { cv::cvtColor(in,out,CV_RGB2GRAY); }; // output convertion function : convert to gray scale webcam_0->webcam_cvt_process_image(oa,cont,ctl,cvt_0); }

udnaan commented 6 years ago

Should be fixed in master. Verify and close.