summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/bitloading/src/bitloading.c
diff options
context:
space:
mode:
authorJérémy Dufour2011-10-19 15:54:56 +0100
committerJalil Chemseddine2012-06-28 17:29:18 +0200
commita96affc664818d381abd57988311ca8fbdebd018 (patch)
treee16b8db1889bb849c8595834ec2fd0f26b256fe2 /cesar/ce/rx/bitloading/src/bitloading.c
parentb57a45d6d46d88e641c97610c5ae7bc43852527f (diff)
cesar/ce/rx/bl: refactor PBER module, refs #3215
This commit includes: - refactoring of the PBER function to create a module to handle the PBER, - propose a new re-initialisation system - an impossible value means using the value from the first frame, - a valid value will be used as the initialization. - set default value of coefficient to last value defined by TNS team, - reset the PBER sliding mean after each CE restart, - isolate corresponding tests.
Diffstat (limited to 'cesar/ce/rx/bitloading/src/bitloading.c')
-rw-r--r--cesar/ce/rx/bitloading/src/bitloading.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/cesar/ce/rx/bitloading/src/bitloading.c b/cesar/ce/rx/bitloading/src/bitloading.c
index 64365a47d0..427367326e 100644
--- a/cesar/ce/rx/bitloading/src/bitloading.c
+++ b/cesar/ce/rx/bitloading/src/bitloading.c
@@ -580,28 +580,3 @@ ce_rx_bl_tone_map_update_compute_new_tonemap (ce_rx_bitloading_t *bl,
bl->opti_table_cursor = new_opti_cursor;
return out;
}
-
-void
-ce_rx_bl_pber_sliding_mean_update (ce_rx_bitloading_t *bt,
- uint pb_count,
- uint false_pb_count)
-{
- dbg_assert (bt);
- dbg_assert (pb_count > 0);
- dbg_assert (false_pb_count <= pb_count);
-
- /* Compute actual PB error rate quantified. */
- /* The maximum pb_count value given by hardware can't be over
- * MAC_MAX_PB_PER_MPDU. */
- dbg_assert (pb_count <= MAC_MAX_PB_PER_MPDU);
- uint pber_quantified = false_pb_count
- * CE_RX_BL_UPDATE_PBER_SLIDING_MEAN_QUANTIFICATION / pb_count;
- dbg_assert (pber_quantified
- <= CE_RX_BL_UPDATE_PBER_SLIDING_MEAN_QUANTIFICATION);
-
- /* Update PB error rate sliding mean. */
- dbg_assert (bt->pber_sliding_mean
- <= CE_RX_BL_UPDATE_PBER_SLIDING_MEAN_QUANTIFICATION);
- bt->pber_sliding_mean = (255 * bt->pber_sliding_mean
- + 1 * pber_quantified) / 256;
-}