Lines Matching refs:h264
660 const struct v4l2_h264_dpb_entry *dpb = ctx->h264.decode_params->dpb; in get_ref_buf()
695 struct tegra_vde_h264_decoder_ctx *h264, in tegra_vde_h264_setup_frame() argument
703 struct tegra_ctx_h264 *h = &ctx->h264; in tegra_vde_h264_setup_frame()
711 lsize = h264->pic_width_in_mbs * 16 * h264->pic_height_in_mbs * 16; in tegra_vde_h264_setup_frame()
712 csize = h264->pic_width_in_mbs * 8 * h264->pic_height_in_mbs * 8; in tegra_vde_h264_setup_frame()
759 struct tegra_vde_h264_decoder_ctx *h264) in tegra_vde_h264_setup_frames() argument
763 const struct v4l2_h264_dpb_entry *dpb = ctx->h264.decode_params->dpb; in tegra_vde_h264_setup_frames()
765 struct tegra_ctx_h264 *h = &ctx->h264; in tegra_vde_h264_setup_frames()
793 err = tegra_vde_h264_setup_frame(ctx, h264, NULL, &dst->vb2_buf, 0, in tegra_vde_h264_setup_frames()
794 h264->dpb_frames_nb++); in tegra_vde_h264_setup_frames()
817 err = tegra_vde_h264_setup_frame(ctx, h264, &b, ref, dpb_idx, in tegra_vde_h264_setup_frames()
818 h264->dpb_frames_nb++); in tegra_vde_h264_setup_frames()
823 h264->dpb_ref_frames_with_earlier_poc_nb++; in tegra_vde_h264_setup_frames()
866 struct tegra_vde_h264_decoder_ctx *h264) in tegra_vde_h264_setup_context() argument
868 struct tegra_ctx_h264 *h = &ctx->h264; in tegra_vde_h264_setup_context()
873 memset(h264, 0, sizeof(*h264)); in tegra_vde_h264_setup_context()
888 h264->baseline_profile = 1; in tegra_vde_h264_setup_context()
891 h264->direct_8x8_inference_flag = 1; in tegra_vde_h264_setup_context()
894 h264->constrained_intra_pred_flag = 1; in tegra_vde_h264_setup_context()
897 h264->deblocking_filter_control_present_flag = 1; in tegra_vde_h264_setup_context()
900 h264->pic_order_present_flag = 1; in tegra_vde_h264_setup_context()
902 h264->level_idc = to_tegra_vde_h264_level_idc(h->sps->level_idc); in tegra_vde_h264_setup_context()
903 h264->log2_max_pic_order_cnt_lsb = h->sps->log2_max_pic_order_cnt_lsb_minus4 + 4; in tegra_vde_h264_setup_context()
904 h264->log2_max_frame_num = h->sps->log2_max_frame_num_minus4 + 4; in tegra_vde_h264_setup_context()
905 h264->pic_order_cnt_type = h->sps->pic_order_cnt_type; in tegra_vde_h264_setup_context()
906 h264->pic_width_in_mbs = h->sps->pic_width_in_mbs_minus1 + 1; in tegra_vde_h264_setup_context()
907 h264->pic_height_in_mbs = h->sps->pic_height_in_map_units_minus1 + 1; in tegra_vde_h264_setup_context()
909 h264->num_ref_idx_l0_active_minus1 = h->pps->num_ref_idx_l0_default_active_minus1; in tegra_vde_h264_setup_context()
910 h264->num_ref_idx_l1_active_minus1 = h->pps->num_ref_idx_l1_default_active_minus1; in tegra_vde_h264_setup_context()
911 h264->chroma_qp_index_offset = h->pps->chroma_qp_index_offset & 0x1f; in tegra_vde_h264_setup_context()
912 h264->pic_init_qp = h->pps->pic_init_qp_minus26 + 26; in tegra_vde_h264_setup_context()
914 err = tegra_vde_h264_setup_frames(ctx, h264); in tegra_vde_h264_setup_context()
918 err = tegra_vde_validate_h264_ctx(dev, h264); in tegra_vde_h264_setup_context()
930 struct tegra_vde_h264_decoder_ctx h264; in tegra_vde_h264_decode_run() local
934 err = tegra_vde_h264_setup_context(ctx, &h264); in tegra_vde_h264_decode_run()
938 err = tegra_vde_decode_begin(vde, &h264, vde->frames, in tegra_vde_h264_decode_run()