func: float *build_input_gamma_table(struct curveType *TRC) float * gamma_table ; if ( ! TRC )  gamma_table = malloc ( sizeof ( float ) * 256 ); if ( gamma_table )  if ( TRC -> type == PARAMETRIC_CURVE_TYPE )  compute_curve_gamma_table_type_parametric ( gamma_table , TRC -> parameter , TRC -> count ); void compute_curve_gamma_table_type_parametric(float gamma_table[256], float parameter[7], int count) if ( count == 0 )  if ( count == 1 )  if ( count == 2 )  if ( count == 3 )  if ( count == 4 )  assert ( 0 && "invalid parametric function type." ); 