Lines Matching defs:matrix
220 void ff_write_quant_matrix(PutBitContext *pb, uint16_t *matrix)
224 if (matrix) {
227 put_bits(pb, 8, matrix[ff_zigzag_direct[i]]);
861 /* init q matrix */
886 /* precompute matrix */
887 /* for mjpeg, we do include qscale in the matrix */
2785 /* note: quant matrix value (8) is implied here */
3652 /* for mjpeg, we do include qscale in the matrix */
3790 const uint16_t *matrix;
3845 matrix = n < 4 ? s->intra_matrix : s->chroma_intra_matrix;
3862 matrix = s->inter_matrix;
3940 unquant_coeff = alevel * matrix[j] * 8;
3944 unquant_coeff = (int)( alevel * mpeg2_qscale * matrix[j]) >> 4;
3947 unquant_coeff = ((( alevel << 1) + 1) * mpeg2_qscale * ((int) matrix[j])) >> 5;
4064 unquant_coeff = ((( alevel << 1) + 1) * mpeg2_qscale * ((int) matrix[0])) >> 5;