Lines Matching refs:gain_data
978 chan->gain_data[i].num_points = get_bits(gb, 3);
982 chan->gain_data[i].num_points =
991 chan->gain_data[i].num_points =
992 (ref_chan->gain_data[i].num_points + delta) & 7;
995 chan->gain_data[0].num_points =
1002 chan->gain_data[i].num_points =
1003 (chan->gain_data[i - 1].num_points + delta) & 7;
1010 chan->gain_data[i].num_points =
1011 ref_chan->gain_data[i].num_points;
1017 chan->gain_data[i].num_points = min_val + GET_DELTA(gb, delta_bits);
1018 if (chan->gain_data[i].num_points > 7)
1084 for (i = 0; i < chan->gain_data[sb].num_points; i++)
1085 chan->gain_data[sb].lev_code[i] = get_bits(gb, 4);
1090 for (i = 0; i < chan->gain_data[sb].num_points; i++) {
1093 pred = (i >= ref_chan->gain_data[sb].num_points)
1094 ? 7 : ref_chan->gain_data[sb].lev_code[i];
1095 chan->gain_data[sb].lev_code[i] = (pred + delta) & 0xF;
1099 gainc_level_mode1m(gb, ctx, &chan->gain_data[sb]);
1105 if (chan->gain_data[sb].num_points > 0) {
1107 gainc_level_mode1m(gb, ctx, &chan->gain_data[sb]);
1109 gainc_level_mode3s(&chan->gain_data[sb],
1110 &ref_chan->gain_data[sb]);
1113 if (chan->gain_data[0].num_points > 0)
1114 gainc_level_mode1m(gb, ctx, &chan->gain_data[0]);
1117 for (i = 0; i < chan->gain_data[sb].num_points; i++) {
1120 pred = (i >= chan->gain_data[sb - 1].num_points)
1121 ? 7 : chan->gain_data[sb - 1].lev_code[i];
1122 chan->gain_data[sb].lev_code[i] = (pred + delta) & 0xF;
1129 gainc_level_mode3s(&chan->gain_data[sb],
1130 &ref_chan->gain_data[sb]);
1136 for (i = 0; i < chan->gain_data[sb].num_points; i++) {
1137 chan->gain_data[sb].lev_code[i] = min_val + GET_DELTA(gb, delta_bits);
1138 if (chan->gain_data[sb].lev_code[i] > 15)
1224 for (i = 0; i < chan->gain_data[sb].num_points; i++)
1225 gainc_loc_mode0(gb, ctx, &chan->gain_data[sb], i);
1230 if (chan->gain_data[sb].num_points <= 0)
1232 dst = &chan->gain_data[sb];
1233 ref = &ref_chan->gain_data[sb];
1269 gainc_loc_mode1(gb, ctx, &chan->gain_data[sb]);
1274 if (chan->gain_data[sb].num_points <= 0)
1276 dst = &chan->gain_data[sb];
1277 ref = &ref_chan->gain_data[sb];
1281 for (i = 0; i < chan->gain_data[sb].num_points; i++)
1286 for (i = 0; i < chan->gain_data[0].num_points; i++)
1287 gainc_loc_mode0(gb, ctx, &chan->gain_data[0], i);
1290 if (chan->gain_data[sb].num_points <= 0)
1292 dst = &chan->gain_data[sb];
1320 for (i = 0; i < chan->gain_data[sb].num_points; i++) {
1321 if (i >= ref_chan->gain_data[sb].num_points)
1322 gainc_loc_mode0(gb, ctx, &chan->gain_data[sb], i);
1324 chan->gain_data[sb].loc_code[i] =
1325 ref_chan->gain_data[sb].loc_code[i];
1332 for (i = 0; i < chan->gain_data[sb].num_points; i++)
1333 chan->gain_data[sb].loc_code[i] = min_val + i +
1341 dst = &chan->gain_data[sb];
1342 for (i = 0; i < chan->gain_data[sb].num_points; i++) {
1371 memset(ctx->channels[ch_num].gain_data, 0,
1372 sizeof(*ctx->channels[ch_num].gain_data) * ATRAC3P_SUBBANDS);
1388 ctx->channels[ch_num].gain_data[sb] =
1389 ctx->channels[ch_num].gain_data[sb - 1];