Remove unused aom_rans_build_cdf_from_pdf
Change-Id: I544989eae45b7dda04250365c3de99f50110a76b
(cherry picked from aom/master commit 06cce842ca
)
This commit is contained in:
Родитель
dacf45facd
Коммит
d5b9c730ad
|
@ -15,15 +15,6 @@
|
||||||
#include "aom_dsp/ans.h"
|
#include "aom_dsp/ans.h"
|
||||||
#include "aom_dsp/prob.h"
|
#include "aom_dsp/prob.h"
|
||||||
|
|
||||||
void aom_rans_build_cdf_from_pdf(const AnsP10 token_probs[], rans_lut cdf_tab) {
|
|
||||||
int i;
|
|
||||||
cdf_tab[0] = 0;
|
|
||||||
for (i = 1; cdf_tab[i - 1] < RANS_PRECISION; ++i) {
|
|
||||||
cdf_tab[i] = cdf_tab[i - 1] + token_probs[i - 1];
|
|
||||||
}
|
|
||||||
assert(cdf_tab[i - 1] == RANS_PRECISION);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int find_largest(const AnsP10 *const pdf_tab, int num_syms) {
|
static int find_largest(const AnsP10 *const pdf_tab, int num_syms) {
|
||||||
int largest_idx = -1;
|
int largest_idx = -1;
|
||||||
int largest_p = -1;
|
int largest_p = -1;
|
||||||
|
|
|
@ -39,8 +39,6 @@ typedef uint16_t AnsP10;
|
||||||
// This is now just a boring cdf.
|
// This is now just a boring cdf.
|
||||||
typedef uint16_t rans_lut[16];
|
typedef uint16_t rans_lut[16];
|
||||||
|
|
||||||
void aom_rans_build_cdf_from_pdf(const AnsP10 token_probs[], rans_lut cdf_tab);
|
|
||||||
|
|
||||||
void aom_rans_merge_prob8_pdf(AnsP10 *const out_pdf, const AnsP8 node_prob,
|
void aom_rans_merge_prob8_pdf(AnsP10 *const out_pdf, const AnsP8 node_prob,
|
||||||
const AnsP10 *const src_pdf, int in_syms);
|
const AnsP10 *const src_pdf, int in_syms);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Загрузка…
Ссылка в новой задаче