Lines Matching refs:sl

197     const H264SliceContext *sl = &h->slice_ctx[0];
200 *luma_weight_flag = sl->pwt.luma_weight_flag[list];
201 *chroma_weight_flag = sl->pwt.chroma_weight_flag[list];
203 for (i = 0; i < sl->ref_count[list]; i++) {
206 if (sl->pwt.luma_weight_flag[list]) {
207 luma_weight[i] = sl->pwt.luma_weight[i][list][0];
208 luma_offset[i] = sl->pwt.luma_weight[i][list][1];
210 luma_weight[i] = 1 << sl->pwt.luma_log2_weight_denom;
214 if (sl->pwt.chroma_weight_flag[list]) {
215 chroma_weight[i][j] = sl->pwt.chroma_weight[i][list][j][0];
216 chroma_offset[i][j] = sl->pwt.chroma_weight[i][list][j][1];
218 chroma_weight[i][j] = 1 << sl->pwt.chroma_log2_weight_denom;
314 H264SliceContext *sl = &h->slice_ctx[0];
321 ff_h264_draw_horiz_band(h, sl, 0, h->avctx->height);
334 const H264SliceContext *sl = &h->slice_ctx[0];
342 .slice_data_bit_offset = get_bits_count(&sl->gb),
343 .first_mb_in_slice = (sl->mb_y >> FIELD_OR_MBAFF_PICTURE(h)) * h->mb_width + sl->mb_x,
344 .slice_type = ff_h264_get_slice_type(sl),
345 .direct_spatial_mv_pred_flag = sl->slice_type == AV_PICTURE_TYPE_B ? sl->direct_spatial_mv_pred : 0,
346 .num_ref_idx_l0_active_minus1 = sl->list_count > 0 ? sl->ref_count[0] - 1 : 0,
347 .num_ref_idx_l1_active_minus1 = sl->list_count > 1 ? sl->ref_count[1] - 1 : 0,
348 .cabac_init_idc = sl->cabac_init_idc,
349 .slice_qp_delta = sl->qscale - h->ps.pps->init_qp,
350 .disable_deblocking_filter_idc = sl->deblocking_filter < 2 ? !sl->deblocking_filter : sl->deblocking_filter,
351 .slice_alpha_c0_offset_div2 = sl->slice_alpha_c0_offset / 2,
352 .slice_beta_offset_div2 = sl->slice_beta_offset / 2,
353 .luma_log2_weight_denom = sl->pwt.luma_log2_weight_denom,
354 .chroma_log2_weight_denom = sl->pwt.chroma_log2_weight_denom,
357 fill_vaapi_RefPicList(slice_param.RefPicList0, sl->ref_list[0],
358 sl->list_count > 0 ? sl->ref_count[0] : 0);
359 fill_vaapi_RefPicList(slice_param.RefPicList1, sl->ref_list[1],
360 sl->list_count > 1 ? sl->ref_count[1] : 0);