summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/bitloading/src/initial.c
blob: 30c78869f3adb90dd7aed63ca30b825aca59c89d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Cesar project {{{
 *
 * Copyright (C) 2009 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    ce/rx/bitloading/src/initial.c
 * \brief   Bit Loading initial functions generation.
 * \ingroup ce_rx
 *
 * This file contains the functions to generate the tone map initial for the
 * bit loading initial.
 */
#include "common/std.h"

#include "ce/rx/bitloading/inc/bitloading.h"
#include "ce/rx/bitloading/inc/ber.h"
#include "ce/rx/bitloading/inc/initial.h"

tonemap_t *
ce_rx_bl_initial (tonemask_info_t *tonemask, tonemask_info_t *reducedtm,
                  ce_rx_bitloading_t *bl)
{
    /* Only one iteration. */
    return ce_rx_bl_compute_tone_map_iterative (ce_rx_bl_initial_bpt, 1,
                                                tonemask, reducedtm, bl);
}