| 1071 | } |
| 1072 | |
| 1073 | static void build_gamma_lut(hb_filter_private_t *pv) |
| 1074 | { |
| 1075 | const int max = pv->max_value; |
| 1076 | for (int i = 0; i < max + 1; i++) |
| 1077 | { |
| 1078 | pv->gamma_lut[i] = pow(((float)i / (float)max), 2.2f); |
| 1079 | } |
| 1080 | } |
| 1081 | |
| 1082 | static int comb_detect_init(hb_filter_object_t *filter, |
| 1083 | hb_filter_init_t *init) |