Lines Matching refs:pic_param
262 DXVA_PicParams_VP8 *pic_param = (DXVA_PicParams_VP8 *)task->dec.syntax.data; in hal_vp8d_dct_partition_cfg() local
269 if (pic_param->stream_start_offset) in hal_vp8d_dct_partition_cfg()
270 mpp_dev_set_reg_offset(ctx->dev, 145, pic_param->stream_start_offset); in hal_vp8d_dct_partition_cfg()
272 regs->reg122.sw_strm1_start_bit = pic_param->stream_start_bit; in hal_vp8d_dct_partition_cfg()
275 if (pic_param->decMode == VP8HWD_VP8 && !pic_param->frame_type) in hal_vp8d_dct_partition_cfg()
277 len = pic_param->streamEndPos + pic_param->frameTagSize in hal_vp8d_dct_partition_cfg()
278 - pic_param->dctPartitionOffsets[0]; in hal_vp8d_dct_partition_cfg()
279 len += ((1 << pic_param->log2_nbr_of_dct_partitions) - 1) * 3; in hal_vp8d_dct_partition_cfg()
280 len1 = extraBytesPacked + pic_param->dctPartitionOffsets[0]; in hal_vp8d_dct_partition_cfg()
284 len = pic_param->offsetToDctParts + pic_param->frameTagSize - in hal_vp8d_dct_partition_cfg()
285 (pic_param->stream_start_offset - extraBytesPacked); in hal_vp8d_dct_partition_cfg()
290 (1 << pic_param->log2_nbr_of_dct_partitions) - 1; in hal_vp8d_dct_partition_cfg()
291 for (i = 0; i < (RK_U32)(1 << pic_param->log2_nbr_of_dct_partitions); i++) { in hal_vp8d_dct_partition_cfg()
292 addr = extraBytesPacked + pic_param->dctPartitionOffsets[i]; in hal_vp8d_dct_partition_cfg()
450 DXVA_PicParams_VP8 *pic_param = (DXVA_PicParams_VP8 *)task->dec.syntax.data; in hal_vp8d_vdpu2_gen_regs() local
455 mb_width = (pic_param->width + 15) >> 4; in hal_vp8d_vdpu2_gen_regs()
456 mb_height = (pic_param->height + 15) >> 4; in hal_vp8d_vdpu2_gen_regs()
463 if (!pic_param->frame_type) { in hal_vp8d_vdpu2_gen_regs()
472 hal_vp8hw_asic_probe_update(pic_param, probe_ptr); in hal_vp8d_vdpu2_gen_regs()
474 mpp_buf_slot_get_prop(ctx->frame_slots, pic_param->CurrPic.Index7Bits, SLOT_BUFFER, &framebuf); in hal_vp8d_vdpu2_gen_regs()
476 if (!pic_param->frame_type) { //key frame in hal_vp8d_vdpu2_gen_regs()
481 } else if (pic_param->lst_fb_idx.Index7Bits < 0x7f) { //config ref0 base in hal_vp8d_vdpu2_gen_regs()
482 … mpp_buf_slot_get_prop(ctx->frame_slots, pic_param->lst_fb_idx.Index7Bits, SLOT_BUFFER, &framebuf); in hal_vp8d_vdpu2_gen_regs()
489 if (pic_param->gld_fb_idx.Index7Bits < 0x7f) { in hal_vp8d_vdpu2_gen_regs()
490 … mpp_buf_slot_get_prop(ctx->frame_slots, pic_param->gld_fb_idx.Index7Bits, SLOT_BUFFER, &framebuf); in hal_vp8d_vdpu2_gen_regs()
497 if (pic_param->ref_frame_sign_bias_golden) { in hal_vp8d_vdpu2_gen_regs()
498 mpp_dev_set_reg_offset(ctx->dev, 136, pic_param->ref_frame_sign_bias_golden); in hal_vp8d_vdpu2_gen_regs()
502 if (pic_param->alt_fb_idx.Index7Bits < 0x7f) { in hal_vp8d_vdpu2_gen_regs()
503 … mpp_buf_slot_get_prop(ctx->frame_slots, pic_param->alt_fb_idx.Index7Bits, SLOT_BUFFER, &framebuf); in hal_vp8d_vdpu2_gen_regs()
510 if (pic_param->ref_frame_sign_bias_altref) in hal_vp8d_vdpu2_gen_regs()
511 mpp_dev_set_reg_offset(ctx->dev, 137, pic_param->ref_frame_sign_bias_altref); in hal_vp8d_vdpu2_gen_regs()
514 …if (pic_param->stVP8Segments.segmentation_enabled + (pic_param->stVP8Segments.update_mb_segmentati… in hal_vp8d_vdpu2_gen_regs()
515 mpp_dev_set_reg_offset(ctx->dev, 149, pic_param->stVP8Segments.segmentation_enabled in hal_vp8d_vdpu2_gen_regs()
516 + (pic_param->stVP8Segments.update_mb_segmentation_map << 1)); in hal_vp8d_vdpu2_gen_regs()
518 regs->reg57_enable_ctrl.sw_pic_inter_e = pic_param->frame_type; in hal_vp8d_vdpu2_gen_regs()
519 regs->reg50_dec_ctrl.sw_skip_mode = !pic_param->mb_no_coeff_skip; in hal_vp8d_vdpu2_gen_regs()
521 if (!pic_param->stVP8Segments.segmentation_enabled) { in hal_vp8d_vdpu2_gen_regs()
522 regs->reg129.sw_filt_level_0 = pic_param->filter_level; in hal_vp8d_vdpu2_gen_regs()
523 } else if (pic_param->stVP8Segments.update_mb_segmentation_data) { in hal_vp8d_vdpu2_gen_regs()
524 regs->reg129.sw_filt_level_0 = pic_param->stVP8Segments.segment_feature_data[1][0]; in hal_vp8d_vdpu2_gen_regs()
525 regs->reg129.sw_filt_level_1 = pic_param->stVP8Segments.segment_feature_data[1][1]; in hal_vp8d_vdpu2_gen_regs()
526 regs->reg129.sw_filt_level_2 = pic_param->stVP8Segments.segment_feature_data[1][2]; in hal_vp8d_vdpu2_gen_regs()
527 regs->reg129.sw_filt_level_3 = pic_param->stVP8Segments.segment_feature_data[1][3]; in hal_vp8d_vdpu2_gen_regs()
529 …regs->reg129.sw_filt_level_0 = CLIP3(0, 63, (RK_S32)pic_param->filter_level + pic_param->stVP8Segm… in hal_vp8d_vdpu2_gen_regs()
530 …regs->reg129.sw_filt_level_1 = CLIP3(0, 63, (RK_S32)pic_param->filter_level + pic_param->stVP8Segm… in hal_vp8d_vdpu2_gen_regs()
531 …regs->reg129.sw_filt_level_2 = CLIP3(0, 63, (RK_S32)pic_param->filter_level + pic_param->stVP8Segm… in hal_vp8d_vdpu2_gen_regs()
532 …regs->reg129.sw_filt_level_3 = CLIP3(0, 63, (RK_S32)pic_param->filter_level + pic_param->stVP8Segm… in hal_vp8d_vdpu2_gen_regs()
535 regs->reg132.sw_filt_type = pic_param->filter_type; in hal_vp8d_vdpu2_gen_regs()
536 regs->reg132.sw_filt_sharpness = pic_param->sharpness; in hal_vp8d_vdpu2_gen_regs()
538 if (pic_param->filter_level == 0) { in hal_vp8d_vdpu2_gen_regs()
542 if (pic_param->version != 3) { in hal_vp8d_vdpu2_gen_regs()
546 if (pic_param->decMode == VP8HWD_VP8 && (pic_param->version & 0x3)) { in hal_vp8d_vdpu2_gen_regs()
549 regs->reg122.sw_boolean_value = pic_param->bool_value; in hal_vp8d_vdpu2_gen_regs()
550 regs->reg122.sw_boolean_range = pic_param->bool_range; in hal_vp8d_vdpu2_gen_regs()
553 if (!pic_param->stVP8Segments.segmentation_enabled) in hal_vp8d_vdpu2_gen_regs()
554 regs->reg130.sw_quant_0 = pic_param->y1ac_delta_q; in hal_vp8d_vdpu2_gen_regs()
555 else if (pic_param->stVP8Segments.update_mb_segmentation_data) { /* absolute mode */ in hal_vp8d_vdpu2_gen_regs()
556 regs->reg130.sw_quant_0 = pic_param->stVP8Segments.segment_feature_data[0][0]; in hal_vp8d_vdpu2_gen_regs()
557 regs->reg130.sw_quant_1 = pic_param->stVP8Segments.segment_feature_data[0][1]; in hal_vp8d_vdpu2_gen_regs()
558 regs->reg151.sw_quant_2 = pic_param->stVP8Segments.segment_feature_data[0][2]; in hal_vp8d_vdpu2_gen_regs()
559 regs->reg151.sw_quant_3 = pic_param->stVP8Segments.segment_feature_data[0][3]; in hal_vp8d_vdpu2_gen_regs()
561 …regs->reg130.sw_quant_0 = CLIP3(0, 127, pic_param->y1ac_delta_q + pic_param->stVP8Segments.segment… in hal_vp8d_vdpu2_gen_regs()
562 …regs->reg130.sw_quant_1 = CLIP3(0, 127, pic_param->y1ac_delta_q + pic_param->stVP8Segments.segment… in hal_vp8d_vdpu2_gen_regs()
563 …regs->reg151.sw_quant_2 = CLIP3(0, 127, pic_param->y1ac_delta_q + pic_param->stVP8Segments.segment… in hal_vp8d_vdpu2_gen_regs()
564 …regs->reg151.sw_quant_3 = CLIP3(0, 127, pic_param->y1ac_delta_q + pic_param->stVP8Segments.segment… in hal_vp8d_vdpu2_gen_regs()
567 regs->reg130.sw_quant_delta_0 = pic_param->y1dc_delta_q; in hal_vp8d_vdpu2_gen_regs()
568 regs->reg130.sw_quant_delta_1 = pic_param->y2dc_delta_q; in hal_vp8d_vdpu2_gen_regs()
569 regs->reg151.sw_quant_delta_2 = pic_param->y2ac_delta_q; in hal_vp8d_vdpu2_gen_regs()
570 regs->reg151.sw_quant_delta_3 = pic_param->uvdc_delta_q; in hal_vp8d_vdpu2_gen_regs()
571 regs->reg152.sw_quant_delta_4 = pic_param->uvac_delta_q; in hal_vp8d_vdpu2_gen_regs()
573 if (pic_param->mode_ref_lf_delta_enabled) { in hal_vp8d_vdpu2_gen_regs()
574 regs->reg133.sw_filt_ref_adj_0 = pic_param->ref_lf_deltas[0]; in hal_vp8d_vdpu2_gen_regs()
575 regs->reg133.sw_filt_ref_adj_1 = pic_param->ref_lf_deltas[1]; in hal_vp8d_vdpu2_gen_regs()
576 regs->reg133.sw_filt_ref_adj_2 = pic_param->ref_lf_deltas[2]; in hal_vp8d_vdpu2_gen_regs()
577 regs->reg133.sw_filt_ref_adj_3 = pic_param->ref_lf_deltas[3]; in hal_vp8d_vdpu2_gen_regs()
578 regs->reg132.sw_filt_mb_adj_0 = pic_param->mode_lf_deltas[0]; in hal_vp8d_vdpu2_gen_regs()
579 regs->reg132.sw_filt_mb_adj_1 = pic_param->mode_lf_deltas[1]; in hal_vp8d_vdpu2_gen_regs()
580 regs->reg132.sw_filt_mb_adj_2 = pic_param->mode_lf_deltas[2]; in hal_vp8d_vdpu2_gen_regs()
581 regs->reg132.sw_filt_mb_adj_3 = pic_param->mode_lf_deltas[3]; in hal_vp8d_vdpu2_gen_regs()
586 if ((pic_param->version & 0x3) == 0) in hal_vp8d_vdpu2_gen_regs()