1 /* 2 * Copyright (c) 2023 The WebM project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef VPX_VP9_ENCODER_VP9_FIRSTPASS_STATS_H_ 12 #define VPX_VP9_ENCODER_VP9_FIRSTPASS_STATS_H_ 13 14 #include <stdint.h> 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 typedef struct { 21 double frame; 22 double weight; 23 double intra_error; 24 double coded_error; 25 double sr_coded_error; 26 double frame_noise_energy; 27 double pcnt_inter; 28 double pcnt_motion; 29 double pcnt_second_ref; 30 double pcnt_neutral; 31 double pcnt_intra_low; // Coded intra but low variance 32 double pcnt_intra_high; // Coded intra high variance 33 double intra_skip_pct; 34 double intra_smooth_pct; // % of blocks that are smooth 35 double inactive_zone_rows; // Image mask rows top and bottom. 36 double inactive_zone_cols; // Image mask columns at left and right edges. 37 double MVr; 38 double mvr_abs; 39 double MVc; 40 double mvc_abs; 41 double MVrv; 42 double MVcv; 43 double mv_in_out_count; 44 double duration; 45 double count; 46 double new_mv_count; 47 int64_t spatial_layer_id; 48 } FIRSTPASS_STATS; 49 50 #ifdef __cplusplus 51 } // extern "C" 52 #endif 53 54 #endif // VPX_VP9_ENCODER_VP9_FIRSTPASS_STATS_H_ 55