@@ -246,13 +246,15 @@ BEGIN_RCPP
246246END_RCPP
247247}
248248// livestream
249- void livestream (Rcpp::Function filter);
250- RcppExport SEXP _opencv_livestream (SEXP filterSEXP) {
249+ Rcpp::RObject livestream (Rcpp::Function filter, bool stop_on_result );
250+ RcppExport SEXP _opencv_livestream (SEXP filterSEXP, SEXP stop_on_resultSEXP ) {
251251BEGIN_RCPP
252+ Rcpp::RObject rcpp_result_gen;
252253 Rcpp::RNGScope rcpp_rngScope_gen;
253254 Rcpp::traits::input_parameter< Rcpp::Function >::type filter (filterSEXP);
254- livestream (filter);
255- return R_NilValue;
255+ Rcpp::traits::input_parameter< bool >::type stop_on_result (stop_on_resultSEXP);
256+ rcpp_result_gen = Rcpp::wrap (livestream (filter, stop_on_result));
257+ return rcpp_result_gen;
256258END_RCPP
257259}
258260// data_prefix
@@ -507,7 +509,7 @@ static const R_CallMethodDef CallEntries[] = {
507509 {" _opencv_cvmat_copyto" , (DL_FUNC) &_opencv_cvmat_copyto, 3 },
508510 {" _opencv_cvmat_info" , (DL_FUNC) &_opencv_cvmat_info, 1 },
509511 {" _opencv_cvmat_display" , (DL_FUNC) &_opencv_cvmat_display, 1 },
510- {" _opencv_livestream" , (DL_FUNC) &_opencv_livestream, 1 },
512+ {" _opencv_livestream" , (DL_FUNC) &_opencv_livestream, 2 },
511513 {" _opencv_data_prefix" , (DL_FUNC) &_opencv_data_prefix, 0 },
512514 {" _opencv_set_num_threads" , (DL_FUNC) &_opencv_set_num_threads, 1 },
513515 {" _opencv_cvmat_grayscale" , (DL_FUNC) &_opencv_cvmat_grayscale, 1 },
0 commit comments