From 7bafd34cfa4f74d60d5d2572c75223e0a1179efa Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Wed, 4 Mar 2015 13:58:24 +0200 Subject: [PATCH] Remove struct rd_stats. --- src/rdo.c | 8 +++++++- src/rdo.h | 9 --------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/rdo.c b/src/rdo.c index 9b4680b1..9688357d 100644 --- a/src/rdo.c +++ b/src/rdo.c @@ -616,7 +616,13 @@ void rdoq(encoder_state_t * const encoder_state, coefficient *coef, coefficient int8_t found_last = 0; int32_t cg_scanpos, scanpos_in_cg; - coeffgroup_rd_stats rd_stats; + struct { + double coded_level_and_dist; + double uncoded_dist; + double sig_cost; + double sig_cost_0; + int32_t nnz_before_pos0; + } rd_stats; int32_t last_x_bits[32],last_y_bits[32]; calc_last_bits(encoder_state, width, height, type,last_x_bits, last_y_bits); diff --git a/src/rdo.h b/src/rdo.h index 25e9f0bc..9efce6e6 100644 --- a/src/rdo.h +++ b/src/rdo.h @@ -31,15 +31,6 @@ #include "encoderstate.h" -typedef struct -{ - double coded_level_and_dist; - double uncoded_dist; - double sig_cost; - double sig_cost_0; - int32_t nnz_before_pos0; -} coeffgroup_rd_stats; - extern const uint32_t g_go_rice_range[5]; extern const uint32_t g_go_rice_prefix_len[5];