Lines Matching defs:mat
274 for (unsigned int mat = 0; mat < mp->count; mat++) {
275 if (prev->outch[mat] != mp->outch[mat])
279 if (prev->coeff[mat][channel] != mp->coeff[mat][channel])
802 for (unsigned int mat = 0; mat < mp->count; mat++) {
803 put_bits(pb, 4, mp->outch[mat]); /* matrix_out_ch */
804 put_bits(pb, 4, mp->fbits[mat]);
808 int32_t coeff = mp->coeff[mat][channel];
813 coeff >>= 14 - mp->fbits[mat];
815 put_sbits(pb, mp->fbits[mat] + 2, coeff);
1398 static void code_matrix_coeffs(MLPEncodeContext *ctx, unsigned int mat)
1406 int32_t coeff = mp->coeff[mat][channel];
1412 mp->fbits [mat] = 14 - bits;
1455 for (int mat = 0; mat < mp->count; mat++)
1456 code_matrix_coeffs(ctx, mat);
1812 for (unsigned int mat = 0; mat < mp->count; mat++) {
1813 unsigned int msb_mask_bits = (ctx->avctx->sample_fmt == AV_SAMPLE_FMT_S16 ? 8 : 0) - mp->shift[mat];
1815 unsigned int outch = mp->outch[mat];
1823 accum += (int64_t) sample * mp->forco[mat][src_ch];