Home
last modified time | relevance | path

Searched refs:total_freq (Results 1 – 3 of 3) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dscpr.c51 if (s->pixel_model[comp][j].total_freq != 256) { in reinit_tables()
56 s->pixel_model[comp][j].total_freq = 256; in reinit_tables()
102 …nt decode(GetByteContext *gb, RangeCoder *rc, uint32_t cumFreq, uint32_t freq, uint32_t total_freq) in decode() argument
116 static int get_freq(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq() argument
118 if (total_freq == 0) in get_freq()
121 rc->range = rc->range / total_freq; in get_freq()
131 …t decode0(GetByteContext *gb, RangeCoder *rc, uint32_t cumFreq, uint32_t freq, uint32_t total_freq) in decode0() argument
135 if (total_freq == 0) in decode0()
138 t = rc->range * (uint64_t)cumFreq / total_freq; in decode0()
141 rc->range = rc->range * (uint64_t)(freq + cumFreq) / total_freq - (t + 1); in decode0()
[all …]
Dscpr.h44 uint32_t total_freq; member
76 int (*get_freq)(RangeCoder *rc, uint32_t total_freq, uint32_t *freq);
77 …*decode)(GetByteContext *gb, RangeCoder *rc, uint32_t cumFreq, uint32_t freq, uint32_t total_freq);
Dmss3.c42 unsigned total_freq, total_weight; member
131 m->total_freq = 0x2000; in model2_reset()
158 m->total_freq = m->total_weight * scale >> 18; in model2_update()