Lines Matching refs:h264

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