Home
last modified time | relevance | path

Searched refs:pred_weight (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.15/drivers/staging/media/sunxi/cedrus/
Dcedrus_h265.c195 struct cedrus_h265_sram_pred_weight pred_weight[2] = { { 0 } }; in cedrus_h265_pred_weight_write() local
203 pred_weight[index].delta_weight = delta_luma_weight[i]; in cedrus_h265_pred_weight_write()
204 pred_weight[index].offset = luma_offset[i]; in cedrus_h265_pred_weight_write()
207 cedrus_h265_sram_write_data(dev, (u32 *)&pred_weight, in cedrus_h265_pred_weight_write()
208 sizeof(pred_weight)); in cedrus_h265_pred_weight_write()
215 pred_weight[j].delta_weight = delta_chroma_weight[i][j]; in cedrus_h265_pred_weight_write()
216 pred_weight[j].offset = chroma_offset[i][j]; in cedrus_h265_pred_weight_write()
219 cedrus_h265_sram_write_data(dev, &pred_weight, in cedrus_h265_pred_weight_write()
220 sizeof(pred_weight)); in cedrus_h265_pred_weight_write()
Dcedrus_h264.c263 const struct v4l2_ctrl_h264_pred_weights *pred_weight = in cedrus_write_pred_weight_table() local
269 ((pred_weight->chroma_log2_weight_denom & 0x7) << 4) | in cedrus_write_pred_weight_table()
270 ((pred_weight->luma_log2_weight_denom & 0x7) << 0)); in cedrus_write_pred_weight_table()
275 for (i = 0; i < ARRAY_SIZE(pred_weight->weight_factors); i++) { in cedrus_write_pred_weight_table()
277 &pred_weight->weight_factors[i]; in cedrus_write_pred_weight_table()