Lines Matching defs:section

164 static void zero_stats(FIRSTPASS_STATS *section) {
165 section->frame = 0.0;
166 section->intra_error = 0.0;
167 section->coded_error = 0.0;
168 section->sr_coded_error = 0.0;
169 section->ssim_weighted_pred_err = 0.0;
170 section->pcnt_inter = 0.0;
171 section->pcnt_motion = 0.0;
172 section->pcnt_second_ref = 0.0;
173 section->pcnt_neutral = 0.0;
174 section->MVr = 0.0;
175 section->mvr_abs = 0.0;
176 section->MVc = 0.0;
177 section->mvc_abs = 0.0;
178 section->MVrv = 0.0;
179 section->MVcv = 0.0;
180 section->mv_in_out_count = 0.0;
181 section->new_mv_count = 0.0;
182 section->count = 0.0;
183 section->duration = 1.0;
184 section->spatial_layer_id = 0;
187 static void accumulate_stats(FIRSTPASS_STATS *section,
189 section->frame += frame->frame;
190 section->spatial_layer_id = frame->spatial_layer_id;
191 section->intra_error += frame->intra_error;
192 section->coded_error += frame->coded_error;
193 section->sr_coded_error += frame->sr_coded_error;
194 section->ssim_weighted_pred_err += frame->ssim_weighted_pred_err;
195 section->pcnt_inter += frame->pcnt_inter;
196 section->pcnt_motion += frame->pcnt_motion;
197 section->pcnt_second_ref += frame->pcnt_second_ref;
198 section->pcnt_neutral += frame->pcnt_neutral;
199 section->MVr += frame->MVr;
200 section->mvr_abs += frame->mvr_abs;
201 section->MVc += frame->MVc;
202 section->mvc_abs += frame->mvc_abs;
203 section->MVrv += frame->MVrv;
204 section->MVcv += frame->MVcv;
205 section->mv_in_out_count += frame->mv_in_out_count;
206 section->new_mv_count += frame->new_mv_count;
207 section->count += frame->count;
208 section->duration += frame->duration;
211 static void subtract_stats(FIRSTPASS_STATS *section,
213 section->frame -= frame->frame;
214 section->intra_error -= frame->intra_error;
215 section->coded_error -= frame->coded_error;
216 section->sr_coded_error -= frame->sr_coded_error;
217 section->ssim_weighted_pred_err -= frame->ssim_weighted_pred_err;
218 section->pcnt_inter -= frame->pcnt_inter;
219 section->pcnt_motion -= frame->pcnt_motion;
220 section->pcnt_second_ref -= frame->pcnt_second_ref;
221 section->pcnt_neutral -= frame->pcnt_neutral;
222 section->MVr -= frame->MVr;
223 section->mvr_abs -= frame->mvr_abs;
224 section->MVc -= frame->MVc;
225 section->mvc_abs -= frame->mvc_abs;
226 section->MVrv -= frame->MVrv;
227 section->MVcv -= frame->MVcv;
228 section->mv_in_out_count -= frame->mv_in_out_count;
229 section->new_mv_count -= frame->new_mv_count;
230 section->count -= frame->count;
231 section->duration -= frame->duration;
234 static void avg_stats(FIRSTPASS_STATS *section) {
235 if (section->count < 1.0)
238 section->intra_error /= section->count;
239 section->coded_error /= section->count;
240 section->sr_coded_error /= section->count;
241 section->ssim_weighted_pred_err /= section->count;
242 section->pcnt_inter /= section->count;
243 section->pcnt_second_ref /= section->count;
244 section->pcnt_neutral /= section->count;
245 section->pcnt_motion /= section->count;
246 section->MVr /= section->count;
247 section->mvr_abs /= section->count;
248 section->MVc /= section->count;
249 section->mvc_abs /= section->count;
250 section->MVrv /= section->count;
251 section->MVcv /= section->count;
252 section->mv_in_out_count /= section->count;
253 section->duration /= section->count;
1058 // by a static section. For example in slide shows where there is a fade
2025 // complexity of the section.
2258 // Keyframe and section processing.