Home
last modified time | relevance | path

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

/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_h265.c211 struct cedrus_h265_sram_pred_weight pred_weight[2] = { { 0 } }; in cedrus_h265_pred_weight_write() local
219 pred_weight[index].delta_weight = delta_luma_weight[i]; in cedrus_h265_pred_weight_write()
220 pred_weight[index].offset = luma_offset[i]; in cedrus_h265_pred_weight_write()
223 cedrus_h265_sram_write_data(dev, (u32 *)&pred_weight, in cedrus_h265_pred_weight_write()
224 sizeof(pred_weight)); in cedrus_h265_pred_weight_write()
231 pred_weight[j].delta_weight = delta_chroma_weight[i][j]; in cedrus_h265_pred_weight_write()
232 pred_weight[j].offset = chroma_offset[i][j]; in cedrus_h265_pred_weight_write()
235 cedrus_h265_sram_write_data(dev, &pred_weight, in cedrus_h265_pred_weight_write()
236 sizeof(pred_weight)); in cedrus_h265_pred_weight_write()
H A Dcedrus_h264.c283 const struct v4l2_ctrl_h264_pred_weights *pred_weight = in cedrus_write_pred_weight_table() local
289 ((pred_weight->chroma_log2_weight_denom & 0x7) << 4) | in cedrus_write_pred_weight_table()
290 ((pred_weight->luma_log2_weight_denom & 0x7) << 0)); in cedrus_write_pred_weight_table()
295 for (i = 0; i < ARRAY_SIZE(pred_weight->weight_factors); i++) { in cedrus_write_pred_weight_table()
297 &pred_weight->weight_factors[i]; in cedrus_write_pred_weight_table()