Lines Matching refs:h264
655 const struct v4l2_h264_dpb_entry *dpb = ctx->h264.decode_params->dpb; in get_ref_buf()
690 struct tegra_vde_h264_decoder_ctx *h264, in tegra_vde_h264_setup_frame() argument
698 struct tegra_ctx_h264 *h = &ctx->h264; in tegra_vde_h264_setup_frame()
706 lsize = h264->pic_width_in_mbs * 16 * h264->pic_height_in_mbs * 16; in tegra_vde_h264_setup_frame()
707 csize = h264->pic_width_in_mbs * 8 * h264->pic_height_in_mbs * 8; in tegra_vde_h264_setup_frame()
754 struct tegra_vde_h264_decoder_ctx *h264) in tegra_vde_h264_setup_frames() argument
758 const struct v4l2_h264_dpb_entry *dpb = ctx->h264.decode_params->dpb; in tegra_vde_h264_setup_frames()
760 struct tegra_ctx_h264 *h = &ctx->h264; in tegra_vde_h264_setup_frames()
788 err = tegra_vde_h264_setup_frame(ctx, h264, NULL, &dst->vb2_buf, 0, in tegra_vde_h264_setup_frames()
789 h264->dpb_frames_nb++); in tegra_vde_h264_setup_frames()
812 err = tegra_vde_h264_setup_frame(ctx, h264, &b, ref, dpb_idx, in tegra_vde_h264_setup_frames()
813 h264->dpb_frames_nb++); in tegra_vde_h264_setup_frames()
818 h264->dpb_ref_frames_with_earlier_poc_nb++; in tegra_vde_h264_setup_frames()
861 struct tegra_vde_h264_decoder_ctx *h264) in tegra_vde_h264_setup_context() argument
863 struct tegra_ctx_h264 *h = &ctx->h264; in tegra_vde_h264_setup_context()
868 memset(h264, 0, sizeof(*h264)); in tegra_vde_h264_setup_context()
883 h264->baseline_profile = 1; in tegra_vde_h264_setup_context()
886 h264->direct_8x8_inference_flag = 1; in tegra_vde_h264_setup_context()
889 h264->constrained_intra_pred_flag = 1; in tegra_vde_h264_setup_context()
892 h264->deblocking_filter_control_present_flag = 1; in tegra_vde_h264_setup_context()
895 h264->pic_order_present_flag = 1; in tegra_vde_h264_setup_context()
897 h264->level_idc = to_tegra_vde_h264_level_idc(h->sps->level_idc); in tegra_vde_h264_setup_context()
898 h264->log2_max_pic_order_cnt_lsb = h->sps->log2_max_pic_order_cnt_lsb_minus4 + 4; in tegra_vde_h264_setup_context()
899 h264->log2_max_frame_num = h->sps->log2_max_frame_num_minus4 + 4; in tegra_vde_h264_setup_context()
900 h264->pic_order_cnt_type = h->sps->pic_order_cnt_type; in tegra_vde_h264_setup_context()
901 h264->pic_width_in_mbs = h->sps->pic_width_in_mbs_minus1 + 1; in tegra_vde_h264_setup_context()
902 h264->pic_height_in_mbs = h->sps->pic_height_in_map_units_minus1 + 1; in tegra_vde_h264_setup_context()
904 h264->num_ref_idx_l0_active_minus1 = h->pps->num_ref_idx_l0_default_active_minus1; in tegra_vde_h264_setup_context()
905 h264->num_ref_idx_l1_active_minus1 = h->pps->num_ref_idx_l1_default_active_minus1; in tegra_vde_h264_setup_context()
906 h264->chroma_qp_index_offset = h->pps->chroma_qp_index_offset & 0x1f; in tegra_vde_h264_setup_context()
907 h264->pic_init_qp = h->pps->pic_init_qp_minus26 + 26; in tegra_vde_h264_setup_context()
909 err = tegra_vde_h264_setup_frames(ctx, h264); in tegra_vde_h264_setup_context()
913 err = tegra_vde_validate_h264_ctx(dev, h264); in tegra_vde_h264_setup_context()
925 struct tegra_vde_h264_decoder_ctx h264; in tegra_vde_h264_decode_run() local
929 err = tegra_vde_h264_setup_context(ctx, &h264); in tegra_vde_h264_decode_run()
933 err = tegra_vde_decode_begin(vde, &h264, vde->frames, in tegra_vde_h264_decode_run()