Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jean-marc.valin@octasic.com>2011-04-22 00:33:23 +0400
committerJean-Marc Valin <jean-marc.valin@octasic.com>2011-04-22 00:33:23 +0400
commit9c3dc6b4b8f63cc66c947128e0594ec7de0ab7ea (patch)
tree870d3024a569ff86d3a220c161497929cdecec36
parenteda2dee88dd1124771500ae1caaef55868aee044 (diff)
s/intra_decision()/loss_distortion()/
-rw-r--r--libcelt/quant_bands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcelt/quant_bands.c b/libcelt/quant_bands.c
index 2641a1b..acd5965 100644
--- a/libcelt/quant_bands.c
+++ b/libcelt/quant_bands.c
@@ -139,7 +139,7 @@ static const unsigned char e_prob_model[4][2][42] = {
static const unsigned char small_energy_icdf[3]={2,1,0};
-static celt_word32 intra_decision(const celt_word16 *eBands, celt_word16 *oldEBands, int start, int end, int len, int C)
+static celt_word32 loss_distortion(const celt_word16 *eBands, celt_word16 *oldEBands, int start, int end, int len, int C)
{
int c, i;
celt_word32 dist = 0;
@@ -275,7 +275,7 @@ void quant_coarse_energy(const CELTMode *m, int start, int end, int effEnd,
intra = force_intra || (!two_pass && *delayedIntra>2*C*(end-start) && nbAvailableBytes > (end-start)*C);
intra_bias = ((budget**delayedIntra*loss_rate)/(C*512));
- *delayedIntra = intra_decision(eBands, oldEBands, start, effEnd, m->nbEBands, C);
+ *delayedIntra = loss_distortion(eBands, oldEBands, start, effEnd, m->nbEBands, C);
tell = ec_tell(enc);
if (tell+3 > budget)