Lines Matching defs:tm_params

74                     AVHDRVividColorToneMappingParams *tm_params = &params->tm_params[i];
78 tm_params->targeted_system_display_maximum_luminance = (AVRational){get_bits(gb, 12), maximum_luminance_den};
79 tm_params->base_enable_flag = get_bits(gb, 1);
80 if (tm_params->base_enable_flag) {
83 tm_params->base_param_m_p = (AVRational){get_bits(gb, 14), base_param_m_p_den};
84 tm_params->base_param_m_m = (AVRational){get_bits(gb, 6), base_param_m_m_den};
85 tm_params->base_param_m_a = (AVRational){get_bits(gb, 10), base_param_m_a_den};
86 tm_params->base_param_m_b = (AVRational){get_bits(gb, 10), base_param_m_b_den};
87 tm_params->base_param_m_n = (AVRational){get_bits(gb, 6), base_param_m_n_den};
88 tm_params->base_param_k1 = get_bits(gb, 2);
89 tm_params->base_param_k2 = get_bits(gb, 2);
90 tm_params->base_param_k3 = get_bits(gb, 4);
91 tm_params->base_param_Delta_enable_mode = get_bits(gb, 3);
92 if (tm_params->base_param_Delta_enable_mode == 2 || tm_params->base_param_Delta_enable_mode == 6)
93 tm_params->base_param_Delta = (AVRational){get_bits(gb, 7) * -1, base_param_Delta_den};
95 tm_params->base_param_Delta = (AVRational){get_bits(gb, 7), base_param_Delta_den};
99 tm_params->three_Spline_enable_flag = get_bits(gb, 1);
100 if (tm_params->three_Spline_enable_flag) {
101 if (get_bits_left(gb) < 1 + tm_params->three_Spline_num * (2 + 12 + 28 + 1))
103 tm_params->three_Spline_num = get_bits(gb, 1) + 1;
104 for (int j = 0; j < tm_params->three_Spline_num; j++) {
105 tm_params->three_Spline_TH_mode = get_bits(gb, 2);
106 if (tm_params->three_Spline_TH_mode == 0 || tm_params->three_Spline_TH_mode == 2) {
109 tm_params->three_Spline_TH_enable_MB = (AVRational){get_bits(gb, 8), 255};
111 tm_params->three_Spline_TH_enable = (AVRational){get_bits(gb, 12), 4095};
112 tm_params->three_Spline_TH_Delta1 = (AVRational){get_bits(gb, 10), 1023};
113 tm_params->three_Spline_TH_Delta2 = (AVRational){get_bits(gb, 10), 1023};
114 tm_params->three_Spline_enable_Strength = (AVRational){get_bits(gb, 8), 255};
117 tm_params->three_Spline_num = 1;
118 tm_params->three_Spline_TH_mode = 0;