| 1048 | } |
| 1049 | |
| 1050 | static int comb_segmenter(hb_filter_private_t *pv) |
| 1051 | { |
| 1052 | /* |
| 1053 | * Now that all data for comb detection is ready for |
| 1054 | * our threads, fire them off and wait for their completion. |
| 1055 | */ |
| 1056 | taskset_cycle(&pv->comb_detect_filter_taskset); |
| 1057 | |
| 1058 | if (pv->mode & MODE_FILTER) |
| 1059 | { |
| 1060 | taskset_cycle(&pv->mask_filter_taskset); |
| 1061 | if (pv->filter_mode == FILTER_ERODE_DILATE) |
| 1062 | { |
| 1063 | taskset_cycle(&pv->mask_erode_taskset); |
| 1064 | taskset_cycle(&pv->mask_dilate_taskset); |
| 1065 | taskset_cycle(&pv->mask_erode_taskset); |
| 1066 | } |
| 1067 | } |
| 1068 | reset_combing_results(pv); |
| 1069 | taskset_cycle(&pv->comb_detect_check_taskset); |
| 1070 | return check_combing_results(pv); |
| 1071 | } |
| 1072 | |
| 1073 | static void build_gamma_lut(hb_filter_private_t *pv) |
| 1074 | { |
no test coverage detected