Lines Matching defs:ref

933  * @param[in]    ref   ptr to the reference channel
935 static inline void gainc_level_mode3s(AtracGainInfo *dst, AtracGainInfo *ref)
940 dst->lev_code[i] = (i >= ref->num_points) ? 7 : ref->lev_code[i];
1118 AtracGainInfo *dst, *ref;
1135 ref = &ref_chan->gain_data[sb];
1140 pred = ref->num_points > 0 ? ref->loc_code[0] : 0;
1144 more_than_ref = i >= ref->num_points;
1156 dst->loc_code[i] = ref->loc_code[i]; // clone master
1165 dst->loc_code[i] = (ref->loc_code[i] + delta) & 0x1F;
1179 ref = &ref_chan->gain_data[sb];
1180 if (dst->num_points > ref->num_points || get_bits1(gb))
1184 dst->loc_code[i] = ref->loc_code[i];
1315 Atrac3pWavesData *ref = ctx->channels[0].tones_info;
1332 dst[sb].pend_env.has_start_point = ref[sb].pend_env.has_start_point;
1333 dst[sb].pend_env.has_stop_point = ref[sb].pend_env.has_stop_point;
1334 dst[sb].pend_env.start_pos = ref[sb].pend_env.start_pos;
1335 dst[sb].pend_env.stop_pos = ref[sb].pend_env.stop_pos;
1357 Atrac3pWavesData *ref = ctx->channels[0].tones_info;
1379 dst[sb].num_wavs = (ref[sb].num_wavs + delta) & 0xF;
1385 dst[sb].num_wavs = ref[sb].num_wavs;
1421 Atrac3pWavesData *ref = ctx->channels[0].tones_info;
1452 iwav = &ctx->waves_info->waves[ref[sb].start_index];
1458 pred = (i < ref[sb].num_wavs) ? iwav[i].freq_index :
1459 (ref[sb].num_wavs ? iwav[ref[sb].num_wavs - 1].freq_index : 0);
1482 Atrac3pWavesData *ref = ctx->channels[0].tones_info;
1489 wref = &ctx->waves_info->waves[ref[sb].start_index];
1491 for (i = 0, fi = 0, maxdiff = 1024; i < ref[sb].num_wavs; i++) {
1500 refwaves[dst[sb].start_index + j] = fi + ref[sb].start_index;
1501 else if (j < ref[sb].num_wavs)
1502 refwaves[dst[sb].start_index + j] = j + ref[sb].start_index;