Lines Matching refs:weight_matrix
264 uint16_t weight_matrix[64] = { 1, }; // convert_matrix needs uint16_t* in dnxhd_init_qmat() local
278 weight_matrix[j] = ctx->cid_table->luma_weight[i]; in dnxhd_init_qmat()
281 weight_matrix, ctx->intra_quant_bias, 1, in dnxhd_init_qmat()
285 weight_matrix[j] = ctx->cid_table->chroma_weight[i]; in dnxhd_init_qmat()
288 weight_matrix, ctx->intra_quant_bias, 1, in dnxhd_init_qmat()
614 const uint8_t *weight_matrix; in dnxhd_unquantize_c() local
619 weight_matrix = ((n % 6) < 2) ? ctx->cid_table->luma_weight in dnxhd_unquantize_c()
622 weight_matrix = (n & 2) ? ctx->cid_table->chroma_weight in dnxhd_unquantize_c()
631 level = (1 - 2 * level) * qscale * weight_matrix[i]; in dnxhd_unquantize_c()
633 if (weight_matrix[i] != 8) in dnxhd_unquantize_c()
637 if (weight_matrix[i] != 32) in dnxhd_unquantize_c()
643 level = (2 * level + 1) * qscale * weight_matrix[i]; in dnxhd_unquantize_c()
645 if (weight_matrix[i] != 8) in dnxhd_unquantize_c()
649 if (weight_matrix[i] != 32) in dnxhd_unquantize_c()