Home
last modified time | relevance | path

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

/third_party/ffmpeg/libavcodec/
H A Dscpr.c52 if (s->pixel_model[comp][j].total_freq != 256) { in reinit_tables()
57 s->pixel_model[comp][j].total_freq = 256; in reinit_tables()
103 static int decode(GetByteContext *gb, RangeCoder *rc, uint32_t cumFreq, uint32_t freq, uint32_t total_freq) in decode() argument
117 static int get_freq(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq() argument
119 if (total_freq == 0) in get_freq()
122 rc->range = rc->range / total_freq; in get_freq()
132 static int decode0(GetByteContext *gb, RangeCoder *rc, uint32_t cumFreq, uint32_t freq, uint32_t total_freq) in decode0() argument
136 if (total_freq == 0) in decode0()
139 t = rc->range * (uint64_t)cumFreq / total_freq; in decode0()
142 rc->range = rc->range * (uint64_t)(freq + cumFreq) / total_freq in decode0()
154 get_freq0(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) get_freq0() argument
[all...]
H A Dscpr.h39 uint32_t total_freq; member
71 int (*get_freq)(RangeCoder *rc, uint32_t total_freq, uint32_t *freq);
72 int (*decode)(GetByteContext *gb, RangeCoder *rc, uint32_t cumFreq, uint32_t freq, uint32_t total_freq);
H A Dmss3.c43 unsigned total_freq, total_weight; member
132 m->total_freq = 0x2000; in model2_reset()
159 m->total_freq = m->total_weight * scale >> 18; in model2_update()

Completed in 3 milliseconds