D | vf_libopencv.c | 86 SmoothContext *smooth = s->priv; in smooth_init() local 89 smooth->param1 = 3; in smooth_init() 90 smooth->param2 = 0; in smooth_init() 91 smooth->param3 = 0.0; in smooth_init() 92 smooth->param4 = 0.0; in smooth_init() 95 …canf(args, "%127[^|]|%d|%d|%lf|%lf", type_str, &smooth->param1, &smooth->param2, &smooth->param3, … in smooth_init() 97 if (!strcmp(type_str, "blur" )) smooth->type = CV_BLUR; in smooth_init() 98 else if (!strcmp(type_str, "blur_no_scale")) smooth->type = CV_BLUR_NO_SCALE; in smooth_init() 99 else if (!strcmp(type_str, "median" )) smooth->type = CV_MEDIAN; in smooth_init() 100 else if (!strcmp(type_str, "gaussian" )) smooth->type = CV_GAUSSIAN; in smooth_init() [all …]
|