Lines Matching defs:gctx
67 av_cold void ff_atrac_init_gain_compensation(AtracGCContext *gctx, int id2exp_offset,
72 gctx->loc_scale = loc_scale;
73 gctx->loc_size = 1 << loc_scale;
74 gctx->id2exp_offset = id2exp_offset;
78 gctx->gain_tab1[i] = powf(2.0, id2exp_offset - i);
82 gctx->gain_tab2[i + 15] = powf(2.0, -1.0f / gctx->loc_size * i);
85 void ff_atrac_gain_compensation(AtracGCContext *gctx, float *in, float *prev,
92 gc_scale = gc_next->num_points ? gctx->gain_tab1[gc_next->lev_code[0]]
102 lastpos = gc_now->loc_code[i] << gctx->loc_scale;
104 lev = gctx->gain_tab1[gc_now->lev_code[i]];
105 gain_inc = gctx->gain_tab2[(i + 1 < gc_now->num_points ? gc_now->lev_code[i + 1]
106 : gctx->id2exp_offset) -
114 for (; pos < lastpos + gctx->loc_size; pos++) {