MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / build_gamma_lut

Function build_gamma_lut

libhb/comb_detect.c:1073–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1071}
1072
1073static 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
1082static int comb_detect_init(hb_filter_object_t *filter,
1083 hb_filter_init_t *init)

Callers 1

comb_detect_initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected