• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching defs:pps

294                                     PPS *pps, int is_sps,
313 if (is_sps || pps->transform_8x8_mode) {
580 static void build_qp_table(PPS *pps, int t, int index, const int depth)
585 pps->chroma_qp_table[t][i] =
589 static int more_rbsp_data_in_pps(H264Context *h, PPS *pps)
591 const SPS *sps = h->sps_buffers[pps->sps_id];
607 PPS *pps;
617 pps = av_mallocz(sizeof(PPS));
618 if (!pps)
620 pps->sps_id = get_ue_golomb_31(&h->gb);
621 if ((unsigned)pps->sps_id >= MAX_SPS_COUNT ||
622 h->sps_buffers[pps->sps_id] == NULL) {
623 av_log(h->avctx, AV_LOG_ERROR, "sps_id %u out of range\n", pps->sps_id);
626 sps = h->sps_buffers[pps->sps_id];
640 pps->cabac = get_bits1(&h->gb);
641 pps->pic_order_present = get_bits1(&h->gb);
642 pps->slice_group_count = get_ue_golomb(&h->gb) + 1;
643 if (pps->slice_group_count > 1) {
644 pps->mb_slice_group_map_type = get_ue_golomb(&h->gb);
646 switch (pps->mb_slice_group_map_type) {
678 pps->ref_count[0] = get_ue_golomb(&h->gb) + 1;
679 pps->ref_count[1] = get_ue_golomb(&h->gb) + 1;
680 if (pps->ref_count[0] - 1 > 32 - 1 || pps->ref_count[1] - 1 > 32 - 1) {
681 av_log(h->avctx, AV_LOG_ERROR, "reference overflow (pps)\n");
685 pps->weighted_pred = get_bits1(&h->gb);
686 pps->weighted_bipred_idc = get_bits(&h->gb, 2);
687 pps->init_qp = get_se_golomb(&h->gb) + 26 + qp_bd_offset;
688 pps->init_qs = get_se_golomb(&h->gb) + 26 + qp_bd_offset;
689 pps->chroma_qp_index_offset[0] = get_se_golomb(&h->gb);
690 pps->deblocking_filter_parameters_present = get_bits1(&h->gb);
691 pps->constrained_intra_pred = get_bits1(&h->gb);
692 pps->redundant_pic_cnt_present = get_bits1(&h->gb);
694 pps->transform_8x8_mode = 0;
695 // contents of sps/pps can change even if id doesn't, so reinit
697 memcpy(pps->scaling_matrix4, h->sps_buffers[pps->sps_id]->scaling_matrix4,
698 sizeof(pps->scaling_matrix4));
699 memcpy(pps->scaling_matrix8, h->sps_buffers[pps->sps_id]->scaling_matrix8,
700 sizeof(pps->scaling_matrix8));
703 if (bits_left > 0 && more_rbsp_data_in_pps(h, pps)) {
704 pps->transform_8x8_mode = get_bits1(&h->gb);
705 decode_scaling_matrices(h, h->sps_buffers[pps->sps_id], pps, 0,
706 pps->scaling_matrix4, pps->scaling_matrix8);
708 pps->chroma_qp_index_offset[1] = get_se_golomb(&h->gb);
710 pps->chroma_qp_index_offset[1] = pps->chroma_qp_index_offset[0];
713 build_qp_table(pps, 0, pps->chroma_qp_index_offset[0], sps->bit_depth_luma);
714 build_qp_table(pps, 1, pps->chroma_qp_index_offset[1], sps->bit_depth_luma);
715 if (pps->chroma_qp_index_offset[0] != pps->chroma_qp_index_offset[1])
716 pps->chroma_qp_diff = 1;
720 "pps:%u sps:%u %s slice_groups:%d ref:%u/%u %s qp:%d/%d/%d/%d %s %s %s %s\n",
721 pps_id, pps->sps_id,
722 pps->cabac ? "CABAC" : "CAVLC",
723 pps->slice_group_count,
724 pps->ref_count[0], pps->ref_count[1],
725 pps->weighted_pred ? "weighted" : "",
726 pps->init_qp, pps->init_qs, pps->chroma_qp_index_offset[0], pps->chroma_qp_index_offset[1],
727 pps->deblocking_filter_parameters_present ? "LPAR" : "",
728 pps->constrained_intra_pred ? "CONSTR" : "",
729 pps->redundant_pic_cnt_present ? "REDU" : "",
730 pps->transform_8x8_mode ? "8x8DCT" : "");
734 h->pps_buffers[pps_id] = pps;
738 av_free(pps);