Lines Matching refs:weight_matrix
160 uint16_t weight_matrix[64] = {1,}; // convert_matrix needs uint16_t*
173 weight_matrix[j] = ctx->cid_table->luma_weight[i];
175 ff_convert_matrix(&ctx->m.dsp, ctx->qmatrix_l, ctx->qmatrix_l16, weight_matrix,
179 weight_matrix[j] = ctx->cid_table->chroma_weight[i];
181 ff_convert_matrix(&ctx->m.dsp, ctx->qmatrix_c, ctx->qmatrix_c16, weight_matrix,
399 const uint8_t *weight_matrix;
403 weight_matrix = (n&2) ? ctx->cid_table->chroma_weight : ctx->cid_table->luma_weight;
410 level = (1-2*level) * qscale * weight_matrix[i];
412 if (weight_matrix[i] != 8)
416 if (weight_matrix[i] != 32)
422 level = (2*level+1) * qscale * weight_matrix[i];
424 if (weight_matrix[i] != 8)
428 if (weight_matrix[i] != 32)